/* ================================================================
   AV Web Studio — style.css
   Premium dark-mode portfolio site for a freelance web designer.
   ================================================================

   TABLE OF CONTENTS
   -----------------
   1.  CSS Custom Properties (Design Tokens)
   2.  Reset & Base
   3.  Typography
   4.  Utility Classes
   5.  Navigation
   6.  Mobile Menu
   7.  Hero Section
   8.  About Section
   9.  Services Section
   10. Features (Why Work With Me)
   11. Portfolio / Work Showcase
   12. Process Section
   13. Testimonials
   14. Final CTA
   15. Footer
   16. Scroll Reveal Animations
   17. Responsive (Tablet / Mobile)
================================================================ */


/* ================================================================
   1. CSS Custom Properties
================================================================ */
:root {
  /* --- Colour Palette --- */
  /* Background layers */
  --bg-base:        #0a0a0b;
  --bg-surface:     #111113;
  --bg-raised:      #18181c;
  --bg-overlay:     #1f1f24;

  /* Primary text */
  --text-primary:   #f0ebe0;   /* warm cream */
  --text-secondary: #b8b0a0;   /* muted cream */
  --text-muted:     #908c88;   /* subdued */

  /* Accent — muted gold */
  --accent:         #c8a96e;
  --accent-light:   #ddc08a;
  --accent-dark:    #9a7840;
  --accent-glow:    rgba(200, 169, 110, 0.18);

  /* Secondary accent — steel blue */
  --blue:           #7fa0b4;
  --blue-dim:       rgba(127, 160, 180, 0.12);

  /* Semantic */
  --success:        #5a9e7a;
  --warning:        #c8a96e;
  --error:          #c05a5a;

  /* Borders */
  --border:         rgba(255, 255, 255, 0.07);
  --border-accent:  rgba(200, 169, 110, 0.25);

  /* Glass */
  --glass-bg:       rgba(255, 255, 255, 0.04);
  --glass-border:   rgba(255, 255, 255, 0.08);

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md:      0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg:      0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-accent:  0 8px 32px rgba(200, 169, 110, 0.12);

  /* --- Typography --- */
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* --- Spacing (8px grid) --- */
  --sp-1:  0.5rem;   /*  8px */
  --sp-2:  1rem;     /* 16px */
  --sp-3:  1.5rem;   /* 24px */
  --sp-4:  2rem;     /* 32px */
  --sp-5:  2.5rem;   /* 40px */
  --sp-6:  3rem;     /* 48px */
  --sp-8:  4rem;     /* 64px */
  --sp-10: 5rem;     /* 80px */
  --sp-12: 6rem;     /* 96px */
  --sp-16: 8rem;     /* 128px */

  /* --- Layout --- */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);

  /* --- Motion --- */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.87, 0, 0.13, 1);
  --dur-fast:   180ms;
  --dur-base:   300ms;
  --dur-slow:   600ms;

  /* --- Radii --- */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;
}


/* ================================================================
   2. Reset & Base
================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Smooth focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ================================================================
   3. Typography
================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 400;
}

em {
  font-style: italic;
  color: var(--accent);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

blockquote {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
}


/* ================================================================
   4. Utility Classes
================================================================ */

/* Container */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Sections */
.section {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.section-alt {
  background-color: var(--bg-surface);
}

/* Section headers */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--sp-3);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
}

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

/* Glassmorphism card base */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(200, 169, 110, 0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 28px rgba(200, 169, 110, 0.45);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}


/* ================================================================
   5. Navigation
================================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

/* Scrolled state — added by JS */
#navbar.scrolled {
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav-logo:hover .logo-mark {
  color: var(--accent-light);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
  padding: 0.5rem var(--sp-2);
  border-radius: var(--radius-full);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--text-primary);
}

/* Nav CTA button */
.nav-cta {
  background: var(--accent) !important;
  color: #0a0a0b !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-full) !important;
  transition:
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out) !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
  box-shadow: 0 4px 16px rgba(200, 169, 110, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-base) var(--ease-out),
    width var(--dur-base) var(--ease-out);
  transform-origin: center;
}

/* Open state animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ================================================================
   6. Mobile Menu
================================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-4xl));
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}

.mobile-menu a:hover {
  color: var(--accent);
}


/* ================================================================
   7. Hero Section
================================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
}

/* Animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: clamp(400px, 50vw, 700px);
  height: clamp(400px, 50vw, 700px);
  background: radial-gradient(circle, rgba(200, 169, 110, 0.14) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.orb-2 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: radial-gradient(circle, rgba(127, 160, 180, 0.1) 0%, transparent 70%);
  bottom: -5%;
  right: -5%;
  animation-delay: -8s;
  animation-duration: 30s;
}

.orb-3 {
  width: clamp(200px, 30vw, 450px);
  height: clamp(200px, 30vw, 450px);
  background: radial-gradient(circle, rgba(200, 169, 110, 0.08) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation-delay: -15s;
  animation-duration: 20s;
}

@keyframes orbFloat {
  0%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
  25%       { transform: translate(3%, 4%) scale(1.04); }
  50%       { transform: translate(-2%, 2%) scale(0.97); }
  75%       { transform: translate(4%, -3%) scale(1.02); }
}

/* Subtle dot-grid overlay */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  padding-inline: var(--container-pad);
}

