:root {
  --neon-green: #00b347; /* Primary vibrant green */
  --emerald: #00602b; /* Deep rich green for accents */
  --forest-green: #0a2e16; /* Very dark green for main text */
  --neon-glow: rgba(0, 179, 71, 0.3);
  --bg-deep: #f2f9f4; /* Subtle mint-white */
  --bg-panel: rgba(255, 255, 255, 0.7);
  --text-main: var(--forest-green); 
  --text-muted: #4f6e59;
  --glass-border: rgba(0, 179, 71, 0.15);
  --easing-swishy: cubic-bezier(0.19, 1, 0.22, 1);
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 179, 71, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(0, 96, 43, 0.1) 0%, transparent 50%),
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }
a { color: inherit; text-decoration: none; }

/* Custom Cursor */
#magic-cursor {
  position: fixed; width: 30px; height: 30px;
  top: 0; left: 0;
  border: 1px solid rgba(0, 255, 102, 0.5); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  display: flex; justify-content: center; align-items: center;
  transition: width 0.4s var(--easing-swishy), height 0.4s var(--easing-swishy), background 0.4s;
  backdrop-filter: blur(2px);
}
.cursor-dot {
  width: 4px; height: 4px; background: var(--neon-green);
  border-radius: 50%; box-shadow: 0 0 10px var(--neon-green);
}
#magic-cursor.magnet-mode {
  width: 80px; height: 80px;
  background: rgba(0, 255, 102, 0.05);
  border-color: transparent;
}

/* Floating Navbar */
#navbar {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 900px;
  z-index: 90;
  transition: all 0.5s var(--easing-swishy);
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: all 0.5s var(--easing-swishy);
}

#navbar.scrolled {
  top: 15px;
}

#navbar.scrolled .nav-inner {
  padding: 10px 25px;
  background: rgba(10, 46, 22, 0.6);
  border-color: rgba(0, 179, 71, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  margin: 0 auto;
}

.nav-logo-img {
  height: 35px;
  display: block;
  transition: height 0.4s var(--easing-swishy);
}
#navbar.scrolled .nav-logo-img { height: 25px; }

/* Center Links */
.nav-links {
  display: flex;
  position: relative;
  gap: 35px;
}
.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s;
  cursor: none;
  padding: 5px 0;
  position: relative;
  z-index: 2;
}
.nav-link:hover { color: var(--neon-green); }

/* The Hover Dot */
.nav-hover-dot {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--neon-green);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 10px var(--neon-green);
  transition: opacity 0.3s;
}

/* Right Side (CTA + Menu) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta-btn {
  background: var(--neon-green);
  color: #060907; /* Very dark green for contrast */
  padding: 8px 22px;
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: none;
  box-shadow: 0 5px 15px rgba(0, 179, 71, 0.4);
  transition: all 0.3s var(--easing-swishy);
  position: relative;
  z-index: 2;
}
.nav-cta-btn:hover {
  background: #fff;
  color: var(--forest-green);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: none;
  transition: all 0.3s var(--easing-swishy);
}
.hamburger-icon {
  width: 20px;
  height: 20px;
  transition: stroke 0.3s, transform 0.4s var(--easing-swishy);
}
.menu-trigger:hover { 
  background: rgba(0, 179, 71, 0.1);
  border-color: rgba(0, 179, 71, 0.3);
}
.menu-trigger:hover .hamburger-icon {
  stroke: var(--neon-green);
  transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-inner { padding: 15px 25px; }
}

/* Interactive String Pull Menu */
#interactive-menu {
  position: fixed; top: -100vh; left: 0; width: 100vw; height: 100vh;
  background: rgba(242, 249, 244, 0.95); backdrop-filter: blur(20px);
  z-index: 95; display: flex; justify-content: center; align-items: center;
  transition: top 0.8s var(--easing-swishy);
}
#interactive-menu.open { top: 0; }
.menu-close {
  position: absolute; top: 40px; right: 5vw; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-main); cursor: none;
}
.menu-content ul { list-style: none; text-align: center; }
.menu-content li { margin: 2vh 0; overflow: hidden; }
.menu-link {
  font-family: 'Montserrat', sans-serif; font-size: 6vw; font-weight: 900;
  text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px var(--forest-green);
  transition: color 0.4s; display: inline-block;
}
.menu-link:hover { color: var(--neon-green); -webkit-text-stroke: 0px transparent; }
.menu-string {
  position: absolute; bottom: 5vh; left: 0; width: 100%; height: 100px;
  pointer-events: none;
}

