/* ============================================
   Lens & Light Studios - Photography Portfolio
   Starter Tier Demo | Built by Pejji
   ============================================ */

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

:root {
  --bg: #0A0A0A;
  --surface: #1A1A1A;
  --surface-light: #242424;
  --gold: #E8B86D;
  --gold-dim: rgba(232, 184, 109, 0.15);
  --white: #FFFFFF;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

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

/* ---------- Utility ---------- */

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

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--white-70);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- Scroll Animations ---------- */

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

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

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--white-10);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--white-70);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

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

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

/* ---------- Hero ---------- */

.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;
  background: url('images/hero-photographer.jpg') center/cover no-repeat;
  z-index: 0;
  filter: brightness(0.4);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  padding: 8px 20px;
  border: 1px solid rgba(232, 184, 109, 0.3);
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--white-70);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.hero-cta:hover {
  background: #d4a45c;
  transform: translateY(-2px);
  opacity: 1;
  color: var(--bg);
}

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

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white-50), transparent);
}

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

/* ---------- Gallery ---------- */

.gallery {
  padding: 120px 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-header .section-subtitle {
  margin: 0 auto;
}

.masonry {
  columns: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

.masonry-item .placeholder {
  width: 100%;
  display: block;
  border-radius: 4px;
}

/* varied heights for masonry effect */
.masonry-item:nth-child(1) .placeholder { height: 380px; background: url('images/gallery-wedding.jpg') center/cover no-repeat; }
.masonry-item:nth-child(2) .placeholder { height: 280px; background: url('images/gallery-portrait.jpg') center/cover no-repeat; }
.masonry-item:nth-child(3) .placeholder { height: 340px; background: url('images/gallery-corporate.jpg') center/cover no-repeat; }
.masonry-item:nth-child(4) .placeholder { height: 300px; background: url('images/gallery-wedding.jpg') center 70%/cover no-repeat; }
.masonry-item:nth-child(5) .placeholder { height: 360px; background: url('images/gallery-portrait.jpg') center 40%/cover no-repeat; }
.masonry-item:nth-child(6) .placeholder { height: 260px; background: url('images/gallery-corporate.jpg') center 30%/cover no-repeat; }
.masonry-item:nth-child(7) .placeholder { height: 320px; background: url('images/gallery-wedding.jpg') top/cover no-repeat; }
.masonry-item:nth-child(8) .placeholder { height: 290px; background: url('images/gallery-corporate.jpg') center 60%/cover no-repeat; }

.masonry-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 4px;
}

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

.masonry-item:hover .placeholder {
  transform: scale(1.03);
  transition: transform 0.6s ease;
}

.masonry-item .placeholder {
  transition: transform 0.6s ease;
}

.overlay-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.overlay-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

/* camera icon in placeholder center */
.placeholder-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  opacity: 0.15;
}

/* ---------- About ---------- */

.about {
  padding: 120px 0;
  background: var(--surface);
}

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

.about-image {
  width: 100%;
  height: 500px;
  background: url('images/hero-photographer.jpg') center/cover no-repeat;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.about-text .section-subtitle {
  margin-bottom: 40px;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--white-50);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Services ---------- */

.services {
  padding: 120px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--white-10);
  border-radius: 4px;
  padding: 40px 28px;
  transition: border-color 0.4s, transform 0.4s;
}

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

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.2rem;
}

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

.service-card p {
  color: var(--white-50);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-price {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
}

/* ---------- Booking ---------- */

.booking {
  padding: 120px 0;
  background: var(--surface);
}

.booking .container {
  max-width: 640px;
}

.booking-header {
  text-align: center;
  margin-bottom: 48px;
}

.booking-header .section-subtitle {
  margin: 0 auto;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-70);
}

.form-group input,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--white-10);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23E8B86D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.form-group input::placeholder {
  color: var(--white-20);
}

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

.booking-submit {
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  margin-top: 8px;
}

.booking-submit:hover {
  background: #d4a45c;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */

.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--white-10);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

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

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

.footer-links a {
  color: var(--white-50);
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--white-10);
  width: 100%;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--white-50);
}

.pejji-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--white-50);
  padding: 6px 14px;
  border: 1px solid var(--white-10);
  border-radius: 2px;
  transition: border-color 0.3s;
}

.pejji-badge:hover {
  border-color: var(--gold);
  color: var(--gold);
  opacity: 1;
}

.pejji-badge code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

/* ---------- WhatsApp FAB ---------- */

.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  opacity: 1;
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ---------- Cookie Banner ---------- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--white-10);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--white-70);
  max-width: 600px;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-accept {
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
}

.cookie-accept:hover {
  background: #d4a45c;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

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

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

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

  .about-image {
    height: 300px;
  }

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

  .masonry {
    columns: 1;
  }

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

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

  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px;
  }

  .hero-cta {
    padding: 14px 28px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

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