/* ===== VARIABLES & RESET ===== */
:root {
  --bg:       #030a18;
  --bg-alt:   #060f1e;
  --primary:  #0891b2;
  --p-dim:    rgba(8,145,178,0.12);
  --p-glow:   rgba(8,145,178,0.35);
  --accent:   #06B6D4;
  --text:     #EEF0F8;
  --muted:    #7D8BA0;
  --dim:      #3A4258;
  --card-bg:  rgba(255,255,255,0.03);
  --card-bd:  rgba(255,255,255,0.07);
  --fh:       'Playfair Display', Georgia, serif;
  --fb:       'Inter', system-ui, sans-serif;
  --mw:       1160px;
  --sp:       120px;
  --r:        16px;
  --ease:     0.35s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
img, svg { display: block; }

/* ===== CUSTOM CURSOR ===== */
.cursor {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(8,145,178,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}
.cursor-ring.grow { width: 54px; height: 54px; opacity: 0.5; }

/* ===== UTILITIES ===== */
.container { max-width: var(--mw); margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--primary);
  flex-shrink: 0;
}

h2 {
  font-family: var(--fh);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
}
h2 em { font-style: italic; color: var(--primary); }
h3 { font-family: var(--fh); font-size: 1.8rem; font-weight: 700; line-height: 1.2; }
p { color: var(--muted); line-height: 1.8; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.78rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--ease);
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 50%, #06b6d4 100%);
  color: #ffffff;
  border: 1px solid rgba(6,182,212,0.5);
  box-shadow: 0 2px 20px rgba(6,182,212,0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 50%, #22d3ee 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(6,182,212,0.38);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(6,182,212,0.32);
  color: rgba(6,182,212,0.78);
}
.btn-ghost:hover {
  border-color: rgba(6,182,212,0.65);
  color: #22d3ee;
  background: rgba(6,182,212,0.08);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.4rem; font-size: 0.95rem; }

/* ===== SCROLL REVEAL ===== */
.reveal        { opacity:0; transform:translateY(32px); transition:opacity 0.8s ease, transform 0.8s ease; }
.reveal-left   { opacity:0; transform:translateX(-40px); transition:opacity 0.8s ease, transform 0.8s ease; }
.reveal-right  { opacity:0; transform:translateX(40px);  transition:opacity 0.8s ease, transform 0.8s ease; }
.reveal-item   { opacity:0; transform:translateY(20px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.v, .reveal-left.v, .reveal-right.v, .reveal-item.v { opacity:1; transform:translate(0); }
.reveal-item:nth-child(1){transition-delay:0.05s}
.reveal-item:nth-child(2){transition-delay:0.15s}
.reveal-item:nth-child(3){transition-delay:0.25s}
.reveal-item:nth-child(4){transition-delay:0.35s}
.reveal-item:nth-child(5){transition-delay:0.45s}
.reveal-item:nth-child(6){transition-delay:0.55s}

/* ===== LOGO IMAGE ===== */
.logo-img {
  display: flex;
  align-items: center;
}
.logo-img img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(8,145,178,0.65)) drop-shadow(0 0 18px rgba(8,145,178,0.3));
  transition: filter var(--ease), transform var(--ease);
}
.logo-img:hover img {
  filter: drop-shadow(0 0 14px rgba(8,145,178,0.9)) drop-shadow(0 0 28px rgba(8,145,178,0.55));
  transform: scale(1.04);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.75rem 0;
  transition: padding var(--ease), background var(--ease), border-color var(--ease);
}
#navbar.scrolled {
  padding: 1rem 0;
  background: rgba(7,10,18,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--card-bd);
}
.nav-container {
  max-width: var(--mw); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--fh);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: rgba(238,240,248,0.88);
  transition: color var(--ease); letter-spacing: 0.01em;
}
.nav-links a:hover { color: #ffffff; }
.nav-cta {
  background: transparent !important;
  color: rgba(238,240,248,0.82) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 7px;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  box-shadow: none !important;
  letter-spacing: 0.03em;
}
.nav-cta:hover { background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.52) !important; color: var(--text) !important; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-nav-brand { display: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--ease); }

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 8rem 2rem 5rem;
}
#hero::before {
  content: '';
  position: absolute;
  top: -8%; right: -4%;
  width: 62%; height: 72%;
  background: radial-gradient(ellipse at top right,
    rgba(155,228,255,0.15) 0%,
    rgba(75,185,255,0.065) 28%,
    rgba(18,118,200,0.022) 58%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 1;
  animation: heroSunGlow 7s ease-in-out infinite;
}
@keyframes heroSunGlow {
  0%, 100% { opacity: 0.78; }
  50%       { opacity: 1; }
}
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-orb {
  position: absolute;
  top: 15%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40,120,255,0.10) 0%, rgba(6,182,212,0.04) 50%, transparent 70%);
  pointer-events: none;
  animation: orbPulse 7s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { transform: translateX(-50%) scale(1); opacity:0.7; }
  50%      { transform: translateX(-50%) scale(1.18); opacity:1; }
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 880px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 2rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid rgba(8,145,178,0.3);
  border-radius: 100px;
  background: rgba(8,145,178,0.06);
  animation: pillowGlow 3.5s ease-in-out infinite;
}
@keyframes pillowGlow {
  0%,100% { box-shadow: 0 0 10px rgba(8,145,178,0.08); }
  50%      { box-shadow: 0 0 22px rgba(8,145,178,0.28); }
}

