:root {
  --color-bg: #0e0e0e;
  --color-bg-light: #151515;
  --color-text: #f1f1f1d4;
  --color-muted: #9a9a9a;
  --color-accent: #ffffff;

  --font-base: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-hero: 'Bebas Neue', sans-serif;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
}

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

/* ==================================== */
/*       POLISHED NAVBAR CSS            */
/* ==================================== */

/* Base navbar */
.navbar-custom {
  background: linear-gradient(
    rgba(0, 0, 0, 0.2) 100%,    /* top opaque */
    rgba(0, 0, 0, 0.95) 0%  /* bottom transparent */
  );
  transition: background 0.3s ease, padding 0.3s ease;
  padding: 0.5rem 1rem; /* vertical + horizontal padding */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Navbar brand/logo */
.navbar-brand {
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

/* Nav links and icons */
.navbar-nav .nav-link {
  color: white;
  margin: 0 0.75rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: #ffffff; /* subtle hover */
  opacity: 0.7;
}

.navbar-logo {
  height: 50px;
  width: auto;
  max-width: 160px;
  display: block;
}

.navbar-logo:hover {
  opacity: .7;
}

@media (max-width: 568px) {
  .navbar-logo {
    height: 40px;
  }
}

/* Navbar icons (social links) */
.navbar-nav .nav-icon {
  font-size: 1.2rem;
  margin-left: 0.75rem;
  display: flex;
  align-items: center;
}

/* Mobile: hamburger dropdown */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: inherit;       /* inherit gradient from navbar */
    padding: 1rem 0;           /* vertical padding for items */
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1090;
    background: inherit;
    -webkit-backdrop-filter: inherit;
  }
  

  /* Ensure gradient stays during transition */
  .navbar-collapse.collapsing,
  .navbar-collapse.show {
    background: inherit;
  }

  /* Nav links inside dropdown */
  .navbar-collapse .nav-link,
  .navbar-collapse .navbar-text {
    color: white;
    margin: 0.5rem 1rem;
  }

  .navbar-collapse .nav-link:hover {
    color: white; /* keep hover subtle */
  }
}

/* Navbar toggle (hamburger) styling */
.navbar-toggler {
  border: none;
  color: white;
  font-size: 1.5rem;
}

/* Sticky navbar scroll tweak (optional) */
.navbar.sticky-shrink {
  padding: 0.3rem 1rem; /* shrink slightly on scroll */
  transition: padding 0.3s ease;
}

/* Ensure consistent spacing between text links and icons */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* consistent spacing for all links and icons */
}

/* Make icons match nav-link spacing */
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
}

/* =========================
   Hero
========================= */
.hero {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: clamp(400px, 50%, 600px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-left: 16px;
  padding-right: 16px;
}

.hero-headline {
  text-align: justify;
  text-align-last: justify;
}

.hero h1 {
  font-family: var(--font-hero);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 500;
  margin: 0;
}

/* Accent word: grain + drift + halation */
.hero h1 .accent {
  font-family: var(--font-display);
  font-style: italic;
  z-index: 1;

  color: var(--color-accent);

  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.15) 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.15) 0 1px,
      transparent 1px 3px
    );
  background-size: 4px 4px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: var(--color-accent);


  /* Drift + flicker */
  animation: grainDrift 1s infinite linear, grainFlicker 0.3s infinite;

  /* Halation / glow */
  text-shadow:
    0 0 3px rgba(255,255,255,0.2),
    0 0 6px rgba(255,255,255,0.15),
    0 0 12px rgba(255,255,255,0.1);
}



@keyframes grainDrift {
  0% { background-position: 0 0, 0 0; }
  50% { background-position: 2px 2px, -2px -2px; }
  100% { background-position: 0 0, 0 0; }
}

@keyframes grainFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.90; }
}

.hero p {
  margin-top: 24px;
  color: var(--color-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   Sections
========================= */
.section-padding {
  padding: 90px 0;
}

.section-title {
  font-weight: 500;
}



/* PORTFOLIO GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 8px;        /* masonry unit */
  gap: 12px;
}



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

.portfolio-grid img,
.portfolio-grid video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.portfolio-grid img:hover {
  opacity: .7;
}

.portfolio-filters {
  display: flex;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.filter-btn.active {
  color: white;
}

.filter-btn:hover {
  color: white;
}

/* VIDEO PREVIEW */
.portfolio-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}

.portfolio-item img,
.portfolio-item video {
  display: block;
}

.video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
  pointer-events: none;
}

.video-poster {
  position: relative;
  z-index: 1;
}

/* About section */
.about-section {
  background-color: var(--color-bg-light);
}

.about-section p {
  color: var(--color-muted);
}

.about-image {
  width: 58.33%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right:auto;
  border-radius: 2px;
  align-items: center;
}

@media (max-width: 576px) {
  .about-image {
  width: 33%;
}
}

.about-image-wrapper {
  width: 100%;
}

.contact-form .form-control {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text);
}

.contact-form .form-control::placeholder {
  color: rgba(255,255,255,0.5);
}

.contact-form .form-control:focus {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.6);
  box-shadow: none;
}

.contact-form button {
  letter-spacing: 0.08em;
}

/* Footer */
.footer {
  padding: 40px 0;
  background-color: var(--color-bg-light);
  color: var(--color-muted);
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  body {
    /* padding-top: 50px;*/
  }

  .hero {
    min-height: 75vh;
  }

  .hero-text {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 90%;
  }

  .navbar .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* LIGHTBOX OVERLAY */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1100;
  user-select: none;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 92vw;
  max-height: 92vh;
  text-align: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.lightbox-image.loaded {
  opacity: 1;
}

.lightbox-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.lightbox-video {
  display: none;
  max-width: 100%;
  max-height: 80vh;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-image {
    transition: none;
  }
}

/* Controls */
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  opacity: 0.7;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  z-index: 1001;
  padding: 0.5rem 1rem;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

@media (max-width: 576px) {
  .lightbox-nav { 
    font-size: 1.8rem;
    padding: 0.4rem 0.8rem;
   }
}