/* Heva Constructions Landing Page CSS */

/* ==========================================
   1. Design Tokens & CSS Variables
   ========================================== */
:root {
  /* Color Palette */
  --color-bg-light: #f9f9f8;
  --color-bg-white: #ffffff;
  --color-brand-primary: #0f3022; /* Deep Forest Green */
  --color-brand-secondary: #1a4231; /* Slightly lighter green */
  --color-brand-accent: #c2a77a; /* Muted Champagne Gold */
  --color-brand-accent-hover: #b19365;

  /* Neutral Text Colors */
  --color-text-dark: #121413; /* Soft Black */
  --color-text-muted: #5e6360; /* Modern Grey */
  --color-text-light: #f3f4f3; /* Off-white */

  /* Layout & Utilities */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --container-max-width: 1280px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;

  /* Transitions */
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.25s ease;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Shadows & Overlays */
  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 40px rgba(15, 48, 34, 0.06);
  --glass-nav: rgba(249, 249, 248, 0.85);
  --overlay-dark: rgba(12, 23, 18, 0.65);
}

/* ==========================================
   2. Modern Reset & Base Styles
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

p.lead-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* ==========================================
   3. Buttons & Interactive Elements
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-bg-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background-color: var(--color-bg-white);
  color: var(--color-brand-primary);
  border-color: var(--color-bg-white);
  transform: translateY(-2px);
}

.btn-cta-light {
  background-color: var(--color-brand-accent);
  color: var(--color-brand-primary);
}

.btn-cta-light:hover {
  background-color: var(--color-bg-white);
  color: var(--color-brand-primary);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  background-color: var(--color-brand-primary);
  color: var(--color-bg-white);
}

.btn-nav:hover {
  background-color: var(--color-brand-accent);
}

/* ==========================================
   4. Header & Navigation Menu
   ========================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

/* Scrolled Header State */
.main-header.scrolled {
  padding: 1rem 0;
  background-color: var(--glass-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.logo {
  display: flex;
  flex-direction: column;
  letter-spacing: 0.1em;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  line-height: 1;
}

.logo-sub {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--color-brand-accent);
  margin-top: 0.1rem;
}

/* Logo Color changes on scrolled / hero */
.main-header:not(.scrolled) .logo-main {
  color: var(--color-bg-white);
}

.main-header:not(.scrolled) .logo-sub {
  color: var(--color-brand-accent);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--color-brand-primary);
}

/* When header is transparent over hero */
.main-header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.75);
}

.main-header:not(.scrolled) .nav-link:hover {
  color: var(--color-bg-white);
}

/* Nav Link Underline animation */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: var(--transition-fast);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-brand-primary);
  transition: var(--transition-fast);
}

/* Adjust mobile toggle color on dark hero bg */
.main-header:not(.scrolled) .menu-toggle .bar {
  background-color: var(--color-bg-white);
}

/* ==========================================
   5. Hero Section
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-bg-white);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-dark);
  z-index: 1;
}

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

.hero-content {
  max-width: 780px;
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-brand-accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--color-bg-white);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  max-width: 600px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  cursor: pointer;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .wheel {
  width: 2px;
  height: 6px;
  background-color: var(--color-brand-accent);
  border-radius: 1px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.6s infinite ease;
}

.scroll-text {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-fast);
}

.scroll-indicator:hover .scroll-text {
  color: var(--color-bg-white);
}

@keyframes scroll-wheel {
  0% {
    top: 6px;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    top: 18px;
    opacity: 0;
  }
}

/* ==========================================
   6. General Section Styling & Grid System
   ========================================== */
.section-padding {
  padding: var(--spacing-xl) 0;
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}

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

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

.grid-5-col {
  grid-template-columns: repeat(5, 1fr);
}

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

.gap-lg {
  gap: var(--spacing-lg);
}

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

.section-header {
  max-width: 650px;
  margin: 0 auto 5rem;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-brand-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.title-divider {
  width: 60px;
  height: 1.5px;
  background-color: var(--color-brand-accent);
  margin: 1.5rem auto 0;
}

/* ==========================================
   7. About Section
   ========================================== */
.about {
  background-color: var(--color-bg-white);
}

.about-stats {
  gap: var(--spacing-md);
}

.stat-card {
  background-color: var(--color-bg-light);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  background-color: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-card:hover * {
  color: var(--color-bg-white);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--color-brand-primary);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-brand-accent);
}

.stat-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0.75rem 0 0.5rem;
}

