/* ========== Themes ========== */
:root, [data-theme="aurora"] {
    --bg: #0b0b1e; --bg2: #13132e; --card: rgba(255,255,255,.06); --border: rgba(255,255,255,.12);
    --text: #eef0ff; --muted: #a5a8c8;
    --c1: #7c3aed; --c2: #06b6d4; --c3: #ec4899;
}
[data-theme="sunset"] { --bg: #1a0b12; --bg2: #2a1119; --c1: #f97316; --c2: #ec4899; --c3: #facc15; --muted: #d6a9b4; }
[data-theme="ocean"]  { --bg: #04152b; --bg2: #0a2142; --c1: #0ea5e9; --c2: #10b981; --c3: #6366f1; --muted: #9fbcd8; }
[data-theme="neon"]   { --bg: #070d07; --bg2: #0f1a10; --c1: #22c55e; --c2: #eab308; --c3: #06b6d4; --muted: #a7c4a9; }
[data-theme="candy"]  { --bg: #1b1029; --bg2: #26173a; --c1: #f472b6; --c2: #a78bfa; --c3: #38bdf8; --muted: #cbb5dd; }
[data-theme="light"]  {
    --bg: #f5f7ff; --bg2: #ffffff; --card: rgba(255,255,255,.75); --border: rgba(30,41,99,.12);
    --text: #141938; --muted: #5b6283; --c1: #6366f1; --c2: #ec4899; --c3: #14b8a6;
}

/* ========== Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Poppins', system-ui, sans-serif; background: var(--bg); color: var(--text);
    line-height: 1.7; overflow-x: hidden; transition: background .5s, color .5s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.grad {
    background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Background blobs */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 480px; height: 480px; background: var(--c1); top: -120px; left: -120px; }
.b2 { width: 420px; height: 420px; background: var(--c2); bottom: -100px; right: -80px; animation-delay: -6s; }
.b3 { width: 320px; height: 320px; background: var(--c3); top: 45%; left: 45%; animation-delay: -12s; }
[data-theme="light"] .blob { opacity: .18; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }

.cursor-glow {
    position: fixed; width: 300px; height: 300px; border-radius: 50%; pointer-events: none; z-index: -1;
    background: radial-gradient(circle, color-mix(in srgb, var(--c1) 25%, transparent), transparent 70%);
    transform: translate(-50%, -50%); transition: opacity .3s;
}

/* ========== Navbar ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
    padding: 18px 6%; transition: .3s;
}
.navbar.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); padding: 12px 6%; border-bottom: 1px solid var(--border); }
.logo { font-size: 1.7rem; font-weight: 800; }
.logo span { color: var(--c2); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-weight: 500; color: var(--muted); position: relative; transition: .3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-picker { position: relative; }
.theme-toggle {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--card);
    font-size: 1.1rem; cursor: pointer; transition: .3s;
}
.theme-toggle:hover { transform: rotate(25deg) scale(1.08); }
.theme-menu {
    position: absolute; right: 0; top: 52px; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
    padding: 8px; display: grid; gap: 4px; min-width: 150px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s;
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.theme-menu.open { opacity: 1; visibility: visible; transform: none; }
.theme-menu button {
    display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: inherit; font-size: .9rem;
    padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left;
}
.theme-menu button:hover, .theme-menu button.current { background: var(--card); }
.theme-menu i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid var(--border); }

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn span { width: 26px; height: 3px; border-radius: 3px; background: var(--text); transition: .3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========== Buttons ========== */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 50px; font-weight: 600;
    transition: .3s; cursor: pointer; border: 0; font-family: inherit; font-size: 1rem;
}
.btn-primary { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--c1) 40%, transparent); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px color-mix(in srgb, var(--c2) 50%, transparent); }
.btn-outline { border: 2px solid var(--c2); color: var(--text); }
.btn-outline:hover { background: var(--c2); color: #fff; transform: translateY(-3px); }

/* ========== Hero ========== */
.hero {
    min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px;
    padding: 120px 6% 60px;
}
.company-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 50px; font-size: .88rem;
    background: var(--card); border: 1px solid var(--border); margin-bottom: 20px; transition: .3s;
}
.company-badge:hover { border-color: var(--c2); transform: translateY(-2px); }
.company-badge strong { color: var(--c2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hello { font-size: 1.2rem; color: var(--muted); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.1; margin: 6px 0 10px;
    background: linear-gradient(90deg, var(--text), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h2 { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; margin-bottom: 16px; }
.typed { background: linear-gradient(90deg, var(--c1), var(--c3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { color: var(--c2); animation: blink .8s infinite; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }
.lead { color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.socials { display: flex; gap: 14px; }
.socials a {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border);
    background: var(--card); transition: .3s;
}
.socials svg { width: 20px; height: 20px; fill: var(--text); transition: .3s; }
.socials a:hover { background: linear-gradient(135deg, var(--c1), var(--c2)); transform: translateY(-4px); border-color: transparent; }
.socials a:hover svg { fill: #fff; }

.hero-img { position: relative; display: flex; justify-content: center; }
.img-ring {
    width: min(380px, 80vw); aspect-ratio: 1; border-radius: 50%; padding: 6px;
    background: conic-gradient(var(--c1), var(--c2), var(--c3), var(--c1)); animation: spin 8s linear infinite;
    box-shadow: 0 0 80px color-mix(in srgb, var(--c1) 45%, transparent);
}
.img-ring img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 50%; border: 6px solid var(--bg); animation: spin 8s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
    position: absolute; padding: 10px 16px; border-radius: 14px; font-size: .85rem; font-weight: 600; white-space: nowrap;
    background: color-mix(in srgb, var(--bg2) 85%, transparent); border: 1px solid var(--border); backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: float 4s ease-in-out infinite;
}
.fc1 { top: 8%; left: 0; }
.fc2 { bottom: 14%; left: -4%; animation-delay: -1.3s; }
.fc3 { top: 48%; right: -2%; animation-delay: -2.6s; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ========== Stats ========== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 6% 40px; }
.stat { text-align: center; padding: 26px 10px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); }
.stat h3 { font-size: 2.4rem; font-weight: 800; background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--muted); font-size: .92rem; }

/* ========== Sections ========== */
.section { padding: 90px 6%; }
.section-head { text-align: center; margin-bottom: 50px; }
.kicker { display: inline-block; color: var(--c2); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; margin-bottom: 6px; }
.section-head h2, .team-left h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; }
.glass { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 28px; backdrop-filter: blur(10px); }
.glass h3 { margin-bottom: 16px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about-text strong { color: var(--text); }
.inline-link { color: var(--c2); font-weight: 600; border-bottom: 2px solid currentColor; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); transition: .3s; min-width: 0; }
.info:hover { transform: translateY(-4px); border-color: var(--c1); }
.info.wide { grid-column: 1 / -1; }
.info > span { font-size: 1.4rem; }
.info small { color: var(--c2); font-weight: 600; display: block; }
.info p, .info a { font-size: .92rem; overflow-wrap: anywhere; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 30px; }
.skill-card { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); transition: .3s; }
.skill-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px color-mix(in srgb, var(--c1) 25%, transparent); }
.skill-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.skill-top h4 { flex: 1; font-weight: 600; }
.skill-top b { color: var(--c2); }
.skill-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 30%, transparent), color-mix(in srgb, var(--c2) 30%, transparent)); }
.bar { height: 10px; border-radius: 10px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.bar.thin { height: 7px; }
.fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3)); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border-radius: 50px; font-size: .88rem; border: 1px solid var(--border); background: color-mix(in srgb, var(--c1) 12%, transparent); transition: .3s; }
.chip:hover { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; transform: scale(1.05); }
.lang { margin-bottom: 16px; }
.lang-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.lang-row small { color: var(--c2); }

