@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');
@import './reset.css';

@font-face {
  font-family: 'Gunterz';
  src: url('../public/fonts/Gunterz-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gunterz';
  src: url('../public/fonts/Gunterz-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gunterz';
  src: url('../public/fonts/Gunterz-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gunterz';
  src: url('../public/fonts/Gunterz-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gunterz';
  src: url('../public/fonts/Gunterz-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gunterz';
  src: url('../public/fonts/Gunterz-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gunterz';
  src: url('../public/fonts/Gunterz-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gunterz';
  src: url('../public/fonts/Gunterz-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ───────────── NAV ───────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(3,12,26,0.80);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(61,155,255,0.08);
}
.navbar { display:flex; align-items:center; justify-content:space-between; padding: 14px 0; }
.brand { font-weight:700; letter-spacing: .4px; display: flex; align-items: center; }
.brand-logo { height: 36px; max-height: 36px; width: auto; max-width: 160px; display: block; filter: brightness(1.1); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.navlinks { display:flex; gap: 4px; flex-wrap: wrap; }
.navlinks a {
  padding: 8px 14px; border-radius: 10px; color: var(--muted);
  border: 1px solid transparent; font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.01em; transition: all 0.2s ease;
}
.navlinks a.active, .navlinks a:hover {
  color: var(--text); border-color: var(--border);
  background: rgba(61,155,255,0.08);
}
.navlinks a.active { color: var(--accent); }

/* ───────────── SPLASH HERO ───────────── */
@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  55%       { transform: translateX(-50%) translateY(10px); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; }
}
@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.splash-hero {
  position: relative;
  min-height: calc(100dvh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px 100px;
  text-align: center;
}

/* Grid texture */
.splash-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(61,155,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,155,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 10%, transparent 75%);
}

/* Large central glow orb */
.splash-orb {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%;
}
.splash-orb-center {
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(61,155,255,0.13) 0%, rgba(2,28,59,0) 65%);
}
.splash-orb-tl {
  width: 400px; height: 400px;
  top: -80px; left: -100px;
  background: radial-gradient(circle, rgba(0,200,232,0.08) 0%, transparent 65%);
}
.splash-orb-br {
  width: 350px; height: 350px;
  bottom: -60px; right: -80px;
  background: radial-gradient(circle, rgba(61,155,255,0.07) 0%, transparent 65%);
}

/* Rotating ring accent */
.splash-ring {
  position: absolute; pointer-events: none; z-index: 0;
  width: 340px; height: 340px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(61,155,255,0.12);
  animation: rotateSlow 30s linear infinite;
}
.splash-ring::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  top: -4px; left: 50%;
  margin-left: -4px;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}
.splash-ring-2 {
  width: 480px; height: 480px;
  border: 1px dashed rgba(61,155,255,0.06);
  animation: rotateSlow 50s linear infinite reverse;
}
.splash-ring-2::after { display: none; }

.splash-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  max-width: 960px; margin: 0 auto;
}

.splash-logo {
  height: auto; max-height: 130px; width: auto; max-width: 360px;
  margin: 0 auto;
  animation: splashFadeUp 1s cubic-bezier(0.22,1,0.36,1) both;
  filter: brightness(1.15) drop-shadow(0 0 32px rgba(61,155,255,0.35));
}

.splash-rule {
  width: 64px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  margin: 28px 0;
  box-shadow: 0 0 14px rgba(61,155,255,0.55);
  animation: splashFadeIn 0.8s 0.2s ease both;
}

.splash-tagline {
  font-family: 'Gunterz', Georgia, serif;
  font-size: 47px;
  line-height: 1.13;
  color: #ffffff;
  letter-spacing: -0.3px;
  animation: splashFadeUp 0.9s 0.15s cubic-bezier(0.22,1,0.36,1) both;
}
.splash-tagline em {
  font-style: italic;
  background: linear-gradient(130deg, #ffffff, #a8d4ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  padding-bottom: 0.1em;
}

.splash-sub {
  font-size: 1rem;
  color: rgba(200,225,255,0.65);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 500px;
  animation: splashFadeUp 0.9s 0.28s cubic-bezier(0.22,1,0.36,1) both;
}

.splash-badges {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
  animation: splashFadeUp 0.9s 0.38s cubic-bezier(0.22,1,0.36,1) both;
}

.splash-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 32px;
  animation: splashFadeUp 0.9s 0.48s cubic-bezier(0.22,1,0.36,1) both;
}

.splash-secondary {
  margin-top: 24px;
  animation: splashFadeUp 0.9s 0.58s cubic-bezier(0.22,1,0.36,1) both;
  font-size: 0.85rem;
  color: rgba(180,210,255,0.45);
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.splash-secondary a {
  color: rgba(180,210,255,0.75);
  border-bottom: 1px solid rgba(180,210,255,0.25);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.splash-secondary a:hover { color: var(--accent); border-color: var(--accent); }
.splash-secondary-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(180,210,255,0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(180,210,255,0.35);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  animation: splashFadeIn 1s 1.2s ease both;
  z-index: 2;
  transition: color 0.2s;
}
.scroll-indicator:hover { color: var(--accent); }
.scroll-indicator svg { animation: scrollBounce 2.2s infinite ease-in-out; }

/* Horizontal divider between splash and content */
.splash-divide {
  border: none; border-top: 1px solid var(--border); margin: 0;
}

/* ───────────── IMAGE FADE-DISSOLVE ───────────── */
.img-fade {
  width: 100%;
  height: 550px;
  object-fit: cover;
  object-position: 70% center;
  border: none;
  border-radius: 0;
  box-shadow: none;
  mask-image: radial-gradient(
    ellipse 72% 88% at 65% 48%,
    black 18%,
    black 38%,
    rgba(0,0,0,0.75) 54%,
    rgba(0,0,0,0.25) 68%,
    transparent 82%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 72% 88% at 65% 48%,
    black 18%,
    black 38%,
    rgba(0,0,0,0.75) 54%,
    rgba(0,0,0,0.25) 68%,
    transparent 82%
  );
}

/* ───────────── CONTENT HERO (after splash) ───────────── */
.content-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
  padding-left: max(4vw, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.content-hero-text h2 {
  font-family: 'Gunterz', Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.15; letter-spacing: -0.3px;
  padding-bottom: 0.12em;
  background: linear-gradient(135deg, #ffffff 30%, #a8d4ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.content-hero-text p { color: var(--muted); margin-top: 14px; line-height: 1.75; }
.content-hero-text .cta { margin-top: 28px; display:flex; gap: 12px; flex-wrap: wrap; }
.content-hero img {
  width:100%; height: 550px; object-fit: cover; object-position: 70% center;
}

/* ───────────── STANDARD HERO (other pages) ───────────── */
.hero {
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items:center;
  padding: 80px 0 60px; border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-family: 'Gunterz', Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.15; letter-spacing: -0.3px;
  padding-bottom: 0.12em;
  background: linear-gradient(135deg, #ffffff 30%, #a8d4ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { color: var(--muted); margin-top: 14px; line-height: 1.7; }
.hero .cta { margin-top: 28px; display:flex; gap: 12px; flex-wrap: wrap; }
.hero img {
  width:100%; height: 550px; object-fit: cover; object-position: 70% center;
}

/* ───────────── BUTTONS ───────────── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 13px 22px; border-radius: 12px; border:1px solid var(--border);
  background: rgba(7,21,37,0.8); font-weight: 500; font-size: 0.95rem;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}
.btn:hover {
  transform: translateY(-2px); border-color: var(--accent);
  background: rgba(61,155,255,0.09); box-shadow: 0 4px 20px rgba(61,155,255,0.18);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #1a72d9);
  color: #fff; border: none;
  box-shadow: 0 4px 24px rgba(61,155,255,0.32);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #5db8ff, var(--accent));
  transform: translateY(-2px); box-shadow: 0 6px 32px rgba(61,155,255,0.48);
}

/* ───────────── SECTIONS ───────────── */
.section { padding: 56px 0; }
.section h2 {
  font-family: 'Gunterz', Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin-bottom: 16px; line-height: 1.2;
  color: #ffffff;
}
.section p.lead { color: var(--muted); max-width: 70ch; line-height: 1.8; }

/* ───────────── CARDS ───────────── */
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--card); border:1px solid var(--border); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(61,155,255,0.04), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-hover); background: var(--card-hover); box-shadow: var(--shadow), var(--glow); }
.card:hover::before { opacity: 1; }
.card h3 { font-family: 'Gunterz', Georgia, serif; font-size: 1.1rem; color: #fff; }

/* ───────────── FOOTER ───────────── */
footer {
  margin-top: 80px; border-top: 1px solid var(--border);
  background: rgba(2,12,28,0.95);
  position: relative;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.footer-inner { padding: 32px 0; display:flex; align-items:center; justify-content:space-between; gap: 12px; flex-wrap: wrap; }
.socials { display:flex; gap: 8px; flex-wrap: wrap; }
.socials a {
  display:inline-flex; align-items:center; gap:8px; padding: 9px 12px;
  background: var(--card); border:1px solid var(--border); border-radius: 12px; color: var(--muted);
  font-size: 0.87rem; font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); background: rgba(61,155,255,0.07); }
.socials svg { width: 15px; height: 15px; }

/* ───────────── FORMS ───────────── */
form { display:grid; gap: 14px; }
label { font-weight: 600; font-size: 0.93rem; color: var(--text); }
.input, textarea {
  background: var(--card); border:1px solid var(--border); color:var(--text);
  border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Open Sans', sans-serif;
}
.input:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61,155,255,0.12);
}
textarea { min-height: 140px; resize: vertical; }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.error { color: var(--danger); font-size: .9rem; }
.success { color: var(--success); font-weight:600; }

/* ───────────── ABOUT PAGE ───────────── */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding-top: 56px; }
.about-photo {
  object-position: center top;
}

/* ───────────── DIVIDERS / ACCENTS ───────────── */
.section-divider { border-top: 1px solid var(--border); padding-top: 56px; }
.glow-line {
  height: 2px; width: 56px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px; box-shadow: 0 0 12px rgba(61,155,255,0.5);
}
.stat-badge {
  display: inline-block; padding: 5px 14px;
  background: rgba(61,155,255,0.10); border: 1px solid rgba(61,155,255,0.22);
  border-radius: 100px; color: var(--accent); font-size: 0.82rem; font-weight: 600;
  margin-bottom: 10px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ───────────── SCROLL ANIMATIONS ───────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
[data-anim].in-view { opacity: 1; transform: translateY(0); }
[data-anim-delay="1"] { transition-delay: 0.1s; }
[data-anim-delay="2"] { transition-delay: 0.2s; }
[data-anim-delay="3"] { transition-delay: 0.3s; }
[data-anim-delay="4"] { transition-delay: 0.4s; }
[data-anim-delay="5"] { transition-delay: 0.5s; }

h1, h2 { font-family: 'Gunterz', Georgia, serif; }

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; text-align: center; }
  .about-photo { max-width: 360px; margin: 0 auto; }
  .navbar { position: relative; }
  .brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .burger { display: flex; order: 2; margin-left: auto; }
  .navlinks {
    display: none; flex-direction: column; width: 100%; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(3,12,26,0.97); backdrop-filter: blur(18px);
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    z-index: 100;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px 16px; border-radius: 10px; }
  .hero { grid-template-columns: 1fr; padding: 48px 0 40px; gap: 32px; }
  .content-hero { grid-template-columns: 1fr; padding: 48px 24px 40px; gap: 32px; }
  .content-hero img { height: 375px; width: 100%; }
  .hero img { height: 375px; }
  .about-photo { height: 375px; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .splash-hero { min-height: calc(100dvh - 65px); padding: 48px 20px 90px; }
  .splash-logo { max-height: 90px; }
  .splash-tagline { font-size: clamp(1.8rem, 7vw, 47px); }
  .splash-ring, .splash-ring-2 { display: none; }
}
