/* ============================================================
   style.css — Ibrahim khan Website
   ============================================================
   TABLE OF CONTENTS:
   1.  CSS Variables (Colors, Fonts, Spacing)
   2.  Reset & Base
   3.  Navigation
   4.  Hero Section
   5.  Email Preview Mockup
   6.  Floating Badges
   7.  Platform Logos Strip
   8.  Shared Section Styles
   9.  Services Section
   10. Process Section
   11. Packages / Pricing Section
   12. Results Section
   13. Testimonials Section
   14. CTA Section
   15. Footer
   16. Animations & Utilities
   17. Responsive (Tablet & Mobile)
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES — Edit colors/fonts here to change the
      entire website theme instantly
   ============================================================ */
:root {
  /* --- Color Palette --- */
  --ink:        #0d0d0d;       /* Primary dark / text */
  --cream:      #f5f0e8;       /* Soft background panels */
  --ivory:      #faf8f4;       /* Page background */
  --gold:       #c8963e;       /* Accent / highlight color */
  --gold-light: #e8c47a;       /* Light version of gold */
  --rust:       #b84c2b;       /* Warm accent (used in avatars) */
  --teal:       #1a5f5a;       /* Primary brand color */
  --teal-light: #e6f4f3;       /* Light teal for backgrounds */
  --muted:      #6b6460;       /* Secondary text color */
  --border:     #e0d8cc;       /* Border / divider color */
  --white:      #ffffff;       /* Pure white */

  /* --- Typography --- */
  --font-heading: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;

  /* --- Spacing --- */
  --section-padding: 100px 6%;
  --nav-height: 68px;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

s {
  color: #aaa;
  font-size: 11px;
}


/* ============================================================
   3. NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--gold);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.nav-cta:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}


/* ============================================================
   4. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--section-padding);
  padding-top: calc(var(--nav-height) + 40px);
  gap: 60px;
  background: var(--ivory);
  position: relative;
}

/* Cream background panel on the right half */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: var(--cream);
  z-index: 0;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-light);
  color: var(--teal);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}

/* Hero buttons row */
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Shared button styles */
.btn-primary {
  background: var(--ink);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

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

.btn-ghost {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.btn-ghost:hover {
  gap: 10px;
}

/* Stats row below hero text */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Right column: visual */
.hero-visual {
  position: relative;
  z-index: 1;
}


/* ============================================================
   5. EMAIL PREVIEW MOCKUP (inside Hero)
   ============================================================ */
.email-preview {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transform: rotate(-1deg);
  transition: transform 0.4s ease;
}

.email-preview:hover {
  transform: rotate(0deg) scale(1.01);
}

.email-header {
  background: var(--teal);
  padding: 28px 32px;
  color: var(--white);
}

.email-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.email-logo {
  font-family: var(--font-heading);
  font-size: 20px;
}

.email-nav {
  display: flex;
  gap: 16px;
  font-size: 12px;
  opacity: 0.7;
}

.email-hero-text {
  font-size: 28px;
  font-family: var(--font-heading);
  line-height: 1.3;
}

.email-body {
  padding: 28px 32px;
}

.email-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.email-cta {
  background: var(--gold);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

.email-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.email-product {
  background: var(--cream);
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
}

.product-img {
  width: 100%;
  height: 70px;
  border-radius: 5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.product-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.product-price {
  color: var(--gold);
  font-weight: 700;
}


/* ============================================================
   6. FLOATING BADGES (inside Hero visual)
   ============================================================ */
.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatUpDown 3s ease-in-out infinite;
}

.float-badge.b1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.float-badge.b2 {
  bottom: 20%;
  right: -8%;
  animation-delay: 1.5s;
}

.badge-icon {
  font-size: 20px;
}

.badge-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
}

.badge-sub {
  font-size: 11px;
  color: var(--muted);
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}


/* ============================================================
   7. PLATFORM LOGOS STRIP
   ============================================================ */
.platforms {
  background: var(--ivory);
  text-align: center;
  padding: 60px 6%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.platforms p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.platform-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.platform-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--border);
  letter-spacing: 1px;
  transition: color 0.2s;
  cursor: default;
}

.platform-logo:hover {
  color: var(--teal);
}


/* ============================================================
   8. SHARED SECTION STYLES
   ============================================================ */
section {
  padding: var(--section-padding);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}


/* ============================================================
   9. SERVICES SECTION
   ============================================================ */
.services {
  background: var(--cream);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header .section-sub {
  margin: 0 auto;
}

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

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

/* Teal bottom border that slides in on hover */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

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

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--cream);
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}


/* ============================================================
   10. PROCESS SECTION
   ============================================================ */
.process {
  background: var(--ivory);
}

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

.process-steps {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
}

.process-step:first-child { padding-top: 0; }
.process-step:last-child  { border-bottom: none; }

.step-num {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  min-width: 50px;
  transition: color 0.3s;
}

.process-step.active .step-num,
.process-step:hover .step-num {
  color: var(--gold);
}

.step-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Dashboard visual on the right */
.process-visual {
  background: var(--cream);
  border-radius: 20px;
  padding: 40px;
}

.visual-screen {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 16px;
}

.screen-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 16px;
}