.hero-headline {
  font-size: clamp(var(--text-4xl), 7vw, var(--text-7xl));
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-3);
}

.hero-sub {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--sp-5);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-trust .sep {
  color: var(--accent);
  opacity: 0.5;
}

/* Scroll cue */
/* .scroll-cue {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  bottom: 2rem;
}

.scroll-cue span {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line-anim {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
} */


/* ================================================================
   8. About Section
================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

/* Image side */
.about-visual {
  position: relative;
}

.about-img-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-out);
}

.about-img-frame:hover img {
  transform: scale(1.03);
}

/* Decorative corner accent */
.img-accent-border {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 0 0 var(--radius-xl) 0;
  opacity: 0.35;
  pointer-events: none;
}

/* Floating stat cards */
.stat-card {
  position: absolute;
  top: var(--sp-5);
  left: calc(-1 * var(--sp-5));
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 120px;
  box-shadow: var(--shadow-md);
}

.stat-card-2 {
  top: auto;
  bottom: var(--sp-6);
  left: auto;
  right: calc(-1 * var(--sp-4));
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c1beb9;
  /* COLOUR OF TEXT OVER IMAGE. HAVING ISSUES ATM WITH VISIBILITY */
}

/* Copy side */
.about-copy {
  max-width: 520px;
}

.about-copy p {
  margin-bottom: var(--sp-3);
}

.about-copy .btn {
  margin-top: var(--sp-2);
}


/* ================================================================
   9. Services Section
================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

/* Row 2 — 2 cards centred */
.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
  grid-column: span 1;
}

/* Centre the last 2 cards */
@supports (grid-template-columns: subgrid) {
  .services-grid .service-card:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 2;
  }
  .services-grid .service-card:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 2;
  }
}

.service-card {
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-4);
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

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

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

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-3);
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-2);
}

.service-card p {
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tags span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}


/* ================================================================
   10. Features (Why Work With Me)
================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-item {
  background: var(--bg-base);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  transition:
    background var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
  position: relative;
}

.section-alt .features-grid {
  background: rgba(255,255,255,0.05);
}

.section-alt .feature-item {
  background: var(--bg-surface);
}

.feature-item:hover {
  background: var(--bg-raised);
}

.feature-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
  line-height: 1;
  min-width: 2.5rem;
  padding-top: 2px;
  transition: opacity var(--dur-base) var(--ease-out);
}

.feature-item:hover .feature-num {
  opacity: 0.8;
}

.feature-body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-1);
}

.feature-body p {
  font-size: var(--text-sm);
  line-height: 1.7;
}


/* ================================================================
   11. Portfolio / Work Showcase
================================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

/* Browser chrome mockup */
.portfolio-preview {
  background: var(--preview-bg, var(--bg-raised));
  padding: 1.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.mock-browser {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Browser chrome dots */
.mock-dots {
  padding: 8px 12px;
  display: flex;
  gap: 5px;
  align-items: center;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.mock-dots span:nth-child(1) { background: rgba(255, 100, 80, 0.4); }
.mock-dots span:nth-child(2) { background: rgba(255, 190, 60, 0.4); }
.mock-dots span:nth-child(3) { background: rgba(80, 200, 100, 0.4); }

.mock-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.mock-nav-bar {
  height: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  flex-shrink: 0;
}

.mock-hero-strip {
  height: 40px;
  border-radius: 6px;
  background: rgba(127, 160, 180, 0.2);
  flex-shrink: 0;
}

.mock-hero-strip.accent-blue  { background: rgba(127, 160, 180, 0.3); }
.mock-hero-strip.accent-warm  { background: rgba(200, 169, 110, 0.3); }
.mock-hero-strip.accent-green { background: rgba(90, 158, 122, 0.3); }

.mock-text-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.mock-row {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
}

.mock-row.w-35  { width: 35%; }
.mock-row.w-40  { width: 40%; }
.mock-row.w-45  { width: 45%; }
.mock-row.w-50  { width: 50%; }
.mock-row.w-55  { width: 55%; }
.mock-row.w-60  { width: 60%; }
.mock-row.w-65  { width: 65%; }
.mock-row.w-70  { width: 70%; }
.mock-row.w-75  { width: 75%; }
.mock-row.warm  { background: rgba(200, 169, 110, 0.3); }
.mock-row.green { background: rgba(90, 158, 122, 0.3); }

.mock-card-row {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.mock-mini-card {
  flex: 1;
  height: 30px;
  border-radius: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.06);
}

.mock-img-row {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.mock-img-block {
  flex: 1;
  height: 36px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
}

.mock-img-block.warm-img { background: rgba(200, 169, 110, 0.2); }

/* Profile row for personal brand mockup */
.mock-profile-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.mock-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(127, 160, 180, 0.3);
  flex-shrink: 0;
}

.mock-profile-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

/* Portfolio card meta */
.portfolio-meta {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  margin-bottom: var(--sp-2);
}

.portfolio-meta h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-1);
}

.portfolio-meta p {
  font-size: var(--text-sm);
  line-height: 1.65;
}


/* ================================================================
   12. Process Section
================================================================ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin-inline: auto;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 var(--sp-4);
  align-items: start;
}

/* Number + connecting line */
.step-num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 1.25rem;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  transition:
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  z-index: 1;
}

