@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #05070f;
    --bg-2: #0a0f1a;
    --panel: rgba(255, 255, 255, 0.05);
    --muted: #a9b8d6;
    --text: #f5f7fb;
    --accent: #4ef2c4;
    --accent-2: #79a8ff;
    --accent-3: #ff6fb8;
    --accent-4: #ffd35f;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    background: radial-gradient(1200px circle at 60% 0%, rgba(78, 242, 196, 0.12), transparent 40%), radial-gradient(900px circle at 20% 0%, rgba(121, 168, 255, 0.16), transparent 36%), linear-gradient(145deg, #05070f 0%, #0c1424 55%, #05070f 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; position: relative; }

a:hover { color: var(--text); }

a::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

a:hover::after { opacity: 1; transform: scaleX(1); }

p { margin: 0 0 14px; color: var(--text); }

h1, h2, h3 { 
    margin: 0 0 14px; 
    line-height: 1.05;
    font-family: 'Syne', 'Space Grotesk', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: none !important;
    -webkit-text-fill-color: currentColor;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    text-shadow: none;
}

::selection { background: rgba(255, 111, 184, 0.28); color: #ffffff; }

main {
    padding: 110px 28px 120px;
    max-width: 1220px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 26px;
    background: rgba(5, 7, 15, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-icon {
    background: var(--accent);
    color: #031014;
    padding: 12px 13px;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-icon:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36); }

.brand-name { display: none; }

nav { display: flex; gap: 14px; align-items: center; font-weight: 600; }

.nav-link {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover { color: var(--text); transform: translateY(-1px); }

.nav-link.active { 
    color: var(--accent);
    text-shadow: 0 0 12px rgba(78, 242, 196, 0.6);
}

.hero {
    position: relative;
    min-height: 88vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 120px 18px 80px;
    overflow: hidden;
    width: 100%;
}

.simple-hero {
    background: linear-gradient(180deg, rgba(5, 7, 15, 0.8), rgba(5, 7, 15, 0.95)), url('https://images.unsplash.com/photo-1526498460520-4c246339dccb?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
}

.simple-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 52% 18%, rgba(255, 198, 107, 0.18), transparent 36%);
    pointer-events: none;
    opacity: 0.9;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 720px;
}

.hero-inner h1 {
    font-size: clamp(52px, 8vw, 96px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: var(--accent);
}

.hero-sub {
    color: var(--muted);
    font-size: 17px;
    letter-spacing: 0.02em;
    text-transform: none;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.page-hero {
    --hero-image: url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    min-height: 460px;
    background: linear-gradient(180deg, rgba(5, 7, 15, 0.82), rgba(5, 7, 15, 0.92)), var(--hero-image);
    border-radius: 18px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.44);
    padding: 130px 18px 110px;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 56% 18%, rgba(255, 198, 107, 0.14), transparent 38%);
    pointer-events: none;
}

.page-hero .hero-inner h1 { font-size: clamp(42px, 6vw, 72px); }
.page-hero .hero-sub { max-width: 660px; }

.about-hero { --hero-image: url('https://images.unsplash.com/photo-1522199710521-72d69614c702?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat; }
.projects-hero { --hero-image: url('https://images.unsplash.com/photo-1523966211575-eb4a01e7dd51?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat; }
.contact-hero { --hero-image: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: var(--accent-4);
    margin-bottom: 12px;
}

.lede { color: var(--muted); line-height: 1.64; font-size: 17px; }

.hero-ctas { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 13px 18px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid var(--border);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, border 0.25s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.btn::after { display: none; }

.btn.primary {
    background: var(--accent);
    color: #031014;
    border: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.btn.ghost { 
    background: transparent; 
    color: var(--text); 
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover { transform: translateY(-4px); }

.btn.primary:hover { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4); }

.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--accent); box-shadow: 0 12px 26px rgba(0,0,0,0.26); }

.panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 26px 24px;
    border-radius: var(--radius);
    margin-top: 46px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.panel::before,
.panel::after {
    display: none;
}

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; text-align: left; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }

.pillars-card, .feature-card, .stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 16px;
    border-radius: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.pillars-card::before, .feature-card::before, .stat-card::before {
    display: none;
}

.pillars-card:hover, .feature-card:hover, .stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.045);
}

.pillars-card { animation: slideInLeft 0.6s ease both; }
.pillars-card:nth-child(1) { animation-delay: 0.1s; }
.pillars-card:nth-child(2) { animation-delay: 0.2s; }
.pillars-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card { animation: slideInUp 0.6s ease both; }
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card { animation: slideInRight 0.6s ease both; }
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 16px; }

.stat-card h3 { margin-bottom: 6px; }

.taglist { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }

.taglist li { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); font-size: 14px; color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.12); }

