@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===========================
   DARK THEME (Default)
=========================== */
:root {
    --dark: #080a14;
    --dark2: #0e1120;
    --dark3: #131726;
    --cyan: #00d4e8;
    --cyan-dim: #00b8d4;
    --cyan-glow: rgba(0, 212, 232, 0.25);
    --text: #e8eaf0;
    --muted: #7a839e;
    --light-bg: #f0f4f8;
    --light-card: #ffffff;
    --border: #1e2238;
    --card-border: #232740;

    /* Navbar */
    --navbar-bg: rgba(8, 10, 20, 0.85);
    --navbar-scrolled: rgba(8, 10, 20, 0.97);
    --navbar-shadow: rgba(0, 0, 0, 0.6);

    /* Hero */
    --hero-heading: #fff;
    --hero-blob1: rgba(0, 212, 232, 0.07);
    --hero-blob2: rgba(0, 150, 232, 0.06);

    /* Expertise Section */
    --expertise-bg: var(--dark);
    --expertise-card-bg: var(--dark2);
    --expertise-card-shadow: rgba(0, 0, 0, 0.3);
    --expertise-card-hover-shadow: rgba(0, 212, 232, 0.15);
    --expertise-heading: #fff;
    --expertise-subtext: var(--muted);
    --expertise-card-text: #e8eaf0;
    --expertise-card-list: #9da5bf;
    --expertise-icon-bg: var(--dark3);
    --cap-badge-bg: var(--dark3);
    --cap-badge-color: var(--cyan);
    --cap-badge-border: var(--card-border);

    /* Why Section */
    --why-bg: var(--dark);
    --why-card-bg: var(--dark2);
    --why-heading: #fff;

    /* Contact */
    --contact-bg: var(--dark2);
    --contact-heading: #fff;
    --contact-card-bg: var(--dark3);
    --input-bg: var(--dark);
    --input-focus-bg: #0c0f1e;
    --placeholder-color: #353d56;

    /* Footer */
    --footer-bg: var(--dark);

    /* Mobile nav */
    --mobile-nav-bg: rgba(8, 10, 20, 0.97);
}

