/* ============================================================
   DEBASISH SAHARIA — 3D Portfolio
   Design System: Midnight Gold
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Backgrounds */
  --bg-primary: rgba(13, 13, 13, 0.2);
  --bg-secondary: rgba(26, 26, 26, 0.2);
  --bg-card: rgba(22, 22, 22, 0.6);
  --bg-card-hover: rgba(30, 30, 30, 0.8);
  --bg-overlay: rgba(13, 13, 13, 0.85);

  /* Gold Palette */
  --gold-primary: #C4A265;
  --gold-dark: #5E4B43;
  --gold-accent: #D4B378;
  --gold-light: #E8D5B0;
  --gold-muted: #8A7560;

  /* Text Colors */
  --text-primary: #F0EDE8;
  --text-secondary: #A09890;
  --text-muted: #605850;

  /* Borders */
  --border-subtle: rgba(94, 75, 67, 0.2);
  --border-card: rgba(94, 75, 67, 0.15);
  --border-gold: rgba(196, 162, 101, 0.4);

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #1A1A1A 0%, #2A2218 50%, #5E4B43 100%);
  --gradient-hero: linear-gradient(180deg, transparent 0%, rgba(13,13,13,0.4) 40%, rgba(13,13,13,0.95) 100%);
  --gradient-card: linear-gradient(180deg, transparent 0%, rgba(13,13,13,0.9) 100%);
  --gradient-gold-text: linear-gradient(135deg, #C4A265, #E8D5B0, #C4A265);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1200px;
  --container-padding: 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: transparent;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Dynamic Background --- */
.dynamic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #0D0D0D;
  overflow: hidden;
}

.dynamic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float-blob 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--gold-dark);
  animation-duration: 25s;
}

.blob-2 {
  top: 40%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  background: rgba(196, 162, 101, 0.15);
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  bottom: -20%;
  left: 20%;
  width: 40vw;
  height: 40vw;
  background: rgba(50, 40, 30, 0.6);
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10%, 10%) scale(1.1); }
  66% { transform: translate(-5%, 15%) scale(0.9); }
  100% { transform: translate(-10%, -5%) scale(1.05); }
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--gold-dark);
  color: var(--text-primary);
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Section Base --- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  border: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--gold-primary);
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: width var(--transition-base);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #000 !important;
  background: var(--gold-primary);
  padding: 10px 24px !important;
  border-radius: var(--radius-sm);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all var(--transition-base) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold-accent) !important;
  color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(196, 162, 101, 0.3);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: brightness(0.6);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 var(--container-padding);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  background: rgba(196, 162, 101, 0.05);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.hero-title em {
  font-style: normal;
  font-weight: 300;
  color: var(--gold-primary);
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.8;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all var(--transition-base);
  background: rgba(196, 162, 101, 0.05);
}

.hero-cta:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 162, 101, 0.25);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.hero-cta:hover svg {
  transform: translateY(2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: float-down 2s ease-in-out infinite;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-primary), transparent);
}

@keyframes float-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   CLIENT LOGOS
   ============================================================ */
.clients {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.clients-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 36px;
}

.clients-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}

.client-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.client-logo:hover {
  opacity: 1;
  color: var(--gold-primary);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-title em {
  font-style: normal;
  font-weight: 300;
  color: var(--gold-primary);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

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

.service-number {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold-primary);
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: block;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--gold-primary);
  opacity: 0.8;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.service-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition-base);
}

.service-link:hover {
  gap: 14px;
}

.service-link svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio {
  background: var(--bg-secondary);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.portfolio-header .section-title {
  text-align: left;
}

.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all var(--transition-base);
  cursor: pointer;
  background: transparent;
}

.filter-btn:hover {
  color: var(--text-secondary);
  border-color: var(--border-gold);
}

.filter-btn.active {
  color: var(--bg-primary);
  background: var(--gold-primary);
  border-color: var(--gold-primary);
}

.portfolio-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.category-header {
  margin-bottom: 24px;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.category-divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border-gold) 0%, transparent 100%);
  opacity: 0.5;
}

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

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: all var(--transition-base);
}

.portfolio-item.video-item {
  aspect-ratio: 16/9;
  grid-column: span 1;
}

