/* ============================================================
  CSS VARIABLES
  Change these to rebrand the whole site instantly.
  --color-bg        : page background
  --color-text      : main body text
  --color-accent    : your highlight/button color
  --color-muted     : secondary/grey text
  --color-card      : card background color
============================================================ */
:root {
  --color-bg: #0d0d0d;
  --color-text: #f0ede6;
  --color-accent: #c8f04a;
  --color-muted: #888880;
  --color-card: #161616;
  --color-border: #2a2a2a;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1100px;
  --section-padding: 100px 24px;
}

/* ============================================================
  RESET & BASE STYLES
  Removes default browser spacing and sets up the basics.
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Makes navbar links scroll smoothly */
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
}

/* Utility: centres content and caps max width */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility: the lime-green accent highlight color */
.accent {
  color: var(--color-accent);
}

/* ============================================================
  PAGE LOAD ANIMATION
  Each element with class "fade-up" starts invisible and
  slides up into view. JavaScript triggers this on scroll.
============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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


/* ============================================================
  NAVBAR
  Fixed at the top so it stays visible as you scroll.
  The logo is on the left, links on the right.
============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px); /* Frosted glass effect */
  border-bottom: 1px solid var(--color-border);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s;
}

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

/* The "Contact" link in the nav stands out as a button */
.nav-links .nav-cta {
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 6px 16px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}

.nav-links .nav-cta:hover {
  background: var(--color-accent);
  color: #0d0d0d;
}

/* Mobile: hide nav links, show hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav menu (hidden by default) */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 99;
}

.nav-mobile a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
}

.nav-mobile.open {
  display: flex;
}


/* ============================================================
  HERO SECTION
  The first thing visitors see. Big headline, subtext, and a CTA.
============================================================ */
#hero {
  padding: 180px 24px 100px;
  text-align: left;           /* Left-aligned, not centred */
  position: relative;
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-muted);  /* Quieter — not accent, just a label */
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Small line decoration before the eyebrow label */
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-muted);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(52px, 9vw, 110px); /* Bigger and bolder */
  line-height: 0.95;          /* Tight, editorial line height */
  letter-spacing: -3px;
  margin-bottom: 0;
  max-width: 100%;
}

/* Second line of headline pushed right for asymmetry */
.hero-headline .line-2 {
  display: block;
  padding-left: clamp(40px, 12vw, 180px); /* Indented — like Truck'N Roll */
  color: var(--color-accent);
}

.hero-subtext {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 400px;
  margin: 48px 0 48px clamp(40px, 12vw, 180px); /* Aligned under indented line */
  font-weight: 300;
  border-left: 1px solid var(--color-border);
  padding-left: 20px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start; /* Left-aligned buttons */
  flex-wrap: wrap;
  padding-left: clamp(40px, 12vw, 180px); /* Match the indent */
}

/* Primary button — filled accent color */
.btn-primary {
  background: var(--color-accent);
  color: #0d0d0d;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* Secondary button — outlined */
.btn-secondary {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  display: inline-block;
}

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


/* ============================================================
  SECTION SHARED STYLES
  Applied to most sections for consistent spacing and labels.
============================================================ */
section {
  padding: var(--section-padding);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-muted);  /* Quieter label, not shouting accent */
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Numbered counter decoration before each section label */
.section-label::before {
  content: attr(data-num);    /* Pulls number from data-num="( 01 )" in HTML */
  font-size: 10px;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 1px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.5vw, 72px); /* Bigger than before */
  line-height: 0.95;          /* Tight editorial feel */
  letter-spacing: -2px;
  margin-bottom: 24px;
  text-align: left;
}

/* Some headings get pushed right for asymmetry */
.section-heading .push-right {
  display: block;
  text-align: right;
}

.section-subtext {
  color: var(--color-muted);
  max-width: 420px;
  margin-bottom: 56px;
  font-weight: 300;
  font-size: 15px;
  border-left: 1px solid var(--color-border);
  padding-left: 20px;
}

/* Thin decorative divider line between sections */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}


