/* ============================================================
   AUDI — LXD Portfolio  |  style.css
   Theme: Telegram dark blue · Open Sans / Bitter / Montserrat
   Accent: #FE0467
   ============================================================ */

:root {
  --bg:          #141B2B;
  --bg-2:        #1E263B;
  --bg-3:        #252F47;
  --bg-card:     #1A2236;
  --accent:      #00D4FF;
  --gold:        #F5C842;
  --gold-dim:    rgba(245, 200, 66, 0.10);
  --gold-muted:  rgba(245, 200, 66, 0.35);
  --accent-soft: #33DDFF;
  --accent-dim:  rgba(0, 212, 255, 0.12);
  --accent-glow: rgba(0, 212, 255, 0.25);
  --white:       #EEF2FF;
  --white-dim:   rgba(238, 242, 255, 0.55);
  --white-muted: rgba(238, 242, 255, 0.28);
  --border:      rgba(238, 242, 255, 0.08);
  --border-hover:rgba(0, 212, 255, 0.35);
  --font-title:  'Open Sans', sans-serif;
  --font-body:   'Bitter', Georgia, serif;
  --font-btn:    'Montserrat', sans-serif;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Scroll Animations ── */
.reveal, .reveal-up, .reveal-line {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-up { transition-delay: var(--delay, 0s); }
.revealed  { opacity: 1; transform: translateY(0); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(20, 27, 43, 0.92);
  backdrop-filter: blur(20px);
  padding: 1rem 4rem;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo .dot { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white-dim);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  font-family: var(--font-btn) !important;
  padding: 0.5rem 1.3rem !important;
  border: 1px solid var(--accent) !important;
  border-radius: 3px;
  color: var(--accent) !important;
  font-size: 0.82rem !important;
  transition: background 0.3s, color 0.3s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(14, 19, 31, 0.97);
  z-index: 99;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 2.2rem; }
.mobile-menu a {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white-dim);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ── Logo ── */
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
  transition: opacity 0.3s;
}
.nav-logo-img:hover { opacity: 0.75; }
.footer-logo-link { display: inline-flex; align-items: center; }
.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
  opacity: 0.9;
}

/* ── Nav active ── */
.nav-active { color: var(--accent) !important; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 4rem 3rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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;
}

/* 3-column hero layout — DESKTOP */
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px 200px;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

/* Explicit desktop resets — never let mobile rules bleed up */
@media (min-width: 901px) {
  .hero-layout        { grid-template-columns: 1fr 420px 200px; text-align: left; }
  .hero-left          { grid-column: unset; grid-row: unset; order: unset; align-items: flex-start; }
  .hero-center        { grid-column: unset; grid-row: unset; order: unset; height: 520px; }
  .hero-right         { grid-column: unset; grid-row: unset; order: unset; flex-direction: column; gap: 1rem; }
  .hero-actions       { display: flex; }
  .hero-mobile-cta    { display: none !important; }
  .hero-stat-card     { text-align: left; padding: 1.2rem 1.4rem; }
  .hero-stat-num      { font-size: 2.6rem; }
  .hero-stat-plus     { font-size: 1.6rem; }
  .hero-stat-label    { font-size: 0.68rem; }
  .hero-photo         { width: 320px; height: 440px; }
  .hero-icon          { width: 56px; height: 56px; font-size: 2rem; }
  .hero-tag::before   { display: inline-block; }
  .hero-title         { font-size: clamp(2.4rem, 4.5vw, 4.8rem); margin-bottom: 1.4rem; }
  .hero-sub           { font-size: 1rem; margin-bottom: 2rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: auto; padding: 0.8rem 1.8rem; font-size: 0.82rem; }
}

/* Left */
.hero-left { display: flex; flex-direction: column; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-btn);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.hero-tag::before { content:''; display:inline-block; width:20px; height:1.5px; background:var(--accent); }
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  color: var(--white);
}
.hero-title .reveal-line { display: block; }
.hero-title .reveal-line:nth-child(1) { transition-delay: 0.2s; }
.hero-title .reveal-line:nth-child(2) { transition-delay: 0.32s; }
.hero-title .reveal-line:nth-child(3) { transition-delay: 0.44s; }
.hero-title-accent { color: var(--accent-soft); }
.italic, em { font-style: italic; color: var(--accent-soft); }
.hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white-dim);
  max-width: 460px;
  margin-bottom: 2rem;
  line-height: 1.75;
  transition-delay: 0.55s;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; transition-delay: 0.7s; }