.portfolio-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-item img,
.portfolio-item video.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.portfolio-item:hover img,
.portfolio-item:hover video.video-thumbnail {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  background: rgba(196, 162, 101, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.portfolio-item-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.portfolio-item-client {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.portfolio-copyright {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* Play button for videos */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(196, 162, 101, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all var(--transition-base);
  box-shadow: 0 8px 32px rgba(196, 162, 101, 0.3);
}

.play-button svg {
  width: 24px;
  height: 24px;
  fill: var(--bg-primary);
  margin-left: 3px;
}

.portfolio-item:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 40px rgba(196, 162, 101, 0.5);
}

/* Client work badge */
.client-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  z-index: 3;
}

/* Portfolio animation */
.portfolio-item {
  opacity: 0;
  transform: translateY(30px);
}

.portfolio-item.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation for grid items */
.portfolio-item:nth-child(1) { animation-delay: 0s; }
.portfolio-item:nth-child(2) { animation-delay: 0.1s; }
.portfolio-item:nth-child(3) { animation-delay: 0.2s; }
.portfolio-item:nth-child(4) { animation-delay: 0.3s; }
.portfolio-item:nth-child(5) { animation-delay: 0.4s; }
.portfolio-item:nth-child(6) { animation-delay: 0.5s; }
.portfolio-item:nth-child(7) { animation-delay: 0.6s; }
.portfolio-item:nth-child(8) { animation-delay: 0.7s; }
.portfolio-item:nth-child(9) { animation-delay: 0.8s; }
.portfolio-item:nth-child(10) { animation-delay: 0.9s; }

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-info {
  text-align: center;
  margin-top: 24px;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.lightbox-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 500px;
}

.lightbox-copyright {
  font-size: 0.75rem;
  color: var(--gold-muted);
  margin-top: 12px;
  font-style: italic;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
}

.lightbox-close:hover {
  color: var(--gold-primary);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.2rem;
}

.lightbox-nav:hover {
  color: var(--gold-primary);
  border-color: var(--border-gold);
  background: rgba(26, 26, 26, 0.95);
}

.lightbox-prev {
  left: -72px;
}

.lightbox-next {
  right: -72px;
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  width: 80vw;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.video-modal-content iframe,
.video-modal-content video {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
}

.video-modal-close:hover {
  color: var(--gold-primary);
  border-color: var(--border-gold);
}

.video-modal-info {
  text-align: center;
  margin-top: 24px;
}

.video-modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.video-modal-copyright {
  font-size: 0.75rem;
  color: var(--gold-muted);
  font-style: italic;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background: var(--bg-primary);
}

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

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about-image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content .section-label {
  text-align: left;
}

.about-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.about-role {
  font-size: 1rem;
  color: var(--gold-primary);
  font-weight: 400;
  margin-bottom: 32px;
}

.about-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-primary);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

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

/* Skills */
.skills-section {
  margin-top: 40px;
}

.skills-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.skill-tag:hover {
  border-color: var(--border-gold);
  color: var(--gold-primary);
  background: rgba(196, 162, 101, 0.05);
}

/* ============================================================
   CONTACT / CTA SECTION
   ============================================================ */
.contact {
  background: var(--bg-secondary);
  text-align: center;
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
}

.contact-title em {
  font-style: normal;
  font-weight: 300;
  color: var(--gold-primary);
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.8;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--gold-primary);
  color: var(--bg-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.contact-btn:hover {
  background: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 162, 101, 0.3);
}

.contact-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.contact-btn:hover svg {
  transform: translateX(4px);
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.contact-info-item {
  text-align: center;
}

.contact-info-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.contact-info-value {
  font-size: 1rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.contact-info-value:hover {
  color: var(--gold-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-primary);
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer .container {
  gap: 16px;
}

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

.footer-text span {
  color: var(--gold-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

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

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

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .about-content {
    text-align: center;
  }

  .about-content .section-label {
    text-align: center;
  }

  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --container-padding: 20px;
  }

  /* Mobile Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    transition: right var(--transition-base);
    border-left: 1px solid var(--border-subtle);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  /* Dark overlay behind mobile menu */
  .nav-links::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    z-index: -1;
  }

  .nav-links.active::before {
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-badge {
    margin-bottom: 24px;
  }

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

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  /* About Stats */
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* Contact */
  .contact-info {
    flex-direction: column;
    gap: 24px;
  }

  /* Lightbox */
  .lightbox-content {
    max-width: 95vw;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: -60px;
    transform: none;
  }

  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { right: calc(50% - 56px); }

  /* Video Modal */
  .video-modal-content {
    width: 95vw;
  }

  /* Clients */
  .clients-grid {
    gap: 24px;
  }

  .client-logo {
    font-size: 0.9rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 0.9rem;
  }

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

  .stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .stat-number {
    font-size: 1.5rem;
    margin-bottom: 0;
  }
}

/* ============================================================
   CARD CAROUSEL
   ============================================================ */
.card-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform var(--transition-slow), filter var(--transition-slow);
  pointer-events: none;
}

.card-carousel img.active {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-item:hover .card-carousel img.active {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.card-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 10;
}

.card-carousel-btn:hover {
  background: var(--gold-primary);
}

.portfolio-item:hover .card-carousel-btn {
  opacity: 1;
}

.card-carousel-btn.prev {
  left: 8px;
}

.card-carousel-btn.next {
  right: 8px;
}

.card-carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .card-carousel-indicators {
  opacity: 1;
}

.card-carousel-indicators .indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease;
}

.card-carousel-indicators .indicator.active {
  background: var(--gold-primary);
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0D0D0D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.preloader-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 8px;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
}

.preloader-name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: preloader-char-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.preloader-name .dot-char {
  color: var(--gold-primary);
}

@keyframes preloader-char-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  animation: preloader-fade-in 0.8s ease 0.8s forwards;
}

@keyframes preloader-fade-in {
  to {
    opacity: 1;
  }
}

.preloader-bar-track {
  width: 200px;
  height: 1px;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: preloader-fade-in 0.6s ease 0.6s forwards;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-accent));
  transition: width 0.3s ease;
}

.preloader-percentage {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--gold-muted);
  letter-spacing: 3px;
  opacity: 0;
  animation: preloader-fade-in 0.6s ease 0.6s forwards;
}

