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

:root {
  /* Warm Creamish Palette */
  --bg-color: #fdf8f0;
  --surface-color: #fffcf7;
  --text-main: #111111;
  --text-muted: #666666;
  --border-color: #e8dfd4;
  --accent-color: #111111;
  --accent-hover: #333333;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}

.text-muted {
  color: var(--text-muted);
}

p {
  font-size: 1.125rem;
}

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

/* ─── NAVIGATION ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: rgba(253, 248, 240, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.btn-nav {
  padding: 0.6rem 1.2rem;
  background: var(--accent-color);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-nav:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  gap: 0.5rem;
  transform-style: preserve-3d;
}

.btn-primary {
  background: var(--text-main);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--text-muted);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.02);
}

/* ─── ICONS ─── */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.icon-lg {
  width: 32px;
  height: 32px;
  stroke-width: 1.2;
}

/* ─── 3D CARD ANIMATIONS ─── */
.tilt-card-wrapper {
  perspective: 1500px;
  cursor: pointer;
  position: relative;
}

.tilt-card {
  width: 100%;
  height: 100%;
  background: var(--surface-color);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  transform-style: preserve-3d;
  overflow: hidden;
  position: relative;
}

.tilt-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Depth elements inside the card */
.tilt-card .inner-3d {
  transform: translateZ(40px);
  /* Brings content forward during tilt */
}

.tilt-card .bg-3d {
  transform: translateZ(20px);
}

/* ─── HERO SECTION ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero p {
  margin: 2rem auto;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Background minimalist 3D shapes */
.bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.06) 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  animation: float 15s ease-in-out infinite;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.shape:hover {
  opacity: 0.8;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  transform: rotate(15deg);
  border-radius: 40px;
}

.shape-2 {
  width: 400px;
  height: 100px;
  bottom: 20%;
  right: -5%;
  border-radius: 999px;
  animation-duration: 20s;
  animation-direction: reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 15%;
  border-radius: 50%;
  animation-duration: 12s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-40px) rotate(5deg);
  }
}

/* ─── BUBBLE ANIMATION SYSTEM ─── */
/* Floating bubbles container */
.bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Individual bubble - Glassy floating */
.bubble {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(212, 82, 42, 0.35) 0%, rgba(180, 140, 90, 0.15) 50%, transparent 100%);
  box-shadow: 0 0 20px rgba(180, 140, 90, 0.25);
  border: 1.5px solid rgba(212, 82, 42, 0.3);
  opacity: 0.75;
  will-change: transform;
  /* No default animation - each bubble has its own */
}

/* Switch to slow rise animation after scroll */
.bubble.rising {
  animation: bubble-rise-slow 4s ease-in infinite !important;
}

/* PERFORMANCE OPTIMIZATION: Simplified bubbles on mobile */
@media (max-width: 768px) {
  .bubble {
    opacity: 0.5;
    box-shadow: none;
    border: 1px solid rgba(212, 82, 42, 0.15);
  }
}

/* Roaming animations for different bubble sizes */
/* Small bubbles: Fast subtle roaming with slight bend */
.bubble-sm {
  width: 20px;
  height: 20px;
  animation: roam-sm 12s ease-in-out infinite;
}

/* Medium bubbles: Moderate speed with bending */
.bubble-md {
  width: 40px;
  height: 40px;
  animation: roam-md 16s ease-in-out infinite;
}

/* Large bubbles: Slower movement with more bending */
.bubble-lg {
  width: 70px;
  height: 70px;
  animation: roam-lg 20s ease-in-out infinite;
}

/* Extra large bubbles: Slowest movement */
.bubble-xl {
  width: 100px;
  height: 100px;
  animation: roam-xl 24s ease-in-out infinite;
}

/* Roaming animations with separate paths and subtle bending */
/* Small bubbles: Fast roaming with slight oscillation */
@keyframes roam-sm {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }

  25% {
    transform: translateX(80px) translateY(-40px) rotate(12deg);
  }

  50% {
    transform: translateX(40px) translateY(-80px) rotate(0deg);
  }

  75% {
    transform: translateX(-60px) translateY(-30px) rotate(-8deg);
  }

  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
}

/* Medium bubbles: Moderate roaming with bending */
@keyframes roam-md {
  0% {
    transform: translateX(-20px) translateY(0) rotate(0deg);
  }

  25% {
    transform: translateX(100px) translateY(-60px) rotate(15deg);
  }

  50% {
    transform: translateX(-80px) translateY(-100px) rotate(0deg);
  }

  75% {
    transform: translateX(60px) translateY(-40px) rotate(-12deg);
  }

  100% {
    transform: translateX(-20px) translateY(0) rotate(0deg);
  }
}

