/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0C0D10;
  --bg2:       #111318;
  --bg3:       #161820;
  --surface:   #1A1C24;
  --border:    rgba(255,255,255,0.07);
  --red:       #C41E3A;
  --red-light: #E8354F;
  --red-dim:   rgba(196,30,58,0.15);
  --text:      #F0F0F4;
  --text-2:    #9A9CAA;
  --text-3:    #5A5C6A;
  --radius:    14px;
  --nav-h:     68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(12,13,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.3px;
  color: var(--text);
}
.nav-logo:hover { color: var(--red-light); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 14px; color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--red) !important;
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-light) !important; }

.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-2); border-radius: 2px;
  transition: 0.2s;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 500;
  transition: all 0.2s; cursor: pointer;
}
.btn-primary {
  background: var(--red); color: white;
}
.btn-primary:hover { background: var(--red-light); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 8px; }

/* ── Section base ───────────────────────────────────────────── */
.section { padding: 100px 0; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -1.5px; color: var(--text);
  margin-bottom: 48px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-wind { width: 100%; height: 100%; }

@keyframes windFlow {
  0%   { stroke-dashoffset: 1000; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.wind-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: windFlow 8s linear infinite;
}
.w1 { animation-delay: 0s;   animation-duration: 9s; }
.w2 { animation-delay: 2s;   animation-duration: 11s; }
.w3 { animation-delay: 4s;   animation-duration: 13s; }
.w4 { animation-delay: 1.5s; animation-duration: 10s; }

.hero-content {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto; padding: 0 32px;
  padding-top: 60px;
}
.hero-badge {
  display: inline-block;
  background: var(--red-dim);
  border: 1px solid rgba(196,30,58,0.3);
  color: #E8607A;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -3px; color: var(--text);
  margin-bottom: 24px;
}
.hero-accent { color: var(--red); }
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-2); max-width: 500px;
  line-height: 1.6; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 1;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Services ───────────────────────────────────────────────── */
.services { background: var(--bg2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: rgba(196,30,58,0.3);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px; height: 48px;
  background: var(--red-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red); margin-bottom: 18px;
}
.service-card h3 {
  font-size: 17px; font-weight: 600;
  color: var(--text); margin-bottom: 10px;
}
.service-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── Work ───────────────────────────────────────────────────── */
.work { background: var(--bg); }

.project-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 48px;
  margin-bottom: 32px;
}
.project-tag {
  display: inline-block;
  background: var(--red-dim);
  color: #E8607A;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
  margin-bottom: 16px;
}
.project-featured-content h3 {
  font-size: 36px; font-weight: 700;
  letter-spacing: -1px; color: var(--text);
  margin-bottom: 16px;
}
.project-featured-content p {
  font-size: 15px; color: var(--text-2);
  line-height: 1.7; margin-bottom: 24px;
}
.project-tech {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.project-tech li {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 6px;
}

/* Phone mockup */
.project-featured-visual {
  display: flex; justify-content: center;
}
.phone-mockup {
  width: 200px; height: 380px;
  background: var(--bg3);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5),
              0 0 0 1px rgba(255,255,255,0.05),
              inset 0 0 0 1px rgba(255,255,255,0.04);
}
.phone-screen {
  width: 100%; height: 100%;
  background: #0F1D0C;
  border-radius: 26px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.phone-screen-inner { width: 100%; padding: 20px; }
.mock-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; color: #7CCC5A;
  margin-bottom: 24px;
}
.mock-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7CCC5A; animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
.mock-wave { margin-bottom: 16px; }
.mock-wave svg { width: 100%; }
.mock-bird-name {
  font-size: 22px; font-weight: 700; color: #E8F4DC;
  letter-spacing: -0.5px; margin-bottom: 4px;
}
.mock-bird-sci {
  font-size: 9px; color: rgba(200,230,160,0.5);
  font-style: italic; margin-bottom: 16px;
}
.mock-conf {
  display: flex; align-items: center; gap: 8px;
}
.mock-conf-bar {
  height: 4px; background: #3A7A2A;
  border-radius: 2px; flex: 1;
  max-width: var(--w, 93%);
}
.mock-conf span { font-size: 11px; font-weight: 600; color: #7CCC5A; }

.more-work-note {
  text-align: center;
  padding: 24px;
  color: var(--text-3); font-size: 15px;
}
.more-work-note a { color: var(--red); border-bottom: 1px solid rgba(196,30,58,0.3); }
.more-work-note a:hover { color: var(--red-light); }

/* ── About ──────────────────────────────────────────────────── */
.about { background: var(--bg2); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.about-content .section-title { margin-bottom: 24px; }
.about-content p {
  font-size: 15px; color: var(--text-2);
  line-height: 1.75; margin-bottom: 16px;
}
.about-values { display: flex; flex-direction: column; gap: 28px; padding-top: 20px; }
.value-item {
  display: flex; gap: 20px; align-items: flex-start;
}
.value-num {
  font-size: 11px; font-weight: 700;
  color: var(--red); letter-spacing: 1px;
  min-width: 24px; padding-top: 3px;
}
.value-item h4 {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 6px;
}
.value-item p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── Contact ────────────────────────────────────────────────── */
.contact { background: var(--bg); }
.contact-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-inner .section-title { margin-bottom: 16px; }
.contact-sub {
  font-size: 16px; color: var(--text-2);
  margin-bottom: 40px; line-height: 1.65;
}
.contact-email {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 600; color: var(--red);
  border-bottom: 2px solid rgba(196,30,58,0.3);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover { color: var(--red-light); border-color: var(--red); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 32px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.footer-logo:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-3); }
.footer-links a:hover { color: var(--text-2); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; justify-content: flex-start;
    background: var(--bg); padding: 32px;
    gap: 24px; pointer-events: none; opacity: 0;
    transition: opacity 0.2s;
  }
  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-links a { font-size: 20px; }
  .nav-burger { display: flex; }

  .section { padding: 72px 0; }
  .section-title { letter-spacing: -1px; margin-bottom: 32px; }

  .project-featured {
    grid-template-columns: 1fr; padding: 28px; gap: 32px;
  }
  .project-featured-visual { order: -1; }
  .phone-mockup { width: 160px; height: 300px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero-title { letter-spacing: -2px; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .project-featured { padding: 20px; }
  .services-grid { grid-template-columns: 1fr; }
}