/* Buttons */
.premium-btn {
  display: inline-block; padding: 18px 45px; border-radius: 50px;
  background: var(--neon-green); border: none;
  color: white; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; cursor: none;
  box-shadow: 0 10px 25px rgba(0, 179, 71, 0.3);
  transition: background 0.4s, transform 0.4s, box-shadow 0.4s;
}
.premium-btn:hover { 
  background: var(--emerald); 
  transform: translateY(-4px); 
  box-shadow: 0 15px 35px rgba(0, 96, 43, 0.4); 
}

/* Ripple Button Effect */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-circle {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0); animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* Fade Up Global Class */
.fade-up { opacity: 0; transform: translateY(50px); }

/* General Sections */
.section-title { font-size: 5vw; line-height: 1; margin-bottom: 50px; text-transform: uppercase; letter-spacing: -2px; }
.section-title.center { text-align: center; }

/* Hero Section */
.hero-wrapper {
  height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 0 5vw; position: relative;
}
.hero-title {
  font-size: 10vw; line-height: 0.85; text-transform: uppercase;
  letter-spacing: -3px; font-weight: 900;
}
.hero-title.outline { color: transparent; -webkit-text-stroke: 2px var(--emerald); }
.hero-subtitle {
  font-size: 1.5vw; color: var(--text-muted); margin-top: 40px;
  max-width: 600px; line-height: 1.6; font-weight: 300; opacity: 0;
}
.hero-buttons { margin-top: 50px; opacity: 0; }

/* About Section */
.about-section { padding: 150px 5vw; }
.complex-scroll-text {
  font-size: 4vw; line-height: 1.2; font-weight: 400;
  max-width: 1200px; margin-bottom: 80px; color: var(--text-muted);
}
.highlight-neon { 
  background: var(--neon-green); color: white; 
  padding: 0 15px; border-radius: 8px; font-weight: 700;
}
.highlight-neon-wrapper {
  transition: background-color 0.8s ease-out, color 0.8s ease-out;
  border-radius: 8px;
  padding: 0 10px;
  margin: 0 5px;
  font-weight: 700;
}
.highlight-neon-wrapper.active {
  background-color: var(--neon-green);
  color: white;
}
.stats-row { display: flex; gap: 100px; }
.stat-item p { color: var(--neon-green); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-top: 10px; font-weight: 600; }
.precise-counter { font-size: 80px; font-weight: 900; font-family: 'Montserrat', sans-serif; line-height: 1; }

/* Services Stacking Cards */
.services-section { 
  padding: 100px 0; 
  background: var(--bg-color);
  position: relative;
  z-index: 10;
}
.services-section .section-title { margin-bottom: 5vh; }

#cards {
  --card-height: clamp(400px, 40vh, 600px);
  --card-margin: 4vh;
  --card-top-offset: 20px;
  
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, var(--card-height));
  gap: var(--card-margin);
  padding-bottom: calc(5 * var(--card-margin));
  margin-bottom: var(--card-margin);
  max-width: 90vw;
  margin: 0 auto;
}

.card {
  position: sticky;
  top: 15vh;
  height: var(--card-height);
  padding-top: calc(var(--index) * var(--card-top-offset));
  perspective: 1000px;
}

.card__content {
  box-sizing: border-box;
  padding: 50px;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: #fff;
  color: #0a2e16;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 1px solid rgba(0, 96, 43, 0.1);
  overflow: hidden;
  transform-origin: 50% 0%;
  will-change: transform, filter;
  transform-style: preserve-3d;
  animation: scale-card linear forwards;
  animation-timeline: view();
  animation-range: exit-crossing 0% exit-crossing 100%;
}

