/* ================================================================
   KARGIN MİMARİ — Ultra Premium CSS
   Dark Luxury Architecture Engineering Firm Website
================================================================ */

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

:root {
  --bg:         #0a0a0a;
  --bg2:        #111111;
  --bg3:        #181818;
  --surface:    #1e1e1e;
  --border:     rgba(255,255,255,0.07);
  --gold:       #c8a96e;
  --gold-light: #e8c98e;
  --gold-dim:   rgba(200,169,110,0.15);
  --white:      #ffffff;
  --white-80:   rgba(255,255,255,0.80);
  --white-50:   rgba(255,255,255,0.50);
  --white-20:   rgba(255,255,255,0.20);
  --white-10:   rgba(255,255,255,0.10);
  --white-05:   rgba(255,255,255,0.05);
  --font-sans:  'Space Grotesk', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono:  'Space Mono', monospace;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: none; }
img, video { display: block; width: 100%; }
input, select, textarea { outline: none; }
::selection { background: var(--gold); color: var(--bg); }

/* ---- SCROLLBAR ----------------------------------------------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ---- SCROLL PROGRESS ----------------------------------------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--white-10); z-index: 9999; pointer-events: none;
}
#scroll-progress-fill {
  height: 100%; width: 0%; background: var(--gold);
  transition: width 0.1s linear;
}

/* ================================================================
   CUSTOM CURSOR
================================================================ */
#cursor-dot {
  position: fixed; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.05s, opacity 0.3s;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(200,169,110,0.6);
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: all 0.15s var(--ease-out);
}
body.cursor-hover #cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--gold);
  background: rgba(200,169,110,0.05);
}
body.cursor-click #cursor-dot { transform: translate(-50%, -50%) scale(2); }

/* ================================================================
   PRELOADER
================================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.preloader-content {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.preloader-logo {
  display: flex; gap: 2px;
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--white);
}
.pl-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}
.preloader-sub {
  font-family: var(--font-mono);
  font-size: clamp(12px, 2vw, 14px);
  letter-spacing: 8px;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
}
.preloader-bar {
  width: 200px; height: 1px;
  background: var(--white-20);
  position: relative;
  overflow: hidden;
}
.preloader-bar-fill {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 0%;
  background: var(--gold);
  transition: width 0.1s linear;
}
.preloader-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--white-50);
  letter-spacing: 2px;
}

/* ================================================================
   NAVIGATION
================================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s var(--ease-out);
}
#navbar::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,10,10,0);
  backdrop-filter: blur(0px);
  transition: all 0.4s var(--ease-out);
  pointer-events: none;
}
#navbar.scrolled::before {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-logo a {
  display: flex; align-items: center;
}
.nav-logo-svg {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}
.nav-logo-svg:hover { opacity: 0.85; }
/* Keep fallback text classes hidden when SVG present */
.logo-text, .logo-sub { display: none; }

.nav-links {
  display: flex; gap: 40px; align-items: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-80);
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 10px 24px;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}
.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  transition: all 0.4s var(--ease-out);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-out);
}
.mobile-menu.open { transform: translateX(0); }
.mob-link {
  font-family: var(--font-serif);
  font-size: clamp(36px, 8vw, 60px);
  font-weight: 700;
  color: var(--white-80);
  transition: color 0.3s;
}
.mob-link:hover { color: var(--gold); }

/* ================================================================
   HERO SECTION
================================================================ */
#hero {
  position: relative;
  width: 100%; height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}
#three-canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  display: block;
}

.hero-content {
  position: relative; z-index: 10;
  padding: 0 48px 80px;
  max-width: 900px;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
}
.eyebrow-line {
  flex: 0 0 32px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 8.5vw, 130px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -3px;
  color: var(--white);
  display: flex; flex-direction: column;
  margin-bottom: 32px;
}
.hero-word { display: block; overflow: hidden; }
.hero-word span { display: block; transform: translateY(110%); }
.hero-word--italic { font-style: italic; color: var(--gold); }

.hero-desc {
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--white-80);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 40px;
  opacity: 0;
}

.hero-actions {
  display: flex; gap: 16px; align-items: center;
  opacity: 0;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 14px 28px;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold-light);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary svg { position: relative; z-index: 1; transition: transform 0.3s; }
.btn-primary:hover svg { transform: translate(3px, -3px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-80);
  border: 1px solid var(--white-20);
  padding: 14px 28px;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}
