:root {
    --bg-color: #05050a;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #a855f7;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

::selection {
    background: var(--primary);
    color: white;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -10px var(--primary-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px var(--primary-glow);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
}

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

.nav-links a:not(.btn-primary) {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn-primary):hover {
    color: white;
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 280px;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 200;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    display: block;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li a {
    display: block !important;
    padding: 0.6rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px !important;
}

.dropdown-menu li a:hover {
    color: white !important;
    background: rgba(99, 102, 241, 0.15) !important;
    padding-left: 1.3rem !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    text-align: center;
    perspective: 1000px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.3;
    z-index: -1;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 60%);
    opacity: 0.5;
    z-index: -1;
    filter: blur(60px);
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #ffffff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

/* Floating 3D Elements in Hero */
.floating-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    filter: blur(2px);
    opacity: 0.6;
}

.shape-1 {
    width: 300px; height: 300px;
    top: 20%; left: 10%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite alternate;
}

.shape-2 {
    width: 200px; height: 200px;
    bottom: 20%; right: 15%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 10s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    width: 100px; height: 100px;
    top: 40%; right: 30%;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg) scale(1); }
    100% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: rotate(20deg) scale(1.1); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* About Section */
.about {
    padding: 8rem 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-text p strong {
    color: white;
}

.contact-highlight {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
}

.contact-highlight span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.phone-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

/* About 3D Visual Section */
.about-3d-container {
    position: relative;
    width: 100%;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-glass-backdrop {
    position: absolute;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 30px 50px -20px rgba(0,0,0,0.6);
    transform: translateZ(20px);
}

.about-profile-img {
    position: absolute;
    height: 110%;
    width: auto;
    object-fit: contain;
    bottom: 0;
    transform: translateZ(80px);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
    pointer-events: none;
    transition: transform 0.3s ease;
}

.about-badge {
    position: absolute;
    bottom: 12%;
    left: 5%;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 18px;
    transform: translateZ(110px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.about-badge::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 19px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.about-badge h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.2rem;
}

.about-badge p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Services Section */
.services {
    padding: 6rem 0 10rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(255,255,255,0.05);
}

.service-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transform: translateZ(50px);
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
}

.floating-img {
    animation: float-img 4s ease-in-out infinite;
}

.floating-img-delay1 {
    animation: float-img 4.5s ease-in-out infinite 1s;
}

.floating-img-delay2 {
    animation: float-img 5s ease-in-out infinite 2s;
}

@keyframes float-img {
    0%, 100% { transform: translateZ(50px) translateY(0); }
    50% { transform: translateZ(50px) translateY(-10px); }
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
    transform: translateZ(30px);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    transform: translateZ(20px);
    flex-grow: 1;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    transition: gap 0.3s ease;
    transform: translateZ(30px);
    margin-top: auto;
}

.service-link:hover {
    gap: 0.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    background: linear-gradient(to bottom, transparent, rgba(5,5,10,0.9));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer-brand p, .footer-contact p, .footer-newsletter p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-contact h3, .footer-newsletter h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-contact a:hover {
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 8px 0 0 8px;
    color: white;
    flex: 1;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Animations (Reveal) */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-3d-container {
        margin-top: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.4s ease;
        z-index: 99;
    }
    
    .nav-links.active {
        left: 0;
    }

    [data-theme="light"] .nav-links {
        background: rgba(246, 248, 253, 0.95);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        display: none;
        width: 100%;
    }
    
    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-toggle {
        justify-content: center;
        width: 100%;
    }

    .dropdown-toggle .arrow {
        margin-left: 0.5rem;
    }

    .dropdown:hover .dropdown-menu {
        transform: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .about-3d-container {
        height: 400px;
    }
    .about-profile-img {
        height: 100%;
    }
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
    transform: scale(1.1) translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px var(--primary-glow);
}

/* Hide sun icon in dark theme, hide moon icon in light theme */
.theme-toggle-btn .sun-icon {
    display: none;
}

.theme-toggle-btn .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* --- LIGHT THEME STYLES --- */
[data-theme="light"] {
    --bg-color: #f6f8fd;
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.2);
    --secondary: #7c3aed;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body {
    color: var(--text-main);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(246, 248, 253, 0.85);
}

[data-theme="light"] .nav-links a:not(.btn-primary) {
    color: #475569;
}

[data-theme="light"] .nav-links a:not(.btn-primary):hover {
    color: #0f172a;
}

[data-theme="light"] .dropdown-menu {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

[data-theme="light"] .dropdown-menu li a {
    color: #475569 !important;
}

[data-theme="light"] .dropdown-menu li a:hover {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.08) !important;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .about-text h2,
[data-theme="light"] .section-title,
[data-theme="light"] .subpage-hero h1,
[data-theme="light"] h2 {
    background: linear-gradient(135deg, #0f172a, #4f46e5) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .subpage-hero .hero-subtitle {
    color: var(--text-muted);
}

[data-theme="light"] .about-text p strong,
[data-theme="light"] .phone-link,
[data-theme="light"] .service-card h3,
[data-theme="light"] .service-card-info h4,
[data-theme="light"] .price-card h3,
[data-theme="light"] .price-amount,
[data-theme="light"] .faq-card h3,
[data-theme="light"] .method-card h3,
[data-theme="light"] .step-card h3,
[data-theme="light"] .spec-item h4,
[data-theme="light"] .portfolio-info h3,
[data-theme="light"] .feature-row-content h3,
[data-theme="light"] .matrix-card h3,
[data-theme="light"] .lesson-name,
[data-theme="light"] .form-subtitle-bold,
[data-theme="light"] .form-control {
    color: #0f172a !important;
}

[data-theme="light"] .faq-card h3 {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .faq-card:hover {
    border-color: rgba(0, 0, 0, 0.15) !important;
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .spec-item {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .spec-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .academy-lesson {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .tag-pill {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .tag-pill:hover {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: #10b981 !important;
}

[data-theme="light"] .db-table th {
    color: #0f172a !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .db-table td {
    color: #475569 !important;
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .db-stat-val {
    color: #0f172a !important;
}

[data-theme="light"] .db-stat-card {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .db-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .floating-card-1,
[data-theme="light"] .floating-card-2 {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .before-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .after-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.1) !important;
}

[data-theme="light"] .db-title,
[data-theme="light"] .db-code-line,
[data-theme="light"] .db-api-path,
[data-theme="light"] .db-stat-label,
[data-theme="light"] .browser-address {
    color: #475569 !important;
}

[data-theme="light"] .old-box {
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .form-control option {
    background-color: #ffffff;
    color: #0f172a;
}

[data-theme="light"] .form-control {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
}

[data-theme="light"] .service-checkbox-card:hover {
    background: rgba(0,0,0,0.02);
}

[data-theme="light"] .service-checkbox-card.selected {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.08));
}

[data-theme="light"] .dynamic-section {
    background: rgba(0,0,0,0.01);
}

[data-theme="light"] footer {
    background: #eaedf6;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

[data-theme="light"] footer .footer-bottom {
    border-top-color: rgba(0,0,0,0.05);
}

[data-theme="light"] .footer-brand h3,
[data-theme="light"] .footer-contact h3,
[data-theme="light"] .footer-newsletter h3 {
    color: #0f172a;
}

[data-theme="light"] .newsletter-form input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

[data-theme="light"] .newsletter-form input::placeholder {
    color: #64748b;
}

[data-theme="light"] .btn-primary {
    box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.4);
}

/* --- LIGHT THEME CONTRAST & MOCKUP OVERRIDES --- */

/* 1. Global Navigation Active Header Link */
[data-theme="light"] .nav-links a.active {
    color: var(--primary) !important;
}

/* 2. UNAS Template Comparison Card Headings */
[data-theme="light"] .comparison-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(99, 102, 241, 0.15) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .comparison-col h4,
[data-theme="light"] .comparison-card h3 {
    color: #0f172a !important;
}

/* 3. API Page macOS 3D Code Mockup Syntax Highlight */
[data-theme="light"] .db-code {
    color: #4f46e5 !important;
}
[data-theme="light"] .code-keyword {
    color: #be185d !important;
}
[data-theme="light"] .code-string {
    color: #047857 !important;
}
[data-theme="light"] .code-number {
    color: #1d4ed8 !important;
}
[data-theme="light"] .code-val {
    color: #1e293b !important;
}
[data-theme="light"] .db-webhook-logo span {
    color: #1e293b !important;
}

/* 4. API Page Bidirectional Sync Flow Cards */
[data-theme="light"] .flow-node {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .flow-node h4 {
    color: #0f172a !important;
}
[data-theme="light"] .packet-products {
    background: rgba(6, 182, 212, 0.08) !important;
    color: #0891b2 !important;
}
[data-theme="light"] .packet-stock {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #2563eb !important;
}
[data-theme="light"] .packet-orders {
    background: rgba(124, 58, 237, 0.08) !important;
    color: #7c3aed !important;
}

/* 5. Circular Performance Gauges Text Colors */
[data-theme="light"] .conic-gauge span {
    color: #ffffff !important;
}

/* 6. ERP Mockup Labels & Integration Items */
[data-theme="light"] .db-integration-item {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .db-integration-name {
    color: #0f172a !important;
}
