/* ============================================================
   Fix It — styles.css
   All visual styles for the website.
   Edit the CSS variables in :root to restyle everything.
============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (variables)
   Edit these to restyle the whole site instantly.
============================================================ */
:root {
  /* --- Brand Colors --- */
  --color-bg: #0a0a0f; /* main background */
  --color-surface: #13131c; /* card / section bg */
  --color-surface-2: #1c1c2e; /* slightly lighter surface */
  --color-border: rgba(255, 255, 255, 0.08);

  /* --- Text --- */
  --color-text: #e8e8f0;
  --color-text-muted: #7a7a9a;

  /* --- Accent (the "Ar" and "Knowledge" highlight color) --- */
  --color-accent: #339af0; /* golden amber */
  --color-accent-glow: rgba(232, 160, 32, 0.35);

  /* --- Secondary accent (links, hover states) --- */
  --color-secondary: #5e8eff; /* electric blue */
  --color-secondary-glow: rgba(94, 142, 255, 0.3);

  /* --- Arrow glow --- */
  --color-arrow-glow: rgba(32, 195, 232, 0.6);

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

  /* --- Spacing --- */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-max: 1200px;

  /* --- Transitions --- */
  --transition-fast: 0.2s ease;
  --transition-med: 0.4s ease;

  /* --- Nav height (used for scroll offset) --- */
  --nav-height: 72px;
}

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

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

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

/* subtle noise texture over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
}

/* accent text spans */
.accent {
  color: var(--color-accent);
}
.accent-2 {
  color: var(--color-accent);
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  /* frosted glass */
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-med);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* --- Logo --- */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

/*
  LOGO: The logo is styled as a text wordmark "Fix It".
  The icon badge (.nav__logo-mark) contains a wrench icon SVG.
  To swap in an image logo, replace .nav__logo-mark with:
    <img src="logo.png" alt="Fix It" style="height:40px">
  and delete .nav__logo-mark styles below.
*/
.nav__logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent), #c06800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--color-accent-glow);
}

.nav__logo-mark svg {
  width: 22px;
  height: 22px;
  stroke: #0a0a0f;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}

.nav__logo-wordmark .logo-fix {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.nav__logo-wordmark .logo-it {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--color-accent);
}

/* stacked on one line variant */
.nav__logo-single {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.nav__logo-single .logo-it {
  color: var(--color-accent);
}

/* --- Nav Links --- */
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-text);
}
.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* --- Hamburger (mobile) --- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

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

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile menu drawer */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(13, 13, 20, 0.97);
  backdrop-filter: blur(14px);
  padding: 24px clamp(16px, 5vw, 48px);
  border-bottom: 1px solid var(--color-border);
  z-index: 999;
  flex-direction: column;
  gap: 20px;
}

.nav__mobile-menu.open {
  display: flex;
}

.nav__mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

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

/* ============================================================
   SECTION UTILITY
============================================================ */
.section {
  padding: calc(var(--nav-height) + var(--section-padding)) 0
    var(--section-padding);
}

.section--hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  position: relative;
}

/* ============================================================
   PAGE SECTIONS — show/hide for SPA-like navigation
============================================================ */
.page {
  display: none;
}
.page.active {
  display: block;
}

/* ============================================================
   HOME PAGE
============================================================ */
#home {
  position: relative;
  overflow: hidden;
}

/* background radial glow blobs */
.hero__bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__bg-blob--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(232, 160, 32, 0.12) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
}

.hero__bg-blob--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(94, 142, 255, 0.08) 0%,
    transparent 70%
  );
  bottom: 0;
  left: -150px;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  padding: var(--section-padding) 0;
}

/* --- Video wrapper ---
   Replace .hero__video-placeholder with a real <video> or <iframe>.
   Keep .hero__video-wrapper so sizing stays intact.
*/
.hero__video-wrapper {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 60px rgba(232, 160, 32, 0.12);
  position: relative;
}

