/* ============================================================
   PIXEL BLASTER MEDIA — STYLESHEET
   ============================================================ */

/* ------------------------------------------------------------
   VARIABLES
   ------------------------------------------------------------ */
:root {
  --teal:         #1a7f8e;
  --teal-light:   #22a4b5;
  --teal-dark:    #0d5f6b;
  --teal-glow:    rgba(26, 127, 142, 0.12);
  --teal-border:  rgba(26, 127, 142, 0.3);

  --bg:           #09090b;
  --bg-2:         #0f1117;
  --bg-card:      #14181f;
  --bg-card-h:    #1c2130;

  --white:        #f8fafc;
  --gray-1:       #cbd5e1;
  --gray-2:       #94a3b8;
  --gray-3:       #475569;
  --gray-4:       #1e293b;

  --border:       rgba(255, 255, 255, 0.07);

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-full:  999px;

  --shadow-teal:  0 8px 32px rgba(26, 127, 142, 0.25);
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.teal { color: var(--teal-light); }

/* ------------------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ------------------------------------------------------------
   SECTION HEADERS
   ------------------------------------------------------------ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-sub {
  margin-top: 0.75rem;
  color: var(--gray-2);
  font-size: 1rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-img {
  height: 34px;
  width: auto;
}
.logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--teal-light) !important;
  transform: translateY(-1px) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 9, 11, 0.55) 0%,
    rgba(9, 9, 11, 0.65) 50%,
    rgba(9, 9, 11, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 0 2rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-1);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-3);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 1;
  transition: color 0.2s;
}
.hero-scroll:hover { color: var(--teal-light); }
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--gray-3), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.75); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 8rem 0;
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::before,
.service-card.featured::before { opacity: 1; }
.service-card:hover {
  border-color: var(--teal-border);
  background: var(--bg-card-h);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.service-card.featured {
  border-color: var(--teal-border);
  background: linear-gradient(145deg, var(--bg-card), rgba(26,127,142,0.07));
}
.service-card.featured:hover {
  border-color: var(--teal-light);
  background: linear-gradient(145deg, var(--bg-card-h), rgba(26,127,142,0.14));
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(26,127,142,0.18);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-glow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--teal-light);
  border: 1px solid var(--teal-border);
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.service-card > p {
  color: var(--gray-2);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.service-list {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-list li {
  font-size: 0.875rem;
  color: var(--gray-2);
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.75rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--teal-light);
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap 0.2s ease, opacity 0.2s;
}
.service-link:hover { gap: 0.6rem; opacity: 0.85; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  padding: 8rem 0;
  background: var(--bg);
}

/* --- Category Cards (default view) --- */
.portfolio-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg-card);
}

/* Row 1: Portrait (wide hero) + Food */
.cat-card:nth-child(1) { grid-column: span 2; height: 420px; }
.cat-card:nth-child(2) { height: 420px; }
/* Row 2: Sports + Commercial + Real Estate */
.cat-card:nth-child(3),
.cat-card:nth-child(4),
.cat-card:nth-child(5) { height: 260px; }

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.cat-card[data-filter="portrait"] img { object-position: top; }
.cat-card:hover img { transform: scale(1.05); }

.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,0.82) 0%, rgba(9,9,11,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 2rem;
  transition: background 0.35s ease;
}
.cat-card:hover .cat-overlay {
  background: linear-gradient(to top, rgba(9,9,11,0.92) 0%, rgba(9,9,11,0.3) 60%, transparent 100%);
}

.cat-label {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.cat-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-light);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cat-card:hover .cat-cta {
  opacity: 1;
  transform: translateY(0);
}

/* --- Back Button --- */
.portfolio-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray-2);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}
.portfolio-back:hover {
  border-color: var(--teal-border);
  color: var(--teal-light);
}

/* --- Gallery Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 0.75rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
}
.portfolio-item.wide { grid-column: span 2; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

[data-type="portrait"] img {
  object-position: top;
}

[data-type="portrait"].obj-center img {
  object-position: center;
}
.portfolio-item:hover img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,0.85) 0%, rgba(9,9,11,0) 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.5rem;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
}

/* Video item */
.video-item { cursor: default; }
.video-item:hover img { transform: none; }

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder-note {
  display: none;
}

/* Hidden states */
.portfolio-item.hidden,
.portfolio-categories.hidden,
.portfolio-grid.hidden,
.portfolio-back.hidden { display: none; }

/* ============================================================
   SHOWREEL
   ============================================================ */
