        body { background-color: #ffffff; color: #1e293b; }
        
        /* Modern Gradient Text */
        .text-gradient {
            background: linear-gradient(135deg, #683bf2 0%, #00d4ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* Glassmorphism */
        .glass {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(226, 232, 240, 0.6);
        }

        /* Nav Dropdown Logic - Improved for Usability */
        .dropdown-menu {
            display: block;
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px) translateX(-50%);
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
            pointer-events: none;
            /* Delay hiding the menu so it doesn't vanish instantly */
            transition-delay: 0.2s; 
        }
        
        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) translateX(-50%);
            pointer-events: auto;
            /* Show instantly on hover */
            transition-delay: 0s; 
        }

        /* Invisible bridge to prevent closing when moving mouse */
        .dropdown-bridge {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            height: 20px; /* Connects button to menu */
            background: transparent;
        }

        /* Smooth Section Switching */
        .page-section { display: none; opacity: 0; transition: opacity 0.4s ease-in-out; }
        .page-section.active { display: block; opacity: 1; }

        /* Tech Grid Background Size */
        .bg-grid-size { background-size: 24px 24px; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  transition: color .2s ease;
}
.nav-link:hover {
  color: #6d28d9;
}

.service-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  transition: 0.25s ease;
}
.service-card:hover {
  background: #f8fafc;
}
.service-card h6 {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}
.service-card p {
  font-size: 0.75rem;
  color: #64748b;
}

.service-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .bg-brand-glow {
    background:
      radial-gradient(600px 400px at 80% -10%, rgba(99,102,241,0.25), transparent 60%),
      radial-gradient(500px 300px at 10% 110%, rgba(139,92,246,0.25), transparent 60%);
  }

  .bg-soft-glow {
    background:
      radial-gradient(500px 300px at 10% 0%, rgba(99,102,241,0.15), transparent 60%),
      radial-gradient(500px 300px at 90% 100%, rgba(139,92,246,0.15), transparent 60%);
  }

.glow-purple {
  box-shadow: 0 0 120px rgba(99,102,241,0.25);
}
.bg-brand-glow {
  background: radial-gradient(circle at top right, rgba(104,59,242,0.15), transparent 60%);
}
/* =========================================
   GLOBAL TYPOGRAPHY & RHYTHM
========================================= */

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}

p {
  line-height: 1.75;
}

/* =========================================
   SECTION SPACING SYSTEM
========================================= */
.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-sm {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-lg {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

/* =========================================
   BUTTON BASE ENHANCEMENT
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #683bf2;
  color: white;
  box-shadow: 0 10px 30px rgba(104, 59, 242, 0.25);
}

.btn-primary:hover {
  background: #5a2ad6;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid #e2e8f0;
  color: #334155;
}

.btn-outline:hover {
  background: #f8fafc;
}

/* =========================================
   HEADER & DROPDOWN STABILITY FIX
========================================= */

header {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  z-index: 50;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

/* Prevent flicker */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Safe hover bridge */
.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 20px;
}

/* =========================================
   CARD / SERVICE HOVER POLISH
========================================= */

.service-card,
.card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0,0,0,.08);
}

/* =========================================
   SOFT SECTION BACKGROUNDS
========================================= */

.section-light {
  background:
    radial-gradient(600px 400px at 10% 0%, rgba(99,102,241,0.08), transparent 60%),
    radial-gradient(600px 400px at 90% 100%, rgba(139,92,246,0.08), transparent 60%),
    #ffffff;
}

.section-dark {
  background:
    radial-gradient(600px 400px at 10% 0%, rgba(99,102,241,0.15), transparent 60%),
    radial-gradient(600px 400px at 90% 100%, rgba(139,92,246,0.15), transparent 60%),
    #0f172a;
}

/* =========================================
   FOOTER SMOOTH TRANSITION
========================================= */

.footer-blend {
  background:
    linear-gradient(to bottom, rgba(15,23,42,0) 0%, #0f172a 35%);
}

/* =========================================
   MOBILE FIXES
========================================= */

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .dropdown-menu {
    display: none !important;
  }
}
