/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #18392b;
  --green-mid: #1e4d3a;
  --green-light: #2a6b4f;
  --green-bright: #3d9970;
  --accent: #93A3B1;
  --accent-light: #a8b5c0;
  --accent-dark: #7a8d9c;
  --white: #ffffff;
  --off-white: #f7f8f9;
  --text-dark: #18392b;
  --text-muted: #5a7a6a;
  --border: rgba(24, 57, 43, 0.1);
  --border-dark: rgba(255, 255, 255, 0.12);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* ===== CREATIVE LOGO ===== */
.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  margin-left: 0;
}

/* ===== HERO ROLE TAG ===== */
.hero-role-tag {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  opacity: 0;
  animation: fadeUp 0.6s 1.3s forwards;
  position: relative;
  text-align: center;
  white-space: nowrap;
  padding: 0 48px;
  margin-bottom: 8px;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-role-tag::before,
.hero-role-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.hero-role-tag::before {
  right: calc(100% + 16px);
  background: linear-gradient(90deg, transparent, var(--accent));
}

.hero-role-tag::after {
  left: calc(100% + 16px);
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ===== HERO CREATIVE LOGO ===== */
.hero-logo-big {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-line {
  line-height: 1.1;
  white-space: nowrap;
  overflow: visible;
  padding-bottom: 4px;
}

.hero-line-1 {
  clip-path: inset(0 100% 0 0);
  animation: lineRevealRight 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

@keyframes lineRevealRight {
  to { clip-path: inset(0 0 0 0); }
}

.creative-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(4.5rem, 11vw, 10rem);
  color: var(--white);
  letter-spacing: -3px;
  display: inline-block;
}

.creative-text.second {
  color: var(--accent);
}

/* ===== HERO DIVIDER LINE ===== */
.hero-divider-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--green-bright), var(--accent), transparent);
  margin: 16px auto;
  animation: lineGrow 1s 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 0 12px rgba(147, 163, 177, 0.3);
}

@keyframes lineGrow {
  to { width: min(300px, 60vw); }
}

.hero-logo-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: 14px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.25), rgba(147,163,177,0.4), rgba(255,255,255,0.35));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s 1.1s forwards, gradientShift 8s 2s ease infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* ===== HERO SCROLL CUE ===== */
.hero-scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.6s 1.6s forwards;
  transition: opacity 0.4s ease;
}

.hero-scroll-cue span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ===== TYPOGRAPHY ===== */
.section-label {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-dark);
  text-align: left;
  padding-left: 0;
}

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

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.05rem;
}

.section-desc.center {
  text-align: center;
  margin: 0 auto 48px;
}

.section {
  padding: 100px 0;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(24, 57, 43, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  letter-spacing: 0.3px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--green-bright));
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 0;
  background: radial-gradient(ellipse at 20% 50%, #1a4433 0%, var(--green) 50%), radial-gradient(ellipse at 80% 20%, #1e4d3a 0%, transparent 50%), var(--green);
}

.hero-content {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
}

.hero-name-block {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  text-align: center;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 40px 48px 48px;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bottom-left {
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 420px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 30px rgba(147, 163, 177, 0.25);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(147, 163, 177, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.btn-banner {
  background: var(--accent);
  color: var(--white);
  padding: 16px 36px;
  font-weight: 700;
}

.btn-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Light sections need different outline button */
.portfolio-cta .btn-outline {
  color: var(--green);
  border-color: rgba(24, 57, 43, 0.25);
}

.portfolio-cta .btn-outline:hover {
  border-color: var(--green);
}

/* ===== ABOUT ===== */
.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-text .btn {
  margin-top: 12px;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(24, 57, 43, 0.15);
}

.about-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 15%;
}

/* ===== PROCESS BAR ===== */
.process-section {
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.process-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 40px;
}

.process-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease, background 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  background: var(--off-white);
}

.process-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: rgba(24, 57, 43, 0.08);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.process-step h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--green);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-list {
  list-style: none;
}

.about-list li {
  padding: 10px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 24px;
}

.about-list li:last-child {
  border-bottom: none;
}

.about-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green-bright);
  font-weight: 700;
}

/* ===== SERVICES ===== */
.services {
  background: var(--green);
  color: var(--white);
}