.stat-desc {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================
   8. Services Section
   ========================================== */
.services-grid {
  column-gap: 2rem;
  row-gap: 2.5rem;
}

.service-card {
  background-color: var(--color-bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
  z-index: 2;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  transition: var(--transition-smooth);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

/* --- Card Overlay Area --- */
.service-card-overlay {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem 1.5rem;
  backdrop-filter: blur(2px); /* subtle backdrop */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.service-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--color-bg-white);
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

/* Specific styling for spans to take full width if the 7th item is centered */
@media (min-width: 992px) {
  .services-grid .service-card:nth-child(7) {
    grid-column: 2;
  }
}

/* ==========================================
   9. Why Choose Us Section
   ========================================== */
.why-us {
  background-color: var(--color-brand-primary);
  color: var(--color-bg-white);
}

.why-us .section-title {
  color: var(--color-bg-white);
}

.why-us-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
}

.reason-card {
  position: relative;
  padding-right: var(--spacing-sm);
}

.reason-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 1px;
  background-color: var(--color-brand-accent);
}

.reason-num {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-brand-accent);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.reason-title {
  color: var(--color-bg-white);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.reason-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ==========================================
   10. Work Showcase Section
   ========================================== */
.showcase {
  background-color: var(--color-bg-white);
}

.showcase-grid {
  gap: 2.5rem;
  display: flex;
  flex-wrap: wrap;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  flex: 1;
  min-width: 250px;
  transition: flex var(--transition-smooth);
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-brand-primary);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(12, 23, 18, 0.85) 0%,
    rgba(12, 23, 18, 0.2) 60%,
    rgba(12, 23, 18, 0) 100%
  );
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  transition: opacity var(--transition-smooth);
  z-index: 2;
}

.project-info {
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.project-category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-brand-accent);
}

.project-title {
  color: var(--color-bg-white);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0.5rem 0 0.25rem;
}

.project-location {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 300;
}

/* Hover States */
.project-card:hover {
  flex: 2;
}

.project-card:hover .project-img {
  transform: scale(1.01);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-info {
  transform: translateY(0);
}

/* ==========================================
   11. Call to Action (CTA) Section
   ========================================== */
.cta {
  position: relative;
  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-bg-white);
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-dark);
  z-index: 1;
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.cta-title {
  color: var(--color-bg-white);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ==========================================
   12. Contact Section
   ========================================== */
.contact {
  background-color: var(--color-bg-light);
}

.contact-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  background-color: var(--color-bg-white);
  color: var(--color-brand-primary);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.contact-item-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-accent);
  margin-bottom: 0.25rem;
}

.contact-item-text p {
  font-size: 1rem;
  color: var(--color-text-dark);
}

.contact-link {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-brand-primary);
}

.contact-link:hover {
  color: var(--color-brand-accent);
}

/* Contact Form Panel */
.contact-form-panel {
  background-color: var(--color-bg-white);
  padding: var(--spacing-md) 3rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  background-color: var(--color-bg-white);
  box-shadow: 0 0 0 3px rgba(15, 48, 34, 0.04);
}

.btn-submit {
  margin-top: 1rem;
  width: 100%;
  gap: 0.75rem;
}

.form-response {
  margin-top: 1rem;
  font-size: 0.92rem;
  text-align: center;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.form-response.success {
  color: #1e7e34;
}

.form-response.error {
  color: #bd2130;
}

/* ==========================================
   13. Footer Section
   ========================================== */
.footer {
  background-color: var(--color-brand-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-xl) 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: var(--spacing-lg);
  margin-bottom: 5rem;
}

.footer-logo .logo-main {
  color: var(--color-bg-white);
}

.footer-logo .logo-sub {
  color: var(--color-brand-accent);
}

.footer-about-text {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 320px;
}

.footer-title {
  color: var(--color-bg-white);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

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

.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links a:hover {
  color: var(--color-brand-accent);
  padding-left: 4px;
}

.social-icons {
  display: flex;
  gap: 1.25rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background-color: var(--color-brand-accent);
  color: var(--color-brand-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.tagline-bottom {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-brand-accent);
  margin-left: 0.5rem;
}

/* ==========================================
   14. Animations Support
   ========================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Entrance Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUpAnimation 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

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

.delay-100 {
  transition-delay: 0.15s;
}

.delay-200 {
  transition-delay: 0.3s;
}

/* Spinner animation for buttons in loading state */
.loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: loader-spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   15. Mobile & Tablet Responsiveness
   ========================================== */
@media (min-width: 992px) {
  .project-img-wrapper {
    aspect-ratio: auto;
    height: 500px;
  }
}
@media (max-width: 1200px) {
  .container {
    padding: 0 3rem;
  }

  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: var(--spacing-md);
  }
}

@media (max-width: 991px) {
  :root {
    --spacing-xl: 6rem;
  }

  .container {
    padding: 0 2rem;
  }

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

  .about-text-content {
    margin-bottom: 2rem;
  }

  .why-us-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 3rem;
  }

  .showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .project-card {
    flex: initial;
    transition: none;
  }

  .project-card:hover {
    flex: initial;
  }

  .project-img-wrapper {
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .contact-form-panel {
    padding: var(--spacing-sm) 1rem;
  }

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

@media (max-width: 768px) {
  /* Navigation Hamburger Menu */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-bg-white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 8rem 3rem 3rem;
    transition: right var(--transition-smooth);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 2rem;
  }

  .nav-link {
    font-size: 1.15rem;
    color: var(--color-text-dark);
    display: block;
  }

  .main-header:not(.scrolled) .nav-link {
    color: var(--color-text-dark);
  }

  .nav-cta-wrapper {
    display: none; /* Hide top CTA on small screens */
  }

  /* Active hamburger icon */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Toggle active toggle line colors when menu is open */
  .menu-toggle.active .bar {
    background-color: var(--color-brand-primary) !important;
  }

  /* Hero section */
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

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

  .project-card {
    flex: initial;
    transition: none;
  }

  .project-card:hover {
    flex: initial;
  }

  .project-img-wrapper {
    aspect-ratio: 4 / 3;
  }

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

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