.card:nth-child(1) { --index: 1; }
.card:nth-child(1) .card__content { background: #0a2e16; color: #fff; --shadow-color: rgba(10, 46, 22, 0.5); border: 1px solid var(--neon-green); }

.card:nth-child(2) { --index: 2; }
.card:nth-child(2) .card__content { background: #00602b; color: #fff; --shadow-color: rgba(0, 96, 43, 0.5); }

.card:nth-child(3) { --index: 3; }
.card:nth-child(3) .card__content { background: #f2f9f4; color: #0a2e16; --shadow-color: rgba(0, 0, 0, 0.1); border: 1px solid rgba(0, 96, 43, 0.2); }

.card:nth-child(4) { --index: 4; }
.card:nth-child(4) .card__content { background: #111111; color: #00b347; --shadow-color: rgba(17, 17, 17, 0.8); border: 1px solid #00b347; }

.card:nth-child(5) { --index: 5; }
.card:nth-child(5) .card__content { background: #00b347; color: #fff; --shadow-color: rgba(0, 179, 71, 0.5); }

@keyframes scale-card {
  to {
    transform: scale(0.85) translateY(-5vh) rotateX(-15deg);
    filter: brightness(0.7);
    border-radius: 20px;
    box-shadow: 0 40px 60px -10px var(--shadow-color);
  }
}

.card__content h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0 0 20px 0;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}
.card__content p {
  font-size: clamp(1rem, 2vw, 1.4rem);
  max-width: 700px;
  line-height: 1.5;
  opacity: 0.9;
  font-weight: 400;
}
.card__content .number {
  font-size: clamp(5rem, 10vw, 12rem);
  position: absolute;
  right: -2rem;
  top: -4rem;
  opacity: 0.1;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
}

/* Portfolio Slider Carousel */
.portfolio-section { padding: 0; }
.slider-main {
  position: relative;
  width: 100%;
  height: 90vh;
  background: #111;
  overflow: hidden;
}
.slider-main .slider { padding: 0; margin: 0; }
.slider-main .item {
  width: 250px;
  height: 350px;
  list-style-type: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: top center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(0,0,0,0.5);
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
}
.slider-main .item::after {
  content: '';
  position: absolute; inset: 0; background: rgba(0,0,0,0.4); border-radius: inherit; transition: opacity 0.5s;
}
.slider-main .item:nth-child(1)::after, .slider-main .item:nth-child(2)::after {
  opacity: 0.6;
}

.slider-main .item:nth-child(1), .slider-main .item:nth-child(2) {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

.slider-main .item:nth-child(3) { left: 50%; }
.slider-main .item:nth-child(4) { left: calc(50% + 270px); }
.slider-main .item:nth-child(5) { left: calc(50% + 540px); }
.slider-main .item:nth-child(6) { left: calc(50% + 810px); opacity: 0; }

.slider-main .content {
  width: min(40vw, 500px);
  position: absolute;
  top: 50%;
  left: 5vw;
  transform: translateY(-50%);
  color: white;
  text-shadow: 0 3px 8px rgba(0,0,0,0.8);
  opacity: 0;
  display: none;
  z-index: 10;
}

.slider-main .content .title {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 10px;
  line-height: 1.1;
  color: #fff;
}

.slider-main .content .description {
  line-height: 1.6;
  margin: 1rem 0 2rem;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: #ddd;
}

.slider-main .content button {
  width: fit-content;
  background-color: var(--neon-green);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 1rem 2.5rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.slider-main .content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 179, 71, 0.4);
}

.slider-main .item:nth-of-type(2) .content {
  display: block;
  animation: showContent 0.75s ease-in-out 0.3s forwards;
}

@keyframes showContent {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%);
  }
}

.slider-nav {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;
}

.slider-nav .btn {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  margin: 0 0.5rem;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.slider-nav .btn:hover {
  background-color: var(--neon-green);
  border-color: var(--neon-green);
}

@media (max-width: 900px) {
  .slider-main .item { width: 160px; height: 270px; }
  .slider-main .item:nth-child(3) { left: 5vw; top: 70%; transform: translateY(0); }
  .slider-main .item:nth-child(4) { left: calc(5vw + 180px); top: 70%; transform: translateY(0); }
  .slider-main .item:nth-child(5) { left: calc(5vw + 360px); top: 70%; transform: translateY(0); }
  .slider-main .item:nth-child(6) { left: calc(5vw + 540px); top: 70%; transform: translateY(0); opacity: 0; }
  .slider-main .content { width: 90vw; left: 5vw; top: 30%; transform: translateY(-50%); }
  
  .slider-main .item:nth-child(1), .slider-main .item:nth-child(2) {
    top: 0; transform: none;
  }
}

/* ═══ Hyper Scroll 3D Section (Codepen Replica) ═══ */
.hyper-scroll-section {
  height: 400vh;
  position: relative;
  background: #030303;
  color: #e0e0e0;
}
.hyper-sticky-wrapper {
  position: sticky; top: 0; left: 0;
  width: 100%; height: 100vh;
  overflow: hidden;
  cursor: crosshair;
}
.scanlines {
  position: absolute; inset: 0; z-index: 10; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
  background-size: 100% 4px;
}
.vignette {
  position: absolute; inset: 0; z-index: 11; pointer-events: none;
  background: radial-gradient(circle, transparent 40%, #000 120%);
}
.noise {
  position: absolute; inset: 0; z-index: 12; pointer-events: none; opacity: 0.07;
  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");
}
.hud {
  position: absolute; inset: 2rem; z-index: 20; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace, sans-serif; font-size: 10px;
  color: rgba(255,255,255,0.5); text-transform: uppercase;
}
.hud-top, .hud-bottom { display: flex; justify-content: space-between; align-items: center; }
.hud strong { color: var(--neon-green); }
.hud-line { flex: 1; height: 1px; background: rgba(255,255,255,0.2); margin: 0 1rem; position: relative; }
.hud-line::after { content: ''; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; background: var(--neon-green); }
.center-nav { align-self: flex-start; margin-top: auto; margin-bottom: auto; writing-mode: vertical-rl; transform: rotate(180deg); }
.viewport { position: absolute; inset: 0; z-index: 1; perspective: 1000px; overflow: hidden; }
.world { position: absolute; top: 50%; left: 50%; transform-style: preserve-3d; will-change: transform; }
.hyper-item-3d { position: absolute; left: 0; top: 0; backface-visibility: hidden; transform-origin: center center; display: flex; align-items: center; justify-content: center; }
.big-text { font-size: 15vw; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.15); text-transform: uppercase; white-space: nowrap; transform: translate(-50%, -50%); pointer-events: none; letter-spacing: -0.5rem; mix-blend-mode: overlay; font-family: 'Montserrat', sans-serif;}
.hyper-card { width: 320px; height: 460px; background: rgba(10,10,10,0.6); border: 1px solid rgba(255,255,255,0.1); position: relative; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 20px 50px rgba(0,0,0,0.5); transition: all 0.3s; transform: translate(-50%, -50%); color: #fff;}
.hyper-card:hover { border-color: var(--neon-green); box-shadow: 0 0 30px rgba(0, 179, 71, 0.2); background: rgba(20,20,20,0.9); z-index: 100; }
.hyper-card-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.hyper-card h2 { font-size: 2.5rem; line-height: 0.9; margin: 0; text-transform: uppercase; font-weight: 700; color: #fff; mix-blend-mode: hard-light; }
.hyper-card-footer { margin-top: auto; font-size: 0.7rem; color: rgba(255,255,255,0.4); display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace;}
.hyper-star { position: absolute; width: 2px; height: 2px; background: #fff; transform: translate(-50%, -50%); }

/* ═══ Typewriter Glitch Effect ═══ */
.type-char {
  opacity: 0;
  transition: opacity 0.05s ease-in;
}
.type-char.visible {
  opacity: 1;
}
.typing-caret {
  display: inline-block;
  width: 0;
  height: 1.1em;
  vertical-align: bottom;
  border-right: 0.15em solid var(--neon-green);
  margin-right: -0.15em;
  animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══ Site Footer ═══ */
.site-footer {
  background: #060907;
  color: #fff;
  padding: 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(0, 179, 71, 0.2);
  z-index: 10;
}

/* Marquee */
.footer-marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 179, 71, 0.02);
}
.footer-marquee {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}
.footer-marquee:hover {
  animation-play-state: paused;
}
.footer-marquee span {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 6vw, 8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  padding-right: 20px;
  transition: -webkit-text-stroke 0.4s;
  cursor: none;
}
.footer-marquee:hover span {
  -webkit-text-stroke: 1.5px var(--neon-green);
}
.footer-marquee .dot {
  -webkit-text-stroke: 0px transparent;
  color: var(--neon-green);
  font-size: clamp(2rem, 4vw, 5rem);
  vertical-align: middle;
}

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

/* Main Layout */
.footer-main {
  display: flex;
  justify-content: space-between;
  padding: 80px 5vw;
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
}
.footer-left {
  max-width: 400px;
}
.footer-desc {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 20px 0 20px;
}

/* Clock */
.footer-clock {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}
.clock-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 5px;
}
.clock-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--neon-green);
  letter-spacing: 2px;
}

/* Split Text Links */
.footer-center {
  min-width: 250px;
}
.footer-nav-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 30px;
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 15px; }

.footer-link {
  display: inline-block;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  height: 2.5rem;
  line-height: 2.5rem;
}
.link-text-wrapper {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.footer-link .front {
  color: rgba(255,255,255,0.6);
  height: 2.5rem;
}
.footer-link .back {
  color: var(--neon-green);
  height: 2.5rem;
}
.footer-link:hover .link-text-wrapper {
  transform: translateY(-2.5rem);
}

/* Circular CTA */
.footer-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 5vw;
}
.circular-cta {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(0, 179, 71, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: none;
  transition: border-color 0.4s, color 0.4s;
  position: relative;
  overflow: hidden;
}
.circular-cta::before {
  content: '';
  position: absolute;
  top: 100%; left: 0; width: 100%; height: 100%;
  background: var(--neon-green);
  border-radius: 50%;
  transition: top 0.4s cubic-bezier(0.76, 0, 0.24, 1), border-radius 0.4s;
  z-index: -1;
}
.circular-cta:hover::before {
  top: 0;
  border-radius: 0;
}
.circular-cta:hover {
  color: #060907;
  border-color: var(--neon-green);
}
.cta-text { z-index: 2; }

/* Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  max-width: 1400px;
  margin: 0 auto;
}
.footer-socials { display: flex; gap: 20px; }
.footer-socials a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: none;
  transition: color 0.3s;
}
.footer-socials a:hover { color: var(--neon-green); }

@media (max-width: 1000px) {
  .footer-main { flex-direction: column; gap: 50px; padding: 50px 5vw; }
  .footer-right { justify-content: flex-start; padding-right: 0; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .footer-marquee span { font-size: 3rem; }
}

/* --- DESIGN PRINCIPLES (WORD SCROLL) --- */
.word-scroll {
  width: 100%;
  padding: 10vh 0;
  position: relative;
  z-index: 10;
}

.word-scroll .scroll-spacer {
    height: 30vh;
}

.word-scroll-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.25;
  font-family: 'Montserrat', sans-serif;
  padding: 0 5%;
}

.word-scroll-inner h2 {
  position: sticky;
  top: calc(50vh - 0.625em);
  margin: calc(50vh - 0.625em) 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  height: fit-content;
  color: var(--forest-green); /* Dark text for light bg */
  white-space: nowrap;
}

.word-scroll-inner ul {
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  list-style: none;
  margin: 0;
  padding-block: calc(50vh - 0.625em);
  padding-left: 0;
}

.word-scroll li {
    text-transform: uppercase;
    color: rgba(10, 46, 22, 0.15); /* Faint dark green for unhighlighted */
    transition: color 0.2s;
}

@supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
  [data-animate=true] li {
    animation-name: brighten-light;
    animation-fill-mode: both;
    animation-timing-function: linear;
    animation-range: cover calc(50% - 1.25em) calc(50% + 1.25em);
    animation-timeline: view();
  }
  @keyframes brighten-light {
    0% { color: rgba(10, 46, 22, 0.15); text-shadow: none; }
    50% { color: var(--neon-green); text-shadow: 0 0 15px rgba(0, 179, 71, 0.3); }
    100% { color: rgba(10, 46, 22, 0.15); text-shadow: none; }
  }
}
.sr-only { display: none; }