.services .section-label {
  color: var(--accent);
}

.services .section-title {
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(147, 163, 177, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card.featured {
  border-color: var(--accent);
  background: rgba(147, 163, 177, 0.1);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--green-bright));
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
}

.service-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}

.service-link:hover {
  color: var(--accent-light);
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(24, 57, 43, 0.08);
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(24, 57, 43, 0.15);
}

.portfolio-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.portfolio-info {
  background: var(--white);
  padding: 20px 24px;
}

.portfolio-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--green);
  transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-info h3 {
  color: var(--accent-dark);
}

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

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

/* ===== PORTFOLIO PAGE — BENTO GRID ===== */
.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(247, 248, 249, 0.6);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(147, 163, 177, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn:hover::before {
  opacity: 1;
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(24, 57, 43, 0.04);
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 0 20px rgba(147, 163, 177, 0.2);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 6px;
  position: relative;
}

/* Grid mouse glow */
.bento-grid-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 163, 177, 0.08) 0%, rgba(61, 153, 112, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.bento-grid-glow.active {
  opacity: 1;
}

@media (hover: none) and (pointer: coarse) {
  .bento-grid-glow {
    display: none !important;
  }
}

.bento-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, opacity 0.4s ease;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 30%);
  opacity: 0;
  transition: opacity 0.4s ease, border-color 0.4s ease;
  z-index: 3;
  pointer-events: none;
}

.bento-item:hover::before {
  opacity: 1;
  border-color: rgba(147, 163, 177, 0.2);
}

.bento-item:hover {
  z-index: 2;
  transform: scale(1.02) rotate(0.3deg);
  box-shadow: 0 20px 60px rgba(24, 57, 43, 0.25), 0 0 40px rgba(147, 163, 177, 0.12);
}

.bento-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.06);
}

/* Bento size variants */
.bento-wide {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Scrolling website preview */
.bento-scroll img {
  object-fit: cover;
  object-position: top center;
  transition: object-position 14s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.bento-scroll:hover img {
  object-position: bottom center;
  transform: none;
}

/* Overlay — always partially visible, intensifies on hover */
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 57, 43, 0.8) 0%, rgba(24, 57, 43, 0.1) 35%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 1;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.bento-item:hover .bento-overlay {
  background: linear-gradient(to top, rgba(24, 57, 43, 0.92) 0%, rgba(24, 57, 43, 0.3) 45%, transparent 100%);
}

.bento-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
}

.bento-item:hover .bento-overlay h3 {
  text-shadow: 0 0 20px rgba(147, 163, 177, 0.3);
}

.bento-category {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, color 0.3s ease;
}