/* ===========================
   LIGHT THEME
=========================== */
[data-theme="light"] {
    --dark: #ffffff;
    --dark2: #f5f7fa;
    --dark3: #edf0f5;
    --text: #1a1d2e;
    --muted: #5a6178;
    --border: #d8dde6;
    --card-border: #d0d5e0;
    --light-bg: #f0f4f8;
    --light-card: #ffffff;

    /* Navbar */
    --navbar-bg: rgba(255, 255, 255, 0.88);
    --navbar-scrolled: rgba(255, 255, 255, 0.97);
    --navbar-shadow: rgba(0, 0, 0, 0.08);

    /* Hero */
    --hero-heading: #0d0f1a;
    --hero-blob1: rgba(0, 212, 232, 0.05);
    --hero-blob2: rgba(0, 150, 232, 0.04);

    /* Expertise Section */
    --expertise-bg: #e8ecf2;
    --expertise-card-bg: #ffffff;
    --expertise-card-shadow: rgba(0, 0, 0, 0.06);
    --expertise-card-hover-shadow: rgba(0, 0, 0, 0.12);
    --expertise-heading: #0d0f1a;
    --expertise-subtext: #555;
    --expertise-card-text: #666;
    --expertise-card-list: #444;
    --expertise-icon-bg: linear-gradient(135deg, #ddf4ff, #b8e8f7);
    --cap-badge-bg: #f0f4f8;
    --cap-badge-color: #555;
    --cap-badge-border: #dde3ec;

    /* Why Section */
    --why-bg: #ffffff;
    --why-card-bg: #f5f7fa;
    --why-heading: #0d0f1a;

    /* Contact */
    --contact-bg: #f5f7fa;
    --contact-heading: #0d0f1a;
    --contact-card-bg: #ffffff;
    --input-bg: #f0f4f8;
    --input-focus-bg: #e8ecf2;
    --placeholder-color: #9ba3b8;

    /* Footer */
    --footer-bg: #0d0f1a;

    /* Mobile nav */
    --mobile-nav-bg: rgba(255, 255, 255, 0.97);
}

/* Light theme specific overrides for elements with hardcoded colors */
[data-theme="light"] .hero-bg-grid {
    background-image:
        linear-gradient(rgba(0, 180, 200, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 200, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .hero::before {
    background: radial-gradient(circle, rgba(0, 212, 232, 0.04) 0%, transparent 70%);
}

[data-theme="light"] .hero::after {
    background: radial-gradient(circle, rgba(0, 150, 232, 0.03) 0%, transparent 70%);
}

[data-theme="light"] .orb-1 {
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(0, 212, 232, 0.3);
}

[data-theme="light"] .orb-2 {
    box-shadow: 0 0 10px rgba(122, 246, 255, 0.4);
}

[data-theme="light"] .orb-3 {
    box-shadow: 0 0 10px rgba(0, 212, 232, 0.3);
}

[data-theme="light"] .orb-4 {
    box-shadow: 0 0 8px rgba(160, 240, 255, 0.3);
}

[data-theme="light"] .stat-number {
    color: #0d0f1a;
}

[data-theme="light"] .stat-divider {
    background: linear-gradient(to bottom, transparent, #cdd3de, transparent);
}

[data-theme="light"] .btn-dark {
    background: #edf0f5;
    color: #5a6178;
    border-color: #d0d5e0;
}

[data-theme="light"] .btn-dark:hover {
    border-color: var(--cyan);
    color: #1a1d2e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .why-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(0, 212, 232, 0.08);
}

[data-theme="light"] .why-card:hover .why-list li {
    color: #4a5168;
}

[data-theme="light"] .section-header.dark h2 {
    color: #0d0f1a;
}

[data-theme="light"] .contact-info-card:hover {
    box-shadow: 0 0 30px rgba(0, 212, 232, 0.06);
}

[data-theme="light"] .form-group select option {
    background: #ffffff;
    color: #1a1d2e;
}

[data-theme="light"] .mobile-nav a {
    border-bottom-color: #d8dde6;
}

[data-theme="light"] .why::before {
    background: radial-gradient(ellipse, rgba(0, 212, 232, 0.03), transparent);
}

/* ===========================
   THEME TOGGLE BUTTON
=========================== */
.theme-toggle {
    position: relative;
    background: none;
    border: 1.5px solid var(--card-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 16px var(--cyan-glow);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

.theme-toggle-mobile {
    display: none;
}

/* ===========================
   RESET & BASE
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* ===========================
   KEYFRAME ANIMATIONS
=========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--cyan-glow);
    }

    50% {
        box-shadow: 0 0 50px rgba(0, 212, 232, 0.45), 0 0 80px rgba(0, 212, 232, 0.2);
    }
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: var(--card-border);
    }

    50% {
        border-color: var(--cyan);
        box-shadow: 0 0 24px var(--cyan-glow);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-18px) rotate(1deg);
    }

    66% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes blob-move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes grid-pulse {

    0%,
    100% {
        opacity: 0.04;
    }

    50% {
        opacity: 0.09;
    }
}

@keyframes typing-cursor {
    from {
        border-right-color: var(--cyan);
    }

    to {
        border-right-color: transparent;
    }
}

@keyframes ripple-out {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 60px;
    /* Adjusted padding for mid-sized header */
    background: var(--navbar-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    animation: fadeInDown 0.8s ease both;
    transition: background 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
    background: var(--navbar-scrolled);
    box-shadow: 0 4px 30px var(--navbar-shadow);
    border-bottom-color: rgba(0, 212, 232, 0.15);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased gap for larger logo */
    text-decoration: none;
}

.logo-img {
    height: 65px;
    /* Down from 100px, still larger than original 38px */
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 12px rgba(0, 212, 232, 0.4));
    transition: filter 0.3s, transform 0.3s;
}

.logo-footer {
    height: 48px;
    /* Slightly smaller for the footer */
}

.logo-img:hover {
    filter: drop-shadow(0 0 16px rgba(0, 212, 232, 0.9));
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #00b4c8, #7af6ff, #00d4e8, #7af6ff, #00b4c8);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 6s ease-in-out infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 6px var(--cyan);
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-contact {
    padding: 8px 22px;
    border: 1.5px solid var(--cyan) !important;
    border-radius: 6px;
    color: var(--cyan) !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    box-shadow: 0 0 10px rgba(0, 212, 232, 0.2);
}

.btn-contact:hover {
    background: var(--cyan) !important;
    color: var(--dark) !important;
    box-shadow: 0 0 24px rgba(0, 212, 232, 0.5) !important;
}

.btn-contact::after {
    display: none !important;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.hamburger:hover {
    color: var(--cyan);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--mobile-nav-bg);
    border-bottom: 1px solid var(--border);
    z-index: 998;
    padding: 20px 30px;
    gap: 16px;
    backdrop-filter: blur(20px);
}

.mobile-nav.open {
    display: flex;
    animation: fadeInDown 0.3s ease both;
}

.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s, padding-left 0.3s;
}

.mobile-nav a:hover {
    color: var(--cyan);
    padding-left: 8px;
}

/* ===========================
   HERO
=========================== */
.hero {
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
}

/* Animated grid */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 232, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 232, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    animation: grid-pulse 4s ease-in-out infinite;
}

/* Animated blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.hero::before {
    width: 700px;
    height: 700px;
    top: -100px;
    left: -150px;
    background: radial-gradient(circle, rgba(0, 212, 232, 0.07) 0%, transparent 70%);
    animation: blob-move 12s ease-in-out infinite;
}

.hero::after {
    width: 600px;
    height: 600px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 150, 232, 0.06) 0%, transparent 70%);
    animation: blob-move 15s ease-in-out infinite reverse;
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    top: 20%;
    left: 10%;
    box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan);
    animation-delay: 0s;
}

.orb-2 {
    width: 5px;
    height: 5px;
    background: #7af6ff;
    top: 60%;
    left: 85%;
    box-shadow: 0 0 15px #7af6ff;
    animation-delay: -2s;
}

.orb-3 {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    top: 80%;
    left: 15%;
    box-shadow: 0 0 18px var(--cyan);
    animation-delay: -4s;
}

.orb-4 {
    width: 4px;
    height: 4px;
    background: #a0f0ff;
    top: 30%;
    left: 75%;
    box-shadow: 0 0 12px #a0f0ff;
    animation-delay: -1s;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 232, 0.08);
    border: 1px solid rgba(0, 212, 232, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s 0.2s both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: glow 2s ease-in-out infinite;
}

.hero-heading {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.08;
    color: var(--hero-heading);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s 0.4s both;
    letter-spacing: -1px;
}

.hero-heading .typed-word {
    color: var(--cyan);
    display: inline-block;
    /* typing cursor */
    border-right: 3px solid var(--cyan);
    padding-right: 4px;
    animation: typing-cursor 0.7s step-end infinite;
}

.hero-sub {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    animation: fadeInUp 0.8s 0.6s both;
}

.hero-desc {
    font-size: 1rem;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 44px;
    line-height: 1.8;
    animation: fadeInUp 0.8s 0.7s both;
}

.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.9s both;
}

/* Stats bar */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    animation: fadeInUp 0.8s 1.1s both;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.stat-number span {
    color: var(--cyan);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
    align-self: center;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    padding: 14px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--cyan);
    color: var(--text);
    box-shadow: 0 0 12px rgba(0, 212, 232, 0.15), inset 0 0 0 0 var(--cyan);
}

.btn-outline:hover {
    background: var(--cyan);
    color: var(--dark);
    box-shadow: 0 0 30px rgba(0, 212, 232, 0.5), 0 0 60px rgba(0, 212, 232, 0.2);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--dark3);
    color: var(--muted);
    border: 1.5px solid var(--card-border);
}

.btn-dark:hover {
    border-color: var(--cyan);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Ripple */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-out 0.6s linear;
    pointer-events: none;
}

/* ===========================
   OUR EXPERTISE
=========================== */
.expertise {
    background: var(--expertise-bg);
    padding: 100px 60px;
    position: relative;
    overflow: hidden;
}

.expertise::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 232, 0.06), transparent 70%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header.light h2 {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--expertise-heading);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-header.light p {
    color: var(--expertise-subtext);
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-header.dark h2 {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--why-heading);
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 212, 232, 0.1);
    border: 1px solid rgba(0, 212, 232, 0.3);
    color: var(--cyan-dim);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-tag-light {
    background: rgba(0, 184, 212, 0.08);
    border: 1px solid rgba(0, 184, 212, 0.25);
    color: var(--cyan-dim);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    display: inline-block;
}

