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

:root {
    --bg: #080c14;
    --surface: #0e1420;
    --surface2: #141c2e;
    --accent: #00d4ff;
    --accent2: #7b5ea7;
    --text: #e8edf5;
    --muted: #6b7a99;
    --border: rgba(255,255,255,0.06);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ---- LOADER ---- */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.loader-logo span { color: var(--accent); }

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    animation: loadFill 1.8s ease forwards;
}

@keyframes loadFill {
    to { width: 100%; }
}

/* ---- SCROLL TOP ---- */
#scrollTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    width: 44px; height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--accent);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

#scrollTop.visible {
    opacity: 1;
    transform: translateY(0);
}

#scrollTop:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* ---- NAV ---- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 4rem;
    background: rgba(8,12,20,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s;
}

nav.scrolled { padding: 0.8rem 4rem; }

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- HERO ---- */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

#particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-glow2 {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123,94,167,0.1) 0%, transparent 70%);
    top: 30%; right: 10%;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease both;
}

.badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s 0.1s ease both;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

h1 .line2 {
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 300;
    animation: fadeUp 0.6s 0.2s ease both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.6s 0.3s ease both;
    margin-bottom: 4rem;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: fadeUp 0.6s 0.5s ease both;
}

.hero-scroll span {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ---- BUTTONS ---- */
.btn-primary {
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: #080c14;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #33ddff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,212,255,0.3);
}

.btn-ghost {
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-ghost:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ---- SECTIONS ---- */
section:not(#home) {
    padding: 6rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 3.5rem;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    max-width: 1100px;
    margin: 0 auto;
}

/* ---- STATS ---- */
#stats {
    padding: 5rem 4rem;
}

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

.stat-item {
    padding: 2.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

.stat-item:hover {
    border-color: rgba(0,212,255,0.2);
    transform: translateY(-4px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    display: inline;
    line-height: 1;
}

.stat-plus {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent2);
    display: inline;
}

.stat-item p {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 0.8rem;
    letter-spacing: 0.03em;
}

/* ---- ABOUT ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

.about-card:hover {
    border-color: rgba(0,212,255,0.2);
    transform: translateY(-4px);
}

.about-card .icon { font-size: 2rem; margin-bottom: 1rem; }

.about-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ---- SERVICES ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    transition: height 0.4s;
}

.service-card:hover::before { height: 100%; }
.service-card:hover { border-color: rgba(0,212,255,0.15); transform: translateX(4px); }

.service-num {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1.2rem; }

.service-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.service-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 100px;
    color: var(--accent);
}

/* ---- TEAM ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    border-color: rgba(123,94,167,0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.2rem;
}

.team-card h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.team-role { font-size: 0.82rem; color: var(--accent); font-weight: 500; margin-bottom: 0.8rem; }

.team-bio { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.2rem; }

.team-socials { display: flex; gap: 0.5rem; justify-content: center; }

.team-socials a {
    width: 32px; height: 32px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.team-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ---- TESTIMONIALS ---- */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

.stars { color: #ffd700; font-size: 1.2rem; margin-bottom: 1.5rem; letter-spacing: 2px; }

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 300;
}

.testimonial-author { display: flex; align-items: center; gap: 1rem; }

.author-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg);
    flex-shrink: 0;
}

.testimonial-author strong { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.testimonial-author span { font-size: 0.82rem; color: var(--muted); }

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 40px; height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-btn:hover { border-color: var(--accent); color: var(--accent); }

.slider-dots { display: flex; gap: 0.5rem; }

.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ---- CONTACT ---- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    transition: border-color 0.2s;
}

.contact-item:hover { border-color: rgba(0,212,255,0.2); }

.contact-icon {
    font-size: 1.2rem;
    width: 44px; height: 44px;
    background: rgba(0,212,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item p { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.2rem; }
.contact-item span { font-size: 0.9rem; font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form input,
.contact-form textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    resize: none;
    outline: none;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: rgba(0,212,255,0.4); }

.contact-form textarea { height: 130px; }

.form-note { font-size: 0.78rem; color: var(--muted); }

/* ---- FOOTER ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.logo span { color: var(--accent); }

.footer-tagline { font-size: 0.8rem; color: var(--muted); }

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

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-copy { font-size: 0.8rem; color: var(--muted); text-align: right; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    footer { grid-template-columns: 1fr; text-align: center; }
    .footer-copy { text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 768px) {
    nav { padding: 1rem 1.2rem; }
    nav.scrolled { padding: 0.8rem 1.2rem; }

    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 280px;
        background: var(--surface);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 99;
    }

    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.1rem; }

    #home { padding: 7rem 1.5rem 3rem; overflow: hidden; }

    h1 {
        font-size: clamp(1.8rem, 9vw, 3rem);
        letter-spacing: -0.01em;
        word-break: break-word;
    }

    h1 .line2 { font-size: clamp(1.8rem, 9vw, 3rem); }

    .hero-sub { font-size: 0.92rem; padding: 0 0.5rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-primary, .btn-ghost { width: 100%; max-width: 260px; text-align: center; }

    section:not(#home) { padding: 4rem 1.2rem; }
    #stats { padding: 4rem 1.2rem; }

    .about-grid,
    .services-grid,
    .contact-wrapper,
    .form-row { grid-template-columns: 1fr; }

    .team-grid { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }

    .hero-glow { width: 250px; height: 250px; }
    .hero-glow2 { display: none; }

    footer { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.2rem; }
    .footer-copy { text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    #scrollTop { bottom: 1rem; right: 1rem; }
}