.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 16px;
    perspective: 1000px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease both;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.badge { display: inline-block; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: var(--text); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.1); }

.meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

.feature-card h3 { margin-bottom: 8px; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

.timeline li { border-left: 2px solid rgba(255, 255, 255, 0.18); padding-left: 14px; position: relative; color: var(--muted); background: linear-gradient(90deg, rgba(255, 111, 184, 0.12), rgba(70, 255, 194, 0)); border-radius: 12px; padding-top: 8px; padding-bottom: 8px; }

.timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 8px rgba(255, 111, 184, 0.14);
}

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }

.contact-card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    padding: 18px 20px; 
    border-radius: 14px; 
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: slideInUp 0.6s ease both;
    text-align: left;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    padding: 22px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.footer { text-align: center; color: var(--muted); padding: 26px 14px 40px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)); }

.gradient-bg {
    display: none;
}

.muted { color: var(--muted); }

.body { color: var(--muted); line-height: 1.6; }

.loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 111, 184, 0.14), transparent 30%), radial-gradient(circle at 80% 0%, rgba(70, 255, 194, 0.16), transparent 30%), rgba(5, 8, 17, 0.9);
    display: grid;
    place-items: center;
    z-index: 999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    backdrop-filter: blur(12px);
}

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

.loader-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(70, 255, 194, 0.18), rgba(255, 111, 184, 0.16));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.loader-inner::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, rgba(70, 255, 194, 0.3), rgba(255, 111, 184, 0.3), transparent 40%);
    filter: blur(16px);
    animation: spin 4s linear infinite;
    opacity: 0.7;
}

.loader-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    animation: pulse 1.2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.loader-dot:nth-child(2) { animation-delay: 0.18s; }
.loader-dot:nth-child(3) { animation-delay: 0.36s; }

.loader-text { letter-spacing: 0.12em; font-weight: 800; position: relative; z-index: 1; text-transform: uppercase; color: #ffd35f; }

/* Home loader specifics */
.loader-orb{width:46px;height:46px;border-radius:14px;background:conic-gradient(from 90deg,var(--accent),var(--accent-2),var(--accent-3),var(--accent));position:relative;overflow:hidden;filter:drop-shadow(0 0 14px rgba(255,111,184,0.35));animation:pulse 2s ease-in-out infinite;}
.loader-orb::after{content:'';position:absolute;inset:6px;border-radius:10px;background:rgba(4,7,18,.94);box-shadow:inset 0 0 0 1px rgba(255,255,255,0.1);} 
.loader-copy{display:flex;flex-direction:column;gap:6px;min-width:220px;}
.loader-eyebrow{letter-spacing:.18em;text-transform:uppercase;font-size:11px;color:var(--accent-4);}
.loader-progress{height:8px;width:100%;border-radius:999px;border:1px solid rgba(255,255,255,0.16);background:rgba(255,255,255,0.1);overflow:hidden;}
.loader-progress-bar{height:100%;width:var(--progress,14%);background:linear-gradient(90deg,var(--accent),var(--accent-2),var(--accent-4));box-shadow:0 0 18px rgba(255,111,184,0.4);transition:width .2s ease;}
.loader-timing{color:var(--muted);font-weight:600;font-size:13px;}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0ms);
}

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

.project-card.in-view,
.feature-card.in-view,
.pillars-card.in-view,
.stat-card.in-view { animation: slideInUp 0.6s ease-out forwards !important; }

.gradient-bg { animation: drift 24s ease-in-out infinite alternate; }

@keyframes pulse { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes float { 0% { transform: translateY(0); opacity: 0.9; } 100% { transform: translateY(-12px); opacity: 1; } }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-18px, 12px, 0) scale(1.02); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 900px) {
    main { text-align: center; padding-top: 120px; }
    .hero { grid-template-columns: 1fr; text-align: center; }
    .panel, .section-head, .pillars-card, .feature-card, .stat-card, .project-card, .contact-card, .cta-banner, .hero-panel { text-align: center; }
    .pillars, .projects-grid, .feature-grid, .contact-grid { justify-items: center; }
    .hero-ctas { flex-direction: column; align-items: center; }
}

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
    main { padding-top: 120px; }
}

@media (max-width: 640px) {
    .topbar { flex-direction: column; align-items: center; text-align: center; }
    nav { flex-wrap: wrap; justify-content: center; width: 100%; }
    .hero-ctas { flex-direction: column; align-items: center; width: 100%; }
}