.cyan-link {
    color: var(--cyan);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.ex-card {
    background: var(--expertise-card-bg);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 4px 24px var(--expertise-card-shadow);
    transition: transform 0.4s cubic-bezier(.25, .8, .25, 1), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.ex-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 232, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.ex-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--expertise-card-hover-shadow);
}

.ex-card:hover::before {
    opacity: 1;
}

/* Shimmer top line on hover */
.ex-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
    transition: left 0.5s ease;
    border-radius: 18px 18px 0 0;
}

.ex-card:hover::after {
    left: 100%;
}

.ex-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ex-icon {
    width: 52px;
    height: 52px;
    background: var(--expertise-icon-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 14px rgba(0, 184, 212, 0.2);
    transition: transform 0.3s;
}

.ex-card:hover .ex-icon {
    transform: scale(1.1) rotate(-5deg);
}

.cap-badge {
    background: var(--cap-badge-bg);
    color: var(--cap-badge-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--cap-badge-border);
}

.ex-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--expertise-heading);
    line-height: 1.3;
}

.ex-card p {
    font-size: 0.9rem;
    color: var(--expertise-card-text);
    line-height: 1.6;
}

.cap-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.cap-list.two-col {
    grid-template-columns: 1fr 1fr;
}

.cap-list li {
    font-size: 0.85rem;
    color: var(--expertise-card-list);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cap-list li::before {
    content: '•';
    color: var(--cyan-dim);
    font-size: 1rem;
}

.learn-more-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1.5px solid var(--cyan-dim);
    border-radius: 8px;
    color: var(--cyan-dim);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cyan-dim);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 0;
}