.hero__video-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.hero__video-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

/* --- Question --- */
.hero__question {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--color-text);
}

/* "Ar" glowing text */
.hero__question .accent {
  position: relative;
  display: inline-block;
}

.hero__question .accent::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--color-accent);
  filter: blur(8px);
  opacity: 0.6;
  pointer-events: none;
}

/* --- Subline --- */
.hero__sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.3px;
}

.hero__sub .accent-2 {
  font-weight: 600;
}

/* ============================================================
   GLOWING ARROW
============================================================ */
.scroll-arrow {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.scroll-arrow__icon {
  width: 44px;
  height: 44px;
  border: 4px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: arrowPulse 2s ease-in-out infinite;
  box-shadow:
    0 0 18px var(--color-arrow-glow),
    inset 0 0 12px rgba(232, 160, 32, 0.08);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.scroll-arrow:hover .scroll-arrow__icon {
  transform: translateY(4px);
  box-shadow:
    0 0 32px var(--color-arrow-glow),
    inset 0 0 20px rgba(232, 160, 32, 0.15);
}

.scroll-arrow__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-arrow__label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@keyframes arrowPulse {
  0%,
  100% {
    box-shadow:
      0 0 18px var(--color-arrow-glow),
      inset 0 0 12px rgba(232, 160, 32, 0.08);
  }
  50% {
    box-shadow:
      0 0 36px var(--color-arrow-glow),
      inset 0 0 20px rgba(232, 160, 32, 0.15);
  }
}

/* ============================================================
   MISTAKES PAGE
============================================================ */
#mistakes .page-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-header__sub {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* divider between sections */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-secondary)
  );
  border-radius: 2px;
  margin: 0 auto 48px;
}

/* === Section 1 — Text Grid === */
.mistakes__text-section {
  margin-bottom: clamp(48px, 8vw, 100px);
}

.mistakes__section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  text-align: center;
}

/*
  TEXT GRID: 4 cards, fixed height.
  Replace placeholder text inside each .text-card > p with your content.
  Cards maintain equal height regardless of content length.
*/
.text-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.text-card {
  /* fixed height — all cards identical regardless of word count */
  height: 160px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.text-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 160, 32, 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.text-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

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

/* card number badge */
.text-card__num {
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

/* === Section 2 — Image Carousel === */
.carousel-wrapper {
  position: relative;
}

/*
  IMAGE CAROUSEL: 10 slides, 4 visible at a time.
  Scroll left/right with the prev/next buttons.
  On tablet: 2 visible. On mobile: 1 visible.
*/
.carousel-track-container {
  overflow: hidden;
  border-radius: 14px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  /* 4 visible at a time; 3 gaps of 20px = 60px total */
  flex: 0 0 calc((100% - 60px) / 4);
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  position: relative;
}

/* Image placeholder — replace with real <img> tags */
.carousel-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}

.carousel-img-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

.carousel-img-placeholder span {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

/* actual images — use class .carousel-slide img */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-slide:hover img {
  transform: scale(1.04);
}

/* nav buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0a0a0f;
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-btn--prev {
  left: -24px;
}
.carousel-btn--next {
  right: -24px;
}

.carousel-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* dots indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* ============================================================
   ABOUT US PAGE
============================================================ */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.75;
  justify-content: center;
}

/*
  ABOUT VISUAL: Replace .about-visual contents with an <img> tag.
  Example:
    <img src="team-photo.jpg" alt="About us"
         style="width:100%;height:100%;object-fit:cover;">
*/
.about-visual {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

/* stat chips */
.about-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.stat-chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px 24px;
  text-align: center;
  flex: 1 1 120px;
}

.stat-chip__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-accent);
}

.stat-chip__label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ============================================================
   CONTACT US PAGE
============================================================ */
#contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}

/* --- Form --- */
.contact-form-wrapper h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.contact-form-wrapper p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

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