.btn-outline:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.hero-scroll-indicator {
  position: absolute; right: 48px; bottom: 80px; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0;
}
.scroll-line {
  width: 1px; height: 64px;
  background: var(--white-20);
  position: relative; overflow: hidden;
}
.scroll-line-fill {
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollLine 2s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  100% { top: 100%; }
}
.hero-scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--white-50);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-stats {
  position: absolute; right: 48px; top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex; flex-direction: column; gap: 40px;
  opacity: 0;
}
.hero-stat {
  text-align: right;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}
.stat-plus { color: var(--gold); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--white-50);
  text-transform: uppercase;
}

/* ================================================================
   MARQUEE STRIP
================================================================ */
.marquee-strip {
  background: var(--gold);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 32px;
  animation: marqueeScroll 20s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg);
  font-weight: 700;
  flex-shrink: 0;
}
.marquee-dot {
  font-size: 10px !important;
  opacity: 0.6;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================================================================
   SECTION COMMONS
================================================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Reveal animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-step {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-step.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ================================================================
   ABOUT SECTION
================================================================ */
.section-about {
  padding: 140px 48px;
  background: var(--bg);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}
.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 70px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
}
.about-heading em { color: var(--gold); font-style: italic; }

.about-body {
  font-size: 16px;
  color: var(--white-80);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}
.about-signature {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.signature-text {
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  margin-bottom: 4px;
}
.signature-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

.about-img-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-3d-scene {
  width: 100%; height: 100%;
}
#about-canvas {
  width: 100% !important; height: 100% !important;
  display: block;
}
.about-img-tag {
  position: absolute; bottom: 20px; right: 20px;
  background: var(--gold);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--bg);
  text-transform: uppercase;
  border-radius: 2px;
}
.about-numbers {
  display: flex; align-items: center; gap: 24px;
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.about-number-item { flex: 1; text-align: center; }
.an-value {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.an-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--white-50);
  text-transform: uppercase;
}
.about-number-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* ================================================================
   SERVICES SECTION
================================================================ */
.section-services {
  padding: 140px 48px;
  background: var(--bg2);
}
.services-header {
  max-width: 1400px;
  margin: 0 auto 64px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.services-heading {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: #1a1a1a; }

.sc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.sc-icon {
  width: 52px; height: 52px;
  color: var(--gold);
  margin-bottom: 24px;
  transition: transform 0.4s var(--ease-back);
}
.service-card:hover .sc-icon { transform: scale(1.1) rotate(-5deg); }

.sc-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.2;
}
.sc-desc {
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.6;
  margin-bottom: 20px;
}
.sc-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 24px;
}
.sc-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,169,110,0.3);
  padding: 3px 10px;
  border-radius: 20px;
}
.sc-arrow {
  color: var(--white-20);
  transition: all 0.3s var(--ease-out);
  transform: translateX(0) translateY(0);
}
.service-card:hover .sc-arrow {
  color: var(--gold);
  transform: translateX(4px) translateY(-4px);
}

.service-card--cta {
  background: var(--gold);
  border-color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.service-card--cta:hover { background: var(--gold-light); }
.service-card--cta::before { background: rgba(255,255,255,0.3); }
.svc-cta-inner { text-align: center; }
.svc-cta-inner h3 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--bg);
  line-height: 1;
  margin-bottom: 28px;
}

.btn-primary-dark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg);
  padding: 12px 24px;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}
.btn-primary-dark:hover {
  background: var(--bg2);
  transform: translateY(-2px);
}

/* ================================================================
   PROJECTS SECTION
================================================================ */
.section-projects {
  padding: 140px 48px;
  background: var(--bg);
}
.projects-header {
  max-width: 1400px;
  margin: 0 auto 80px;
}
.projects-heading {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -2.5px;
}
.projects-heading em { color: var(--gold); font-style: italic; }

.projects-showcase {
  max-width: 1400px;
  margin: 0 auto;
  display: flex; flex-direction: column;
}

.project-item {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  align-items: start;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.project-item::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--ease-out);
}
.project-item:hover::after { width: 100%; }
.project-item:last-child { border-bottom: 1px solid var(--border); }

.pi-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 3px;
  padding-top: 8px;
}

.pi-visual {
  aspect-ratio: 16/10;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg3);
}
.pi-canvas-wrap {
  width: 100%; height: 100%;
  position: relative;
}
.proj-mini-canvas {
  width: 100% !important; height: 100% !important;
  display: block;
}
.pi-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--white-80);
  text-transform: uppercase;
}

.pi-info { padding-top: 8px; }
.pi-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.pi-meta {
  display: flex; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.pi-cat { color: var(--gold); }
.pi-year { color: var(--white-50); }
.pi-desc {
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 420px;
}
.pi-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pi-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-50);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.3s;
}
.project-item:hover .pi-tags span {
  border-color: rgba(200,169,110,0.3);
  color: var(--gold);
}

