@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&display=swap');

/* ----------------------------------------------------
   Fonts: Neue Montreal
------------------------------------------------------- */
@font-face {
  font-family: 'Neue Montreal';
  src: url('./Neue Montreal/NeueMontreal-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('./Neue Montreal/NeueMontreal-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('./Neue Montreal/NeueMontreal-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('./Neue Montreal/NeueMontreal-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------
   Design System & Custom Properties
------------------------------------------------------- */
:root {
  --color-orange: #FF5C1A;
  --color-orange-hover: #E04E15;
  --color-orange-light: #FFEDE5;
  --color-dark: #111111;
  --color-text-gray: #444444;
  --color-bg: #FFFFFF;
  
  --font-primary: 'Neue Montreal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --container-width: 1200px;
  --header-height: 90px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-dark);
}

body {
  font-family: var(--font-secondary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Headed texts stay as Neue Montreal */
h1, h2, h3, .logo {
  font-family: var(--font-primary);
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ----------------------------------------------------
   Subtle Background Grid System
------------------------------------------------------- */
.background-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(11, 1fr); /* 11 columns spanning screen-wide to add lines in the sides */
  pointer-events: none;
  z-index: -1;
  padding: 0;
}

.grid-line {
  border-right: 1px solid rgba(0, 0, 0, 0.03); /* Perfect balanced visibility */
  height: 100%;
}

.grid-line:first-child {
  border-left: 1px solid rgba(0, 0, 0, 0.03); /* Perfect balanced visibility */
}

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

/* ----------------------------------------------------
   Header & Navigation (Premium Pill Design)
------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 100;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  height: 80px;
}

.logo, .logo a {
  font-size: 1.5rem;
  font-weight: 500 !important;
  letter-spacing: -0.05em; /* Ultra-tight modern spacing for an extremely premium, editorial look */
  color: var(--color-dark);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nav Container Capsule */
.nav-container {
  display: flex;
  align-items: center;
  background-color: var(--color-orange);
  padding: 6px 6px 6px 32px;
  border-radius: 100px;
  transition: var(--transition-smooth);
}

.nav-container:hover {
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-right: 28px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #FFFFFF;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: #FFFFFF;
}

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

/* Inner Pill Button "Let's Talk →" */
.btn-lets-talk-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.nav-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-lets-talk-nav:hover {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.btn-lets-talk-nav:hover .nav-arrow {
  transform: translateX(4px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 110;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  position: absolute;
  transition: var(--transition-smooth);
}

.mobile-menu-toggle .bar:nth-child(1) { top: 0; }
.mobile-menu-toggle .bar:nth-child(2) { top: 9px; }
.mobile-menu-toggle .bar:nth-child(3) { top: 18px; }

/* Active Menu Toggle Style */
.mobile-menu-toggle[aria-expanded="true"] .bar {
  background-color: #FFFFFF;
}
.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* ----------------------------------------------------
   Hero Section & Micro-Dot Grid Matrix Background
------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em; /* Increased spacing for airy reading comfort */
  color: var(--color-dark);
  margin-bottom: 60px;
  max-width: 1100px;
}

.word-scroller {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: -0.15em;
  height: 1.15em;
  color: var(--color-orange);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.word-slide {
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.word-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.word-slide.exit {
  opacity: 0;
  transform: translateY(100%);
}

/* Hero Content Grid (Split Image & Text) */
.hero-grid {
  display: grid;
  grid-template-columns: 3.5fr 6.5fr;
  gap: 80px;
  align-items: flex-start;
}

/* Left column - portrait card */
.hero-image-col {
  width: 100%;
}

.hero-image-card {
  width: 100%;
  overflow: hidden;
  background-color: #FAFAFA;
  transition: var(--transition-smooth);
}

.hero-img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-card:hover .hero-img {
  transform: scale(1.03);
}

/* Right column - content and buttons */
.hero-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
}

.hero-intro-text {
  font-size: 1.22rem;
  line-height: 1.62;
  color: var(--color-text-gray);
  font-weight: 400;
  margin-bottom: 45px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Resume outline button */
.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #FFC2A8;
  background-color: #FFF2EB;
  color: var(--color-orange);
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.resume-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-resume:hover {
  background-color: var(--color-orange-light);
  border-color: var(--color-orange);
  transform: translateY(-2px);
}

.btn-resume:hover .resume-icon {
  transform: translateY(3px);
}

/* Solid Orange button */
.btn-talk {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-orange);
  color: #FFFFFF;
  padding: 16px 44px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.btn-talk:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-2px);
}


/* ----------------------------------------------------
   Services Section (Dynamic Horizontal Interactive Rows)
------------------------------------------------------- */
.services-section {
  background-color: var(--color-orange);
  color: #FFFFFF;
  padding: 120px 0;
  position: relative;
  z-index: 10;
  overflow: hidden; /* Restrict background pseudo-element overflow */
}

/* Beautiful tactile micro-grain overlay for physical print feel */
.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.055; /* Super-refined, tactile grain overlay */
  z-index: 2; /* Floats above the video background */
}

/* Container for CSS ambient fluid lights */
.services-ambient-lights {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Individual organic fluid blobs */
.ambient-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px); /* Creates extremely soft, misty glowing blobs */
  opacity: 0.35;
  mix-blend-mode: screen; /* Blends beautifully with the orange background */
  pointer-events: none;
}

/* Light 1: Large glowing golden wave */
.light-1 {
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 185, 80, 0.8) 0%, rgba(255, 140, 0, 0) 70%);
  top: -10%;
  left: -10%;
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

/* Light 2: Medium glowing peach wave */
.light-2 {
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(255, 220, 160, 0.6) 0%, rgba(255, 140, 0, 0) 70%);
  bottom: -10%;
  right: -10%;
  animation: float-blob-2 20s infinite alternate ease-in-out;
}

/* Light 3: Shifting white/gold center highlight */
.light-3 {
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 140, 0, 0) 70%);
  top: 30%;
  left: 30%;
  animation: float-blob-3 30s infinite alternate ease-in-out;
}

