:root.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --accent-primary: #0ea5e9;
    --accent-secondary: #4f46e5;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(14, 165, 233, 0.2);
    --card-hover-shadow: 0 0 30px rgba(14, 165, 233, 0.15);
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
    --surface-light: rgba(0, 0, 0, 0.02);
}

:root {
    --bg-primary: #020617;
    /* Midnight navy */
    --bg-secondary: #0f172a;
    /* Deep navy */
    --accent-primary: #38bdf8;
    /* Sky blue */
    --accent-secondary: #6366f1;
    /* Indigo */
    --text-primary: #f1f5f9;
    /* Near white */
    --text-secondary: #94a3b8;
    /* Muted slate */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(56, 189, 248, 0.2);
    --card-hover-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
    --surface-light: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08), transparent 70%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Background Animation Canvas */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    cursor: pointer;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--accent-primary);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.cta-btn-header {
    background: var(--accent-gradient);
    color: #fff !important;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.cta-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.admin-link {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.admin-link:hover {
    color: var(--accent-primary) !important;
    opacity: 1;
}

.admin-link i {
    font-size: 0.8rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--accent-primary);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -3px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

/* AdSense Optimized Components */
.ad-leaderboard {
    width: 100%;
    max-width: 970px;
    min-height: 90px;
    background: var(--surface-light);
    border: 1px dashed var(--glass-border);
    margin: 0 auto 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

/* Projects Section (Content Hub) */
.projects-section {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--accent-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-primary);
}

.card-icon {
    font-size: 2.8rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.1));
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.5s ease;
}

.project-card:hover .card-icon {
    transform: rotateY(180deg);
    background: var(--accent-gradient);
    color: #fff;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Why Section & Info Grid */
.why-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.5), transparent);
}

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

.why-card {
    padding: 3rem 2rem;
    background: var(--surface-light);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
}

.why-icon {
    font-size: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2rem;
}

/* Revolution Section */
.revolution-section {
    padding: 10rem 0;
    background: radial-gradient(circle at 0% 50%, rgba(99, 102, 241, 0.1), transparent 50%);
}

.rev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.rev-card {
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 4rem 2rem;
    position: relative;
    transition: all 0.4s ease;
}

.rev-card:hover {
    border-color: var(--accent-primary);
    transform: scale(1.02);
}

.rev-number {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(56, 189, 248, 0.03);
    position: absolute;
    top: -30px;
    right: 10px;
    line-height: 1;
}

/* Info-Rich Content Layout (For AdSense Value) */
.info-rich-section {
    padding: 8rem 0;
}

.info-content-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 5rem;
    align-items: center;
}

.info-text h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.info-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

/* Deep Content Section (Premium Text Layout) */
.deep-content-section {
    padding: 6rem 0;
}

.content-card-premium {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6rem;
    border-radius: 40px;
    backdrop-filter: blur(30px);
}

.content-card-premium h2.section-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
}

.content-card-premium h3 {
    font-size: 2.2rem;
    color: var(--accent-primary);
    margin: 4rem 0 2rem;
}

.content-card-premium p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.info-box-highlight {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent);
    border-left: 6px solid var(--accent-primary);
    padding: 3rem;
    margin: 4rem 0;
    border-radius: 0 24px 24px 0;
}

/* Contact Page Enhancements */
.contact-section-page {
    padding: 10rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
}

.contact-info-card,
.contact-form-card {
    background: var(--glass-bg);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.form-control {
    width: 100%;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

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

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-5px);
}

/* Policy Pages Layout */
.policy-section {
    padding: 10rem 0;
}

.policy-container {
    max-width: 1000px;
    background: var(--glass-bg);
    padding: 6rem;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
}

/* Responsive Design Overrides */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }

    .rev-grid,
    .info-content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-primary);
        padding: 6rem 2rem;
        transition: 0.4s ease;
        z-index: 999;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 3rem;
    }

    .content-card-premium,
    .policy-container {
        padding: 3rem 2rem;
    }
}