.hero-headline {
  font-family: var(--fh);
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
}
.hero-rotating {
  display: inline-block;
  background: linear-gradient(130deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 320px; text-align: center;
  line-height: 1.15;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hero-rotating.out { opacity:0; transform: translateY(-14px); }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--muted); margin-bottom: 2.8rem; line-height: 1.8;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
  margin: 0 auto;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:0.2; transform:scaleY(0.7); }
  50%      { opacity:1;   transform:scaleY(1); }
}

/* ===== MARQUEE ===== */
.marquee-band {
  overflow: hidden;
  padding: 1.15rem 0;
  background: rgba(6,182,212,0.07);
  border-top: 1px solid rgba(6,182,212,0.18);
  border-bottom: 1px solid rgba(6,182,212,0.18);
}
.marquee-track {
  display: flex; gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent);
}
.mdot { opacity: 0.4 !important; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ===== ABOUT ===== */
#about {
  padding: var(--sp) 0;
  background: var(--bg-alt);
  position: relative; overflow: hidden;
}
#about::before {
  content: '';
  position: absolute; top: -160px; right: -160px;
  width: 450px; height: 450px; border-radius: 50%;
  background: radial-gradient(circle, var(--p-dim) 0%, transparent 70%);
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy p { margin-bottom: 1.2rem; }
.about-copy p em { color: var(--text); font-style: italic; }
.pillars {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.6rem; margin-top: 0.5rem;
}
.pillar {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  padding: 0.6rem 0; border-top: 1px solid var(--card-bd);
}
.pdot { width:6px; height:6px; border-radius:50%; background:var(--primary); flex-shrink:0; }

/* Designer frame */
.about-visual { display: flex; justify-content: center; }
.designer-frame {
  width: 100%; max-width: 500px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--card-bd);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(8,145,178,0.08) inset;
}
.designer-frame img { width: 100%; display: block; }

.gif-placeholder {
  background: #050810;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem; padding: 2rem;
  position: relative;
}
.gif-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,145,178,0.04) 0%, transparent 50%),
              linear-gradient(225deg, rgba(6,182,212,0.04) 0%, transparent 50%);
}