/* Slow, organic, shifting floating animations */
@keyframes float-blob-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(15%, 10%) scale(1.1);
  }
  100% {
    transform: translate(-5%, 20%) scale(0.9);
  }
}

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

@keyframes float-blob-3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10%, 15%) scale(1.15);
  }
  100% {
    transform: translate(15%, -10%) scale(0.95);
  }
}

.services-container-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3; /* Floats above both video and noise layers for maximum readability */
}

.services-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em; /* Relaxed spacing for modern elegance */
  margin-bottom: 16px;
}

.services-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.55;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px auto;
  opacity: 0.9;
}

/* Services Rows List */
.services-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.service-row {
  display: grid;
  grid-template-columns: 5.5fr 4.5fr;
  align-items: center;
  padding: 32px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Left elements: number, icon, heading */
.service-row-left {
  display: flex;
  align-items: center;
  gap: 32px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-number {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  width: 24px;
}

.service-icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.service-heading {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Right elements: text paragraph */
.service-row-right {
  display: flex;
  justify-content: flex-end;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-text {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.85;
  font-weight: 300;
  max-width: 500px;
  margin: 0;
}

/* Dynamic Focus/Dim Interlocking Animation */
.services-list:hover .service-row {
  opacity: 0.45;
}

.services-list .service-row:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.06);
}

.service-row:hover .service-row-left {
  transform: translateX(12px);
}

.service-row:hover .service-icon-box {
  transform: scale(1.1) rotate(8deg);
  background-color: rgba(255, 255, 255, 0.15);
}

.service-row:hover .service-row-right {
  transform: translateX(-12px);
}

/* Responsive adjustment for Mobile/Tablet */
@media (max-width: 991px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 16px;
  }
  
  .service-row-left {
    gap: 20px;
  }
  
  .service-row-right {
    justify-content: flex-start;
    padding-left: 76px; /* Offset to align perfectly with heading */
  }
}

@media (max-width: 480px) {
  .service-row-right {
    padding-left: 44px; /* Slightly tighter offset on small phones */
  }
}

/* ----------------------------------------------------
   Portfolio Section
------------------------------------------------------- */
.portfolio-section {
  padding: 120px 0 180px 0;
  position: relative;
  background-color: var(--color-bg);
  overflow: hidden;
}

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

.portfolio-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em; /* Clean, airy letter spacing */
  color: var(--color-dark);
  margin-bottom: 16px;
}

