/* ==========================================================================
   Hamza Hameed - Portfolio Stylesheet
   Modern, Clean, High-Performance Static CSS (Standalone)
   ========================================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
  --bg-page: #141414;
  --bg-surface: #181818;
  --bg-surface-elevated: #202020;
  --bg-card: #181818;
  --bg-card-inner: #141414;
  
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);
  --border-pill: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dark: #141414;

  --accent-green: #1dbf73;
  --accent-green-glow: rgba(29, 191, 115, 0.35);

  --btn-white-bg: #ffffff;
  --btn-white-text: #141414;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Manrope', 'Inter', -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --nav-height: 88px;
  --max-content-width: 1200px;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Global Reset & Box-Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-page);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 810px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Section Wrapper Base */
.section {
  width: 100%;
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
}

.section--dark {
  background-color: var(--bg-page);
}

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

@media (max-width: 1024px) {
  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* Section Header (Badge, Title, Subtitle) */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 60px;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  background-color: var(--bg-page);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-title strong {
  font-weight: 700;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  text-wrap: balance;
}

/* --- Interactive Roll-Text Button & Link Styles --- */
.roll-text {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.4em;
  line-height: 1.4em;
}

.roll-text-front,
.roll-text-back {
  display: block;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.roll-text-back {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
}

/* On hover of parent, flip text */
a:hover .roll-text-front,
button:hover .roll-text-front {
  transform: translateY(-100%);
  opacity: 0;
}

a:hover .roll-text-back,
button:hover .roll-text-back {
  transform: translateY(-100%);
  opacity: 1;
}

/* Button Primary (White Pill) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--btn-white-bg);
  color: var(--btn-white-text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary .btn-arrow-icon {
  width: 18px;
  height: 18px;
  stroke: var(--text-dark);
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow-icon {
  transform: translateX(3px);
}

/* Button Secondary (Transparent Pill with Border) */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 810px) {
  .site-header .nav-container {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .site-header .nav-container {
    padding: 0;
  }
}

/* Brand Link */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--bg-surface);
  flex-shrink: 0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Desktop Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 8px 6px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: #141414;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mobile-toggle.is-active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background-color: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-medium);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer .nav-link {
  font-size: 18px;
  font-weight: 500;
  padding: 8px 0;
  display: block;
}

.mobile-drawer .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 809px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-drawer {
    display: flex;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 140px;
  background-color: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
}

/* Status Available Badge */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  width: fit-content;
}

.status-dot-wrapper {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-dot-ping {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--accent-green);
  border-radius: var(--radius-full);
  opacity: 0.75;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot-core {
  position: relative;
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  border-radius: var(--radius-full);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.status-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Hero Typography */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-wrap: balance;
}

.hero-title strong {
  font-weight: 700;
}

.hero-description {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  text-wrap: pretty;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* Hero Tech Marquee */
.hero-ticker-wrapper {
  margin-top: 36px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.hero-ticker-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.hero-ticker-wrapper:hover .hero-ticker-track {
  animation-play-state: paused;
}

.ticker-card {
  width: 85px;
  height: 85px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ticker-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
}

.ticker-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Hero Content Animation (Runs on load without depending on JS) */
.hero-content > * {
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.28s; }
.hero-content > *:nth-child(5) { animation-delay: 0.35s; }

/* Hero Portrait Image Container */
.hero-image-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 520px;
  width: 100%;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both 0.15s;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: bottom center;
  filter: grayscale(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  display: block;
}

.hero-image-card:hover img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image-card {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 70px;
  }
  .hero-image-card {
    height: 350px;
  }
}

/* ==========================================================================
   Skills Section ("TECH STACK")
   ========================================================================== */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 14px 22px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  user-select: none;
}

.skill-tag:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background-color: var(--bg-surface-elevated);
}

.skill-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Projects Section ("PROJECTS")
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

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

.project-image-box {
  height: 290px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: var(--bg-page);
}

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

.project-card:hover .project-image-box img {
  transform: scale(1.06);
}

.project-details {
  background-color: var(--bg-card-inner);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  flex: 1;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Experience Section ("EXPERIENCE")
   ========================================================================== */
.experience-wrapper {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.experience-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  transition: border-color 0.25s ease;
  overflow: hidden;
}

.experience-card:hover {
  border-color: var(--border-medium);
}

.experience-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.experience-role {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.experience-duration {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
  text-align: right;
  flex-shrink: 0;
}

.experience-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 14px;
  cursor: pointer;
}

.experience-toggle-icon {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  stroke-width: 2;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated Grid Accordion Pattern */
.experience-body-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.experience-body-inner {
  overflow: hidden;
}

.experience-list {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.experience-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.experience-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.4;
}

/* Open State */
.experience-card.is-open .experience-body-wrapper {
  grid-template-rows: 1fr;
  opacity: 1;
}

.experience-card.is-open .experience-toggle-icon {
  transform: rotate(180deg);
}

/* Download CV button */
.experience-cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

@media (max-width: 640px) {
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .experience-duration {
    text-align: left;
  }
}

/* ==========================================================================
   FAQ Section ("FAQ")
   ========================================================================== */
.faq-wrapper {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  transition: border-color 0.25s ease;
  overflow: hidden;
}

.faq-card:hover {
  border-color: var(--border-medium);
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.faq-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  cursor: pointer;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  stroke-width: 2;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-body-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-body-inner {
  overflow: hidden;
}

.faq-answer {
  padding-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.faq-card.is-open .faq-body-wrapper {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-card.is-open .faq-toggle-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   Testimonials Section ("TESTIMONIALS")
   ========================================================================== */
.testimonials-section {
  padding-bottom: 0;
  overflow: hidden;
}

.testimonials-track-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0 20px;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.testimonials-track--left {
  animation: marquee-scroll-left 40s linear infinite;
}

.testimonials-track--right {
  animation: marquee-scroll-right 40s linear infinite;
}

.testimonials-track-wrapper:hover .testimonials-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.testimonial-card {
  width: 480px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.testimonial-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
}

.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--bg-page);
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.testimonial-quote-icon {
  width: 24px;
  height: 24px;
  opacity: 0.35;
  stroke: #ffffff;
  fill: none;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .testimonial-card {
    width: 330px;
    padding: 20px;
  }
}

/* ==========================================================================
   Footer & CTA Banner
   ========================================================================== */
.footer-cta-wrapper {
  margin-top: 100px;
  margin-bottom: 80px;
}

.cta-banner {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  padding: 130px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48.9% 64.5%;
  transform: scale(1.05);
  transition: transform 0.6s ease;
}

.cta-banner:hover .cta-banner-bg img {
  transform: scale(1.1);
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(1px);
  z-index: 2;
}

.cta-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 8px;
}

/* Main Footer Container */
.main-footer {
  padding-bottom: 40px;
}

.footer-nav-wrapper {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 380px;
}

.footer-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  stroke: #141414;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
}

.social-btn:hover svg {
  transform: scale(1.1);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-right .nav-link {
  font-size: 15px;
}

.copyright-bar {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .footer-right {
    align-items: flex-start;
  }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-ticker-track,
  .testimonials-track--left,
  .testimonials-track--right {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
