:root, [data-theme="dark"] {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --text-main: #cbd5e1;
    --text-light: #94a3b8;
    --white: #ffffff;
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --glow: 0 0 30px rgba(14, 165, 233, 0.4);
    --card-bg: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(2, 6, 23, 0.85);
    --dropdown-bg: rgba(15, 23, 42, 0.95);
    --hero-overlay: linear-gradient(135deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.7) 50%, rgba(14, 165, 233, 0.1) 100%);
    --footer-bg: linear-gradient(to bottom, #020617, #000);
    --input-bg: rgba(255,255,255,0.04);
    --trust-bg: rgba(255,255,255,0.015);
}

[data-theme="light"] {
    --dark: #f1f5f9;
    --darker: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 23, 42, 0.1);
    --glow: 0 0 30px rgba(14, 165, 233, 0.2);
    --card-bg: rgba(255, 255, 255, 0.7);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --dropdown-bg: rgba(255, 255, 255, 0.98);
    --hero-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.8) 50%, rgba(14, 165, 233, 0.08) 100%);
    --footer-bg: linear-gradient(to bottom, #e2e8f0, #cbd5e1);
    --input-bg: rgba(15, 23, 42, 0.04);
    --trust-bg: rgba(15, 23, 42, 0.03);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--white);
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--text-light); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background: var(--dropdown-bg);
    backdrop-filter: blur(20px);
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    top: calc(100% + 8px);
    left: -16px;
    overflow: hidden;
    padding: 0.5rem 0;
}
.dropdown:hover .dropdown-content { display: block; animation: fadeDown 0.3s ease; }
.dropdown-content a {
    color: var(--text-light);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    transition: var(--transition);
}
.dropdown-content a:hover { background: rgba(14, 165, 233, 0.1); color: var(--primary); padding-left: 24px; }

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow); color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    display: inline-block;
    transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-3px); }

.mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ===== APP ROOT ===== */
#app-root { min-height: 100vh; }

/* ===== PAGE SECTIONS ===== */
.page-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--hero-overlay);
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    animation: pulse-glow 6s ease-in-out infinite;
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeUp 0.8s ease forwards;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s 0.2s ease forwards;
    opacity: 0;
}
.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeUp 0.8s 0.4s ease forwards;
    opacity: 0;
}

/* ===== GLASS CARDS ===== */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(14, 165, 233, 0.1);
}
.glass-card:hover::before { opacity: 1; }
.glass-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }

/* ===== IMAGE CARDS ===== */
.img-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.img-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.img-card:hover img { transform: scale(1.05); }
.img-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent);
}

/* ===== GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 3rem; align-items: center; }

/* ===== ABOUT IMAGE ===== */
.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.about-img:hover { transform: scale(1.02); box-shadow: 0 30px 60px rgba(0,0,0,0.6); }

/* ===== ICON BOX ===== */
.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(16, 185, 129, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.glass-card:hover .icon-box { transform: scale(1.1); background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(16, 185, 129, 0.2)); }

/* ===== FEATURE LIST ===== */
.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
    transition: var(--transition);
}
.feature-list li:hover { padding-left: 0.5rem; color: var(--white); }
.feature-list i { color: var(--secondary); font-size: 1.2rem; flex-shrink: 0; }

/* ===== CONTACT FORM ===== */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
    background: rgba(255,255,255,0.06);
}

/* ===== TRUST SIGNALS ===== */
.trust-signals {
    padding: 5rem 2rem;
    background: var(--trust-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}
.trust-signals h3 { color: var(--text-light); font-size: 0.9rem; letter-spacing: 3px; margin-bottom: 2.5rem; font-weight: 500; }
.logos { display: flex; justify-content: center; gap: 3.5rem; flex-wrap: wrap; opacity: 0.4; }
.logos i { font-size: 2.8rem; transition: var(--transition); }
.logos i:hover { opacity: 1; color: var(--primary); transform: scale(1.15); }

/* ===== STATS BAR ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    margin: 4rem 0;
}
.stat-item {
    background: var(--dark);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.stat-item:hover { background: rgba(14, 165, 233, 0.08); }
.stat-item h3 { font-size: 2.5rem; margin-bottom: 0.3rem; }
.stat-item .text-gradient { font-size: 2.5rem; font-family: 'Outfit', sans-serif; font-weight: 700; }
.stat-item p { color: var(--text-light); font-size: 0.9rem; }

/* ===== MILESTONES ===== */
.milestones { margin-top: 2rem; border-left: 2px solid var(--primary); padding-left: 2rem; }
.milestone { position: relative; margin-bottom: 2rem; transition: var(--transition); }
.milestone:hover { padding-left: 0.5rem; }
.milestone::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--dark);
    transition: var(--transition);
}
.milestone:hover::before { box-shadow: 0 0 10px var(--primary); }
.milestone h4 { color: var(--secondary); margin-bottom: 0.5rem; }

/* ===== FOOTER ===== */
footer {
    background: var(--footer-bg);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h3 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--white); }
.footer-col p, .footer-col a {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}
.footer-col a:hover { color: var(--primary); padding-left: 4px; }

.socials { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.socials a {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}
.socials a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }

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

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .nav-links, .nav-btn { display: none; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 3rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--primary);
    transform: rotate(20deg);
}

/* Light theme overrides */
[data-theme="light"] .btn-outline {
    border-color: rgba(15, 23, 42, 0.2);
}
[data-theme="light"] .btn-outline:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary);
}
[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, var(--primary-dark), #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .glass-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .glass-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 20px rgba(14, 165, 233, 0.08);
}
[data-theme="light"] .about-img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
[data-theme="light"] .dropdown-content {
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
[data-theme="light"] .socials a {
    background: rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .footer-bottom {
    border-top-color: rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .logos i {
    color: var(--text-light);
}
[data-theme="light"] .img-card {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