.portfolio-subtitle {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px auto;
  color: var(--color-text-gray);
}

.portfolio-rows {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.portfolio-row {
  display: grid;
  grid-template-columns: 4.5fr 5.5fr;
  gap: 80px;
  align-items: center;
}

.portfolio-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Premium 3D Container (Squircles background removed) */
.portfolio-squircle {
  width: 100%;
  max-width: 440px;
  height: 280px;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-squircle:hover {
  transform: translateY(-4px) scale(1.05);
}

.three-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.portfolio-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.portfolio-badge {
  background-color: var(--color-orange-light);
  color: var(--color-orange);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.squircle-multimedia + .portfolio-content-col .portfolio-badge {
  background-color: #EEEEEE;
  color: var(--color-dark);
}

.portfolio-row-heading {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em; /* Relaxed letter spacing */
  color: var(--color-dark);
  margin-bottom: 20px;
}

.portfolio-row-text {
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--color-text-gray);
  margin-bottom: 28px;
}

.portfolio-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.skill-tag {
  background-color: #F5F5F5;
  color: var(--color-text-gray);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background-color: #EAEAEA;
  color: var(--color-dark);
}

.btn-portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-dark);
  color: #FFFFFF;
  padding: 15px 36px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.btn-portfolio-link svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-portfolio-link:hover {
  background-color: var(--color-orange);
  transform: translateY(-2px);
}

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

.portfolio-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
  width: 100%;
}



/* ----------------------------------------------------
   Sleek Light Compact Footer & Contact Form
------------------------------------------------------- */
.site-footer {
  background-color: #000000; /* Obsidian Pitch Black */
  color: #FFFFFF;
  padding: 75px 0 45px 0; /* Relaxed padding for elegant vertical breathing room */
  position: relative;
  overflow: hidden;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Fluid Abstract Gradient Aura Background (Vibrant Light Theme Waving Colors) */
.footer-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Highly performant CSS Grain Overlay using 0kb SVG turbulence */
.footer-bg-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.045; /* Super refined, micro-fine premium analogue grain texture */
  z-index: 5;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px); /* Increased blur for extremely soft, subtle transitions */
  pointer-events: none;
  mix-blend-mode: screen; /* Perfect luminous blending on dark canvas */
}

/* Floating animation keyframes for fluid waving effect */
@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(15%, 10%) scale(1.2) rotate(180deg); }
  100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1.2) rotate(0deg); }
  50% { transform: translate(-10%, -15%) scale(0.85) rotate(-180deg); }
  100% { transform: translate(0, 0) scale(1.2) rotate(-360deg); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(0.9) rotate(0deg); }
  50% { transform: translate(12%, -10%) scale(1.1) rotate(120deg); }
  100% { transform: translate(0, 0) scale(0.9) rotate(360deg); }
}

.orb-1 {
  width: 500px;
  height: 500px;
  background-color: #FF5C1A; /* Signature Vibrant Orange */
  top: -160px;
  left: -100px;
  opacity: 0.07; /* Delicate, subtle orange glow */
  animation: floatOrb1 18s infinite ease-in-out;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background-color: #8A4FFF; /* Vibrant Royal Violet */
  bottom: -200px;
  right: -100px;
  opacity: 0.06; /* Soft, delicate violet glow */
  animation: floatOrb2 22s infinite ease-in-out;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background-color: #FF2E93; /* Energetic Hot Magenta */
  top: 20%;
  left: 35%;
  opacity: 0.05; /* Subdued magenta glow */
  animation: floatOrb3 15s infinite ease-in-out;
}