/* --- TECH STACK (MARQUEE) --- */
#tech-stack {
  --size: clamp(6rem, 1rem + 20vmin, 15rem);
  --gap: calc(var(--size) / 5);
  --duration: 40s;
  --scroll-start: 0;
  --scroll-end: calc(-100% - var(--gap));
  position: relative;
  z-index: 10;
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  /* White gradient mask */
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  margin-bottom: var(--gap);
}

.marquee__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: scroll-x var(--duration) linear infinite;
}

.marquee--reverse .marquee__group {
  animation-direction: reverse;
  animation-delay: -3s;
}

@keyframes scroll-x {
  from { transform: translateX(var(--scroll-start)); }
  to { transform: translateX(var(--scroll-end)); }
}

.tech-icon {
  display: grid;
  place-items: center;
  width: var(--size);
  background: rgba(10, 46, 22, 0.03);
  aspect-ratio: 1;
  padding: calc(var(--size) / 5);
  border-radius: 1rem;
  border: 1px solid rgba(10, 46, 22, 0.08);
  transition: 0.4s ease;
}
.tech-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* High contrast grayscale to preserve inner logo details (no brightness crushing) */
  filter: grayscale(100%) contrast(120%) opacity(0.6);
  transition: 0.4s ease;
}
.tech-icon:hover {
    background: rgba(0, 179, 71, 0.05);
    border-color: var(--neon-green);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 179, 71, 0.15);
}
.tech-icon:hover img {
    /* Restore true brand colors on hover for maximum clarity, with neon glow */
    filter: grayscale(0%) contrast(100%) opacity(1) drop-shadow(0 0 12px rgba(0, 179, 71, 0.6));
}