.project-item--alt {
  grid-template-columns: 60px 1fr 1fr;
  direction: ltr;
}

/* ================================================================
   PROCESS SECTION
================================================================ */
.section-process {
  padding: 140px 48px;
  background: var(--bg2);
}
.process-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.process-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 80px;
}
.process-steps {
  display: flex; flex-direction: column;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 56px 1px 1fr;
  gap: 0 32px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.process-step:last-child { border-bottom: 1px solid var(--border); }

.ps-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 3px;
  padding-top: 6px;
}
.ps-line {
  width: 1px;
  height: 100%;
  background: var(--border);
  position: relative;
}
.ps-line::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 0%;
  background: var(--gold);
  transition: height 0.8s var(--ease-out);
}
.process-step.visible .ps-line::before { height: 100%; }

.ps-content { padding: 0 0 0 32px; }
.ps-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.process-step:hover .ps-content h3 { color: var(--gold); }
.ps-content p {
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.7;
  max-width: 540px;
}

/* ================================================================
   TESTIMONIALS
================================================================ */
.section-testimonials {
  padding: 140px 48px;
  background: var(--bg);
}
.testi-inner {
  max-width: 900px;
  margin: 0 auto;
}
.testi-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 64px;
  line-height: 0.95;
}
.testi-heading em { color: var(--gold); font-style: italic; }

.testi-slider { position: relative; min-height: 260px; }
.testi-card {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transform: translateX(30px);
}
.testi-card.active {
  opacity: 1; pointer-events: auto;
  transform: translateX(0);
}

.tc-quote {
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--gold);
  line-height: 0.5;
  margin-bottom: 24px;
  opacity: 0.4;
}
.tc-text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--white-80);
  font-weight: 300;
  margin-bottom: 32px;
  font-style: italic;
}
.tc-author {
  display: flex; align-items: center; gap: 16px;
}
.tc-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.tc-info strong {
  display: block; font-size: 15px; font-weight: 600;
}
.tc-info span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}

.testi-nav {
  display: flex; gap: 12px;
  margin-top: 48px;
}
.tn-btn {
  width: 32px; height: 3px;
  background: var(--white-20);
  border-radius: 2px;
  transition: all 0.4s var(--ease-out);
}
.tn-btn.active {
  width: 56px;
  background: var(--gold);
}
.tn-btn:hover { background: var(--white-50); }

/* ================================================================
   CONTACT SECTION
================================================================ */
.section-contact {
  padding: 140px 48px;
  background: var(--bg2);
}
.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}
.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 0.95;
  margin-bottom: 48px;
}
.contact-heading em { color: var(--gold); font-style: italic; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.ci-item {
  display: flex; align-items: center; gap: 16px;
  font-size: 15px;
  color: var(--white-80);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.ci-item:hover { color: var(--gold); }
.ci-item svg { color: var(--gold); flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--white);
  transition: border-color 0.3s;
  width: 100%;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--white-20);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group select option {
  background: var(--bg2);
}

.btn-submit {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: none;
  padding: 16px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}
.btn-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold-light);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out);
}
.btn-submit:hover::before { transform: translateX(0); }
.btn-submit span { position: relative; z-index: 1; }
.btn-submit svg { position: relative; z-index: 1; }
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,169,110,0.3);
}
.btn-submit:active { transform: translateY(0); }

/* ================================================================
   FOOTER
================================================================ */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 48px 40px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.6;
}
.footer-links-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links-col a {
  display: block;
  font-size: 14px;
  color: var(--white-50);
  margin-bottom: 12px;
  transition: color 0.3s;
}
.footer-links-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--white-20);
}
.footer-made {
  color: var(--gold);
  opacity: 0.7;
}
.footer-made--link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: opacity 0.3s, color 0.3s;
  cursor: pointer;
}
.footer-made--link:hover {
  opacity: 1;
  color: var(--gold-light);
}
.footer-powered-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .project-item { grid-template-columns: 40px 1fr 1fr; }
}