.footer-container {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 5.5fr 4.5fr;
  gap: 64px; /* Expanded gap to let columns breathe beautifully */
  align-items: flex-start;
  margin-bottom: 48px; /* Increased bottom margin before the copyright bar */
}

.footer-badge {
  background-color: var(--color-orange-light);
  color: var(--color-orange);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px; /* Relaxed margin */
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-heading {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem); /* Scaled down slightly */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em; /* Spacious letter spacing */
  margin-bottom: 16px; /* Relaxed margin */
  color: #FFFFFF;
}

.footer-form-sub {
  color: #A3A3A3; /* Sleek, legible soft silver gray */
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 28px; /* Relaxed margin */
  max-width: 480px;
}

/* Glassmorphic Dark Contact Form */
.connect-form {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Relaxed gap between fields */
  max-width: 460px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px; /* More space between label and input */
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #888888;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  background-color: rgba(255, 255, 255, 0.03); /* Translucent premium dark fill */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 18px; /* Relaxed, premium form padding */
  font-family: var(--font-secondary);
  color: #FFFFFF;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--color-orange);
  box-shadow: 0 0 10px rgba(255, 92, 26, 0.15);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #666666;
}

/* Submit Button */
.btn-send-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-start;
  background-color: var(--color-orange);
  color: #FFFFFF;
  border: none;
  padding: 14px 28px; /* Relaxed button padding */
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.send-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-send-message:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 92, 26, 0.25);
}

.btn-send-message:hover .send-icon {
  transform: translate(3px, -3px);
}

/* Right Column Brand & Info */
.footer-info-col {
  display: flex;
  flex-direction: column;
  gap: 36px; /* Relaxed vertical layout gap */
  padding-top: 5px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
  color: #FFFFFF;
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
  display: inline-block;
}

.footer-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand-bio {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #A3A3A3;
  max-width: 420px;
}

/* Premium Contact Information List */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #A3A3A3;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.contact-info-item iconify-icon {
  color: var(--color-orange);
  flex-shrink: 0;
}

.contact-link {
  transition: var(--transition-fast);
}

.contact-link:hover {
  color: #FFFFFF;
}

/* Premium Icon-Only Socials Row */
.footer-socials-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px; /* Relaxed spacing above the social icons */
}

.footer-social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; /* Slightly larger, luxurious touchpoints */
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03); /* Dark glass button background */
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

.footer-social-icon-link:hover {
  color: var(--color-orange);
  background-color: var(--color-orange-light);
  border-color: rgba(255, 92, 26, 0.15);
  transform: translateY(-3px) scale(1.08);
}

/* Bottom bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Soft, subtle dark boundary line */
  padding-top: 28px; /* Relaxed spacing */
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666666;
  font-size: 0.8rem;
}

/* ----------------------------------------------------
   Responsive Adjustments (Mobile, Tablet, Desktop)
------------------------------------------------------- */

/* Notebooks & Large Tablets */
@media (max-width: 1024px) {
  :root {
    --header-height: 80px;
  }
  
  .container {
    padding-right: 32px;
    padding-left: 32px;
  }
  
  .background-grid {
    padding: 0 32px;
  }

  .site-header {
    padding: 0 32px;
  }

  .hero-grid {
    gap: 40px;
  }

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

  .portfolio-row {
    gap: 40px;
  }
}