.process-step:hover .step-num {
  background: var(--accent-glow);
  border-color: var(--accent);
}

/* Vertical connector line */
.step-line {
  width: 1px;
  flex: 1;
  min-height: 2rem;
  background: linear-gradient(to bottom, var(--border-accent), var(--border));
}

/* Step content card */
.step-content {
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.process-step:hover .step-content {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.step-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-1);
}

.step-content p {
  font-size: var(--text-sm);
  line-height: 1.75;
}


/* ================================================================
   13. Testimonials
================================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.testimonial-card {
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.stars {
  display: flex;
  gap: 3px;
}

.stars span {
  color: var(--accent);
  font-size: var(--text-sm);
}

.testimonial-card blockquote {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-secondary);
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--avatar-bg, var(--accent-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  font-family: var(--font-body);
}

.author-info strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.author-info span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}


/* ================================================================
   14. Final CTA
================================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.cta-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.1) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.cta-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(127, 160, 180, 0.08) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.cta-headline {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  margin-bottom: var(--sp-3);
  line-height: 1.15;
}

.cta-desc {
  font-size: var(--text-lg);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.cta-email-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: color var(--dur-fast) var(--ease-out);
}

.cta-email-display svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.cta-email-display:hover {
  color: var(--text-secondary);
}


/* ================================================================
   15. Footer
================================================================ */
#footer {
  background: #070708;
  border-top: 1px solid var(--border);
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.6fr;
  gap: var(--sp-6) var(--sp-4);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  margin-bottom: var(--sp-3);
  display: inline-flex;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-glow);
}

/* Footer nav columns */
.footer-nav-col h4,
.footer-contact-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-nav-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-nav-col a:hover {
  color: var(--accent);
}

/* Contact column */
.footer-contact-col p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.footer-email {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-email:hover {
  color: var(--accent-light);
}

.footer-location {
  font-size: var(--text-xs) !important;
  color: var(--text-muted) !important;
  line-height: 1.6;
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

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

.footer-made {
  letter-spacing: 0.06em;
}


/* ================================================================
   16. Scroll Reveal Animations
   Classes are set to invisible initially.
   JS adds .is-visible to trigger the transitions.
================================================================ */

/* Fade + slide up (default for most elements) */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0.1s);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Simple fade (for floating stat cards) */
.reveal-fade {
  opacity: 0;
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
  transform: translateY(12px);
}

.reveal-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero content — initial animation on page load */
.reveal-hero {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s 0.2s var(--ease-out) forwards;
}

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


/* ================================================================
   17. Responsive
================================================================ */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: span 1;
    grid-row: auto;
  }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* --- Tablet / Small Desktop (≤ 900px) --- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .about-visual {
    max-width: 480px;
    margin-inline: auto;
  }

  .about-img-frame {
    aspect-ratio: 3 / 2;
  }

  .stat-card {
    left: var(--sp-3);
    top: var(--sp-3);
  }

  .stat-card-2 {
    right: var(--sp-3);
    bottom: var(--sp-3);
    left: auto;
    top: auto;
  }

  .about-copy {
    max-width: 100%;
  }

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

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

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-1);
  }

  /* Process */
  .process-step {
    grid-template-columns: 60px 1fr;
    gap: 0 var(--sp-3);
  }

  .step-num {
    width: 44px;
    height: 44px;
    font-size: var(--text-base);
  }

  /* CTA */
  .cta-headline {
    font-size: var(--text-3xl);
  }

  .cta-headline br {
    display: none;
  }

  /* Hero */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-trust .sep {
    display: none;
  }
}

/* --- Small Mobile (≤ 480px) --- */
@media (max-width: 480px) {
  .hero-headline {
    font-size: var(--text-4xl);
  }

  .step-content {
    padding: var(--sp-3);
  }

  .service-card,
  .testimonial-card,
  .portfolio-meta {
    padding: var(--sp-3);
  }
}