/* Timeline */
.timeline { position: relative; max-width: 1000px; margin: 0 auto 70px; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%);
    background: linear-gradient(var(--c1), var(--c2), var(--c3)); border-radius: 3px; }
.tl-item { position: relative; width: 50%; padding: 0 44px 34px; }
.tl-item.left { left: 0; }
.tl-item.right { left: 50%; }
.tl-dot { position: absolute; top: 4px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem;
    background: var(--bg2); border: 3px solid var(--c2); z-index: 1; }
.tl-item.left .tl-dot { right: -23px; }
.tl-item.right .tl-dot { left: -23px; }
.tl-card { padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); transition: .3s; }
.tl-card:hover { border-color: var(--c1); transform: translateY(-4px); }
.tl-card h3 { font-size: 1.15rem; }
.tl-org { display: inline-block; font-size: .8rem; font-weight: 600; color: #fff; padding: 2px 12px; border-radius: 50px; margin: 6px 0 10px;
    background: linear-gradient(135deg, var(--c1), var(--c2)); }
.tl-card ul { padding-left: 18px; color: var(--muted); font-size: .93rem; }
.tl-card li::marker { color: var(--c2); }

.sub-title { text-align: center; font-size: 1.6rem; margin-bottom: 30px; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.lead-card { padding: 30px 24px; border-radius: 20px; text-align: center; background: var(--card); border: 1px solid var(--border); position: relative; overflow: hidden; transition: .3s; }
.lead-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3)); }
.lead-card:hover { transform: translateY(-8px); }
.lead-icon { font-size: 2.4rem; margin-bottom: 10px; }
.lead-card h4 { margin-bottom: 8px; }
.lead-card p { color: var(--muted); font-size: .92rem; }