/* Category color coding */
[data-category="branding"] .bento-category { color: var(--accent-light); }
[data-category="photography"] .bento-category { color: #8ecae6; }
[data-category="print"] .bento-category { color: #a8d5a2; }
[data-category="web-design"] .bento-category { color: #c5b4e3; }

.bento-item:hover .bento-category {
  transform: translateY(-2px);
}

/* Bento project descriptions */
.bento-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin: 4px 0 0;
  line-height: 1.4;
  max-width: 280px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.bento-item:hover .bento-desc {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) and (pointer: coarse) {
  .bento-desc {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bento split layout — two images in one tile */
.bento-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.bento-split .bento-split-mockup,
.bento-split .bento-split-photo {
  overflow: hidden;
  position: relative;
}

.bento-split .bento-split-mockup {
  grid-column: 1;
  grid-row: 1;
  background: #f0f0f0;
}

.bento-split .bento-split-photo {
  grid-column: 2;
  grid-row: 1;
}

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

.bento-split .bento-split-mockup img {
  object-fit: contain;
  padding: 24px;
  background: #f0f0f0;
}

.bento-split:hover .bento-split-mockup img,
.bento-split:hover .bento-split-photo img {
  transform: scale(1.06);
}

.bento-split .bento-overlay {
  grid-column: 1 / -1;
  grid-row: 1;
}

@media (max-width: 480px) {
  .bento-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .bento-split .bento-split-mockup {
    grid-column: 1;
    grid-row: 1;
  }

  .bento-split .bento-split-photo {
    grid-column: 1;
    grid-row: 2;
  }

  .bento-split .bento-overlay {
    grid-column: 1;
    grid-row: 1 / -1;
  }
}

/* Gallery clickable indicator */
.bento-item[data-gallery] {
  cursor: pointer;
}

.bento-item[data-gallery] .bento-overlay::after {
  content: 'View Gallery →';
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
  display: block;
  transition: color 0.3s ease;
}

.bento-item[data-gallery]:hover .bento-overlay::after {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== PHOTO GALLERY LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 20, 16, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-header {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 4px;
}

.lightbox-counter {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-img-wrap {
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-img.loaded {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .lightbox-img-wrap {
    max-width: calc(100vw - 40px);
  }

  .lightbox-header {
    left: 16px;
    top: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

/* Filter animation — smooth fade out/in */
.bento-item {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, opacity 0.35s ease, scale 0.35s ease;
}

.bento-item.hidden {
  opacity: 0;
  scale: 0.94;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.bento-item.filter-show {
  animation: filterReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes filterReveal {
  from { opacity: 0; scale: 0.94; }
  to { opacity: 1; scale: 1; }
}

/* Responsive */
@media (max-width: 968px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
    gap: 4px;
  }

  .bento-wide,
  .bento-large {
    grid-column: span 1;
  }

  .bento-tall,
  .bento-large {
    grid-row: span 1;
  }

  .portfolio-filters {
    gap: 6px;
    margin-bottom: 28px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .bento-overlay {
    padding: 20px;
  }
}

/* ===== TRUST BANNER ===== */
.trust-banner {
  border-radius: var(--radius);
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trust-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(24, 57, 43, 0.92) 0%, rgba(24, 57, 43, 0.8) 100%);
}

.trust-content {
  position: relative;
  z-index: 1;
}

.trust-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--white);
}

.trust-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ESTIMATE FORM ===== */
.estimate {
  background: var(--green);
  color: var(--white);
}

.estimate .section-label {
  color: var(--accent);
}

.estimate .section-title {
  color: var(--white);
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.form-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.form-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.benefit-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.estimate-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.estimate .form-group input,
.estimate .form-group select,
.estimate .form-group textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.estimate .form-group input::placeholder,
.estimate .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.estimate .form-group input:focus,
.estimate .form-group select:focus,
.estimate .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(147, 163, 177, 0.15), 0 0 20px rgba(147, 163, 177, 0.08);
}

.estimate .form-group select {
  appearance: none;
  -webkit-appearance: none;
  color: #1a1a1a;
  -webkit-text-fill-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2393A3B1' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.estimate .form-group select option {
  background: #ffffff;
  color: #1a1a1a;
  -webkit-text-fill-color: #1a1a1a;
}

.estimate .form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== CONTACT ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-col p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease, transform 0.3s ease;
  margin: -16px;
  margin-bottom: 0;
}

.contact-item:hover {
  background: var(--off-white);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
  color: var(--green);
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-item a {
  color: var(--accent);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-light);
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: rgba(24, 57, 43, 0.3);
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 57, 43, 0.08), 0 0 20px rgba(24, 57, 43, 0.05);
}

.contact-form .form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--green);
  color: var(--white);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-logo {
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== INNER PAGES ===== */
.inner-page .nav {
  background: rgba(24, 57, 43, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  padding: 12px 0;
}

.page-header {
  background: var(--green);
  padding: 140px 0 56px;
  color: var(--white);
  min-height: 260px;
  display: flex;
  align-items: flex-end;
}

.page-header .container {
  width: 100%;
  text-align: left;
}

.page-header .section-label {
  color: var(--accent);
  text-align: left;
  padding-left: 0;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
  text-align: left;
  padding-left: 0;
}

.page-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.05rem;
  max-width: 480px;
}

/* ===== GATEWAY CARDS ===== */
.gateway {
  background: var(--white);
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gateway-card {
  display: flex;
  flex-direction: column;
  padding: 48px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease, background 0.4s ease, color 0.4s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  background: var(--white);
}

.gateway-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--green-bright), var(--accent));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gateway-card:hover {
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(24, 57, 43, 0.12);
  background: var(--green);
  color: var(--white);
}

.gateway-card:hover::before {
  opacity: 1;
}

.gateway-card:hover .gateway-number {
  color: rgba(255, 255, 255, 0.15);
}

.gateway-card:hover h3 {
  color: var(--white);
}

.gateway-card:hover p {
  color: rgba(255, 255, 255, 0.7);
}

.gateway-card:hover .gateway-link {
  color: var(--accent-light);
}

.gateway-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(24, 57, 43, 0.08);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.4s ease;
}

.gateway-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 12px;
  transition: color 0.4s ease;
}

.gateway-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex: 1;
  transition: color 0.4s ease;
}

.gateway-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.4s ease;
}

.gateway-card:hover .gateway-link {
  color: var(--green);
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green-bright));
  z-index: 1001;
  width: 0%;
  transition: none;
}