/* ============================================================
  PORTFOLIO SECTION
  Shows example sites in a 2-column card grid.
  Replace the placeholder content with your real sites!
============================================================ */
#portfolio {
  background: var(--color-bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

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

/* The coloured thumbnail placeholder — swap with a real screenshot */
.portfolio-thumb {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  /* ↓ Replace this background with: background: url('screenshot.jpg') center/cover; */
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.portfolio-info {
  padding: 24px;
}

.portfolio-tag {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 8px;
}

.portfolio-desc {
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 300;
}


/* ============================================================
  WHY ME SECTION
  Four key selling points in a 2x2 grid of cards.
============================================================ */
#why {
  background: var(--color-card);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s;
}

.why-card:hover {
  border-color: var(--color-accent);
}

.why-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.why-title {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 10px;
}

.why-text {
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
}


/* ============================================================
  ABOUT SECTION
  Two-column layout: text on the left, photo on the right.
  On mobile, they stack vertically.
============================================================ */
#about {
  background: var(--color-bg);
}

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

.about-text p {
  color: var(--color-muted);
  margin-bottom: 20px;
  font-weight: 300;
}

.about-text p strong {
  color: var(--color-text);
  font-weight: 500;
}

/* Pricing badge inside the about section */
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 10px 20px;
  margin-top: 8px;
  font-size: 15px;
}

.pricing-badge span {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 20px;
}

/* Photo placeholder — replace with your actual photo */
.about-photo {
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
  object-fit: cover;    /* Crops it to fill the space without stretching */
  object-position: top;
  /* ↓ Replace with: background: url('your-photo.jpg') center/cover; */
}


/* ============================================================
  TESTIMONIALS SECTION
  Review cards in a row. Add more .testimonial-card as needed.
============================================================ */
#testimonials {
  background: var(--color-card);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
}

/* The five stars */
.testimonial-stars {
  color: var(--color-accent);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-quote {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Initials circle — auto-generates from first/last name */
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
}

.testimonial-name {
  font-weight: 500;
  font-size: 15px;
}

.testimonial-biz {
  font-size: 13px;
  color: var(--color-muted);
}


/* ============================================================
  CONTACT SECTION
  Simple form + contact info side by side.
============================================================ */
#contact {
  background: var(--color-bg);
}

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

.contact-info p {
  color: var(--color-muted);
  margin-bottom: 32px;
  font-weight: 300;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 16px;
  transition: color 0.2s;
}

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

.contact-link-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* The contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Shared input/textarea styles */
.contact-form input,
.contact-form textarea {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-muted);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Submit button — full width inside the form */
.btn-submit {
  background: var(--color-accent);
  color: #0d0d0d;
  border: none;
  padding: 16px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.2s, transform 0.2s;
}

.btn-submit:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}


/* ============================================================
  FOOTER
  Simple centered footer with name and links.
============================================================ */
footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 24px;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
}

footer a {
  color: var(--color-muted);
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--color-text);
}


/* ============================================================
  RESPONSIVE / MOBILE STYLES
  Below 768px wide (tablets and phones), things stack vertically.
============================================================ */
/* ============================================================
  PARALLAX SCROLL TEXT
  .parallax-text is a large oversized heading that slides
  horizontally as you scroll down the page.

  How it works:
    - The text starts offset to one side (set by JS)
    - On every scroll event, JS reads window.scrollY and
      moves the text left or right using translateX()
    - "speed" controls how fast it moves relative to scroll
    - Odd sections slide left-to-right, even slide right-to-left

  To add it to a new section, just drop in:
    <div class="parallax-text-wrap">
      <span class="parallax-text">YOUR TEXT HERE &nbsp;&nbsp;&nbsp; YOUR TEXT HERE</span>
    </div>
============================================================ */
.parallax-text-wrap {
  overflow: hidden;           /* Hides text that slides off screen edges */
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 60px 0;
  user-select: none;          /* Prevents accidental text selection while scrolling */
}

.parallax-text {
  display: block;
  white-space: nowrap;        /* Forces text onto one line so it can slide */
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 75px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: transparent;                        /* Text is hollow/outlined */
  -webkit-text-stroke: 1px var(--color-border); /* Outline only, no fill */
  will-change: transform;     /* Hints to browser to GPU-accelerate this element */
  transition: transform 0.05s linear; /* Tiny smoothing to reduce jitter */
}

/* When hovered, the text fills in with accent color */
.parallax-text-wrap:hover .parallax-text {
  -webkit-text-stroke: 1px var(--color-accent);
  color: transparent;
}

@media (max-width: 768px) {

  :root {
    --section-padding: 72px 20px;
  }

  /* Stack about and contact grids vertically on mobile */
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Hide the photo on mobile to save space */
  .about-photo {
    display: none;
  }

  /* Hide desktop nav links, show hamburger */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}