/* Small Tablets & Large Mobile */
@media (max-width: 768px) {
  /* Toggle visibility of Mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Transform desktop nav to overlay drawer */
  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    border-radius: 0;
    background-color: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
  }

  .nav-container.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 36px;
    margin-right: 0;
    margin-bottom: 48px;
  }

  .nav-link {
    font-size: 1.3rem;
    text-align: center;
  }

  .btn-lets-talk-nav {
    border-color: rgba(255, 255, 255, 0.2);
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
  }
  
  .btn-lets-talk-nav:hover {
    background-color: var(--color-orange);
    color: #FFFFFF;
    border-color: var(--color-orange);
  }

  /* Hero & content stacking */
  .hero-title {
    margin-bottom: 40px;
  }

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

  .hero-image-col {
    max-width: 380px;
    margin: 0 auto;
  }

  .hero-content-col {
    padding-top: 0;
    align-items: center;
    text-align: center;
  }

  .hero-intro-text {
    margin-bottom: 36px;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
    gap: 16px;
  }

  .btn-resume, .btn-talk {
    width: 100%;
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .background-grid {
    grid-template-columns: repeat(7, 1fr);
  }
  .grid-line:nth-child(n+8) {
    display: none;
  }

  /* Portfolio Responsive Adjustments */
  .portfolio-row {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .portfolio-content-col {
    align-items: center;
  }

  .portfolio-skills-tags {
    justify-content: center;
  }

  .portfolio-squircle {
    max-width: 360px;
    height: 240px;
  }

  /* Responsive Footer (768px) - Compact Sizing */
  .site-footer {
    padding: 50px 0 30px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 30px;
  }

  .footer-info-col {
    padding-top: 0;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .footer-contact-info {
    align-items: center;
  }

  .footer-socials-row {
    justify-content: center;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 20px;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  .container {
    padding-right: 20px;
    padding-left: 20px;
  }
  
  .background-grid {
    padding: 0;
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-line:nth-child(n+5) {
    display: none;
  }

  .site-header {
    padding: 0 20px;
  }

  .hero-title {
    margin-bottom: 30px;
  }

  .hero-intro-text {
    font-size: 1.1rem;
  }

  .services-section {
    padding: 80px 0;
  }
  
  .services-subtitle {
    margin-bottom: 60px;
  }

  /* Responsive Footer (480px) */
  .footer-heading {
    font-size: 1.8rem;
  }

  .connect-form {
    width: 100%;
  }

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

/* ----------------------------------------------------
   Design & Multimedia Page Specific Styles
------------------------------------------------------- */
.portfolio-page-hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 90px;
  position: relative;
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid #FFC2A8;
  background-color: #FFF2EB;
  color: var(--color-orange);
  margin-bottom: 36px;
  transition: var(--transition-smooth);
}

.back-home-link svg {
  width: 26px;
  height: 26px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-home-link:hover {
  background-color: var(--color-orange);
  color: #FFFFFF;
  border-color: var(--color-orange);
  transform: translateX(-5px);
}

.portfolio-page-title {
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.portfolio-page-intro {
  font-size: 1.25rem;
  line-height: 1.62;
  color: var(--color-text-gray);
  max-width: 840px;
  margin-bottom: 60px;
  font-weight: 400;
}

.sub-section-label {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Brands Marquee Ticker */
.brands-section {
  margin-bottom: 50px;
  overflow: hidden;
  width: 100%;
}

.brands-marquee-container {
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.brands-marquee-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
  align-items: center;
}

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

.brand-logo-item {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-item img {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.2) opacity(0.35);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  pointer-events: none;
}

/* Light mode styling matches perfectly, but we make sure they fade in nicely */
.brand-logo-item:hover img {
  filter: grayscale(0%) brightness(1) opacity(1);
  transform: scale(1.05);
}

/* Optical visual weight adjustments for specific logos */
.brand-logo-item img[src*="Bustle"] {
  height: 50%; /* Scale down wide text logo to look balanced */
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 40px)); /* perfect half scroll translation offset */
  }
}

/* Tools Section */
.tools-section {
  margin-bottom: 80px;
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tool-badge-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px 18px;
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
  cursor: default;
  user-select: none;
}

.tool-badge-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 92, 26, 0.3);
  box-shadow: 0 4px 15px rgba(255, 92, 26, 0.08);
}

.tool-icon {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 6px;
  color: #FFFFFF;
}

.figma-icon {
  background: transparent;
}

.figma-icon svg {
  width: 14px;
  height: auto;
}

.adobe-id-icon {
  background-color: #FF3366;
}

.adobe-ai-icon {
  background-color: #FF9A00;
}

.adobe-ps-icon {
  background-color: #31A8FF;
}

.adobe-ae-icon {
  background-color: #9999FF;
}

.adobe-pr-icon {
  background-color: #EA77FF;
}

/* Development Tool Colors */
.dev-python-icon {
  background: transparent;
}

.dev-js-icon {
  background-color: #F7DF1E;
  color: #000000 !important;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 0.8rem;
}

.dev-node-icon {
  background: transparent;
}

.dev-html-icon {
  background: transparent;
}

.dev-git-icon {
  background: transparent;
}

.dev-ai-badge {
  background-color: #00A2FF;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
}

.tool-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark);
}