/* Large bubbles: Slower roaming with more movement */
@keyframes roam-lg {
  0% {
    transform: translateX(40px) translateY(20px) rotate(0deg);
  }

  25% {
    transform: translateX(120px) translateY(-80px) rotate(18deg);
  }

  50% {
    transform: translateX(-100px) translateY(-120px) rotate(0deg);
  }

  75% {
    transform: translateX(80px) translateY(-50px) rotate(-15deg);
  }

  100% {
    transform: translateX(40px) translateY(20px) rotate(0deg);
  }
}

/* Extra large bubbles: Slowest roaming with widest path */
@keyframes roam-xl {
  0% {
    transform: translateX(-60px) translateY(40px) rotate(0deg);
  }

  25% {
    transform: translateX(140px) translateY(-100px) rotate(20deg);
  }

  50% {
    transform: translateX(-120px) translateY(-150px) rotate(0deg);
  }

  75% {
    transform: translateX(100px) translateY(-60px) rotate(-18deg);
  }

  100% {
    transform: translateX(-60px) translateY(40px) rotate(0deg);
  }
}

/* Bubble position variants with roaming animations - continuous movement */
.bubble-1 {
  left: 5%;
  top: 10%;
  animation: roam-sm 14s ease-in-out infinite;
  width: 30px;
  height: 30px;
}

.bubble-2 {
  left: 10%;
  top: 30%;
  animation: roam-md 18s ease-in-out infinite;
  width: 50px;
  height: 50px;
}

.bubble-3 {
  left: 15%;
  top: 5%;
  animation: roam-lg 22s ease-in-out infinite;
  width: 70px;
  height: 70px;
}

.bubble-4 {
  left: 20%;
  top: 50%;
  animation: roam-sm 16s ease-in-out infinite;
  width: 25px;
  height: 25px;
}

.bubble-5 {
  left: 25%;
  top: 15%;
  animation: roam-xl 26s ease-in-out infinite;
  width: 100px;
  height: 100px;
}

.bubble-6 {
  left: 30%;
  top: 60%;
  animation: roam-md 17s ease-in-out infinite;
  width: 40px;
  height: 40px;
}

.bubble-7 {
  left: 35%;
  top: 25%;
  animation: roam-lg 23s ease-in-out infinite;
  width: 65px;
  height: 65px;
}

.bubble-8 {
  left: 40%;
  top: 12%;
  animation: roam-sm 15s ease-in-out infinite;
  width: 35px;
  height: 35px;
}

.bubble-9 {
  left: 45%;
  top: 70%;
  animation: roam-md 19s ease-in-out infinite;
  width: 55px;
  height: 55px;
}

.bubble-10 {
  left: 50%;
  top: 20%;
  animation: roam-lg 21s ease-in-out infinite;
  width: 75px;
  height: 75px;
}

.bubble-11 {
  left: 55%;
  top: 55%;
  animation: roam-sm 17s ease-in-out infinite;
  width: 30px;
  height: 30px;
}

.bubble-12 {
  left: 60%;
  top: 8%;
  animation: roam-md 20s ease-in-out infinite;
  width: 45px;
  height: 45px;
}

.bubble-13 {
  left: 65%;
  top: 35%;
  animation: roam-xl 25s ease-in-out infinite;
  width: 95px;
  height: 95px;
}

.bubble-14 {
  left: 70%;
  top: 65%;
  animation: roam-lg 24s ease-in-out infinite;
  width: 60px;
  height: 60px;
}

.bubble-15 {
  left: 75%;
  top: 18%;
  animation: roam-sm 16s ease-in-out infinite;
  width: 28px;
  height: 28px;
}

.bubble-16 {
  left: 80%;
  top: 45%;
  animation: roam-md 18s ease-in-out infinite;
  width: 50px;
  height: 50px;
}

.bubble-17 {
  left: 85%;
  top: 72%;
  animation: roam-lg 22s ease-in-out infinite;
  width: 70px;
  height: 70px;
}

.bubble-18 {
  left: 90%;
  top: 22%;
  animation: roam-sm 15s ease-in-out infinite;
  width: 32px;
  height: 32px;
}

.bubble-19 {
  left: 95%;
  top: 58%;
  animation: roam-md 19s ease-in-out infinite;
  width: 48px;
  height: 48px;
}

.bubble-20 {
  left: 2.5%;
  top: 75%;
  animation: roam-xl 27s ease-in-out infinite;
  width: 105px;
  height: 105px;
}

/* Continuous roaming - no scroll trigger needed */

.bubble-21 {
  left: 7.5%;
  animation-delay: 0.12s;
}

.bubble-22 {
  left: 12.5%;
  animation-delay: 0.22s;
}

.bubble-23 {
  left: 17.5%;
  animation-delay: 0.32s;
}

.bubble-24 {
  left: 22.5%;
  animation-delay: 0.42s;
}

