/* glumbatiq — Creative Video Studio */
:root {
  --accent: #00bac7;
  --accent-dark: #009aa5;
  --accent-light: #33c8d2;
  --bg: #0a0e12;
  --bg-card: #121820;
  --bg-elevated: #1a222d;
  --text: #e8edf2;
  --text-muted: #8b9aab;
  --border: rgba(0, 186, 199, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--accent-light);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99;
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text);
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.nav-mobile a:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
}

.nav-mobile .legal-links {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile .legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Main */
main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 186, 199, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(0, 186, 199, 0.08), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 186, 199, 0.12);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 186, 199, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-visual-inner {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, #0d1820 0%, #122530 50%, #0a1520 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(0, 186, 199, 0.03) 40px,
      rgba(0, 186, 199, 0.03) 41px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 186, 199, 0.2);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2.5s ease-in-out infinite;
}

.hero-play svg {
  width: 32px;
  height: 32px;
  fill: var(--accent);
  margin-left: 4px;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 186, 199, 0.4); }
  50% { box-shadow: 0 0 0 20px rgba(0, 186, 199, 0); }
}

/* Services strip */
.services-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* Project grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: block;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 186, 199, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  color: inherit;
}

.project-thumb {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}

.project-thumb-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.4s;
}

.project-card:hover .project-thumb-inner {
  transform: scale(1.05);
}

.project-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.project-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.project-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Pattern variants for project thumbs */
.pattern-1 { background: linear-gradient(160deg, #0a1628, #0d2840 40%, #00bac7 140%); }
.pattern-2 { background: linear-gradient(45deg, #121820 25%, #1a3040 25%, #1a3040 50%, #121820 50%, #121820 75%, #1a3040 75%); background-size: 20px 20px; }
.pattern-3 { background: radial-gradient(circle at 30% 40%, rgba(0,186,199,0.4), transparent 50%), linear-gradient(180deg, #0f1a24, #162030); }
.pattern-4 { background: conic-gradient(from 45deg at 50% 50%, #0a1520, #00bac7, #0a1520, #009aa5, #0a1520); }
.pattern-5 { background: linear-gradient(135deg, #1a222d 0%, #00bac7 100%); opacity: 0.9; }
.pattern-6 { background: repeating-linear-gradient(-45deg, #121820, #121820 10px, #1a2838 10px, #1a2838 20px); }
.pattern-7 { background: linear-gradient(to right, #0a0e12, #00bac7 200%); }
.pattern-8 { background: radial-gradient(ellipse at bottom, rgba(0,186,199,0.3), #0a0e12 70%); }
.pattern-9 { background: linear-gradient(90deg, #121820 0%, #121820 48%, #00bac7 48%, #00bac7 52%, #121820 52%); }
.pattern-10 { background: linear-gradient(180deg, #009aa5 0%, #0a0e12 60%); }

/* About page */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.about-visual {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(0,186,199,0.2), transparent 60%),
    linear-gradient(180deg, #121820, #0a0e12);
  border: 1px solid var(--border);
  position: relative;
}

.about-visual::after {
  content: '';
  position: absolute;
  inset: 20%;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.3;
}

.about-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.about-content .lead {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.skill-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 186, 199, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.contact-item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: var(--text);
}

.contact-hours {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-hours h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form-wrap h2 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  display: none;
  background: rgba(0, 186, 199, 0.12);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  color: var(--accent);
  font-weight: 600;
}

.form-success.show {
  display: block;
}

/* Project detail */
.project-hero {
  aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.meta-item span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.meta-item strong {
  font-size: 0.95rem;
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

.project-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.project-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  letter-spacing: -0.02em;
}

.tech-list {
  list-style: none;
}

.tech-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--accent);
}

.back-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Legal pages */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-page p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-page p strong {
  color: var(--text);
}

.legal-doc-id {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* CTA section */
.cta-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-hero,
  .contact-grid,
  .project-layout {
    grid-template-columns: 1fr;
  }

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

  .project-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }
}
