/* ==========================================================================
   KELLEM'S STUDIO - PREMIUM PORTFOLIO DESIGN SYSTEM & STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-color: #030303;
  --bg-darker: #000000;
  --text-color: #ffffff;
  --text-muted: #8e8e93;
  --accent-color: #ffffff;
  --accent-muted: rgba(255, 255, 255, 0.35);
  --accent-glow: rgba(255, 255, 255, 0.08);
  
  /* Glassmorphism Styles */
  --glass-bg: rgba(6, 6, 6, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  --glass-glow: 0 0 20px rgba(255, 255, 255, 0.02);
  
  /* Fonts */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-snappy: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);

  /* Header Spacing Token */
  --header-y: 1.8rem;
}

@media (max-width: 768px) {
  :root {
    --header-y: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   02. RESET & GLOBAL STYLES
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden; /* Restore standard vertical scrollbar */
  min-height: 100vh;
  line-height: 1.5;
  background-color: #020202;
  background: transparent;
}

/* Fixed Background Layer (Stationary Cosmic Wave Background) */
.fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #020202;
  background: 
    radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%), /* Vignette and edge darkening */
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), /* Lighter dark overall overlay */
    url('Assets/Background.png') no-repeat;
  background-size: cover;
  background-position: center;
  z-index: -3; /* Placed behind glow-container (-2) */
  pointer-events: none;
}

/* Page Content Wrapper */
.page-content {
  position: relative;
  width: 100%;
  z-index: 1;
  opacity: 0;
  transform: scale(0.97) translateY(15px);
  transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-content.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Parallax Text Styles */
.parallax-text {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

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

/* Base Typographical Elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-padding {
  padding: 10rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 6rem 0;
  }
  .container {
    padding: 0 1.5rem;
  }
}

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

/* --------------------------------------------------------------------------
   03. CUSTOM CURSOR
   -------------------------------------------------------------------------- */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100002;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.custom-cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100001;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease, 
              border-color 0.3s ease,
              transform 0.08s linear;
}

.custom-cursor-follower.hovering {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.8);
}

.custom-cursor-follower.view-project {
  width: 70px;
  height: 70px;
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(0, 0, 0, 0.7);
}

.custom-cursor-follower.view-project::before {
  content: 'VIEW';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-color);
  letter-spacing: 2px;
}

/* Hide cursor on touch devices */
@media (max-width: 1024px) {
  .custom-cursor,
  .custom-cursor-follower {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  body, a, button, select, input, textarea {
    cursor: none;
  }
}

/* --------------------------------------------------------------------------
   04. BACKGROUND GLOW EFFECTS
   -------------------------------------------------------------------------- */
.glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.03;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(0,0,0,0) 70%);
  top: -20%;
  left: -20%;
  animation: floatOrb1 30s infinite alternate ease-in-out;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(0,0,0,0) 70%);
  bottom: -15%;
  right: -10%;
  animation: floatOrb2 25s infinite alternate ease-in-out;
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0) 70%);
  top: 40%;
  left: 35%;
  animation: floatOrb3 35s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.1); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, -80px) scale(0.95); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 80px) scale(1.05); }
}

/* --------------------------------------------------------------------------
   05. GLASS PANELS & DECORATIONS
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 20px;
  transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   06. BUTTONS & UI ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.4rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--text-color);
  color: var(--bg-darker);
  border-color: var(--text-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-color);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  border-color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 0.7rem 1.6rem;
  font-size: 0.8rem;
}



/* --------------------------------------------------------------------------
   08. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999; /* Display on top of all text/elements for unified texture */
  opacity: 0.035; /* Subtle texture layer */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center; /* Center items vertically */
  z-index: 1000;
  pointer-events: auto;
  background-color: rgba(3, 3, 3, 0);
  border-bottom: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  transform: translateY(var(--header-y));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
}

.global-header.header-hidden {
  transform: translateY(-100%);
}