.bubble-25 {
  left: 27.5%;
  animation-delay: 0.52s;
}

.bubble-26 {
  left: 32.5%;
  animation-delay: 0.62s;
}

.bubble-27 {
  left: 37.5%;
  animation-delay: 0.72s;
}

.bubble-28 {
  left: 42.5%;
  animation-delay: 0.82s;
}

.bubble-29 {
  left: 47.5%;
  animation-delay: 0.92s;
}

.bubble-30 {
  left: 52.5%;
  animation-delay: 0.08s;
}

.bubble-31 {
  left: 57.5%;
  animation-delay: 0.18s;
}

.bubble-32 {
  left: 62.5%;
  animation-delay: 0.28s;
}

.bubble-33 {
  left: 67.5%;
  animation-delay: 0.38s;
}

.bubble-34 {
  left: 72.5%;
  animation-delay: 0.48s;
}

.bubble-35 {
  left: 77.5%;
  animation-delay: 0.58s;
}

.bubble-36 {
  left: 82.5%;
  animation-delay: 0.68s;
}

.bubble-37 {
  left: 87.5%;
  animation-delay: 0.78s;
}

.bubble-38 {
  left: 92.5%;
  animation-delay: 0.88s;
}

.bubble-39 {
  left: 97.5%;
  animation-delay: 0.98s;
}

.bubble-40 {
  left: 50%;
  animation-delay: 0.03s;
}

/* Shimmer effect on bubbles */
.bubble::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 15%;
  width: 25%;
  height: 15%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(200, 180, 140, 0.6) 0%, transparent 70%);
  filter: blur(1px);
}

/* Dark theme bubbles */
.bubbles-dark .bubble {
  background: radial-gradient(circle at 30% 30%, rgba(212, 82, 42, 0.4) 0%, rgba(42, 125, 79, 0.1) 50%, transparent 100%);
  box-shadow:
    inset 0 0 20px rgba(212, 82, 42, 0.2),
    0 0 30px rgba(212, 82, 42, 0.1);
  border: 1px solid rgba(212, 82, 42, 0.25);
}

.bubbles-dark .bubble::before {
  background: radial-gradient(ellipse at center, rgba(212, 82, 42, 0.8) 0%, transparent 70%);
}

/* ─── ENHANCED CARD DETAILS ─── */
/* Portfolio cards with bubble hover effect */
.port-card {
  position: relative;
  overflow: hidden;
}



/* Service cards with subtle glow */
.service-card {
  position: relative;
}



/* Connector style - visual link between pages */
.page-connector {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,
      rgba(17, 17, 17, 0) 0%,
      rgba(17, 17, 17, 0.1) 20%,
      rgba(17, 17, 17, 0.2) 50%,
      rgba(17, 17, 17, 0.1) 80%,
      rgba(17, 17, 17, 0) 100%);
  z-index: 999;
  pointer-events: none;
}

/* Page Transition Bubble overlay effect */
.page-transition-bubble {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at center, var(--transition-color, rgba(180, 140, 90, 0.8)) 0%, var(--bg-color) 80%);
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.3s;
  opacity: 0;
}

.page-transition-bubble.active {
  transform: translate(-50%, -50%) scale(50);
  opacity: 1;
}

/* Animated gradient border for cards */
.gradient-border {
  position: relative;
  background: var(--surface-color);
  border-radius: var(--radius-md);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.15) 50%,
      rgba(0, 0, 0, 0.05) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ─── SECTIONS (PORTFOLIO, SERVICES) ─── */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title .badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  background: #f0ebe0;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

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

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

/* Service Card */
.service-card {
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--text-main);
}

/* Bubble glow effect on hover - DISABLED */
/* .service-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.service-card:hover::before {
  width: 400px;
  height: 400px;
} */

.service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: #f5efe4;
  border-radius: 50%;
  color: var(--text-main);
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  transform: rotateY(180deg);
}

.service-card h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* Portfolio Card */
.port-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.port-img {
  width: 100%;
  height: 250px;
  background: #eee;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.tilt-card:hover .port-img img {
  transform: scale(1.05);
}

/* Portfolio bubble particles on hover */
.port-card .bubble-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.port-card:hover .bubble-particle {
  animation: particle-float 1.5s ease-out forwards;
}

.port-card .bp-1 {
  bottom: 20%;
  left: 20%;
  animation-delay: 0s;
}

.port-card .bp-2 {
  bottom: 30%;
  left: 50%;
  animation-delay: 0.2s;
}

.port-card .bp-3 {
  bottom: 40%;
  left: 70%;
  animation-delay: 0.4s;
}

.port-card .bp-4 {
  bottom: 50%;
  left: 35%;
  animation-delay: 0.6s;
}

.port-card .bp-5 {
  bottom: 25%;
  left: 80%;
  animation-delay: 0.8s;
}