/* ===== HERO PARALLAX & AURORA ===== */
.hero {
  perspective: 1px;
}

.hero-name-block {
  will-change: transform;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-aurora::before,
.hero-aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: aurora 16s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
  .hero-aurora::before,
  .hero-aurora::after {
    filter: blur(80px);
    animation-duration: 20s;
  }
}

.hero-aurora::before {
  width: 800px;
  height: 800px;
  background: var(--accent);
  top: -20%;
  right: -10%;
  animation-delay: 0s;
}

.hero-aurora::after {
  width: 700px;
  height: 700px;
  background: var(--green-bright);
  bottom: -15%;
  left: -5%;
  animation-delay: -8s;
}

/* Third aurora orb for richer depth */
.hero-aurora-third {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 40%;
  left: 30%;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  background: var(--green-bright);
  animation: aurora 16s ease-in-out infinite alternate;
  animation-delay: -4s;
  pointer-events: none;
}

@keyframes aurora {
  0% { transform: translate(0, 0) scale(1); opacity: 0.12; }
  50% { transform: translate(40px, -30px) scale(1.15); opacity: 0.18; }
  100% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.14; }
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.hero-spotlight {
  position: absolute;
  left: -300px;
  top: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 163, 177, 0.12) 0%, rgba(61, 153, 112, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  will-change: transform, background;
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* ===== ANIMATED GRADIENT TEXT ===== */
.creative-text.second {
  background: linear-gradient(135deg, var(--white), var(--accent-light), var(--green-bright), var(--accent), var(--white));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

/* Reusable gradient-text class for headings */
.gradient-text {
  background: linear-gradient(135deg, var(--white), var(--accent-light), var(--green-bright), var(--accent), var(--white));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

/* Dark variant for light backgrounds */
.gradient-text-dark {
  background: linear-gradient(135deg, var(--green), var(--accent-dark), var(--green-bright), var(--accent), var(--green));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== MARQUEE TICKER ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--green);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.3);
  padding: 0 24px;
  flex-shrink: 0;
}

.marquee-dot {
  width: 4px !important;
  height: 4px !important;
  background: var(--accent) !important;
  border-radius: 50%;
  display: inline-block !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
  flex-shrink: 0;
}

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

/* ===== TRUST BANNER PARALLAX ===== */
.trust-bg-img {
  will-change: transform;
  transition: none;
  transform: scale(1.15);
}

/* ===== ABOUT PHOTO PARALLAX ===== */
.about-photo {
  will-change: transform;
}

.about-photo img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade variants — blur-to-focus reveal */
.fade-in {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  filter: blur(4px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-35px) scale(0.96);
  filter: blur(4px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(35px) scale(0.96);
  filter: blur(4px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.96);
  filter: blur(4px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-scale.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  filter: blur(0);
}

/* Stagger delays — smoother 0.05s increments */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }

/* ===== ENHANCED CARD HOVERS ===== */
.gateway-card,
.service-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease, background 0.3s ease;
}

.gateway-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(24, 57, 43, 0.15);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ===== BUTTON GLOW ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-banner {
  position: relative;
  overflow: hidden;
}

.btn-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-banner:hover::after {
  opacity: 1;
}

/* ===== SMOOTH IMAGE REVEAL ===== */
.img-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal.visible {
  clip-path: inset(0 0 0 0);
}

/* ===== PORTFOLIO HOVER ENHANCE ===== */
.portfolio-item {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(24, 57, 43, 0.18);
}

.portfolio-img img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== STAT COUNTER ===== */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ===== SECTION DIVIDER LINE ===== */
.section-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green-bright));
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ===== MOBILE TOUCH RIPPLE ===== */
.touch-ripple {
  position: absolute;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 163, 177, 0.25) 0%, transparent 70%);
  pointer-events: none;
  animation: rippleOut 0.5s ease-out forwards;
  z-index: 10;
}