/* Center: blob + photo */
.hero-center {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 520px;
}
.hero-blob {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blob-svg {
  width: 100%;
  height: 100%;
  filter: blur(2px);
  animation: blobPulse 8s ease-in-out infinite;
}
@keyframes blobPulse {
  0%,100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.04) rotate(3deg); }
}
.hero-icon {
  position: absolute;
  font-size: 2rem;
  background: rgba(30,38,59,0.85);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  animation: floatIcon 4s ease-in-out infinite;
}
.hero-icon-1 { top: 14%; left: 8%; animation-delay: 0s; }
.hero-icon-2 { bottom: 22%; right: 6%; animation-delay: 1.5s; }
@keyframes floatIcon {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-photo {
  position: relative;
  z-index: 2;
  width: 320px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  mix-blend-mode: screen;
  filter: contrast(1.05) brightness(1.05);
}
.hero-photo-placeholder {
  width: 100%; height: 100%;
  border: 1.5px dashed rgba(238,242,255,0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(30,38,59,0.4);
  backdrop-filter: blur(4px);
}
.hero-photo-placeholder span {
  font-family: var(--font-btn);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-muted);
}
.hero-photo-placeholder small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(238,242,255,0.2);
  text-align: center;
  padding: 0 1rem;
}

/* Right: stats */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.3s;
}
.hero-stat-card:hover { border-color: var(--border-hover); }
.hero-stat-num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.hero-stat-plus {
  font-size: 1.6rem;
  color: var(--gold);
}
.hero-stat-label {
  font-family: var(--font-btn);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-muted);
  line-height: 1.4;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.8rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-btn);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  border: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.8rem;
  border: 1.5px solid rgba(238,242,255,0.25);
  color: var(--white);
  font-family: var(--font-btn);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--white-dim); background: rgba(238,242,255,0.05); transform: translateY(-2px); }
.btn-large { padding: 1rem 2.4rem; font-size: 0.9rem; }

/* Hero scroll/stats replaced by hero-layout */

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 0.9rem 0;
}
.marquee-track {
  display: flex; gap: 2.2rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-btn);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white-muted); white-space: nowrap;
}
.marquee-track .sep { color: var(--gold); }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── Section Commons ── */
.section-header { margin-bottom: 3.5rem; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-btn);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.8rem;
}
.section-tag::before { content:''; width:20px; height:1.5px; background:var(--accent); }
.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700; line-height: 1.1; color: var(--white);
}
.section-sub {
  font-family: var(--font-body);
  font-size: 1rem; color: var(--white-dim);
  max-width: 540px; margin-top: 0.8rem; line-height: 1.7;
}

/* ── About ── */
.about {
  padding: 8rem 4rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}
.about-portrait {
  position: relative;
  width: 260px;
  aspect-ratio: 3/4;
  margin-bottom: 2rem;
}
.portrait-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-btn); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white-muted);
}
.portrait-frame {
  position: absolute;
  top: 10px; right: -10px;
  width: 100%; height: 100%;
  border: 1.5px solid var(--accent);
  opacity: 0.4;
  z-index: -1;
}
.about-tools { margin-top: 1.8rem; }
.tools-label {
  font-family: var(--font-btn); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white-muted); margin-bottom: 0.7rem;
}
.tools-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tools-list span {
  font-family: var(--font-btn); font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 2px; color: var(--white-dim);
  transition: border-color 0.3s, color 0.3s;
}
.tools-list span:hover { border-color: var(--accent); color: var(--accent-soft); }