/* ============================================================
   FOOTER SOCIAL LINKS
   ============================================================ */
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  color: var(--gold-primary);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* Update footer layout for 3-column */
.footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-links {
  justify-self: center;
}

.footer-social {
  justify-self: end;
}

@media (max-width: 768px) {
  .footer .container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-social {
    justify-self: center;
  }

    justify-self: center;
  }
}

/* ============================================================
   PREMIUM FEATURES & EFFECTS
   ============================================================ */

/* 1. Custom Cursor */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  
  a, button, .portfolio-item, .card-carousel-btn, .lightbox-nav, .lightbox-close, .video-modal-close, .nav-toggle {
    cursor: none;
  }
  
  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 999999;
    pointer-events: none;
  }
  
  .cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold-primary);
    transition: opacity 0.2s ease;
  }
  
  .cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gold-primary);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease-out;
  }
  
  /* Cursor Hover States */
  .cursor-ring.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(196, 162, 101, 0.1);
    border-color: transparent;
  }
  
  .cursor-ring.hover-view {
    width: 80px;
    height: 80px;
    background-color: var(--gold-primary);
    border-color: transparent;
  }
  
  .cursor-ring.hover-view::after {
    content: "VIEW";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-primary);
    letter-spacing: 1px;
  }
  
  .cursor-dot.hover-view {
    opacity: 0;
  }
}

/* 2. Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-accent));
  z-index: 10000;
  transform-origin: left;
  transform: scaleX(0);
}

/* 3. Scroll Animated Gradient */
.scroll-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at var(--grad-x, 50%) var(--grad-y, 0%), rgba(196, 162, 101, 0.25) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.8;
  mix-blend-mode: screen;
}


/* 4. Client Marquee */
.clients {
  overflow: hidden;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: marquee-scroll 25s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all var(--transition-base);
}

.marquee-item:hover {
  color: var(--gold-primary);
  -webkit-text-stroke: 1px var(--gold-primary);
}

.marquee-separator {
  color: var(--gold-primary);
  font-size: 1rem;
}

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

/* 5. Lenis Scroll setup */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* 6. Text Split & Reveal Animations */
.split-line {
  overflow: hidden;
  display: inline-block;
}

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  will-change: transform, opacity;
}

.split-char.revealed {
  animation: split-reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes split-reveal {
  0% {
    opacity: 0;
    transform: translateY(100%) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* 7. Image Reveal Mask */
.reveal-mask {
  position: relative;
  overflow: hidden;
}

.reveal-mask::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--gold-primary);
  transform-origin: right;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 2;
}

.reveal-mask.revealed::after {
  transform: scaleX(0);
}

.reveal-mask img {
  transform: scale(1.2);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.reveal-mask.revealed img {
  transform: scale(1);
}

/* 8. 3D Tilt Cards */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.tilt-content {
  transform: translateZ(30px);
}

/* Magnetic Buttons Fixes */
.hero-cta, .contact-btn, .nav-cta {
  display: inline-block; /* Helps with transform */
  will-change: transform;
}