@keyframes rippleOut {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ===== PAGE HEADER GLOW ===== */
.page-header-glow {
  position: relative;
  overflow: hidden;
}

.page-header-glow .aurora-orbs::before {
  width: 600px;
  height: 600px;
  top: -40%;
  right: -15%;
  background: radial-gradient(circle, rgba(147, 163, 177, 0.2) 0%, transparent 70%);
}

.page-header-glow .aurora-orbs::after {
  width: 500px;
  height: 500px;
  bottom: -50%;
  left: -10%;
  background: radial-gradient(circle, rgba(61, 153, 112, 0.15) 0%, transparent 70%);
}

.page-header-glow .aurora-orb-third {
  width: 400px;
  height: 400px;
  top: 60%;
  left: 60%;
}

/* ===== SERVICE CARD GLOW RING ===== */
.service-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  border-color: rgba(147, 163, 177, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 40px rgba(147, 163, 177, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.service-card::after {
  background: linear-gradient(135deg, rgba(147, 163, 177, 0.2) 0%, transparent 40%, rgba(61, 153, 112, 0.08) 100%);
}

/* ===== PROCESS STEP GLOW ===== */
.process-step {
  border: 1px solid transparent;
}

.process-step:hover {
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(24, 57, 43, 0.08);
}

.process-number {
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.process-step:hover .process-number {
  color: rgba(147, 163, 177, 0.25);
  text-shadow: 0 0 30px rgba(147, 163, 177, 0.15);
}

/* ===== SECTION LABEL LUMINANCE ===== */
.section-label {
  text-shadow: 0 0 20px rgba(147, 163, 177, 0.2);
}

/* ===== NAV CTA GLOW ===== */
.nav-cta {
  box-shadow: 0 0 0 0 rgba(147, 163, 177, 0);
  animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(147, 163, 177, 0); }
  50% { box-shadow: 0 0 20px rgba(147, 163, 177, 0.25); }
}

/* ===== CONTACT ICON GLOW ===== */
.contact-icon {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  box-shadow: 0 0 20px rgba(147, 163, 177, 0.2);
  transform: scale(1.05);
}

/* ===== FORM INPUT FOCUS GLOW ===== */
.estimate .form-group input:focus,
.estimate .form-group select:focus,
.estimate .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(147, 163, 177, 0.15), 0 0 30px rgba(147, 163, 177, 0.1);
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 57, 43, 0.1), 0 0 25px rgba(24, 57, 43, 0.06);
}

/* ===== GATEWAY CARD GLOW BORDER ===== */
.gateway-card:hover {
  box-shadow: 0 20px 60px rgba(24, 57, 43, 0.15), 0 0 40px rgba(147, 163, 177, 0.1);
}

.gateway-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent), var(--green-bright), var(--accent-light), var(--accent));
  background-size: 300% 300%;
  animation: gradientShift 4s ease infinite;
}

/* ===== TRUST BANNER GLOW ===== */
.trust-banner {
  transition: box-shadow 0.4s ease;
}

.trust-banner:hover {
  box-shadow: 0 24px 80px rgba(24, 57, 43, 0.2);
}

/* ===== FOOTER SUBTLE GLOW ===== */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(147, 163, 177, 0.3), var(--green-bright), rgba(147, 163, 177, 0.3), transparent);
  border-radius: 50%;
}

.footer::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(147, 163, 177, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== BENEFIT CHECK GLOW ===== */
.benefit-check {
  text-shadow: 0 0 12px rgba(147, 163, 177, 0.4);
}

/* ===== SERVICE BADGE GLOW ===== */
.service-badge {
  box-shadow: 0 0 20px rgba(147, 163, 177, 0.3);
}

/* ===== SECTION TRANSITIONS ===== */
.section-transition {
  height: 80px;
  pointer-events: none;
  position: relative;
  margin-top: -1px;
  margin-bottom: -1px;
}

.section-transition--to-dark {
  background: linear-gradient(180deg, var(--white) 0%, var(--green) 100%);
}

.section-transition--to-light {
  background: linear-gradient(180deg, var(--green) 0%, var(--white) 100%);
}

/* ===== GLOBAL GRAIN OVERLAY ===== */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise2)' opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 400px 400px;
  mix-blend-mode: overlay;
}

