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

:root {
  --bg: #060606;
  --bg-elevated: #0d0d0d;
  --bg-card: #111111;
  --text: #ebebeb;
  --text-muted: #666666;
  --text-dim: #444444;
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.15);
  --border: #1a1a1a;
  --border-light: #252525;
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Instrument Sans', -apple-system, sans-serif;
  --font-display: 'Syne', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== Grain Overlay ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ===== Cursor Glow ===== */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

.navbar.scrolled {
  background: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 48px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 10px 28px !important;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: transform 0.2s, opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(6, 6, 6, 0.5) 0%, rgba(6, 6, 6, 0.3) 40%, rgba(6, 6, 6, 0.7) 80%, var(--bg) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(6, 6, 6, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: blink 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-title .line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.4s; }
.hero-title .line:nth-child(2) { animation-delay: 0.6s; }

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: var(--accent);
  color: white;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.3);
}

.btn-primary.full-width { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  transition: background 0.3s, border-color 0.3s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}

.scroll-dot {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 4px;
  animation: scrollBounce 2s infinite;
}

/* ===== Stats Bar ===== */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* ===== Section Shared ===== */
.section-header {
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ===== Work / Reels Grid ===== */
.work {
  padding: 120px 0;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reel-card {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-card:hover {
  transform: translateY(-8px);
}

.reel-thumbnail {
  aspect-ratio: 9 / 16;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.reel-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.4s;
}

.reel-card:hover .reel-thumbnail video {
  opacity: 1;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(0, 0, 0, 0.2);
}

.reel-card:hover .reel-overlay { opacity: 1; }

.reel-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.reel-play svg {
  width: 18px;
  height: 18px;
  color: white;
  margin-left: 3px;
}

.reel-meta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.reel-category {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reel-views {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.reel-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 16px;
}

/* ===== Services ===== */
.services {
  padding: 120px 0;
  background: var(--bg-elevated);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  transition: border-color 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== About ===== */
.about {
  padding: 140px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 260px;
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  overflow: hidden;
  border: 3px solid #222;
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}

.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.about-text .section-title {
  margin-bottom: 24px;
}

.about-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-description:last-of-type {
  margin-bottom: 36px;
}

/* ===== Marquee ===== */
.marquee-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  width: max-content;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== Contact ===== */
.contact {
  padding: 140px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text .section-title {
  margin-bottom: 16px;
}

.contact-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s, padding-left 0.3s;
}

.social-link:first-child {
  border-top: 1px solid var(--border);
}

.social-link:hover {
  color: var(--accent);
  padding-left: 8px;
}

.social-link span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
  appearance: none;
  cursor: pointer;
  color: var(--text-dim);
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Scroll reveal */
[data-anim] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-anim].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }

  .reels-grid { grid-template-columns: repeat(2, 1fr); }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .about-visual { order: -1; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-inner { gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .navbar { padding: 16px 24px; }
  .navbar.scrolled { padding: 12px 24px; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 6, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.4rem;
    color: var(--text);
  }

  .nav-toggle { display: flex; }

  .nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }
  .nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  .hero { min-height: 100svh; }
  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(6, 6, 6, 0.7) 0%, rgba(6, 6, 6, 0.5) 30%, rgba(6, 6, 6, 0.7) 70%, var(--bg) 100%);
  }
  .hero-title { font-size: clamp(2.6rem, 10vw, 4rem); }
  .hero-subtitle { font-size: 0.95rem; max-width: 360px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  .stats-inner {
    flex-wrap: wrap;
    gap: 24px;
  }
  .stat-divider { display: none; }
  .stat-item { flex: 1; min-width: 120px; }

  .work, .services { padding: 80px 0; }
  .about, .contact { padding: 100px 0; }

  .reels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .reel-title { font-size: 0.8rem; }

  .services-grid { grid-template-columns: 1fr; }

  .service-card { padding: 32px; }

  .phone-frame { width: 200px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cursor-glow { display: none; }
}
