/* ===== Tanny Studio — styles ===== */
:root {
  --bg: #0a0a0f;
  --bg-alt: #0f0f17;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f8;
  --text-dim: #a4a4b4;
  --text-faint: #6f6f80;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --grad: linear-gradient(110deg, #7c5cff 0%, #b14bff 45%, #22d3ee 100%);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.02em; line-height: 1.1; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

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

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Aurora background ===== */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; filter: blur(70px); opacity: 0.55; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob-1 { width: 540px; height: 540px; background: #7c5cff; top: -160px; left: -120px; animation: float1 20s var(--ease) infinite; }
.blob-2 { width: 460px; height: 460px; background: #22d3ee; top: 20%; right: -140px; animation: float2 24s var(--ease) infinite; }
.blob-3 { width: 420px; height: 420px; background: #b14bff; bottom: -160px; left: 30%; animation: float3 26s var(--ease) infinite; }
@keyframes float1 { 50% { transform: translate(120px, 80px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-100px, 60px) scale(1.15); } }
@keyframes float3 { 50% { transform: translate(60px, -90px) scale(0.95); } }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; display: block; filter: drop-shadow(0 2px 10px rgba(124, 92, 255, 0.35)); }
.footer-logo { height: 44px; }
.brand-text span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 14px; border-radius: 10px; color: var(--text-dim); font-size: 0.93rem; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links .nav-cta { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); margin-left: 6px; }
.nav-links .nav-cta:hover { border-color: var(--border-strong); background: var(--surface); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 0.97rem;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(124, 92, 255, 0.75); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-2px); }
.btn.full { width: 100%; }

/* ===== Hero ===== */
.hero { padding: 168px 0 96px; }
.hero-inner { max-width: 820px; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--text-dim); max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 44px; }
.stat strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 0.9rem; color: var(--text-faint); }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-lead { color: var(--text-dim); font-size: 1.08rem; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 16px; }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card-list li { font-size: 0.9rem; color: var(--text-faint); padding-left: 22px; position: relative; }
.card-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

/* ===== Portfolio ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.project {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s; display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.project.featured { grid-column: span 2; flex-direction: row; }
.project-media {
  position: relative; display: grid; place-items: center; min-height: 170px;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%), var(--bg-alt);
}
.project.featured .project-media { flex: 0 0 44%; }
.project-emoji { font-size: 3.4rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); }
.project-emoji.big { font-size: 2.6rem; color: var(--accent); }
.project-badge { position: absolute; top: 14px; left: 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: #16c47f; color: #03110a; padding: 4px 10px; border-radius: 99px; }
.project-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; justify-content: center; flex: 1; }
.project-body.center { text-align: center; align-items: center; }
.project-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-2); }
.project-body h3 { font-size: 1.4rem; }
.project-body p { color: var(--text-dim); font-size: 0.96rem; }
.project-link { font-weight: 600; color: var(--text); margin-top: 6px; transition: color 0.2s, transform 0.2s; align-self: flex-start; }
.project-body.center .project-link { align-self: center; }
.project-link:hover { color: var(--accent-2); }
.project-link.muted { color: var(--text-faint); cursor: default; }
.cta-project { border-style: dashed; background: transparent; }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; transition: border-color 0.3s, transform 0.3s var(--ease); }
.step:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.step-num { font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.94rem; }

/* ===== About / Why us ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.about-text .btn { margin-top: 24px; }
.features { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.features li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: border-color 0.3s, transform 0.3s var(--ease); }
.features li:hover { border-color: var(--border-strong); transform: translateX(4px); }
.feat-ico { font-size: 1.5rem; flex-shrink: 0; }
.features strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.features p { color: var(--text-dim); font-size: 0.92rem; }

/* ===== Contact ===== */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.contact-copy { padding: 48px 44px; background: radial-gradient(circle at 0% 0%, rgba(124,92,255,0.16), transparent 60%); display: flex; flex-direction: column; justify-content: center; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.contact-direct { margin-top: 26px; }
.contact-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); padding: 10px 16px; border-radius: 99px; font-size: 0.92rem; font-weight: 500; transition: border-color 0.2s, transform 0.2s; }
.contact-chip:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.contact-form { padding: 44px; display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--border); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text-dim); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px;
  color: var(--text); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,0.2); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.form-note { font-size: 0.9rem; padding: 10px 14px; border-radius: 10px; background: rgba(22,196,127,0.12); color: #4ade80; border: 1px solid rgba(22,196,127,0.3); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-brand p { width: 100%; color: var(--text-faint); font-size: 0.88rem; margin-top: 4px; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { color: var(--text-faint); font-size: 0.85rem; width: 100%; text-align: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(10,10,15,0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; gap: 4px; transform: translateY(-130%); transition: transform 0.4s var(--ease); visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 14px; font-size: 1rem; }
  .nav-links .nav-cta { margin-left: 0; text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .project.featured { grid-column: span 1; flex-direction: column; }
  .project.featured .project-media { min-height: 150px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-form { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .hero { padding: 130px 0 72px; }
  .hero-stats { gap: 28px; }
  .stat strong { font-size: 1.9rem; }
  .section { padding: 72px 0; }
  .contact-copy, .contact-form { padding: 32px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