/* ===== GLOBAL CURSOR SPOTLIGHT ===== */
.cursor-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  transition: opacity 0.3s;
  will-change: background;
}

.cursor-spotlight.active {
  opacity: 1;
}

/* ===== AURORA ORBS (reusable for any section) ===== */
.aurora-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-orbs::before,
.aurora-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: aurora 16s ease-in-out infinite alternate;
}

.aurora-orbs::before {
  width: 800px;
  height: 800px;
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(147, 163, 177, 0.18) 0%, transparent 70%);
}

.aurora-orbs::after {
  width: 700px;
  height: 700px;
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(61, 153, 112, 0.15) 0%, transparent 70%);
  animation-delay: -8s;
}

.aurora-orb-third {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(120px);
  background: radial-gradient(circle, rgba(61, 153, 112, 0.12) 0%, transparent 70%);
  animation: aurora 16s ease-in-out infinite alternate;
  animation-delay: -4s;
  pointer-events: none;
}

/* ===== PER-PAGE AURORA DIFFERENTIATION ===== */
.page-about .aurora-orbs::before {
  background: radial-gradient(circle, rgba(186, 163, 117, 0.18) 0%, transparent 70%);
}
.page-about .aurora-orbs::after {
  background: radial-gradient(circle, rgba(153, 122, 61, 0.15) 0%, transparent 70%);
}
.page-about .aurora-orb-third {
  background: radial-gradient(circle, rgba(163, 147, 100, 0.12) 0%, transparent 70%);
}

.page-services .aurora-orbs::before {
  background: radial-gradient(circle, rgba(117, 163, 186, 0.18) 0%, transparent 70%);
}
.page-services .aurora-orbs::after {
  background: radial-gradient(circle, rgba(61, 130, 153, 0.15) 0%, transparent 70%);
}
.page-services .aurora-orb-third {
  background: radial-gradient(circle, rgba(100, 150, 163, 0.12) 0%, transparent 70%);
}

.page-portfolio .aurora-orbs::before {
  background: radial-gradient(circle, rgba(163, 130, 186, 0.18) 0%, transparent 70%);
}
.page-portfolio .aurora-orbs::after {
  background: radial-gradient(circle, rgba(120, 80, 160, 0.15) 0%, transparent 70%);
}
.page-portfolio .aurora-orb-third {
  background: radial-gradient(circle, rgba(140, 110, 170, 0.12) 0%, transparent 70%);
}

.page-contact .aurora-orbs::before {
  background: radial-gradient(circle, rgba(100, 186, 140, 0.18) 0%, transparent 70%);
}
.page-contact .aurora-orbs::after {
  background: radial-gradient(circle, rgba(61, 153, 112, 0.20) 0%, transparent 70%);
}
.page-contact .aurora-orb-third {
  background: radial-gradient(circle, rgba(80, 170, 120, 0.15) 0%, transparent 70%);
}