@media (max-width: 768px) {
  .global-header {
    padding: 1rem 2rem;
  }
}

.hero-logo {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 2px;
  color: var(--text-color);
}

.hero-logo span:last-child {
  display: inline-block;
  transform-origin: top left;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, filter 0.3s ease;
}

.hero-logo.logo-broken span:last-child {
  transform: translateY(18px) rotate(80deg);
  animation: logo-s-flicker 2.5s infinite alternate ease-in-out;
}

@keyframes logo-s-flicker {
  0%, 100% { opacity: 0.15; color: #555; filter: none; }
  3% { opacity: 1; color: #ff453a; filter: drop-shadow(0 0 8px rgba(255, 69, 58, 0.7)); }
  6% { opacity: 0.1; color: #222; filter: none; }
  9% { opacity: 0.95; color: #ff453a; filter: drop-shadow(0 0 6px rgba(255, 69, 58, 0.6)); }
  12% { opacity: 0.2; color: #444; filter: none; }
  15% { opacity: 1; color: #ff453a; filter: drop-shadow(0 0 10px rgba(255, 69, 58, 0.8)); }
  55% { opacity: 1; color: #ff453a; filter: drop-shadow(0 0 10px rgba(255, 69, 58, 0.8)); }
  57% { opacity: 0.05; color: #111; filter: none; }
  59% { opacity: 0.85; color: #ff453a; filter: drop-shadow(0 0 6px rgba(255, 69, 58, 0.5)); }
  61% { opacity: 0.1; color: #333; filter: none; }
  63% { opacity: 1; color: #ff453a; filter: drop-shadow(0 0 8px rgba(255, 69, 58, 0.7)); }
  85% { opacity: 1; color: #ff453a; filter: drop-shadow(0 0 8px rgba(255, 69, 58, 0.7)); }
  87% { opacity: 0.2; color: #555; filter: none; }
  89% { opacity: 0.95; color: #ff453a; filter: drop-shadow(0 0 8px rgba(255, 69, 58, 0.7)); }
  91% { opacity: 0.1; color: #222; filter: none; }
}


.hero-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-nav {
    display: none; /* Hide on mobile/tablet to look minimal */
  }
}

.hero-nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  position: relative;
  padding: 0.4rem 0;
  transition: letter-spacing 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-nav-link:hover {
  color: var(--text-color);
  letter-spacing: 3.5px; /* Increase letter spacing slightly */
}

/* Hover underline */
.hero-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Active indicator dot */
.hero-nav-link.active::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--text-color);
  border-radius: 50%;
}

/* Top-Right Layout */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-talk-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-color);
  transition: var(--transition-snappy);
}

.nav-talk-btn:hover {
  opacity: 0.9;
}

.btn-switch-icon {
  margin-left: 0.2rem;
  transition: var(--transition-snappy), color 0.3s ease;
}

.switch-thumb {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), fill 0.3s ease;
}

.nav-talk-btn:hover .btn-switch-icon {
  color: #ff453a; /* High-end vibrant red */
}

.nav-talk-btn:hover .switch-thumb {
  transform: translateX(8px);
  fill: #ff453a;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 480px) {
  .nav-talk-btn,
  .nav-divider {
    display: none; /* Hide button/divider on very small screen */
  }
}

.nav-menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  outline: none;
  transition: var(--transition-snappy);
}

.nav-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.drawer-icon {
  color: var(--text-color);
  transition: var(--transition-snappy), color 0.3s ease;
}

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

.nav-menu-btn:hover .drawer-top {
  transform: translateX(3px);
}

.nav-menu-btn:hover .drawer-mid {
  transform: translateX(1.5px);
}

.nav-menu-btn:hover .drawer-bot {
  transform: translateX(4.1px);
}

.hero-content-minimal {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-title-minimal {
  font-family: var(--font-headings);
  font-size: 6.5rem;
  font-weight: 700; /* Bold sans-serif heading */
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-transform: none; /* Standout casing capitalization */
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15), 0 0 60px rgba(255, 255, 255, 0.08); /* Soft white glow */
}

@media (max-width: 991px) {
  .hero-title-minimal {
    font-size: 4.8rem;
  }
}

@media (max-width: 576px) {
  .hero-title-minimal {
    font-size: 3.2rem;
  }
}

.hero-sub-row {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* Hero Side and Bottom Overlays */
.hero-side-dots {
  position: fixed;
  left: 4.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 100;
}

.side-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.side-dot:hover,
.side-dot.active {
  background-color: var(--text-color);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  transform: scale(1.3);
}

.hero-side-scroll {
  position: absolute;
  right: 4.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 10;
}

.hero-side-scroll span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3.5px;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
}

.hero-bottom-bar {
  position: absolute;
  bottom: 3.5rem;
  left: 0;
  width: 100%;
  padding: 0 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.hero-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-align: left;
}

.hero-bottom-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-color);
  transition: opacity 0.3s ease;
}

.hero-bottom-center:hover {
  opacity: 0.7;
}

.explore-arrow {
  animation: bounceArrow 2s infinite ease-in-out;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-social-links {
  display: flex;
  gap: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.hero-social-links a {
  transition: color 0.3s ease;
}

.hero-social-links a:hover {
  color: var(--text-color);
}

.hero-divider {
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.15);
}

.hero-est {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* Hide side/bottom decorative overlays on tablet and mobile viewports to look clean */
@media (max-width: 991px) {
  .hero-side-dots,
  .hero-side-scroll,
  .hero-bottom-bar {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   09. SECTIONS HEADERS & UTILS
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 6rem;
  max-width: 700px;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-desc.centered {
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   10. HORIZONTAL PROJECTS CAROUSEL/SLIDER
   -------------------------------------------------------------------------- */
.slider-wrapper {
  position: relative;
  width: 100%;
  margin-top: 2rem;
}

.slider-container {
  overflow: hidden; /* Hide overflow outside the track */
  width: 100%;
  padding: 3rem 0; /* Add vertical padding so card scaling/shadows aren't clipped */
  cursor: grab;
  position: relative;
}

.slider-container:active {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  gap: 4rem; /* Gap between slide containers */
  align-items: center;
  transition: transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

@media (max-width: 768px) {
  .slider-track {
    gap: 2rem;
  }
}

.slider-slide {
  flex-shrink: 0;
  width: 460px; /* Reduced to 460px for compact, ultra-premium editorial spacing */
  opacity: 0.3;
  filter: grayscale(100%) blur(1px);
  transform: scale(0.9);
  transition: transform 2s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto; /* Allow clicks to snap center */
}

@media (max-width: 991px) {
  .slider-slide {
    width: 380px; /* Reduced to 380px */
  }
}

@media (max-width: 768px) {
  .slider-slide {
    width: 64vw; /* Reduced to 64vw */
  }
}

/* Active center slide styling */
.slider-slide.active {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

/* Project Card layout within slider */
.project-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(15px) saturate(140%);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56%; /* 16:9 widescreen ratio */
  overflow: hidden;
  background-color: var(--bg-darker);
}

.project-card-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.05);
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (max-width: 576px) {
  .project-card-content {
    padding: 1.8rem;
  }
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-card-category {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.project-card-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.15);
}

.project-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-transform: uppercase;
  transition: var(--transition-snappy);
}

@media (max-width: 576px) {
  .project-card-title {
    font-size: 1.4rem;
  }
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.7; /* Dimmed by default, gets clearer on hover */
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
  background: transparent;
  border: none;
  outline: none;
  align-self: flex-start;
  position: relative;
  padding-bottom: 3px;
  cursor: none;
  opacity: 0; /* Hidden by default, fades in on hover */
  transform: translateY(10px); /* Subtle lift on hover */
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-btn .arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------
   ACTIVE PROJECT CARD HOVER STATE
   ---------------------------------- */
.slider-slide.active:hover .project-card {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-glow), 0 30px 60px rgba(0, 0, 0, 0.8);
}

.slider-slide.active:hover .project-card-image-wrapper img {
  filter: brightness(0.95) contrast(1.05);
  transform: scale(1.05); /* Slight zoom */
}

.slider-slide.active:hover .project-card-desc {
  opacity: 1; /* Title and description become clearer */
}

.slider-slide.active:hover .project-card-btn {
  opacity: 1; /* View project button appears */
  transform: translateY(0);
}

.slider-slide.active .project-card-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.slider-slide.active .project-card-btn:hover .arrow {
  transform: translateX(5px);
}

/* ----------------------------------
   NAVIGATION ARROWS
   ---------------------------------- */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: var(--transition-snappy);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev {
  left: 2rem;
}

.slider-arrow.next {
  right: 2rem;
}

/* Hide arrows on smaller viewport and rely on touch swiping */
@media (max-width: 1024px) {
  .slider-arrow {
    display: none;
  }
}

/* ----------------------------------
   CONTROLS & TIMELINE INDICATOR
   ---------------------------------- */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.slider-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.slider-number-total {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.slider-progress-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.slider-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 10%; /* Dynamically adjusted via JS */
  background: var(--text-color);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   11. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1.5rem 0;
}

.services-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee-reverse 35s linear infinite;
  will-change: transform;
}

/* Pause sliding animation on hover so details can be easily read */
.services-wrapper:hover .services-track {
  animation-play-state: paused;
}

.service-card {
  flex-shrink: 0;
  width: 380px;
  padding: 3.5rem 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  border-radius: 24px;
  overflow: hidden; /* Clips zooming background image */
  background: transparent; /* Transparent so layers show through */
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Service Card Background Image Layer (Grayscale Dark cover) */
.service-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(100%) brightness(0.75); /* Brightened default B&W image */
}

/* Service Card Dark Vignette Overlay */
.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(2, 2, 2, 0.65) 0%, rgba(2, 2, 2, 0.25) 100%), rgba(2, 2, 2, 0.1);
  z-index: -1;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .services-track {
    gap: 1.5rem;
    animation-duration: 25s;
  }
}

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

.service-icon {
  margin-bottom: 2rem;
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.service-icon svg {
  stroke-width: 1.25;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85); /* Slightly muted, brightens on hover */
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-right: 2rem; /* Keep text clear of slide arrow */
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-arrow {
  position: absolute;
  bottom: 3.5rem;
  right: 2.5rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover States for Cards */
.service-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-glow), 0 30px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(-8px);
}

.service-card:hover .service-card-bg {
  transform: scale(1.08); /* Background zooms in slightly */
  filter: grayscale(100%) brightness(0.95); /* Bright image on hover */
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(2, 2, 2, 0.55) 0%, rgba(2, 2, 2, 0.15) 100%), rgba(2, 2, 2, 0.05);
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  transform: scale(1.05);
}

.service-card:hover .service-title {
  color: var(--text-color); /* Bright white */
}

.service-card:hover .service-desc {
  color: rgba(255, 255, 255, 0.85); /* Brighter description copy */
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--text-color);
}

/* Responsive updates for Mobile and Tablet Viewports */
@media (max-width: 768px) {
  .services-wrapper {
    overflow: visible;
    padding: 0;
  }
  .services-track {
    display: flex;
    flex-direction: column; /* Stack cards cleanly on mobile */
    gap: 1.5rem;
    width: 100% !important; /* Full width viewport fit */
    animation: none !important; /* Disable marquee */
    transform: none !important;
    padding: 0 1.5rem;
  }
  .service-card {
    width: 100% !important; /* Stacked cards span screen width */
    height: auto;
    padding: 3rem 2rem;
  }
  /* Hide cloned cards on mobile to prevent duplicating the layout list length */
  .service-card.cloned-card {
    display: none !important;
  }
  /* Always show indicator arrows on touch devices */
  .service-arrow {
    bottom: 3.5rem;
    right: 2rem;
    opacity: 1;
    transform: none;
    color: var(--text-color);
  }
}

/* --------------------------------------------------------------------------
   12. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-text-lead {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .about-text-lead {
    font-size: 1.5rem;
  }
}

.about-text-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-text-body:last-of-type {
  margin-bottom: 3rem;
}

.about-signature {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 1.2rem;
}

.sig-name {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.sig-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Stats Styling */
.stats-glass-card {
  padding: 4rem 3rem;
}

@media (max-width: 576px) {
  .stats-glass-card {
    padding: 3rem 1.8rem;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 2.5rem;
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-color);
  letter-spacing: -0.03em;
}

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

.studio-motto {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.studio-motto p {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. CONTACT SECTION & PREMIUM FORM
   -------------------------------------------------------------------------- */
.contact-card {
  padding: 5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* Clips background to rounded corners */
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), var(--glass-glow);
  z-index: 1;
}

/* Background image inside the card tile (isolated grayscale filter) */
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%), /* Vignette overlay */
    linear-gradient(rgba(10, 10, 10, 0.65), rgba(10, 10, 10, 0.65)), /* Dark overall mask */
    url('Assets/ContactCard.png');
  background-size: contain; /* Show the full picture without cropping or zooming in */
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%); /* Grayscale filter strictly isolated to the background image */
  z-index: -2; /* Sits behind content */
}


/* Stack content above backgrounds */
.contact-header,
.contact-form {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 3.5rem 2rem;
  }
}

.contact-header {
  margin-bottom: 4rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.contact-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .contact-title {
    font-size: 2.2rem;
  }
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    margin-bottom: 3rem;
  }
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .form-group.full-width {
    grid-column: span 1;
  }
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  transition: var(--transition-snappy);
}

.form-input,
.form-select,
.form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.7rem 0 1rem 0;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  width: 100%;
  transition: var(--transition-snappy);
}