@keyframes particle-float {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.5);
  }
}

.port-info {
  padding: 1.5rem;
}

.port-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.port-category {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  background: var(--surface-color);
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Footer bubble decoration */
.footer::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  animation: footer-bubble 8s ease-in-out infinite;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 10%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
  border-radius: 50%;
  animation: footer-bubble 10s ease-in-out infinite reverse;
}

@keyframes footer-bubble {

  0%,
  100% {
    transform: scale(1) translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2) translateY(-10px);
    opacity: 0.8;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.f-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.f-desc {
  color: var(--text-muted);
  max-width: 300px;
}

.f-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.f-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.f-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── DEMO PAGES SPECIFICS ─── */
.demo-header {
  height: 60vh;
  background: linear-gradient(135deg, #eee, #e5e5e5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.demo-product {
  padding: 4rem 0;
}

.demo-product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ─── WHY US SECTION ─── */
.why-us-section {
  background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface-color) 100%);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  text-align: center;
  padding: 2rem;
  background: var(--surface-color);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--text-main);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5efe4;
  border-radius: 50%;
  color: var(--text-main);
}

.why-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ─── PRICING SECTION ─── */
.pricing-section {
  background: rgba(255, 255, 255, 0.9);
  /* High contrast frosting against cream */
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2.5rem;
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.pricing-card.featured {
  margin-top: 0;
  padding-top: 3.5rem;
  border-color: rgba(180, 140, 90, 0.5);
}

.pricing-card:hover {
  border-color: rgba(180, 140, 90, 0.6);
  /* Rich side border color */
  transform: translateY(-8px) scale(1.02);
  /* Rich side-shadow effect on hover */
  box-shadow: -25px 0 45px rgba(180, 140, 90, 0.12),
    25px 0 45px rgba(180, 140, 90, 0.12),
    0 15px 35px rgba(0, 0, 0, 0.06);
  z-index: 5;
}

/* TACTILE CLICK ANIMATION: Instantly override 3D hover to compress the card physically when clicked */
.pricing-card:active {
  transform: perspective(1000px) translateY(-2px) scale(0.98) translateZ(0) !important;
  box-shadow: 0 8px 20px rgba(180, 140, 90, 0.05) !important;
  transition: all 0.1s ease-out !important;
  /* Rapid physical snap on press */
}

.badge-popular {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #f0ebe0;
  color: #666666;
  border: none;
  padding: 0.6rem 1.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: badge-float 3s ease-in-out infinite;
  transition: all 0.3s ease;
  will-change: transform;
}

/* Badge floating animation */
@keyframes badge-float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.price-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .icon.check {
  width: 20px;
  height: 20px;
  color: rgba(180, 140, 90, 0.8);
  /* Match rich accent */
}

.btn-full {
  width: 100%;
}

.pricing-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
}

.pricing-note a {
  color: var(--text-main);
  text-decoration: underline;
}

/* ─── HOW WE WORK SECTION ─── */
.how-we-work {
  background: linear-gradient(180deg, var(--surface-color) 0%, var(--bg-color) 100%);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 4rem;
  right: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border-color), transparent);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--border-color);
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.process-step:hover .step-number {
  color: var(--text-main);
}

.process-step h4 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ─── PRICING EXTRAS (Psychological Strategy) ─── */
.old-price {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
  margin-bottom: -0.25rem;
  display: block;
}

.pricing-header .price {
  margin-top: 0;
}

.badge-best-value {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  background: var(--text-main);
  color: #fff;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.pricing-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.pricing-features li.disclaimer {
  border-bottom: none;
  opacity: 0.8;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* ─── ABOUT SECTION ─── */
.about-section {
  background: var(--surface-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content .badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  background: #f0ebe0;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-serif);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #f5efe4 0%, #e8dfd4 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.image-placeholder .icon-xl {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 3rem auto 0;
  }

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

  .process-step:not(:last-child)::after {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .hero-btns {
    flex-direction: column;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* ─── CONTACT FORM STYLING ─── */
/* Form input fields with enhanced styling */
#contactForm input,
#contactForm textarea {
  transition: all 0.3s ease;
  background: #fafaf9;
}

#contactForm input:hover,
#contactForm textarea:hover {
  border-color: #d4b5a0 !important;
  background: #fdfbf8;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: #111 !important;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: #999;
  opacity: 1;
}

#contactForm input:focus::placeholder,
#contactForm textarea:focus::placeholder {
  color: #bbb;
}

/* Form status messages styling */
#contactStatus {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── MODAL STYLING ─── */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 90%;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: #f0f0f0;
  color: var(--text-main);
}

/* Modal responsive */
@media (max-width: 768px) {
  .modal-content {
    max-width: 90vw;
    border-radius: var(--radius-md);
  }
}