/* ===== BUTTON MICRO-INTERACTIONS ===== */
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.btn-outline:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn-outline:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.btn-banner:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn-banner:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .about-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .gateway-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  /* Scale down aurora orbs */
  .aurora-orbs::before {
    width: 500px;
    height: 500px;
  }

  .aurora-orbs::after {
    width: 400px;
    height: 400px;
  }

  .aurora-orb-third {
    width: 350px;
    height: 350px;
  }

  .section-transition {
    height: 60px;
  }

  .trust-banner {
    padding: 56px 32px;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  /* Hide cursor spotlight on touch devices */
  .cursor-spotlight {
    display: none;
  }

  /* Reduce aurora orbs */
  .aurora-orbs::before {
    width: 300px;
    height: 300px;
    opacity: 0.7;
  }

  .aurora-orbs::after {
    width: 250px;
    height: 250px;
    opacity: 0.7;
  }

  .aurora-orb-third,
  .hero-aurora-third {
    width: 200px;
    height: 200px;
    opacity: 0.7;
  }

  /* Shorter transitions */
  .section-transition {
    height: 48px;
  }

  /* Lighter grain */
  .grain-overlay {
    opacity: 0.02;
  }

  .grain-overlay::after {
    display: none;
  }

  /* Less blur for mobile performance */
  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .fade-in-scale {
    filter: blur(2px);
  }

  /* No rotation on hover for touch */
  .bento-item:hover {
    transform: scale(1.02);
  }

  .container {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 12px 40px rgba(24, 57, 43, 0.3);
  }

  .nav.scrolled .nav-links {
    background: rgba(24, 57, 43, 0.98);
    border-bottom: 1px solid var(--border-dark);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7) !important;
    border-bottom-color: var(--border-dark);
  }

  .nav.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    border-bottom-color: var(--border-dark);
  }

  .nav-links li:last-child a {
    border-bottom: none;
    text-align: center;
    margin-top: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 80px 0 0;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-content {
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
  }

  .hero-name-block {
    padding: 0 20px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 20px 40px;
    gap: 32px;
  }

  .hero-stats {
    width: 100%;
    justify-content: center;
    gap: 24px;
  }

  .stat {
    align-items: center;
    text-align: center;
    flex: 1;
  }

  .stat-number {
    display: block;
    text-align: center;
    width: 100%;
  }

  .stat-label {
    display: block;
    text-align: center;
    width: 100%;
  }

  .creative-text {
    font-size: clamp(3rem, 10vw, 5.5rem);
  }

  .hero-logo-sub {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    letter-spacing: 6px;
  }

  .hero-role-tag {
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 0 20px;
  }

  .hero-role-tag::before,
  .hero-role-tag::after {
    display: none;
  }

  .hero-divider-line {
    margin: 12px auto;
  }

  .hero-scroll-cue {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: 72px 0;
  }

  .page-header {
    padding: 120px 0 40px;
    min-height: 200px;
  }

  .page-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .contact-item {
    margin: 0;
    padding: 12px;
  }

  .trust-banner {
    padding: 48px 20px;
    min-height: auto;
  }

  .trust-banner h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .trust-banner p {
    font-size: 0.95rem;
  }

  .about-photo img {
    height: 300px;
  }

  .marquee-track span {
    font-size: 0.75rem;
    padding: 0 16px;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-logo-line {
    white-space: normal;
    overflow: hidden;
  }

  .creative-text {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
    letter-spacing: -1px;
  }

  .hero-logo-sub {
    letter-spacing: 4px;
    font-size: clamp(1rem, 3vw, 1.8rem);
  }

  .hero-role-tag {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    padding: 0 16px;
  }

  .hero-name-block {
    padding: 0 16px;
  }

  .hero-bottom {
    padding: 24px 16px 32px;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .process-bar {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    gap: 12px;
    justify-content: space-between;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }

  .stat-divider {
    height: 28px;
  }

  .gateway-card {
    padding: 36px 24px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .section {
    padding: 56px 0;
  }

  .page-header {
    padding: 100px 0 32px;
    min-height: 180px;
  }

  .form-info p {
    font-size: 0.95rem;
  }

  .contact-details {
    gap: 16px;
  }

  .process-heading {
    font-size: 1.4rem;
  }

  .about-photo img {
    height: 260px;
  }

  .footer {
    padding: 36px 0 24px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-links a {
    font-size: 0.82rem;
  }

  .portfolio-filters {
    padding: 8px 12px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .fade-in-scale {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .gradient-text,
  .gradient-text-dark,
  .creative-text.second {
    animation: none;
  }

  .hero-aurora::before,
  .hero-aurora::after,
  .hero-aurora-third,
  .aurora-orbs::before,
  .aurora-orbs::after,
  .aurora-orb-third {
    animation: none;
  }

  .cursor-spotlight {
    display: none;
  }

  .nav-cta {
    animation: none;
  }

  .hero-line-1 {
    clip-path: none;
  }

  .hero-logo-big,
  .hero-logo-sub,
  .hero-role-tag,
  .hero-bottom-left,
  .hero-stats,
  .hero-scroll-cue {
    opacity: 1;
  }

  .hero-divider-line {
    width: min(300px, 60vw);
  }
}