.showreel {
  background: var(--bg-2);
  padding: 8rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showreel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.showreel-text p:not(.section-eyebrow) {
  color: var(--gray-2);
  font-size: 1rem;
  margin-top: 0.75rem;
}

.showreel-player {
  position: relative;
  width: 100%;
  max-width: 960px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.showreel-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 11, 0.45);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.reel-play-btn:hover { background: rgba(9, 9, 11, 0.25); }
.reel-play-btn.hidden { display: none; }

.reel-play-btn svg {
  width: 72px;
  height: 72px;
  color: #fff;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  background: var(--teal);
  border-radius: 50%;
  padding: 18px;
  padding-left: 22px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.reel-play-btn:hover svg {
  transform: scale(1.08);
  background: var(--teal-light);
}

@media (max-width: 640px) {
  .reel-play-btn svg { width: 56px; height: 56px; padding: 14px; padding-left: 18px; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 8rem 0;
  background: var(--bg-2);
}

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

/* Image cluster */
.about-images {
  position: relative;
  height: 520px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 78%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 50%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border: 3px solid var(--bg-2);
}
.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-teal-block {
  position: absolute;
  bottom: 20px;
  left: -16px;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  z-index: -1;
}

/* About text */
.about-content p {
  color: var(--gray-2);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}
.stat p {
  font-size: 0.78rem;
  color: var(--gray-3);
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 8rem 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

/* Info */
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  margin-bottom: 0.25rem;
}
.contact-item:hover { background: var(--bg-card); }

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }

.contact-item h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 0.25rem;
}
.contact-item a,
.contact-item p {
  font-size: 0.9rem;
  color: var(--gray-2);
  transition: color 0.2s;
  line-height: 1.6;
  margin: 0;
}
.contact-item a:hover { color: var(--teal-light); }

/* 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.78rem;
  font-weight: 600;
  color: var(--gray-2);
  letter-spacing: 0.03em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1.125rem;
  color: var(--white);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-3);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 127, 142, 0.12);
}
.contact-form select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.contact-form select option {
  background: var(--bg-card);
  color: var(--white);
}
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-3);
  margin-top: 0.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-logo { height: 30px; width: auto; }

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.875rem;
  color: var(--gray-3);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--teal-light); }

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--gray-3);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--teal-light); border-color: var(--teal-light); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-3);
}
.footer-bottom a {
  color: var(--teal-light);
  transition: opacity 0.2s;
}
.footer-bottom a:hover { opacity: 0.8; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.anim.delay-1 { transition-delay: 0.1s; }
.anim.delay-2 { transition-delay: 0.2s; }
.anim.delay-3 { transition-delay: 0.3s; }
.anim.delay-4 { transition-delay: 0.4s; }

.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-images { height: 380px; }

  /* Portfolio categories */
  .portfolio-categories { grid-template-columns: repeat(2, 1fr); }
  .cat-card:nth-child(1) { grid-column: span 2; height: 320px; }
  .cat-card:nth-child(2),
  .cat-card:nth-child(3),
  .cat-card:nth-child(4),
  .cat-card:nth-child(5) { height: 200px; }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 240px;
  }
  .portfolio-item.wide { grid-column: span 2; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.25rem; }
  .nav-links .nav-cta { font-size: 1.1rem !important; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-title { letter-spacing: -0.03em; }
  .hero-buttons { flex-direction: column; align-items: center; }

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

  /* Portfolio */
  .portfolio-categories { grid-template-columns: 1fr; }
  .cat-card:nth-child(1),
  .cat-card:nth-child(2),
  .cat-card:nth-child(3),
  .cat-card:nth-child(4),
  .cat-card:nth-child(5) { grid-column: span 1; height: 180px; }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .portfolio-item.wide { grid-column: span 1; }

  /* About */
  .about-images { height: 280px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }

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

  /* Footer */
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 0.25rem; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* Image wrapper + image */
.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
  padding: 0 5rem; /* room for prev/next buttons */
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  display: block;
  transition: opacity 0.2s ease;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2001;
}
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.1);
}

/* Prev / Next buttons */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2001;
}
.lightbox-prev svg,
.lightbox-next svg { width: 24px; height: 24px; }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--teal);
  transform: translateY(-50%) scale(1.08);
}

/* Counter */
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

@media (max-width: 640px) {
  .lightbox-img-wrap { padding: 0 3.5rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-prev,
  .lightbox-next { width: 42px; height: 42px; }
  .lightbox-prev svg,
  .lightbox-next svg { width: 20px; height: 20px; }
}
