:root {
  --bg-color: #050505;
  --card-bg: #0c0c0c;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --accent: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --whatsapp-green: #25d366;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- HEADER (STAYS SAME) --- */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.logo img {
  height: 42px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.insta-nav {
  font-size: 1.4rem;
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: 0.3s;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  z-index: 3000;
}
.menu-toggle span {
  width: 28px;
  height: 2px;
  background: #fff;
  transition: 0.4s ease;
}

/* Active State Animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- CINEMATIC SQUARE SLIDER (FIXED ALIGNMENT) --- */
.hero-slider {
  position: relative;
  height: 100vh; /* Full viewport */
  width: 100%;
  overflow: hidden;
  background: #000;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
  display: flex;
  align-items: center; /* Vertical Center */
  justify-content: center;
  padding-top: var(--header-height); /* Offset for header */
}
.slide.active {
  opacity: 1;
  visibility: visible;
}

/* Ghost background */
.slide-ghost {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.4) saturate(1.2);
  z-index: 1;
  opacity: 0.5;
  transition: transform 6s linear;
}
.slide.active .slide-ghost {
  transform: scale(1.1);
}

.slide-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
  padding: 0 40px;
}

/* Image Shutter Animation */
.slide-img-frame {
  flex: 1;
  aspect-ratio: 1/1;
  max-width: 480px;
  overflow: hidden;
  border-radius: 30px;
  clip-path: inset(0 100% 0 0); /* Closed shutter */
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.slide.active .slide-img-frame {
  clip-path: inset(0 0 0 0);
}
.slide-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

/* Text Content Stagger Animation */
.slide-content {
  flex: 1.2;
}
.slide-content h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1;
  opacity: 0;
  transform: translateX(50px);
  transition: 0.8s 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.slide-content p.sub-tag {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateX(50px);
  transition: 0.8s 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* New Info Area */
.slide-info-extra {
  display: flex;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s 0.7s;
}
.slide.active h2,
.slide.active p.sub-tag,
.slide.active .slide-info-extra {
  opacity: 1;
  transform: translate(0);
}

.info-stat hspan {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.info-stat p {
  font-size: 0.85rem;
  font-weight: 700;
}

.about-expanded {
  padding: 70px 20px;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h3 {
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #a0a0a0;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 30px;
}

.about-text p {
  font-size: 1.1rem;
  color: #a0a0a0;
  margin-bottom: 20px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.pillar-card {
  background: #0c0c0c;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
}

.pillar-card i {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.pillar-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 0.8rem;
  color: #a0a0a0;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- WORK TILES --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px 100px;
  max-width: 1400px;
  margin: 0 auto;
}
.work-tile {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  cursor: pointer;
}
.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  filter: grayscale(1) brightness(0.6);
}
.work-tile:hover img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.08);
}
.tile-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #fff;
  color: #000;
  padding: 4px 12px;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 3;
}
.tile-details {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  z-index: 2;
}
.tile-details h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.active {
  display: flex;
}
.lightbox-box {
  display: flex;
  background: #000;
  width: 100%;
  max-width: 1100px;
  max-height: 85vh;
  border: 1px solid var(--border);
  overflow: hidden;
}
.lb-img {
  flex: 1.2;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lb-info {
  flex: 1;
  padding: 50px;
  overflow-y: auto;
}

.section-header {
  text-align: center;
  margin: 80px 0 40px;
}

.section-header h3 {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.section-header h3::after {
  content: "";
  display: block;
  width: 50px; /* length of red underline */
  height: 3px;
  background-color: #c10000; /* red accent */
  margin: 5px auto 0; /* centers the line under the text */
  border-radius: 2px;
}

.section-header .section-tagline {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: #ccc;
  font-style: italic;
  margin-top: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  opacity: 0.85;
}

/* Add separation between About and Portfolio */
.about-expanded {
  border-top: 1px solid var(--border);
  padding: 50px 20px;
}

.portfolio-grid-section {
  padding: 40px 20px;
  background: #050505;
}

/* Optional: add spacing above each portfolio tile */
.portfolio-grid .work-tile {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.portfolio-grid .work-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* --- MOBILE --- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    /* Circular Clip Path */
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    gap: 30px;
    pointer-events: none; /* Ignore clicks when closed */
  }

  .nav-links.active {
    clip-path: circle(150% at 100% 0%);
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered delay for links */
  .nav-links.active a:nth-child(1) {
    transition-delay: 0.4s;
  }
  .nav-links.active a:nth-child(2) {
    transition-delay: 0.5s;
  }
  .nav-links.active a:nth-child(3) {
    transition-delay: 0.6s;
  }
  .nav-links.active a:nth-child(4) {
    transition-delay: 0.7s;
  }
  .slide-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    padding-top: 40px;
  }
  .slide-img-frame {
    max-width: 85%;
    margin: 0 auto;
  }
  .slide-info-extra {
    justify-content: center;
  }
  .hero-slider {
    height: auto;
    min-height: 100vh;
    padding-bottom: 60px;
  }
  .slide {
    position: absolute !important;
    height: auto;
    opacity: 1;
    visibility: visible;
    display: flex !important;
    transition: opacity 1s ease; /* Smooth fade on mobile */
  }

  .slide.active {
    opacity: 1;
    visibility: visible;
  }
  .lightbox-box {
    flex-direction: column;
    max-height: 100vh;
  }
  .lb-img {
    flex: 0 0 40%;
  }
}
/* --- DESKTOP SLIDER DOTS --- */
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 100;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  background: #fff;
  width: 30px;
  border-radius: 5px;
}

/* Hide dots on mobile */
@media (max-width: 900px) {
  .slider-dots {
    display: none;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  } /* 1 item on small mobile */
  .about-brief {
    padding: 80px 20px;
  }
}

.nav-links.mobile-active {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  clip-path: circle(150% at 100% 0%);
  gap: 30px;
}
.nav-links.mobile-active a {
  font-size: 1.8rem;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* BUTTON SYSTEM */
.btn-primary {
  display: inline-block;
  padding: 14px 34px;
  background: #c6a14a;
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 30px rgba(198, 161, 74, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(198, 161, 74, 0.5);
}

.btn-outline {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.4s;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
}

/* Floating WP btn */
/* --- FLOATING BUTTON --- */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  animation: pulse 2s infinite;
  text-decoration: none;
}

.floating-wa:hover {
  transform: translateY(-4px) rotate(10deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