.screen-bar {
  height: 10px;
  border-radius: 5px;
  background: var(--cream);
  margin-bottom: 10px;
}

.screen-bar.w80 { width: 80%; }
.screen-bar.w60 { width: 60%; }
.screen-bar.w40 { width: 40%; }
.screen-bar.teal { background: var(--teal); }
.screen-bar.gold { background: var(--gold-light); }

.screen-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.metric-box {
  background: var(--teal-light);
  border-radius: 8px;
  padding: 14px;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 2px;
}

.metric-lbl {
  font-size: 11px;
  color: var(--teal);
  opacity: 0.7;
}

/* Flow status panel below dashboard */
.flow-status {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

.flow-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.flow-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  color: var(--ink);
}

.status-active { color: var(--teal);  font-weight: 600; }
.status-live   { color: var(--gold);  font-weight: 600; }


/* ============================================================
   11. PACKAGES / PRICING SECTION
   ============================================================ */
.packages {
  background: var(--ink);
}

.packages .section-title { color: var(--white); }
.packages .section-label { color: var(--gold-light); }
.packages .section-sub   { color: rgba(255, 255, 255, 0.5); }

.packages-header {
  text-align: center;
  margin-bottom: 60px;
}

.packages-header .section-sub {
  margin: 0 auto;
}

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

.pkg-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

/* Featured / highlighted card */
.pkg-card.featured {
  background: var(--teal);
  border-color: var(--teal);
}

.pkg-card:hover {
  transform: translateY(-4px);
}

.pkg-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.pkg-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.pkg-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pkg-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-currency {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.price-num {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.price-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 32px;
}

.pkg-features {
  list-style: none;
  margin-bottom: 36px;
}

.pkg-features li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pkg-features li::before {
  content: '✓';
  color: var(--gold-light);
  font-weight: 700;
  font-size: 13px;
  min-width: 16px;
}

.pkg-btn {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  transition: all 0.2s;
}

.pkg-card.featured .pkg-btn {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}

.pkg-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}


/* ============================================================
   12. RESULTS SECTION
   ============================================================ */
.results {
  background: var(--ivory);
}

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

.results-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.result-box {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  text-align: center;
}

.result-box.accent {
  background: var(--teal);
  border-color: var(--teal);
}

.result-val {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.result-box.accent .result-val { color: var(--white); }
.result-box.accent .result-lbl { color: rgba(255, 255, 255, 0.7); }

.result-lbl {
  font-size: 14px;
  color: var(--muted);
}

.result-lbl small {
  font-size: 11px;
  color: #aaa;
  display: block;
  margin-top: 4px;
}


/* ============================================================
   13. TESTIMONIALS SECTION
   ============================================================ */
.testimonials {
  background: var(--cream);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-header .section-sub {
  margin: 0 auto;
}

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

.testi-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testi-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  flex-shrink: 0;
}

.author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.author-role {
  font-size: 12px;
  color: var(--muted);
}


/* ============================================================
   14. CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--teal);
  text-align: center;
  padding: var(--section-padding);
}

.cta-section .section-title { color: var(--white); }
.cta-section .section-sub   {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 40px;
}

.cta-label {
  color: rgba(255, 255, 255, 0.5) !important;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.btn-white {
  background: var(--white);
  color: var(--teal);
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

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

.btn-outline-white {
  background: transparent;
  color: var(--white);
  padding: 15px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}


/* ============================================================
   15. FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.5);
  padding: 60px 6% 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-logo {
  color: var(--white) !important;
  display: block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}


/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio {
  background: var(--ivory);
  padding: var(--section-padding);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-header .section-sub {
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.portfolio-card-wide {
  grid-column: span 1;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

/* Center the last odd card */
.portfolio-grid > .portfolio-card:last-child:nth-child(3n+1) {
  grid-column: 2;
}

.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--cream);
}

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

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.3) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

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

.portfolio-overlay-content {
  color: var(--white);
}

.portfolio-overlay-content h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.portfolio-overlay-content p {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

.portfolio-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.portfolio-info {
  padding: 18px 20px;
}

.portfolio-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.portfolio-info h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.portfolio-cta {
  text-align: center;
  padding: 40px;
  background: var(--cream);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.portfolio-cta p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Social Links in Footer */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link-sm {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.social-link-sm:hover {
  color: var(--white);
}

/* Portfolio responsive */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-grid > .portfolio-card:last-child:nth-child(3n+1) {
    grid-column: auto;
  }
  .portfolio-card-wide {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-card-wide {
    grid-column: 1;
  }
}


/* ============================================================
   16. ANIMATIONS & UTILITIES
   ============================================================ */

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Count-up number containers */
.count-up {
  display: inline-block;
}


/* ============================================================
   17. RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid,
  .packages-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

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

/* ============================================================
   17. RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 5%;
  }

  /* Hero: single column, hide visual */
  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-height) + 32px);
  }

  .hero::before {
    display: none;
  }

  .hero-visual {
    display: none;
  }

  /* Grids: single column */
  .services-grid,
  .packages-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .process-inner,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .results-numbers {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Nav: hide links, show hamburger */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile nav open state (set by JS) */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--ivory);
    padding: 20px 6%;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
}