@media (max-width: 900px) {
  #navbar { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-content { padding: 0 24px 60px; }
  .hero-stats { display: none; }
  .hero-scroll-indicator { right: 24px; bottom: 60px; }
  .section-about { padding: 100px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .section-services { padding: 100px 24px; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .section-projects { padding: 100px 24px; }
  .project-item { grid-template-columns: 1fr; gap: 24px; }
  .pi-number { display: none; }
  .section-process { padding: 100px 24px; }
  .section-testimonials { padding: 100px 24px; }
  .section-contact { padding: 100px 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 60px; }
  .form-row { grid-template-columns: 1fr; }
  #footer { padding: 60px 24px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 14vw; letter-spacing: -2px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ================================================================
   FORM SUCCESS STATE
================================================================ */
.form-success {
  text-align: center;
  padding: 60px 40px;
}
.form-success-icon {
  width: 64px; height: 64px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  color: var(--gold);
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.form-success p {
  font-size: 14px;
  color: var(--white-50);
}

/* ================================================================
   BACK TO TOP BUTTON
================================================================ */
#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  z-index: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 20px rgba(200,169,110,0.35);
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(200,169,110,0.45);
}
#back-to-top:active {
  transform: translateY(-1px);
}

/* ================================================================
   WHATSAPP FLOATING BUTTON
================================================================ */
#whatsapp-float {
  position: fixed;
  bottom: 96px; right: 32px;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.4s var(--ease-out);
  overflow: visible;
}
#whatsapp-float svg {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
#whatsapp-float:hover {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--white-80);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--border);
}
#whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ================================================================
   MOBILE — ENHANCED (< 900px)
================================================================ */
@media (max-width: 900px) {
  /* Typography scaling */
  .hero-title { letter-spacing: -2px; }
  .about-heading { letter-spacing: -1px; }
  .services-heading { letter-spacing: -1.5px; }

  /* Process grid on mobile */
  .process-step {
    grid-template-columns: 40px 1px 1fr;
    gap: 0 20px;
    padding: 28px 0;
  }

  /* Testimonial card height auto */
  .testi-slider { min-height: 300px; }
  .tc-text { font-size: 17px; }

  /* Service card - single column nicer padding */
  .service-card { padding: 32px 28px; }

  /* Footer bottom stack */
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    align-items: center;
  }

  /* Back-to-top and WA positioning on mobile */
  #back-to-top { bottom: 24px; right: 20px; width: 44px; height: 44px; }
  #whatsapp-float { bottom: 80px; right: 20px; width: 48px; height: 48px; }
  .wa-tooltip { display: none; }

  /* Preloader logo smaller */
  .preloader-logo { font-size: clamp(36px, 14vw, 72px); }

  /* Hero scroll indicator on mobile */
  .hero-scroll-indicator { display: none; }

  /* Contact info items */
  .ci-item { font-size: 14px; }
}

/* ================================================================
   SMALL MOBILE (< 600px)
================================================================ */
@media (max-width: 600px) {
  .hero-title { font-size: 14vw; letter-spacing: -2px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 2.5px; }
  .hero-desc { font-size: 14px; }
  .btn-primary, .btn-outline { padding: 13px 20px; }
  .section-label { font-size: 10px; }
  .about-numbers { gap: 16px; padding: 16px 18px; }
  .an-value { font-size: 22px; }
  .process-step { grid-template-columns: 36px 1px 1fr; gap: 0 16px; }
  .ps-content { padding: 0 0 0 20px; }
  .ps-content h3 { font-size: 18px; }
  .testi-card { position: relative; }
  .tc-text { font-size: 15px; line-height: 1.55; }
  .footer-top { grid-template-columns: 1fr; }
  .contact-heading { font-size: clamp(32px, 11vw, 52px); }
  #back-to-top { bottom: 20px; right: 16px; }
  #whatsapp-float { bottom: 76px; right: 16px; }
  .service-card--cta .svc-cta-inner h3 { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .projects-heading { letter-spacing: -1.5px; }
  .project-item { gap: 20px; padding: 40px 0; }
  .pi-title { font-size: 22px; }
}

/* ================================================================
   TABLET (600px — 900px)
================================================================ */
@media (min-width: 600px) and (max-width: 900px) {
  .hero-content { max-width: 100%; }
  .hero-title { font-size: 11vw; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .project-item { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pi-number { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about-inner { gap: 36px; }
}

/* ================================================================
   TOUCH DEVICE — disable cursor
================================================================ */
@media (pointer: coarse) {
  body { cursor: auto; }
  a, button { cursor: pointer; }
  #cursor-dot, #cursor-ring { display: none; }
}

/* ================================================================
   REDUCED MOTION
================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .scroll-line-fill { animation: none; }
}

/* ================================================================
   GLOBAL RESPONSIVE SAFETY FIXES
================================================================ */
html, body { overflow-x: hidden !important; width: 100%; max-width: 100vw; }
h1, h2, h3, h4, h5, h6, p, span, a, div { overflow-wrap: break-word; }
img, video { max-width: 100%; }