.about-right .section-title { margin-bottom: 1.8rem; }
.about-body p {
  font-family: var(--font-body);
  font-size: 1rem; color: var(--white-dim);
  line-height: 1.8; margin-bottom: 1.1rem;
}
.about-values {
  display: flex; flex-direction: column; gap: 1rem;
  margin: 2rem 0;
  padding: 1.8rem;
  border: 1px solid var(--border);
  background: var(--bg);
}
.value { display: flex; gap: 1.2rem; align-items: flex-start; }
.value-num {
  font-family: var(--font-btn); font-size: 0.68rem;
  color: var(--accent); letter-spacing: 0.05em;
  padding-top: 0.2rem; flex-shrink: 0;
}
.value-text { font-family: var(--font-body); font-size: 0.92rem; color: var(--white-dim); line-height: 1.65; }
.value-text strong { color: var(--white); font-weight: 600; }

/* ── Portfolio ── */
.portfolio {
  padding: 8rem 4rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.project-img {
  position: relative;
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.thumb-1 { background: linear-gradient(135deg, #0f1e35 0%, #1a0820 100%); }
.thumb-2 { background: linear-gradient(135deg, #0d1f1f 0%, #0e1830 100%); }
.thumb-3 { background: linear-gradient(135deg, #1a140d 0%, #0d1522 100%); }
.project-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(238,242,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,242,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}
.project-img-inner { position: relative; z-index: 1; }
.project-emoji { font-size: 3rem; filter: drop-shadow(0 0 20px rgba(254,4,103,0.3)); }
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(14,19,31,0.8);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-body { padding: 1.4rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.tag {
  font-family: var(--font-btn);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  padding: 0.2rem 0.6rem; border-radius: 2px;
}
.project-title {
  font-family: var(--font-title);
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.6rem; line-height: 1.3;
}
.project-desc {
  font-family: var(--font-body);
  font-size: 0.88rem; color: var(--white-dim); line-height: 1.7;
}

/* ── Services ── */
.services {
  padding: 8rem 4rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3.5rem;
}
.service-card {
  background: var(--bg-2);
  padding: 2.2rem;
  transition: background 0.3s;
}
.service-card:hover { background: var(--bg-3); }
.service-icon { font-size: 1rem; color: var(--accent); margin-bottom: 1.2rem; display: block; }
.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.8rem;
}
.service-card p {
  font-family: var(--font-body);
  font-size: 0.9rem; color: var(--white-dim);
  line-height: 1.7; margin-bottom: 1.2rem;
}
.service-card ul { display: flex; flex-direction: column; gap: 0.4rem; }
.service-card li {
  font-family: var(--font-btn);
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--accent); padding-left: 1.1rem; position: relative;
}
.service-card li::before { content:'→'; position:absolute; left:0; color:var(--accent); }

/* ── Testimonials ── */
.testimonials {
  padding: 8rem 4rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.testimonials .section-title { margin-bottom: 3.5rem; }
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.testimonial {
  padding: 2.2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 6px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.testimonial:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.testimonial::before {
  content: '\201C';
  position: absolute; top: 1.2rem; left: 1.8rem;
  font-family: var(--font-title); font-size: 3.5rem;
  color: var(--gold); opacity: 0.35; line-height: 1;
}
.testimonial-quote {
  font-family: var(--font-body);
  font-size: 0.95rem; font-style: italic;
  color: var(--white-dim); line-height: 1.7;
  margin-bottom: 1.5rem; position: relative;
}
.testimonial-author {
  display: flex; align-items: center; gap: 0.8rem;
  border-top: 1px solid var(--border); padding-top: 1.1rem;
}
.author-avatar {
  width: 34px; height: 34px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 0.9rem; font-weight: 700;
  color: var(--accent); flex-shrink: 0;
}
.testimonial-author strong {
  display: block; font-family: var(--font-title);
  font-size: 0.85rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.1rem;
}
.testimonial-author span {
  font-family: var(--font-btn); font-size: 0.72rem;
  color: var(--white-muted);
}

/* ── Blog ── */
.blog {
  padding: 8rem 4rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.blog-img {
  height: 160px;
  position: relative;
}
.blog-img-1 { background: linear-gradient(135deg, #1a0f2e 0%, #0d1830 100%); }
.blog-img-2 { background: linear-gradient(135deg, #0d2010 0%, #1a1a0d 100%); }
.blog-img-3 { background: linear-gradient(135deg, #1a1a0d 0%, #0d1525 100%); }
.blog-img::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(238,242,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,242,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}
.blog-body { padding: 1.4rem; }
.blog-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.blog-date {
  font-family: var(--font-btn); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--white-muted);
}
.blog-cat {
  font-family: var(--font-btn); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  padding: 0.15rem 0.5rem; border-radius: 2px;
}
.blog-title {
  font-family: var(--font-title);
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.6rem; line-height: 1.35;
}
.blog-excerpt {
  font-family: var(--font-body);
  font-size: 0.86rem; color: var(--white-dim);
  line-height: 1.7; margin-bottom: 1rem;
}
.blog-read {
  font-family: var(--font-btn); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.blog-read:hover { border-color: var(--accent); }

/* ── Contact ── */
.contact {
  padding: 9rem 4rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1.4rem;
}
.contact-sub {
  font-family: var(--font-body);
  font-size: 1rem; color: var(--white-dim);
  line-height: 1.75; margin-bottom: 2.8rem;
}
.contact-actions { margin-bottom: 1.8rem; }
.contact-links {
  display: flex; align-items: center; justify-content: center;
  gap: 0.9rem;
  font-family: var(--font-btn); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.contact-links a { color: var(--white-dim); transition: color 0.3s; }
.contact-links a:hover { color: var(--accent-soft); }
.contact-links .sep { color: var(--white-muted); }

/* ── Footer ── */
.footer {
  padding: 1.8rem 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { font-family: var(--font-title); font-size: 1.3rem; font-weight: 700; color: var(--white-dim); }
.footer-logo .dot { color: var(--gold); }
.footer-copy { font-family: var(--font-btn); font-size: 0.68rem; letter-spacing: 0.07em; color: var(--white-muted); }
.footer-top a {
  font-family: var(--font-btn); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.footer-top a:hover { border-color: var(--accent); }

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile-first, tight spacing
   ══════════════════════════════════════════ */

/* ── Tablet landscape ── */
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr 320px 170px; gap: 1.2rem; }
  .hero-center { height: 500px; }
  .hero-photo  { width: 300px; height: 420px; }
  .hero-title  { font-size: clamp(2rem, 4vw, 4rem); }
}

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

  /* Tighten section padding */
  .about, .portfolio, .services,
  .testimonials, .blog, .contact { padding: 5rem 2.5rem; }
  .marquee-wrap { padding: 0.7rem 0; }
}

/* ── Tablet portrait / Mobile ── */
@media (max-width: 900px) {
  .hero {
    padding: 5.5rem 1.2rem 2.5rem;
    min-height: auto;
  }

  /* Single column stack: text → photo → buttons → stats */
  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
  }

  /* 1. Text block */
  .hero-left {
    order: 1;
    align-items: flex-start;
  }
  .hero-tag          { font-size: 0.65rem; margin-bottom: 0.6rem; }
  .hero-tag::before  { display: none; }
  .hero-title        { font-size: clamp(1.8rem, 6vw, 2.8rem); margin-bottom: 0.8rem; line-height: 1.12; }
  .hero-sub          { font-size: 0.88rem; margin-bottom: 0; line-height: 1.65; max-width: 100%; }

  /* Hide the desktop buttons inside hero-left */
  .hero-actions { display: none; }

  /* 2. Photo blob */
  .hero-center {
    order: 2;
    height: 340px;
  }
  .hero-photo { width: 230px; height: 310px; }
  .hero-icon  { width: 30px; height: 30px; font-size: 0.9rem; }

  /* 3. Buttons — side by side below photo */
  .hero-mobile-cta {
    order: 3;
    display: flex !important;
    gap: 0.7rem;
    flex-wrap: nowrap;
  }
  .hero-mobile-cta .btn-primary,
  .hero-mobile-cta .btn-ghost {
    flex: 1;
    padding: 0.65rem 0.8rem;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
  }

  /* 4. Stats — horizontal row */
  .hero-right {
    order: 4;
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }
  .hero-stat-card  { flex: 1; text-align: left; padding: 0.8rem 0.7rem; }
  .hero-stat-num   { font-size: 1.6rem; }
  .hero-stat-plus  { font-size: 1.1rem; }
  .hero-stat-label { font-size: 0.55rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-portrait { width: 180px; aspect-ratio: 3/4; }

  /* Section titles */
  .section-title { font-size: clamp(1.6rem, 4vw, 2.5rem); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  /* Nav */
  .nav         { padding: 1rem 1.2rem; }
  .nav.scrolled{ padding: 0.8rem 1.2rem; }
  .nav-links   { display: none; }
  .hamburger   { display: flex; }
  .nav-logo-img  { height: 38px; }
  .footer-logo-img { height: 28px; }

  /* Global section padding — tight */
  .about, .portfolio, .services,
  .testimonials, .blog, .contact { padding: 3.5rem 1.2rem; }
  .marquee-wrap { padding: 0.6rem 0; }

  /* Section tags & titles */
  .section-tag   { font-size: 0.65rem; margin-bottom: 0.5rem; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .section-sub   { font-size: 0.88rem; margin-top: 0.5rem; }
  .section-header{ margin-bottom: 2rem; }

  /* Grids — single column */
  .projects-grid      { grid-template-columns: 1fr; gap: 1rem; }
  .blog-grid          { grid-template-columns: 1fr; gap: 1rem; }
  .services-grid      { grid-template-columns: 1fr; gap: 1px; }
  .testimonials-track { grid-template-columns: 1fr; gap: 1rem; }

  /* Project cards */
  .project-img  { height: 160px; }
  .project-body { padding: 1rem; }
  .project-title{ font-size: 0.95rem; }
  .project-desc { font-size: 0.82rem; }
  .tag          { font-size: 0.6rem; }

  /* Service cards */
  .service-card { padding: 1.4rem; }
  .service-card h3 { font-size: 0.95rem; }
  .service-card p  { font-size: 0.84rem; margin-bottom: 0.8rem; }

  /* Blog cards */
  .blog-img    { height: 120px; }
  .blog-body   { padding: 1rem; }
  .blog-title  { font-size: 0.92rem; }
  .blog-excerpt{ font-size: 0.82rem; }

  /* Testimonials */
  .testimonial         { padding: 1.4rem; }
  .testimonial-quote   { font-size: 0.88rem; }

  /* About section */
  .about-body p  { font-size: 0.9rem; }
  .about-values  { padding: 1.2rem; margin: 1.4rem 0; }
  .value-text    { font-size: 0.85rem; }
  .tools-list span { font-size: 0.68rem; }

  /* Contact */
  .contact-title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .contact-sub   { font-size: 0.9rem; margin-bottom: 1.8rem; }
  .btn-large     { padding: 0.85rem 1.6rem; font-size: 0.8rem; }
  .contact-links { font-size: 0.68rem; gap: 0.6rem; }
  .contact-actions { flex-direction: column; align-items: center; gap: 0.8rem; }
  .contact-actions .btn-primary,
  .contact-actions .btn-ghost { width: 100%; max-width: 320px; justify-content: center; }

  /* Footer */
  .footer       { padding: 1.2rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-copy  { font-size: 0.62rem; }
}

/* ── Small mobile ── */
@media (max-width: 480px) {
  /* Hero */
  .hero          { padding: 5rem 1rem 2rem; }
  .hero-layout   { gap: 1rem; }
  .hero-title    { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-tag      { font-size: 0.6rem; }
  .hero-sub      { font-size: 0.82rem; }
  .hero-center   { height: 300px; }
  .hero-photo    { width: 200px; height: 270px; }
  .hero-stat-card{ padding: 0.6rem 0.5rem; }
  .hero-stat-num { font-size: 1.3rem; }
  .hero-stat-plus{ font-size: 0.95rem; }
  .hero-stat-label{ font-size: 0.5rem; }
  .hero-mobile-cta .btn-primary,
  .hero-mobile-cta .btn-ghost { padding: 0.55rem 0.6rem; font-size: 0.7rem; }
  .nav-logo-img  { height: 32px; }

  /* Marquee */
  .marquee-track span { font-size: 0.62rem; }

  /* Contact */
  .contact-title { font-size: 1.8rem; }
  .contact       { padding: 3rem 1rem; }

  /* About portrait: hide on very small screens */
  .about-portrait { display: none; }
}

/* ── Misc ── */
::selection { background: var(--accent-dim); color: var(--accent-soft); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