/* Portfolio Grid Layout */
.portfolio-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.portfolio-item-card {
  position: relative;
  aspect-ratio: 1.25 / 1;
  border-radius: 24px;
  overflow: hidden;
  background-color: #F8F8F8;
  cursor: pointer;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.015);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}

.portfolio-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item-card:hover .card-img {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.portfolio-item-card:hover .card-overlay {
  opacity: 0.92;
}

.card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.75); /* Denser white background for high text contrast */
  backdrop-filter: blur(8px); /* Subtle frosted glass refraction */
  -webkit-backdrop-filter: blur(8px); /* Safari & iOS support */
  border: 1px solid rgba(255, 255, 255, 0.25); /* Much softer subtle edge border */
  color: var(--color-orange);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Softened resting shadow */
}

.portfolio-item-card:hover .card-badge {
  background: rgba(255, 255, 255, 0.9); /* Denses to near-solid white on hover for peak legibility */
  backdrop-filter: blur(12px); /* Slightly increased hover blur */
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.4); /* Soft subtle hover border */
  color: var(--color-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-title-box {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 5;
}

.card-project-title {
  color: #FFFFFF;
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
}

/* Tablet Media Queries for Design & Multimedia Page */
@media (max-width: 768px) {
  .portfolio-page-hero {
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 60px;
  }
  
  .portfolio-page-intro {
    margin-bottom: 40px;
  }

  .tools-section {
    margin-bottom: 50px;
  }

  .portfolio-grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ----------------------------------------------------
   Premium Orange Split-Panel (Double-Door) Transition
------------------------------------------------------- */
.page-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  pointer-events: all;
  overflow: hidden;
}

.curtain-panel {
  position: absolute;
  top: 0;
  height: 100%;
  background-color: var(--color-orange); /* Brand Orange */
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}

.panel-left {
  left: 0;
  width: 50.5vw; /* Slightly wider than 50% to prevent hairline gap in center */
  transform-origin: left center;
  transform: translateX(0);
}

.panel-right {
  right: 0;
  width: 50.5vw; /* Slightly wider to prevent hairline gap */
  transform-origin: right center;
  transform: translateX(0);
}

/* Slides outwards to reveal content */
.page-curtain.slide-out {
  pointer-events: none;
}

.page-curtain.slide-out .panel-left {
  transform: translateX(-100%);
}

.page-curtain.slide-out .panel-right {
  transform: translateX(100%);
}

/* Instantly setups doors off-screen for exit transition */
.page-curtain.slide-in .panel-left {
  transform: translateX(-100%);
  transition: none !important;
}

.page-curtain.slide-in .panel-right {
  transform: translateX(100%);
  transition: none !important;
}

/* Doors slam shut towards the center */
.page-curtain.active .panel-left,
.page-curtain.active .panel-right {
  transform: translateX(0);
}

.curtain-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 100001;
  mix-blend-mode: screen; /* Perfect keying to make the black background transparent */
  width: 160px;
  height: 160px;
  opacity: 1;
  /* When doors slam shut: delay loader fade-in by 0.35s so the orange curtain is closed first */
  transition: opacity 0.3s ease 0.35s, transform 0.3s ease 0.35s;
}

/* Fade out and shrink loader when curtain opens */
.page-curtain.slide-out .curtain-loader {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  /* When doors slide open: fade out immediately without delay */
  transition: opacity 0.25s ease 0s, transform 0.25s ease 0s;
}

.curtain-spinner {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: spinLoader 5s linear infinite; /* Smooth majestic rotation */
}