/* Code editor inside placeholder */
.code-editor {
  width: 100%; position: relative; z-index: 1;
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0a0d1a;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
}
.editor-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width:10px; height:10px; border-radius:50%; }
.dot.red    { background:#FF5F57; }
.dot.yellow { background:#FFBD2E; }
.dot.green  { background:#28C840; }
.editor-title {
  margin-left: auto; margin-right: auto;
  font-size: 0.7rem; color: var(--muted);
  font-family: var(--fb);
}
.editor-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.cl { color: #8090A8; line-height: 1.7; white-space: pre; }
.i1 { padding-left: 1.5rem; }
.i2 { padding-left: 3rem; }
.kw  { color: #C084FC; }
.fn  { color: #60A5FA; }
.val { color: #F97316; }
.str { color: #34D399; }
.blink-cursor {
  color: var(--primary);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.gif-label {
  font-size: 0.76rem; color: var(--muted); letter-spacing: 0.05em;
  position: relative; z-index: 1;
}

/* ===== SHOWCASE ===== */
#showcase { padding: var(--sp) 0; }
.section-header {
  text-align: center; max-width: 620px;
  margin: 0 auto 4.5rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  display: block;
  border: 1px solid var(--card-bd);
  min-height: 340px;
  transition:
    transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}
.project-card:hover {
  transform: translateY(-7px) scale(1.012);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.card-bg {
  position: absolute; inset: 0;
  transition: transform 0.65s ease;
}
.project-card:hover .card-bg { transform: scale(1.06); }
.card-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 55%);
  pointer-events: none; z-index: 1;
}
.card-content {
  position: relative; z-index: 2;
  padding: 2.4rem;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.98) 0%,
    rgba(0,0,0,0.94) 30%,
    rgba(0,0,0,0.72) 55%,
    rgba(0,0,0,0.20) 78%,
    transparent 100%
  );
}
.card-tag {
  display: block;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.65rem;
}
.card-content h3 { color: #fff; margin-bottom: 0.65rem; font-size: 1.75rem; }
.card-content p { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 1.1rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.9);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.project-card:hover .card-link { opacity:1; transform:translateY(0); }

/* ===== FAQ ===== */
#faq { padding: var(--sp) 0; background: var(--bg-alt); }
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}
.faq-header { position: sticky; top: 8rem; }
.faq-items { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--card-bd); }
.faq-item:first-child { border-top: 1px solid var(--card-bd); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.8rem 0;
  font-size: 1.05rem; font-weight: 600;
  color: var(--text); text-align: left; gap: 1rem;
  transition: color var(--ease);
}
.faq-q:hover { color: var(--primary); }
.faq-q[aria-expanded="true"] { color: var(--primary); }
.faq-icon {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--card-bd);
  border-radius: 50%;
  color: var(--muted);
  transition: all var(--ease);
}
.faq-q[aria-expanded="true"] .faq-icon {
  background: var(--p-dim);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(45deg);
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.faq-a.open { max-height: 900px; }
.faq-ai { padding-bottom: 1.8rem; }
.faq-ai p { margin-bottom: 0.9rem; font-size: 0.94rem; }
.faq-ai p:last-child { margin-bottom: 0; }
.faq-ai ul { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-ai li {
  font-size: 0.94rem; color: var(--muted);
  padding-left: 1.6rem; position: relative; line-height: 1.72;
}
.faq-ai li::before { content:'→'; position:absolute; left:0; color:var(--primary); opacity:0.7; }
.faq-ai strong { color: var(--text); font-weight: 600; }

/* ===== CONTACT ===== */
#contact { padding: var(--sp) 0; position: relative; overflow: hidden; }
.contact-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 110%, var(--p-dim) 0%, transparent 65%);
  pointer-events: none;
}
.contact-layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.1rem; }
.contact-info p { font-size: 1rem; margin-bottom: 1rem; }
.contact-note {
  font-size: 0.82rem !important;
  color: var(--dim) !important;
}

/* Form */
.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.form-group {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.form-group label {
  font-size: 0.72rem; font-weight: 700;
  color: var(--muted); letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-family: var(--fb); font-size: 0.9rem; line-height: 1.6;
  outline: none;
  transition: border-color var(--ease), background var(--ease);
  -webkit-appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--dim); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(8,145,178,0.45);
  background: rgba(255,255,255,0.06);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 0.25rem; }

/* ===== FOOTER ===== */
footer {
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--card-bd);
  background: var(--bg);
}
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.4rem; text-align: center;
}
.footer-tagline { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.84rem; color: var(--muted); transition: color var(--ease); }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.footer-copy { font-size: 0.78rem; color: var(--dim); }
.footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.footer-legal a { font-size: 0.78rem; color: var(--dim); transition: color var(--ease); }
.footer-legal a:hover { color: var(--muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  :root { --sp: 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-visual { order: -1; }
  .designer-frame { max-width: 420px; margin: 0 auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 3rem; }
  .faq-header { position: static; }
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --sp: 60px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(3,10,24,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center; justify-content: flex-start;
    padding-top: 7.5rem;
    gap: 1.25rem; z-index: 499;
  }
  .nav-links.open::before {
    content: 'Every pixel, made for you.';
    font-family: var(--fh);
    font-style: italic;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--accent);
    opacity: 0.65;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 0.75rem;
  }
  .nav-links.open a {
    font-family: var(--fh);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
  }
  .nav-links.open a:hover { color: var(--accent); }
  .nav-toggle { display: flex; position: relative; z-index: 501; }
  .mobile-nav-brand {
    display: flex;
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
  }
  .mobile-nav-brand img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(8,145,178,0.8)) drop-shadow(0 0 24px rgba(8,145,178,0.4));
  }
  .hero-headline { font-size: clamp(1.7rem, 7vw, 2.8rem); }
  .hero-rotating { min-width: 220px; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .card-link { opacity:1; transform:none; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-rotating { min-width: 180px; }
}

/* ===== ABOUT PAGE ===== */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 10rem 2rem 5rem;
  overflow: hidden;
}
.page-hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.page-hero-orb {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-55%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(40,120,255,0.10) 0%, rgba(6,182,212,0.04) 50%, transparent 70%);
  pointer-events: none;
  animation: orbPulse 7s ease-in-out infinite;
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
}
.page-hero-content h1 {
  font-family: var(--fh);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.page-hero-content h1 em { font-style: italic; color: var(--primary); }
.page-hero-content .lead {
  font-size: 1.1rem; color: var(--muted); line-height: 1.75;
}

/* Daniel portrait section */
.about-daniel {
  padding: var(--sp) 0;
  background: var(--bg-alt);
  position: relative; overflow: hidden;
}
.about-daniel::before {
  content: '';
  position: absolute; top: -160px; right: -160px;
  width: 450px; height: 450px; border-radius: 50%;
  background: radial-gradient(circle, var(--p-dim) 0%, transparent 70%);
  pointer-events: none;
}
.daniel-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 6rem;
  align-items: start;
}
.daniel-portrait {
  position: sticky; top: 8rem;
}
.daniel-img-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-bd);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(8,145,178,0.08) inset;
  background: #050810;
}
.daniel-img-frame img {
  width: 100%; display: block;
}
.daniel-caption {
  margin-top: 1.25rem;
  text-align: center;
}
.daniel-caption strong {
  display: block;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.25rem;
}
.daniel-caption span {
  font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
}
.daniel-location {
  display: block;
  font-size: 0.72rem !important;
  letter-spacing: 0.12em !important;
  text-transform: none !important;
  color: var(--muted) !important;
  margin-top: 0.35rem;
  opacity: 0.75;
}