.btn-submit {
  width: 100%;
  padding: 15px 24px;
  background: var(--color-accent);
  color: #0a0a0f;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn-submit:hover {
  background: #fff;
  box-shadow: 0 8px 24px var(--color-accent-glow);
  transform: translateY(-1px);
}

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

/* success message */
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(94, 255, 130, 0.08);
  border: 1px solid rgba(94, 255, 130, 0.2);
  border-radius: 10px;
  color: #5eff82;
  font-size: 0.9rem;
  text-align: center;
}

/* --- Contact Info & Socials --- */
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.contact-detail__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(232, 160, 32, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail__text strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.contact-detail__text span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Social icons */
.social-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 32px 0 16px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/*
  SOCIAL LINKS: Edit href values in index.html to point to your profiles.
  Add/remove .social-btn items as needed.
*/
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  margin-top: var(--section-padding);
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

/* ============================================================
   RESPONSIVE BREAKPOINTS
============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .text-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-visual {
    position: static;
    aspect-ratio: 16/7;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    /* show 2 at a time on tablet */
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --nav-height: 60px;
  }
  .nav__links {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }

  .text-grid {
    /* grid-template-columns: 1fr 1fr; */
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .text-card {
    height: 140px;
    font-size: 0.85rem;
  }

  .carousel-slide {
    /* show 1 at a time on mobile */
    flex: 0 0 100%;
  }

  .carousel-btn--prev {
    left: 0;
  }
  .carousel-btn--next {
    right: 0;
  }

  #about .about-grid,
  #contact .contact-grid {
    /* background: red; */
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .about-stats {
    flex-direction: column;
  }
}

/* Very small */
@media (max-width: 380px) {
  .text-grid {
    grid-template-columns: 1fr;
  }

  /* .about-visual img {
    opacity: 0;
  } */
}

/* ============================================================
   SCROLL REVEAL UTILITY
   Elements with .reveal animate in when entering the viewport.
   Elements with .reveal-stagger animate their children in sequence.
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}
.reveal-stagger.visible > *:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}
.reveal-stagger.visible > *:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.19s;
}
.reveal-stagger.visible > *:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.26s;
}

/* ============================================================
   LANGUAGE DROPDOWN
============================================================ */
.nav__lang-item {
  position: relative;
  list-style: none;
}

.nav__lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
}

.nav__lang-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.nav__lang-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.nav__lang-caret {
  width: 12px !important;
  height: 12px !important;
  transition: transform var(--transition-fast);
}

.nav__lang-item.open .nav__lang-caret {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav__lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: rgba(13, 13, 20, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  z-index: 2000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.nav__lang-item.open .nav__lang-dropdown {
  display: block;
}

.nav__lang-dropdown li button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.nav__lang-dropdown li button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.nav__lang-dropdown li button.active-lang {
  color: var(--color-accent);
}

/* ============================================================
   MOBILE MENU — centered links
============================================================ */
.nav__mobile-menu {
  align-items: center; /* override: center instead of left */
  text-align: center;
}

.nav__mobile-menu a {
  width: 100%;
  text-align: center;
}

/* Language buttons inside mobile menu */
.nav__mobile-lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  width: 100%;
}

.nav__mobile-lang button {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.nav__mobile-lang button:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.nav__mobile-lang button.active-lang {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================================
   SOCIAL LINKS — always centered regardless of count
============================================================ */
.social-links {
  justify-content: center; /* override: center instead of flex-start */
}

/* ============================================================
   XL SCREENS — logo hard-left, links hard-right.
   The nav bar spans the full viewport width.
   Content is pinned to the left/right edges using padding,
   NOT centered with max-width + auto margin.
============================================================ */
@media (min-width: 1200px) {
  .nav__inner {
    /* Remove the centering behaviour — push content to edges */
    max-width: 100%;
    padding: 0 clamp(32px, 4vw, 80px);
  }
}
