/* ==========================================================================
   KOREVIX CORPORATE & EXECUTIVE DESIGN SYSTEM
   Brand Colors: Navy Deep (#070D1E, #0F172A), Gold/Copper (#EAB308, #D4AF37),
                 Cyan Tech (#38BDF8), Emerald Green (#10B981), Pure White (#FFFFFF)
   ========================================================================== */

:root {
  --color-bg-main: #070d1e;
  --color-bg-surface: #0f172a;
  --color-bg-card: #1e293b;
  --color-bg-card-hover: #26334d;
  --color-bg-glass: rgba(15, 23, 42, 0.75);

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(56, 189, 248, 0.3);
  --color-border-gold: rgba(234, 179, 8, 0.4);

  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;

  --color-gold: #eab308;
  --color-gold-light: #fef08a;
  --color-gold-glow: rgba(234, 179, 8, 0.25);
  
  --color-cyan: #38bdf8;
  --color-cyan-glow: rgba(56, 189, 248, 0.25);

  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.25);

  --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
  --font-family-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow-gold: 0 0 25px rgba(234, 179, 8, 0.15);
  --shadow-glow-cyan: 0 0 25px rgba(56, 189, 248, 0.15);
}

/* Reset & Global Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
}

body {
  font-family: var(--font-family-base);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Background Animated Gradient Mesh */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: 
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(234, 179, 8, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: linear-gradient(var(--color-border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  pointer-events: none;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background: var(--color-bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-family-heading);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.logo-badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-gold) 0%, #b45309 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}

.brand-logo span {
  background: linear-gradient(90deg, #ffffff 40%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, #d97706 100%);
  color: #0b132b;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.5);
  background: linear-gradient(135deg, #fef08a 0%, var(--color-gold) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-family-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card-preview {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-cyan), var(--color-emerald));
}

.hero-stat-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.mini-stat-val {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-gold);
}

.mini-stat-lbl {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Common Styling */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-family-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--shadow-glow-cyan);
}

.service-card.highlight {
  border-color: var(--color-border-gold);
  background: linear-gradient(180deg, var(--color-bg-surface) 0%, rgba(234, 179, 8, 0.05) 100%);
}

.service-card.highlight:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--shadow-glow-gold);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card.highlight .service-icon {
  background: rgba(234, 179, 8, 0.15);
  color: var(--color-gold);
}

.service-title {
  font-family: var(--font-family-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.8rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.service-features li svg {
  color: var(--color-emerald);
  flex-shrink: 0;
}

.service-demo-btn {
  width: 100%;
  margin-top: auto;
}

/* Why Choose KOREVIX Section */
.why-korevix {
  background: linear-gradient(180deg, var(--color-bg-main) 0%, var(--color-bg-surface) 50%, var(--color-bg-main) 100%);
  border-y: 1px solid var(--color-border);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  padding: 2.2rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.stat-item:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-family-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Interactive Demo Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-xl);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(0.92);
  transition: var(--transition-normal);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.8);
}

.modal-body {
  padding: 2rem;
}

.modal-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(234, 179, 8, 0.1);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.info-text {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.contact-form-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(7, 13, 30, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: #fff;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.2);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer {
  background: #030712;
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  color: var(--color-text-secondary);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-family-heading);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.footer-ul {
  list-style: none;
}

.footer-ul li {
  margin-bottom: 0.6rem;
}

.footer-ul a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .nav-links {
    display: none;
  }
  .nav-mobile-toggle {
    display: block;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