/* Glowy team member card */
.glowy-member-card {
  margin-top: 1.8rem;
  border: 1.5px solid rgba(6,182,212,0.28);
  border-top: 2px solid rgba(120,230,255,0.5);
  border-radius: 16px;
  padding: 1.4rem 1.2rem 1.2rem;
  background: linear-gradient(180deg, #01131f 0%, #011828 55%, #010e1c 100%);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow:
    inset 0 0 70px rgba(0,18,45,0.75),
    inset 0 28px 55px rgba(1,38,75,0.35),
    inset 2px 0 0 rgba(255,255,255,0.03),
    0 8px 36px rgba(0,0,0,0.55),
    0 0 0 1px rgba(6,182,212,0.07);
}
.glowy-member-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 28% at 20% 8%, rgba(100,220,255,0.11) 0%, transparent 60%),
    radial-gradient(ellipse 45% 22% at 78% 6%, rgba(6,182,212,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 35% 18% at 50% 4%, rgba(150,240,255,0.07) 0%, transparent 50%);
  pointer-events: none;
  animation: aquaCaustic 6s ease-in-out infinite alternate;
}
.glowy-member-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(100,220,255,0.3) 15%,
    rgba(6,182,212,0.65) 40%,
    rgba(180,245,255,0.85) 50%,
    rgba(6,182,212,0.65) 60%,
    rgba(100,220,255,0.3) 85%,
    transparent 100%
  );
  filter: blur(0.5px);
  animation: waterSurface 3.5s ease-in-out infinite;
  pointer-events: none;
}
.glowy-member-card:hover {
  border-color: rgba(6,182,212,0.5);
  border-top-color: rgba(180,245,255,0.72);
  box-shadow:
    inset 0 0 70px rgba(0,18,45,0.7),
    inset 0 28px 55px rgba(1,38,75,0.3),
    inset 2px 0 0 rgba(255,255,255,0.03),
    0 0 44px rgba(6,182,212,0.14),
    0 10px 42px rgba(0,0,0,0.5);
}
.glowy-member-art {
  display: flex;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.glowy-member-art svg {
  filter: drop-shadow(0 0 6px rgba(6,182,212,0.18));
  transition: filter 0.5s ease;
  animation: jellyCardBob 4s ease-in-out infinite;
}
.glowy-member-card:hover .glowy-member-art svg {
  filter: drop-shadow(0 0 14px rgba(6,182,212,0.75)) drop-shadow(0 0 32px rgba(6,182,212,0.38));
  animation: jellyCardHappy 1s ease-in-out infinite;
}
@keyframes jellyCardBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes jellyCardHappy {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-4px) rotate(-2.5deg); }
  75%  { transform: translateY(-5px) rotate(2.5deg); }
}
@keyframes glowy-tail-wag {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-10deg); }
  75%      { transform: rotate(10deg); }
}
.glowy-member-card:hover .g-tail-1,
.glowy-member-card:hover .g-tail-2,
.glowy-member-card:hover .g-tail-3,
.glowy-member-card:hover .g-tail-4,
.glowy-member-card:hover .g-tail-5,
.glowy-member-card:hover .g-tail-6,
.glowy-member-card:hover .g-tail-7 {
  transform-box: fill-box;
  transform-origin: top center;
  animation: glowy-tail-wag 1.2s ease-in-out infinite;
}
.glowy-member-card:hover .g-tail-1 { animation-delay: 0s; }
.glowy-member-card:hover .g-tail-2 { animation-delay: 0.07s; }
.glowy-member-card:hover .g-tail-3 { animation-delay: 0.14s; }
.glowy-member-card:hover .g-tail-4 { animation-delay: 0.21s; }
.glowy-member-card:hover .g-tail-5 { animation-delay: 0.28s; }
.glowy-member-card:hover .g-tail-6 { animation-delay: 0.35s; }
.glowy-member-card:hover .g-tail-7 { animation-delay: 0.42s; }
@keyframes aquaCaustic {
  0%   { transform: translateX(0) scale(1); opacity: 0.8; }
  33%  { transform: translateX(5px) scale(1.03); opacity: 1; }
  66%  { transform: translateX(-4px) scale(0.97); opacity: 0.85; }
  100% { transform: translateX(7px) scale(1.04); opacity: 0.92; }
}
@keyframes waterSurface {
  0%, 100% { transform: scaleX(1) translateX(0); opacity: 0.7; }
  33%  { transform: scaleX(0.95) translateX(4px); opacity: 1; }
  66%  { transform: scaleX(1.05) translateX(-3px); opacity: 0.8; }
}
.aqua-bubble {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55), rgba(6,182,212,0.12) 60%, transparent);
  border: 1px solid rgba(100,220,255,0.28);
  pointer-events: none;
  z-index: 2;
  animation: bubbleRise linear forwards;
}
@keyframes bubbleRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.7; }
  45%  { transform: translateY(-120px) translateX(7px); opacity: 0.6; }
  90%  { opacity: 0.35; }
  100% { transform: translateY(-290px) translateX(-5px); opacity: 0; }
}
.glowy-member-desc {
  font-size: 0.76rem !important;
  margin-top: 0.7rem !important;
  margin-bottom: 0 !important;
  color: var(--muted) !important;
  font-style: italic;
  line-height: 1.5 !important;
  opacity: 0.75;
}