.form-select {
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: none;
}

/* Custom styling for dropdown select options in dark mode */
.form-select option {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 10px;
}

.form-textarea {
  resize: vertical;
}

/* Sliding Focus Underline */
.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus ~ .input-line,
.form-select:focus ~ .input-line,
.form-textarea:focus ~ .input-line {
  transform: scaleX(1);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.form-input:focus ~ .form-label,
.form-select:focus ~ .form-label,
.form-textarea:focus ~ .form-label {
  color: var(--text-color);
}

.form-actions {
  display: flex;
  justify-content: center;
}

/* Spinner Styles for loading state */
.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  animation: rotateSpinner 1s linear infinite;
}

.btn-spinner .path {
  stroke: var(--bg-darker);
  stroke-linecap: round;
  animation: dashSpinner 1.5s ease-in-out infinite;
}

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

@keyframes dashSpinner {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Form Status Message */
.form-status {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-align: center;
  transition: var(--transition-snappy);
}

.form-status.success {
  color: #34c759;
}

.form-status.error {
  color: #ff3b30;
}

/* --------------------------------------------------------------------------
   14. PROJECT DETAILS MODAL
   -------------------------------------------------------------------------- */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

.project-modal-wrapper {
  width: 90%;
  max-width: 1000px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.active .project-modal-wrapper {
  transform: scale(1) translateY(0);
}

.project-modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  z-index: 100;
  cursor: none;
  transition: var(--transition-snappy);
}

.project-modal-close span {
  display: block;
  width: 16px;
  height: 1.5px;
  background-color: var(--text-color);
  transition: var(--transition-snappy);
}

.project-modal-close span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.project-modal-close span:nth-child(2) {
  transform: translateY(-2.5px) rotate(-45deg);
}

.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.project-modal-content {
  padding: 0;
}

.project-modal-hero {
  width: 100%;
  height: 45vh;
  overflow: hidden;
  background: var(--bg-darker);
  position: relative;
}

.project-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(3, 3, 3, 0.95) 100%);
}