/* Awards */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.award { display: flex; gap: 20px; padding: 28px; border-radius: 22px; transition: .3s;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 18%, transparent), color-mix(in srgb, var(--c3) 12%, transparent));
    border: 1px solid var(--border); }
.award:hover { transform: translateY(-6px) rotate(-.4deg); }
.trophy { font-size: 2.6rem; width: 70px; height: 70px; flex-shrink: 0; border-radius: 18px; display: grid; place-items: center; background: var(--card); animation: float 4s ease-in-out infinite; }
.award h3 { font-size: 1.2rem; }
.award-sub { color: var(--c2); font-weight: 600; font-size: .92rem; }
.award p { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* Team */
.team-banner {
    display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding: 50px; border-radius: 30px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 30%, var(--bg2)), color-mix(in srgb, var(--c2) 25%, var(--bg2)));
    border: 1px solid var(--border);
}
.team-left p { color: var(--muted); margin: 14px 0 26px; max-width: 560px; }
.team-card { text-align: center; padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(10px); transition: .3s; }
.team-card:hover { transform: translateY(-6px); }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: center 20%; margin: 0 auto 12px; border: 4px solid var(--c2); }
.team-card p { color: var(--muted); font-size: .9rem; }
.team-logo { display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 10px; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-size: .85rem; }
.team-logo b { font-weight: 400; margin-left: 4px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.contact-info h3 { font-size: 1.6rem; margin-bottom: 10px; }
.contact-info p { color: var(--muted); margin-bottom: 22px; }
.c-line { display: flex; gap: 10px; padding: 14px 18px; margin-bottom: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); overflow-wrap: anywhere; transition: .3s; }
a.c-line:hover { border-color: var(--c2); transform: translateX(6px); }
.contact-form { display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--card);
    color: var(--text); font: inherit; outline: none; transition: .3s; resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--c2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c2) 20%, transparent); }
.contact-form .btn { justify-self: start; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: #22c55e; }
.form-status.err { color: #f43f5e; }

/* Footer */
.footer { text-align: center; padding: 30px 6%; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer a { color: var(--c2); font-weight: 600; }

.to-top {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; z-index: 90;
    background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-size: 1.3rem; opacity: 0; visibility: hidden; transform: translateY(20px); transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; }
    .hero-img { order: -1; }
    .lead { margin-inline: auto; }
    .hero-btns, .socials { justify-content: center; }
    .about-grid, .two-col, .contact-grid, .team-banner { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .team-banner { padding: 34px 24px; text-align: center; }
    .team-left p { margin-inline: auto; }

    .menu-btn { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: min(280px, 80vw); flex-direction: column; padding: 90px 30px;
        background: var(--bg2); border-left: 1px solid var(--border); transition: right .35s; gap: 22px;
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.1rem; }

    .timeline::before { left: 22px; }
    .tl-item, .tl-item.right { width: 100%; left: 0; padding: 0 0 28px 66px; }
    .tl-item.left .tl-dot, .tl-item.right .tl-dot { left: 0; right: auto; }
}
@media (max-width: 560px) {
    .section { padding: 70px 16px; }
    .hero, .stats { padding-inline: 16px; }
    .navbar, .navbar.scrolled { padding-inline: 16px; }
    .info-cards, .contact-form .row { grid-template-columns: 1fr; }
    .float-card { font-size: .72rem; padding: 7px 11px; }
    .fc2 { left: 0; } .fc3 { right: 0; }
    .awards { grid-template-columns: 1fr; }
    .award { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