@keyframes spinLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ----------------------------------------------------
   Project Sub-Page Template Specific Styles
------------------------------------------------------- */
.project-details-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 90px;
  position: relative;
}

.project-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.project-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--color-dark);
  margin-top: 16px;
  margin-bottom: 32px;
}

.project-metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 80px;
  max-width: 900px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 40px;
  padding-bottom: 0;
  margin-bottom: 28px;
}

.project-metadata-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-metadata-label {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-text-gray);
}

.project-metadata-value {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-dark);
}

.project-metadata-value a {
  color: var(--color-orange);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.project-metadata-value a:hover {
  opacity: 0.8;
}

.project-description-text {
  font-size: 1.25rem;
  line-height: 1.62;
  color: var(--color-text-gray);
  max-width: 920px;
  margin-bottom: 60px;
  white-space: pre-line;
}

.project-showcase-grid {
  display: block; /* Necessary for multi-column Masonry flow */
  column-count: 2; /* 2 columns on desktop */
  column-gap: 40px;
  width: 100%;
}

/* Preserve original premium layout if exactly 2 images exist */
.project-showcase-grid[data-count="2"] {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  column-count: unset;
  gap: 40px;
}

/* Single image layout */
.project-showcase-grid[data-count="1"] {
  display: grid;
  grid-template-columns: 1fr;
  column-count: unset;
}

.project-showcase-card {
  display: inline-block; /* Crucial so that cards do not split across columns */
  width: 100%;
  break-inside: avoid; /* Prevent card container splitting */
  margin-bottom: 40px; /* Vertical gap between stacked items */
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.04);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.03);
  cursor: zoom-in;
}

.project-showcase-card:hover {
  transform: translateY(-8px) scale(1.005);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.08);
}

.project-showcase-card img {
  width: 100%;
  height: auto; /* Let image natural aspect ratio and resolutions dictate height */
  display: block;
}

/* Support original asymmetric grid aspect ratios for 2-image setup */
.project-showcase-grid[data-count="2"] .project-showcase-card {
  display: block;
  margin-bottom: 0;
}

.project-showcase-grid[data-count="2"] .project-showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-tall {
  aspect-ratio: 3 / 4;
}

.showcase-wide {
  aspect-ratio: 1.4 / 1;
}

/* Ensure link support for standard card selector */
a.portfolio-item-card {
  display: block;
  text-decoration: none;
}

@media (max-width: 991px) {
  .project-showcase-grid {
    column-gap: 24px;
  }
  .project-showcase-card {
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .project-details-container {
    padding: 0 24px;
  }
  .project-metadata-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }
  .project-showcase-grid {
    column-count: 1;
    display: block !important;
  }
  .project-showcase-grid[data-count="2"] {
    display: block !important;
  }
  .project-showcase-card {
    margin-bottom: 24px !important;
  }
  .showcase-tall, .showcase-wide {
    aspect-ratio: unset; /* Allow standard stretching on mobile */
  }
  .project-showcase-grid[data-count="2"] .project-showcase-card img {
    height: auto;
  }
}

/* Other Works Masonry Grid (Pure Visual Gallery) */
.other-works-section {
  padding: 100px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.other-works-title {
  font-size: clamp(24px, 4vw, 32px);
  font-family: 'Neue Montreal', sans-serif;
  font-weight: 700;
  text-align: left;
  margin-bottom: 40px;
  color: #000;
}

.other-works-masonry {
  display: block;
  column-count: 3; /* 3 columns on desktop */
  column-gap: 16px;
  width: 100%;
}

.other-works-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background-color: #111;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.other-works-item:hover {
  transform: scale(1.02);
}

.other-works-item img,
.other-works-item video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .other-works-masonry {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .other-works-masonry {
    column-count: 1;
    column-gap: 0;
  }
  .other-works-item {
    margin-bottom: 12px;
  }
}

/* Custom scrollbars for the lightbox scrollable media container */
.lightbox-media-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.lightbox-media-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.lightbox-media-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.lightbox-media-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
