:root {
    --primary: #3b82f6;
    --primary-strong: #1d4ed8;
    --accent: #fbbf24;
    --bg-main: #030509;
    --panel: rgba(15, 23, 35, 0.72);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text: #f8fbff;
    --text-muted: #97a4b8;
    --success: #4ade80;
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.4);
    --font-head: "Syncopate", sans-serif;
    --font-body: "Manrope", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-main); color: var(--text); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input { font: inherit; }
button { border: 0; background: none; color: inherit; }
ul { list-style: none; }
code { font-family: Consolas, monospace; color: #d7e8ff; }

.global-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -3; }
.noise { position: absolute; inset: 0; background: url("https://grainy-gradients.vercel.app/noise.svg"); opacity: 0.05; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(circle at center, black 40%, transparent 85%); }
.blob { position: absolute; border-radius: 50%; filter: blur(85px); opacity: 0.17; animation: float 24s infinite alternate ease-in-out; }
.blob-1 { width: 42vw; height: 42vw; background: #1e3a8a; top: -8%; left: -8%; }
.blob-2 { width: 30vw; height: 30vw; background: #1d4ed8; bottom: 8%; right: -4%; animation-delay: -7s; }
.blob-3 { width: 22vw; height: 22vw; background: #f59e0b; top: 38%; left: 54%; opacity: 0.09; animation-delay: -12s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(28px, 42px) scale(1.08); } }

.preloader { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: #020308; transition: opacity 0.45s ease, visibility 0.45s ease; }
.preloader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-title { display: block; margin-bottom: 18px; font-family: var(--font-head); letter-spacing: 4px; }
.loader-track { width: 220px; height: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.loader-bar { width: 100%; height: 100%; transform: translateX(-100%); background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%); animation: loadBar 1.5s ease-in-out infinite; }
@keyframes loadBar { to { transform: translateX(100%); } }

.lang-container { position: fixed; top: 34px; right: 34px; z-index: 1200; }
.lang-selected { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; cursor: pointer; background: rgba(5, 9, 17, 0.72); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(16px); }
.lang-selected img, .lang-option img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.lang-arrow { font-size: 0.7rem; transition: transform 0.3s ease; }
.lang-container.active .lang-arrow { transform: rotate(180deg); }
.lang-list { position: absolute; top: calc(100% + 12px); right: 0; min-width: 170px; padding: 8px; border-radius: 18px; background: rgba(5, 9, 17, 0.92); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: 0.25s ease; box-shadow: var(--shadow); }
.lang-container.active .lang-list { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; color: var(--text); }
.lang-option:hover { background: rgba(255,255,255,0.06); }

.navbar { position: fixed; inset: 0 0 auto; z-index: 1100; padding: 28px 0; transition: padding 0.35s ease; }
.navbar.scrolled { padding: 14px 0; }
.nav-inner, .container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 30px; transition: 0.35s ease; }
.navbar.scrolled .nav-inner { background: rgba(5,9,17,0.72); border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.nav-logo-text, .logo, .hero-title, .section-heading h2, .collection-head h2, .publish-copy h2, .panel-card h2, .step-card h3, .gallery-card h3, .modal-panel h3, .footer h4 { font-family: var(--font-head); }
.nav-logo-text span, .logo .dot { color: var(--primary); }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a, .btn-hub { font-size: 0.84rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(248,251,255,0.8); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.btn-hub, .btn-primary, .btn-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; transition: 0.25s ease; }
.btn-hub { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 20px 40px rgba(29,78,216,0.3); }
.btn-outline { border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.03); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.btn-primary:hover, .btn-outline:hover, .btn-hub:hover { transform: translateY(-2px); }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger span { width: 24px; height: 2px; background: #fff; }
.mobile-close-btn { display: none; }

.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr); gap: 48px; align-items: end; padding: 170px min(6vw, 72px) 90px; }
.hero-copy { max-width: 760px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); font-size: 0.76rem; font-weight: 700; letter-spacing: 1.8px; }
.pulse, .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 16px rgba(59,130,246,0.8); }
.hero-title { font-size: clamp(2.8rem, 7vw, 6.3rem); line-height: 0.98; margin-bottom: 24px; }
.hero-desc { max-width: 620px; color: var(--text-muted); font-size: 1.08rem; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-panel { align-self: stretch; display: flex; align-items: flex-end; }
.panel-card { width: 100%; padding: 28px; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(7,12,21,0.92) 100%), url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?q=80&w=1200&auto=format&fit=crop") center/cover; min-height: 430px; border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.panel-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,12,0.04) 20%, rgba(2,6,12,0.92) 100%); }
.panel-card > * { position: relative; z-index: 1; }
.panel-label, .sub-text, .modal-category, .gallery-card .card-category { display: inline-block; color: #c7dbff; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.8px; }
.panel-card h2 { margin: 14px 0 12px; font-size: 1.5rem; line-height: 1.15; }
.panel-card p { color: rgba(248,251,255,0.75); margin-bottom: 22px; }
.featured-meta, .modal-meta { display: grid; gap: 16px; }
.featured-meta { grid-template-columns: repeat(3, 1fr); }
.featured-meta dt, .modal-meta dt { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.featured-meta dd, .modal-meta dd { margin-top: 4px; font-weight: 700; }

.section { padding: 110px 0; }
.section-shell { display: grid; gap: 42px; }
.section-heading { max-width: 860px; }
.section-heading h2, .collection-head h2, .publish-copy h2 { font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.14; margin: 14px 0 16px; }
.section-heading p, .collection-note, .publish-copy p, .step-card p { color: var(--text-muted); font-size: 1.05rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card, .step-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 24px; backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.stat-card { padding: 28px; }
.stat-value { display: block; margin-bottom: 8px; font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.stat-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.82rem; font-weight: 700; }
.collection-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.collection-note { max-width: 420px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; padding: 20px; border-radius: 22px; background: rgba(9,14,23,0.72); border: 1px solid rgba(255,255,255,0.06); backdrop-filter: blur(14px); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pill { padding: 10px 16px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: rgba(248,251,255,0.82); font-size: 0.85rem; font-weight: 700; }
.filter-pill.active, .filter-pill:hover { background: linear-gradient(135deg, rgba(59,130,246,0.25) 0%, rgba(29,78,216,0.35) 100%); border-color: rgba(116,177,255,0.28); color: #fff; }
.search-box { display: flex; align-items: center; gap: 10px; min-width: min(320px, 100%); padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.search-box i { color: var(--text-muted); }
.search-box input { width: 100%; min-height: 48px; border: 0; outline: none; background: transparent; color: var(--text); }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery-card { position: relative; overflow: hidden; border-radius: 26px; background: rgba(8,12,20,0.9); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); cursor: pointer; grid-column: span 4; min-height: 420px; display: flex; flex-direction: column; }
.gallery-card.featured { grid-column: span 8; }
.gallery-card.tall { min-height: 520px; }
.gallery-card:hover .card-image img { transform: scale(1.05); }
.card-image { position: absolute; inset: 0; }
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,12,0.02) 35%, rgba(2,6,12,0.92) 100%); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.gallery-card .card-content { position: relative; z-index: 1; margin-top: auto; padding: 24px; }
.gallery-card h3 { margin: 10px 0; font-size: 1.18rem; line-height: 1.2; }
.gallery-card p { color: rgba(248,251,255,0.78); margin-bottom: 18px; }
.card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; font-size: 0.9rem; }
.card-meta span { display: inline-flex; align-items: center; gap: 8px; color: #d8e6fa; }
.card-meta i { color: var(--primary); }
.empty-state { margin-top: 28px; padding: 40px 24px; text-align: center; border-radius: 24px; background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.15); }
.empty-state i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); }

.publish-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.publish-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { padding: 26px; min-height: 100%; }
.step-card span { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: rgba(59,130,246,0.14); color: #c7dbff; font-family: var(--font-head); font-size: 0.95rem; }
.step-card h3 { font-size: 1rem; line-height: 1.35; margin-bottom: 12px; }

.footer { padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.25); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { margin-bottom: 16px; font-size: 0.92rem; }
.brand p, .f-col a, .f-col span { color: var(--text-muted); }
.f-col a, .f-col span { display: block; margin-bottom: 8px; }
.recruiting { display: flex; align-items: center; gap: 8px; color: var(--success); margin-bottom: 14px; }
.giant-text-container { margin-top: 54px; text-align: center; overflow: hidden; }
.giant-text { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 11rem); line-height: 0.9; color: rgba(255,255,255,0.04); -webkit-text-stroke: 1px rgba(255,255,255,0.06); }

.modal { position: fixed; inset: 0; z-index: 2200; display: none; place-items: center; padding: 30px; background: rgba(2,6,12,0.92); backdrop-filter: blur(12px); }
.modal.show { display: grid; }
.close-modal { position: absolute; top: 28px; right: 28px; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); cursor: pointer; }
.modal-shell { width: min(1100px, 100%); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); overflow: hidden; border-radius: 28px; background: rgba(8,12,20,0.96); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); }
.modal-media { min-height: 620px; background: #02050b; }
.modal-image { width: 100%; height: 100%; object-fit: cover; }
.modal-panel { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.modal-panel h3 { margin: 12px 0 16px; font-size: 1.6rem; line-height: 1.2; }
.modal-panel p { color: var(--text-muted); margin-bottom: 24px; }
.modal-meta { grid-template-columns: 1fr; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (max-width: 1120px) {
    .hero, .publish-layout, .modal-shell { grid-template-columns: 1fr; }
    .publish-steps, .footer-grid, .stats-grid { grid-template-columns: 1fr; }
    .gallery-card, .gallery-card.featured { grid-column: span 6; }
    .collection-head, .toolbar { flex-direction: column; align-items: stretch; }
    .featured-meta { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .lang-container { top: 20px; right: 20px; }
    .navbar { padding: 16px 0; }
    .nav-inner { padding: 0 20px; }
    .btn-hub { display: none; }
    .burger { display: flex; }
    .mobile-close-btn { display: block; position: absolute; top: 28px; right: 28px; }
    #close-menu { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.06); cursor: pointer; }
    .nav-menu { position: fixed; inset: 0; display: none; flex-direction: column; justify-content: center; gap: 20px; background: rgba(2,6,12,0.98); z-index: 1090; }
    .nav-menu.active { display: flex; }
    .hero { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 140px 20px 60px; }
    .section { padding: 88px 0; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-card, .gallery-card.featured { grid-column: span 1; }
    .gallery-card, .gallery-card.tall { min-height: 400px; }
    .modal { padding: 14px; }
    .modal-media { min-height: 320px; }
    .search-box { min-width: 100%; }
}
