:root {
    --primary: #0a2540;
    --secondary: #00d4aa;
    --accent: #635bff;
    --light: #f6f9fc;
    --dark: #0a2540;
    --gray: #425466;
    --footer: #0a2540;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary: #0a2540;
    --secondary: #00d4aa;
    --accent: #8a85ff;
    --light: #16213e;
    --dark: #ffffff;
    --gray: #b8c1cc;
    --footer: #0a2540;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);

    border-bottom: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);

    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    height: 40px;
    flex-shrink: 0;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 400px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.6rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.login-btn {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, #8a85ff 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 91, 255, 0.3);
    white-space: nowrap;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 91, 255, 0.4);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.4rem;
    padding: 0.4rem;
    background: rgba(99, 91, 255, 0.1);
    border-radius: 50px;
}

.lang-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-btn.active {
    background: var(--accent);
    box-shadow: 0 4px 15px rgba(99, 91, 255, 0.3);
}

/* Dark Mode Toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-theme="dark"] .theme-toggle {
    background: var(--primary);
    color: var(--secondary);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    padding: 6rem 5% 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1a365d 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--secondary);
    color: var(--dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 212, 170, 0.4);
}

.hero-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Animated SVG Blobs */
.animated-blob {
    position: absolute;
    opacity: 0.1;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 40%;
    height: 40%;
}

.blob-2 {
    bottom: -10%;
    left: 5%;
    width: 35%;
    height: 35%;
}

.blob-3 {
    top: 30%;
    right: 15%;
    width: 25%;
    height: 25%;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 3rem 5%;
    background: white;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .stats {
    background: #1a1a2e;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.stat-item {
    padding: 1.75rem;
    border-radius: 18px;
    text-align: center;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-6px);

    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .stat-item {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .stat-item:hover {
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.stat-label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--gray);
    font-weight: 500;
}

/* Features Section */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 5%;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.features {
    padding: 4rem 5%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.01);

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.feature-card::before,
.stat-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;

    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.35),
            rgba(255, 255, 255, 0.05) 40%,
            rgba(255, 255, 255, 0.02));
}

[data-theme="dark"] .feature-card {
    background: #1a1a2e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* 3D Floating Icon Container */
.feature-icon-container {
    perspective: 1000px;
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--secondary);
    display: inline-block;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    animation: float 3s ease-in-out infinite;
}

/* Hover effect for 3D rotation */
.feature-card:hover .feature-icon {
    animation: float-hover 0.6s ease-in-out forwards, rotate3d 1s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    }
}

@keyframes float-hover {
    0% {
        transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    }

    100% {
        transform: translateY(-15px) rotateX(10deg) rotateY(10deg) scale(1.1);
    }
}

@keyframes rotate3d {

    0%,
    100% {
        transform: translateY(-15px) rotateX(10deg) rotateY(10deg) scale(1.1);
    }

    50% {
        transform: translateY(-15px) rotateX(-10deg) rotateY(-10deg) scale(1.1);
    }
}

/* Delay animations for each card */
.feature-card:nth-child(1) .feature-icon {
    animation-delay: 0s;
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 0.4s;
}

.feature-card:nth-child(4) .feature-icon {
    animation-delay: 0.6s;
}

.feature-card:nth-child(5) .feature-icon {
    animation-delay: 0.8s;
}

.feature-card:nth-child(6) .feature-icon {
    animation-delay: 1s;
}

.feature-card h3 {
    color: var(--dark);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* CTA Section */
.cta-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--primary) 0%, #1a365d 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary);
    color: var(--dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* STICKY GLASS CTA */
.sticky-cta {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;

    display: flex;
    align-items: center;
    gap: 1.25rem;

    padding: 1rem 1.5rem;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sticky-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Dark mode */
[data-theme="dark"] .sticky-cta {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-btn,
.btn-primary,
.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.9rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;

    color: #0a2540;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);

    border: 1px solid rgba(255, 255, 255, 0.4);

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.glass-btn:hover,
.btn-primary:hover,
.cta-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .glass-btn,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .cta-btn {
    color: #ffffff;

    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;

    background: linear-gradient(120deg,
            transparent 20%,
            rgba(255, 255, 255, 0.6),
            transparent 80%);

    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-btn:hover::after {
    opacity: 1;
}

/* Footer */
footer {
    background: var(--footer);
    color: white;
    padding: 3rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-column p {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

/* AdSense Containers */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 5%;
    background: var(--light);
    min-height: 100px;
}

[data-theme="dark"] .ad-container {
    background: var(--light);
}

.ad-unit {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 4%;
        gap: 0.5rem;
    }

    .logo {
        height: 35px;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .language-selector {
        padding: 0.3rem;
        gap: 0.3rem;
    }

    .lang-btn,
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .login-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 4rem 4% 3rem;
        min-height: 400px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 4%;
    }

    .features {
        padding: 3rem 4%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 3rem 4%;
    }

    footer {
        padding: 2rem 4% 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .animated-blob {
        display: none;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 3%;
    }

    .logo {
        order: 1;
    }

    .nav-controls {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .cta-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 1rem 4%;
    }

    .hero {
        padding: 5rem 4% 4rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