.daniel-text h2 { margin-bottom: 1.5rem; }
.daniel-text p { margin-bottom: 1.2rem; }
.daniel-text p em { color: var(--text); font-style: italic; }

/* Values grid */
.about-values {
  padding: var(--sp) 0;
}
.values-intro {
  max-width: 560px; margin-bottom: 3.5rem;
}
.values-intro h2 { margin-bottom: 1rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--card-bd);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card-bd);
}
.value-card {
  background: var(--bg);
  padding: 2rem;
  transition: background var(--ease);
}
.value-card:hover { background: var(--bg-alt); }
.value-icon {
  font-size: 1.4rem; margin-bottom: 1rem; display: block;
  color: var(--accent);
}
.value-icon svg { display: block; }
.value-card h4 {
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.value-card p { font-size: 0.88rem; line-height: 1.65; }

/* About page CTA */
.about-cta {
  padding: var(--sp) 0;
  background: var(--bg-alt);
  position: relative; overflow: hidden;
}
.about-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--p-dim) 0%, transparent 65%);
  pointer-events: none;
}
.about-cta-inner {
  position: relative; z-index: 2;
  text-align: center; max-width: 560px; margin: 0 auto;
}
.about-cta-inner h2 { margin-bottom: 1.1rem; }
.about-cta-inner p { margin-bottom: 2.5rem; font-size: 1.05rem; }
.about-cta-btns {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}