/* CODEPEN 2: Pure CSS Scroll & Hover Effects */
.cp2-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.cp2-text {
  font-size: 10vw;
  letter-spacing: -0.01em;
  line-height: 100%;
  margin: 0;

  width: 100%;
  color: rgba(10, 46, 22, 0.1);
  background: linear-gradient(to right, var(--forest-green), var(--forest-green)) no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 0%;
  transition: background-size cubic-bezier(0.1, 0.5, 0.5, 1) 0.5s;

  border-bottom: 1px solid rgba(10, 46, 22, 0.1);
  padding: 2% 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;

  animation-name: cp2-reveal;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-timeline: view();
  animation-range: entry 100% cover 50%;
  
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  cursor: default;
  white-space: nowrap;
}

@keyframes cp2-reveal {
  to {
    background-size: 100%;
  }
}

.cp2-text span {
  position: absolute;
  width: 100%;
  height: 100%;

  left: 0;
  background-color: var(--neon-green);
  color: var(--forest-green);

  clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
  transform-origin: center;
  transition: all cubic-bezier(0.1, 0.5, 0.5, 1) 0.4s;

  display: flex;
  align-items: center;
  padding-left: 20px;
  box-sizing: border-box;
}

.cp2-text:hover > span {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* Variant for bullet points */
.cp2-text.bullet {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  border-bottom: 1px solid rgba(10, 46, 22, 0.05);
  padding: 15px 0;
}
.cp2-text.bullet span {
  padding-left: 10px;
}

/* Interactive Project List (CodePen Replacement) */
.project-list {
  padding: 120px 5vw;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

.project-item {
  position: relative;
  padding: 50px 60px;
  border-top: 1px solid rgba(10, 46, 22, 0.15); /* Dark forest green line */
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: none;
  transition: background 0.3s;
  z-index: 2;
  text-decoration: none;
}

.project-item:last-child {
  border-bottom: 1px solid rgba(10, 46, 22, 0.15);
}

.project-item:hover {
  background: rgba(0, 179, 71, 0.05); /* Subtle neon green highlight */
}

.project-item:hover h2 {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--neon-green);
  padding-left: 20px;
}

.project-item:hover .arrow {
  transform: rotate(-45deg);
  color: var(--neon-green);
}

.project-item:hover .index {
  color: var(--neon-green);
}

.index {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted); /* Darker muted text */
  margin-right: 40px;
  transition: 0.3s;
}