.learn-more-btn span {
    position: relative;
    z-index: 1;
}

.learn-more-btn:hover {
    color: var(--dark);
    box-shadow: 0 0 18px rgba(0, 184, 212, 0.4);
}

.learn-more-btn:hover::before {
    transform: translateX(0);
}

/* ===========================
   WHY CHOOSE
=========================== */
.why {
    background: var(--dark);
    padding: 100px 60px;
    position: relative;
    overflow: hidden;
}

.why::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 212, 232, 0.04), transparent);
    pointer-events: none;
}

.why .section-header {
    margin-bottom: 56px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .why-grid .why-card:nth-child(6) {
        grid-column: 1;
    }

    .why-grid .why-card:nth-child(7) {
        grid-column: 2;
    }

    .why-grid .why-card:nth-child(8) {
        grid-column: 3;
    }

    .why-grid .why-card:nth-child(9) {
        grid-column: 4;
    }
}

.why-card {
    background: var(--dark2);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 26px 20px;
    transition: all 0.4s cubic-bezier(.25, .8, .25, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 232, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.why-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.why-card:hover {
    border-color: var(--cyan);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 232, 0.1);
}

.why-card:hover::before {
    opacity: 1;
}

.why-card:hover::after {
    transform: scaleX(1);
}

.why-card-active {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 30px rgba(0, 212, 232, 0.2);
    animation: pulse-border 3s ease-in-out infinite;
}

.why-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
    transition: transform 0.3s;
    display: inline-block;
}

.why-card:hover .why-icon {
    transform: scale(1.2);
}

.why-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.why-list li {
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.4;
    transition: color 0.3s;
}

.why-card:hover .why-list li {
    color: #9da5bf;
}

.why-list li.check::before {
    content: '•';
    color: var(--cyan);
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ===========================
   CONTACT
=========================== */
.contact {
    background: var(--dark2);
    padding: 100px 60px;
}

.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 56px;
    color: var(--contact-heading);
    letter-spacing: -0.5px;
}

.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
    align-items: start;
}

.contact-info-card {
    background: var(--dark3);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 38px 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.contact-info-card:hover {
    border-color: rgba(0, 212, 232, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 232, 0.07);
}

.info-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 4px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-block p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

.info-block strong {
    color: var(--text);
    font-weight: 600;
}

.contact-form-card {
    background: var(--dark3);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 38px 36px;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.contact-form-card:hover {
    border-color: rgba(0, 212, 232, 0.2);
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
}

.req {
    color: #ff6b6b;
    margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--dark);
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 13px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    resize: vertical;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238890a8' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    background: var(--dark2);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 232, 0.12);
    background: var(--input-focus-bg);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--placeholder-color);
}

.submit-btn {
    width: 100%;
    text-align: center;
    margin-top: 4px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.form-status {
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 212, 232, 0.1);
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.form-status.error {
    display: block;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

/* ===========================
   FOOTER
=========================== */
footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 64px 60px 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .nav-logo {
    margin-bottom: 14px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-cols {
    display: flex;
    gap: 60px;
}

.footer-cols>div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-cols h5 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.footer-cols a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-cols a:hover {
    color: var(--text);
    padding-left: 4px;
}

.footer-link-cyan {
    color: var(--cyan) !important;
}

.footer-link-cyan:hover {
    opacity: 0.8;
}

.footer-social-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.footer-social-link svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-social-link:hover svg {
    opacity: 1;
    color: var(--cyan);
}

.footer-social-link:hover {
    color: var(--cyan) !important;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.25, .8, .25, 1), transform 0.7s cubic-bezier(.25, .8, .25, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s, transform 0.7s;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s, transform 0.7s;
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid .why-card:nth-child(6),
    .why-grid .why-card:nth-child(7),
    .why-grid .why-card:nth-child(8),
    .why-grid .why-card:nth-child(9) {
        grid-column: auto;
    }
}

@media (max-width: 991px) {
    .navbar {
        padding: 15px 30px;
        /* Tighter padding for mobile but still large */
    }

    .nav-links,
    .nav-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .theme-toggle-mobile {
        display: flex;
    }

    /* Keep the logo and text proportionally huge but contained on mobile */
    .logo-img {
        height: 50px;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .hero {
        padding: 120px 24px 60px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 14px 24px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding: 120px 24px 60px;
    }

    .hero-heading {
        font-size: 2.8rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .expertise {
        padding: 70px 24px;
    }

    .why {
        padding: 70px 24px;
    }

    .contact {
        padding: 70px 24px;
    }

    .contact-columns {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        padding: 50px 24px 20px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-cols {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 2.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }
}