.project-modal-body {
  padding: 4rem 3.5rem;
}

@media (max-width: 768px) {
  .project-modal-body {
    padding: 2.5rem 1.8rem;
  }
}

.project-modal-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2rem;
}

.project-modal-category {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.8rem;
}

.project-modal-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .project-modal-title {
    font-size: 2rem;
  }
}

.project-modal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .project-modal-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.modal-info-title {
  font-size: 1.1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-modal-info p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.project-modal-specs {
  display: flex;
  flex-direction: column;
}

.specs-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-list li:first-child {
  padding-top: 0;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-val {
  font-size: 0.95rem;
  font-weight: 500;
}

.modal-cta-btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   15. FOOTER SECTION
   -------------------------------------------------------------------------- */
.footer {
  background-color: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6rem 0 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
  margin-bottom: 5rem;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--text-color);
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 576px) {
  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-header {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links li {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-snappy);
}

.footer-links a {
  transition: var(--transition-snappy);
}

.footer-links a:hover {
  color: var(--text-color);
  padding-left: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-snappy);
}

.footer-legal a:hover {
  color: var(--text-color);
}

/* --------------------------------------------------------------------------
   16. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   17. ELECTRIC FLICKER PRELOADER
   -------------------------------------------------------------------------- */
body.loading {
  overflow: hidden;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000; /* Above all */
  opacity: 1;
  transform: translateY(0);
  transition: transform 2.0s cubic-bezier(0.85, 0, 0.15, 1),
              opacity 2.0s cubic-bezier(0.85, 0, 0.15, 1);
  pointer-events: all;
}

#preloader.fade-out {
  transform: translateY(-100%);
  opacity: 0.9;
  pointer-events: none;
}

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