.project-info {
  flex-grow: 1;
}

.project-info h2 {
  font-size: clamp(3rem, 5vw, 6rem);
  margin: 0;
  text-transform: uppercase;
  font-weight: 900;
  transition: 0.3s;
  letter-spacing: -2px;
  color: var(--text-main); /* Dark forest green text */
  font-family: 'Montserrat', sans-serif;
}

.project-info p {
  margin: 5px 0 0 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.arrow {
  font-size: 2.5rem;
  transition: 0.3s;
  color: var(--text-main);
}

.hover-reveal {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px; /* Wider for website mockups */
  height: 300px; /* Shorter */
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transform: scale(0.8);
}

.hover-reveal .reveal-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3); /* Add shadow to make it pop */
}

.hover-reveal .reveal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* Show top of the website */
}

@media (max-width: 768px) {
  .hover-reveal { display: none !important; }
  .project-item { padding: 30px 20px; }
  .project-info h2 { font-size: 8vw; }
  .index { margin-right: 20px; }
}

/* Fullscreen Immersive Modal (Global) */
#preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#preview-modal.active {
  display: block;
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #fff;
  color: #000;
}

/* AI & Screen Reader Only (AEO Optimization) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ultra Mobile Optimization (max-width: 480px) */
@media (max-width: 480px) {
  /* Ensure hero text fits nicely */
  .hero-content h1 {
    font-size: clamp(40px, 12vw, 80px) !important;
  }
  
  /* Make lists and grids stack properly */
  .project-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px 15px !important;
  }
  
  .project-info h2 {
    font-size: 24px !important;
  }
  
  .index {
    margin-bottom: 10px !important;
  }
  
  /* Footer mobile stacking */
  .footer-content {
    flex-direction: column !important;
    text-align: center !important;
    gap: 30px !important;
  }
  
  .footer-right {
    align-items: center !important;
  }
}