/* nav active state */
a.nav-active { color: var(--text) !important; }

@media (max-width: 960px) {
  .daniel-grid { grid-template-columns: 1fr; gap: 3rem; }
  .daniel-portrait { position: static; max-width: 380px; margin: 0 auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ===== FULL-PAGE OCEAN BACKGROUND ===== */
#particleCanvas {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100vw !important; height: 100vh !important;
  z-index: 0;
  pointer-events: none;
}
#hero, .page-hero, .marquee-band, #about, #showcase,
#faq, #contact, .about-daniel, .about-values, .about-cta, footer {
  position: relative;
  z-index: 1;
}
#about        { background: rgba(4,11,22,0.91) !important; }
#faq          { background: rgba(4,11,22,0.91) !important; }
.about-daniel { background: rgba(4,11,22,0.91) !important; }
.about-cta    { background: rgba(4,11,22,0.91) !important; }
footer        { background: rgba(3,10,24,0.93) !important; }

/* Footer logo image */
.footer-logo {
  display: flex;
  justify-content: center;
}
.footer-logo img {
  height: 58px; width: auto;
  filter: drop-shadow(0 0 8px rgba(6,182,212,0.45)) drop-shadow(0 0 18px rgba(8,145,178,0.28));
  transition: filter var(--ease);
}
.footer-logo:hover img {
  filter: drop-shadow(0 0 14px rgba(6,182,212,0.75)) drop-shadow(0 0 28px rgba(8,145,178,0.5));
}

/* ===== FOOTER CLARITY NOTE ===== */
.footer-clarity {
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.6;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.footer-clarity a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-clarity a:hover { color: var(--accent); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 720px;
  background: rgba(6, 15, 30, 0.96);
  border: 1px solid rgba(8, 145, 178, 0.22);
  border-radius: var(--r);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(8,145,178,0.08);
  padding: 1.25rem 1.5rem;
  z-index: 9000;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(1.25rem);
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  min-width: 200px;
}
.cookie-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-link:hover { opacity: 0.8; }
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.btn-cookie {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--fb);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
}
.btn-cookie-accept:hover { background: var(--accent); }
.btn-cookie-reject {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--dim);
}
.btn-cookie-reject:hover {
  border-color: var(--muted);
  color: var(--text);
}
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: var(--r) var(--r) 0 0;
    border-bottom: none;
  }
  .cookie-banner.hidden { transform: translateY(1.25rem); }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}