.preloader-logo {
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 8px;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  padding: 0 2rem;
  animation: preloader-flicker 2s infinite ease-in-out;
}

@media (max-width: 768px) {
  .preloader-logo {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }
}

.preloader-progress-bar {
  width: 240px;
  max-width: 60vw;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: preloader-fill 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes preloader-fill {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes preloader-flicker {
  0% { opacity: 0; filter: none; }
  2% { opacity: 1; filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); }
  4% { opacity: 0.1; filter: none; }
  6% { opacity: 0.8; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); }
  8% { opacity: 0; filter: none; }
  10% { opacity: 1; filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); }
  30% { opacity: 1; filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); }
  32% { opacity: 0.05; filter: none; }
  34% { opacity: 0.85; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); }
  36% { opacity: 0; filter: none; }
  38% { opacity: 1; filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); }
  70% { opacity: 1; filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); }
  72% { opacity: 0.1; filter: none; }
  73% { opacity: 0; filter: none; }
  75% { opacity: 0.8; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); }
  77% { opacity: 0; filter: none; }
  90% { opacity: 0; filter: none; }
  92% { opacity: 1; filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.9)); }
  94% { opacity: 0; filter: none; }
  100% { opacity: 0; filter: none; }
}

/* --------------------------------------------------------------------------
   18. HERO MOON STYLING
   -------------------------------------------------------------------------- */
.moon-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0) rotate(0deg) scale(1);
  width: clamp(380px, 48vw, 720px);
  aspect-ratio: 1 / 1;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: screen;
  filter: brightness(0.4) contrast(1.15) grayscale(1);
  pointer-events: none;
  will-change: transform;
  border-radius: 50%;
  overflow: hidden;
  
  /* Modern CSS Masking to feather the edges softly to transparent, removing outlines */
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 50%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 50%);
}

.hero-moon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
