@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Color System - Cinematic Dark Navy & Sand */
  --color-bg: #020617; /* Extremely dark navy/black */
  --color-surface: #0a1128;
  --color-surface-light: #111c38;
  --color-accent: #d4a574; /* Sand beige */
  --color-accent-hover: #e8d5b0;
  --color-highlight: #2dd4bf; /* Light turquoise for subtle tech accents */
  
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-glow: rgba(212, 165, 116, 0.2);

  /* Spacing - Generous Apple/Tesla style */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 160px;
  --space-4xl: 240px;

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadow System - Deep & Layered */
  --shadow-glow: 0 0 40px rgba(212, 165, 116, 0.1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.8);

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;

  /* Easing */
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain Overlay for Cinematic Feel */
.grain-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}

/* Ambient Glow */
.ambient-glow {
  position: absolute;
  width: 60vw; height: 60vh;
  background: radial-gradient(circle, rgba(10, 17, 40, 0.8) 0%, transparent 70%);
  top: -20%; left: -20%;
  pointer-events: none;
  z-index: -1;
}
.ambient-glow.right { left: auto; right: -20%; top: 40%; background: radial-gradient(circle, rgba(45, 212, 191, 0.05) 0%, transparent 70%); }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; color: var(--color-text-primary); }
h1 { font-size: clamp(3rem, 7vw + 1rem, 7rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem); margin-bottom: var(--space-sm); }
p { font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem); color: var(--color-text-secondary); font-weight: 300; }
.text-accent { color: var(--color-accent); font-style: italic; }
.text-highlight { color: var(--color-highlight); }

/* Layout Container */
.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--space-lg); }
.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-asymmetric { grid-template-columns: 5fr 4fr; align-items: center; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-asymmetric { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Sections */
section { padding: var(--space-3xl) 0; position: relative; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto var(--space-2xl); }
.section-header p { font-size: 1.25rem; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 40px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-bg); background: var(--color-accent);
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  transition: all 0.5s var(--ease-cinematic);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 40px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-text-primary); background: transparent;
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  transition: all 0.5s var(--ease-cinematic);
}
.btn-ghost:hover {
  border-color: var(--color-accent); color: var(--color-accent);
  background: rgba(255,255,255,0.02);
}

/* Navbar (Glassmorphism Editorial) */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 102;
  padding: var(--space-lg) 0; transition: all 0.6s var(--ease-cinematic);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: var(--space-md) 0;
  background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--color-text-primary); text-decoration: none;
}
.logo span { color: var(--color-accent); font-style: italic; }
.nav-links { display: flex; gap: var(--space-xl); list-style: none; }
.nav-links a {
  color: var(--color-text-secondary); text-decoration: none; font-size: 0.85rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.4s;
}
.nav-links a:hover { color: var(--color-text-primary); }
/* Hamburger Button Inside Navbar */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: all 0.35s var(--ease-cinematic);
  transform-origin: left center;
}

/* Toggle Hamburger animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(1px, -1px);
  background-color: var(--color-accent);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 1px);
  background-color: var(--color-accent);
}

/* Mobile Menu Overlay - Premium Glassmorphic */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.5s var(--ease-cinematic), transform 0.5s var(--ease-cinematic);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
  width: 100%;
  padding: 0 var(--space-lg);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 0;
}

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-text-primary);
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.3s;
  display: inline-block;
}

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

.mobile-cta {
  margin-top: var(--space-md);
  width: 100%;
  max-width: 280px;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-cta { display: none; }
  .nav { padding: var(--space-md) 0; }
}

/* 1. HERO ALANI (Cinematic & Dramatic) */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding-top: 120px; padding-bottom: 160px; overflow: hidden; text-align: center; z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('https://images.unsplash.com/photo-1576013551627-0cc20b96c2a7?q=80&w=2500&auto=format&fit=crop');
  background-size: cover; background-position: center; transform: scale(1.05);
  animation: slowPan 20s linear infinite alternate;
}
@keyframes slowPan { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.1) translate(-1%, 1%); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at center, rgba(2,6,23,0.3) 0%, rgba(2,6,23,0.85) 70%, rgba(2,6,23,1) 100%);
}
.hero-content { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 20; }
.hero-subtitle {
  font-family: var(--font-body); color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.2em;
  font-weight: 500; font-size: 0.85rem; margin-bottom: var(--space-lg);
  display: inline-block; border: 1px solid rgba(212, 165, 116, 0.3); padding: 8px 24px; border-radius: 100px;
}
.hero h1 { margin-bottom: var(--space-lg); text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero p { font-size: 1.35rem; margin-bottom: var(--space-2xl); max-width: 700px; color: rgba(255,255,255,0.8); }
.hero-ctas { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* 2. GÜVEN BLOKLARI (Premium Cards under Hero) */
.trust-section { margin-top: -100px; position: relative; z-index: 10; padding: 0; margin-bottom: var(--space-3xl); }
.trust-card {
  background: rgba(10, 17, 40, 0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border); border-top: 1px solid rgba(255,255,255,0.15);
  padding: var(--space-lg); border-radius: var(--radius-md);
  display: flex; align-items: flex-start; gap: var(--space-md);
  transition: all 0.4s var(--ease-cinematic);
}
.trust-card:hover { transform: translateY(-5px); border-color: var(--color-border-glow); background: rgba(10, 17, 40, 0.8); }
.trust-icon { color: var(--color-accent); font-size: 2rem; display: flex; flex-shrink: 0; }
.trust-card h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: #fff; }
.trust-card p { font-size: 0.85rem; margin: 0; line-height: 1.5; }

/* 3. UYGULAMA KALİTESİ (Features - Asymmetric Editorial) */
.quality-section { position: relative; }
.quality-card {
  padding: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all 0.5s var(--ease-cinematic);
}
.quality-card:hover { background: linear-gradient(to bottom, rgba(255,255,255,0.02), transparent); }
.quality-number { font-family: var(--font-display); font-size: 3rem; color: var(--color-border); line-height: 1; margin-bottom: var(--space-xl); transition: color 0.4s; }
.quality-card:hover .quality-number { color: var(--color-accent); }
.quality-card h3 { font-size: 2rem; }

/* 4. PREMIUM TEKNİK BÖLÜM (Engineering / System) */
.tech-section { background: var(--color-surface); position: relative; overflow: hidden; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.tech-grid { align-items: center; }
.tech-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 600px; }
.tech-image img { width: 100%; height: 100%; object-fit: cover; }
.tech-image::after { content:''; position:absolute; inset:0; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); pointer-events:none; }
.tech-stats { margin-top: var(--space-xl); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); border-top: 1px solid var(--color-border); padding-top: var(--space-lg); }
.stat-box h4 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 8px; }
.stat-box p { font-family: var(--font-display); font-size: 2.5rem; color: var(--color-text-primary); line-height: 1; }

/* 5. PROFESYONEL HAVUZ ÇÖZÜMLERİ (Services) */
.solutions-card { position: relative; height: 500px; border-radius: var(--radius-md); overflow: hidden; text-decoration: none; display: block; }
.solutions-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-cinematic); }
.solutions-card:hover img { transform: scale(1.05); }
.solutions-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,6,23,0.95) 0%, rgba(2,6,23,0.2) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-xl);
}
.solutions-overlay h3 { color: #fff; margin-bottom: 8px; font-size: 2rem; }
.solutions-overlay p { color: rgba(255,255,255,0.7); font-size: 1rem; transform: translateY(20px); opacity: 0; transition: all 0.5s var(--ease-cinematic); }
.solutions-card:hover .solutions-overlay p { transform: translateY(0); opacity: 1; }

/* 6. YAŞAM ALANINA DÖNÜŞEN HAVUZLAR (Projects Gallery) */
.projects-section { padding-bottom: 0; }
.gallery-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--color-border); }
@media (max-width: 768px) { .gallery-wrapper { grid-template-columns: 1fr; } }
.gallery-item { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--color-bg); }
@media (max-width: 768px) { .gallery-item.large { grid-column: span 1; aspect-ratio: 4/5; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: all 0.8s var(--ease-cinematic); }
.gallery-item:hover img { opacity: 1; transform: scale(1.03); }
.gallery-info { position: absolute; bottom: 0; left: 0; padding: var(--space-lg); width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.gallery-info h4 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); margin-bottom: 4px; }
.gallery-info h3 { font-size: 1.5rem; margin: 0; }

/* 7. ESKİ HAVUZLARDAN MODERN YAŞAM ALANLARINA (Before/After) */
.ba-section { padding: var(--space-4xl) 0; }
.ba-container { position: relative; max-width: 1000px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
.ba-comparison { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
@media (max-width: 768px) { .ba-comparison { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } }
.ba-img { position: relative; aspect-ratio: 4/3; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-label {
  position: absolute; top: var(--space-md); left: var(--space-md);
  background: rgba(2,6,23,0.8); backdrop-filter: blur(10px);
  padding: 8px 24px; border-radius: 100px; border: 1px solid var(--color-border);
  font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.ba-img.after .ba-label { background: var(--color-accent); color: var(--color-bg); border: none; }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--color-accent); transform: translateX(-50%); z-index: 10; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) { .ba-line { top: 50%; bottom: auto; left: 0; right: 0; width: 100%; height: 2px; transform: translateY(-50%); } }
.ba-line::after { content:''; width: 16px; height: 16px; background: var(--color-bg); border: 2px solid var(--color-accent); border-radius: 50%; }

/* 8. PLANLAMADAN TESLİME (Process Timeline) */
.process-section { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 1px; background: var(--color-border); }
.timeline-item { position: relative; padding-left: 80px; margin-bottom: var(--space-2xl); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 16px; top: 8px; width: 17px; height: 17px;
  background: var(--color-bg); border: 2px solid var(--color-accent); border-radius: 50%;
  box-shadow: 0 0 15px rgba(212,165,116,0.5);
}
.timeline-item h3 { font-size: 1.8rem; margin-bottom: 8px; }

/* 9. MİMARLARA ÖZEL ÇÖZÜMLER (B2B Architects) */
.architect-section {
  position: relative; padding: var(--space-4xl) 0;
  background-image: url('https://images.unsplash.com/photo-1600607688969-a5bfcd646154?q=80&w=2000&auto=format&fit=crop');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.architect-overlay { position: absolute; inset: 0; background: rgba(2,6,23,0.85); }
.architect-content { position: relative; max-width: 700px; z-index: 2; border-left: 2px solid var(--color-accent); padding-left: var(--space-xl); }

/* 10. PREMIUM MALZEMELER (Materials Logo/Info Bar) */
.materials-section { padding: var(--space-xl) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: #02040a; }
.materials-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-lg); opacity: 0.6; }
.material-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }

/* 11. FAQ BÖLÜMÜ */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: var(--space-lg) 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--color-text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { color: var(--color-accent); font-size: 1.5rem; transition: transform 0.4s var(--ease-cinematic); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-cinematic); }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: var(--space-lg); margin: 0; }

/* 12. PREMIUM İLETİŞİM ALANI */
.contact-section { background: var(--color-surface); padding: var(--space-4xl) 0; }
.contact-wrapper { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-3xl); position: relative; overflow: hidden; }
.contact-wrapper::before { content:''; position:absolute; top:0; right:0; width:50%; height:100%; background: radial-gradient(circle at top right, rgba(212,165,116,0.05), transparent 70%); pointer-events: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }
.input-premium {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--color-border);
  padding: 16px 0; font-family: var(--font-body); font-size: 1rem; color: var(--color-text-primary);
  transition: all 0.3s;
}
.input-premium:focus { outline: none; border-bottom-color: var(--color-accent); }
textarea.input-premium { resize: none; height: 100px; }

/* Footer */
.footer { background: #01030a; padding: var(--space-4xl) 0 var(--space-lg); border-top: 1px solid rgba(255,255,255,0.02); }
.footer-brand p { margin-top: var(--space-md); font-size: 0.9rem; max-width: 300px; opacity: 0.7; }
.footer-links h4 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-lg); color: #fff; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--color-text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom { margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--color-text-muted); }

/* Animasyonlar (Smooth Reveal) */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-cinematic), transform 0.8s var(--ease-cinematic); }
.is-visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================
   MOBILE & RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 768px) {
  :root {
    --space-lg: 20px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --radius-xl: 16px;
  }

  /* Prevent absolute overlays from causing horizontal wobble/scroll */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .ambient-glow, .grain-overlay {
    display: none !important;
  }

  /* Typography scale down for mobile */
  h1 { font-size: clamp(2.0rem, 7vw + 0.5rem, 3.4rem); line-height: 1.15; }
  h2 { font-size: clamp(1.75rem, 5vw + 0.5rem, 2.5rem); margin-bottom: var(--space-md); }
  h3 { font-size: clamp(1.35rem, 4vw + 0.5rem, 1.8rem); margin-bottom: var(--space-sm); }
  p { font-size: 0.95rem; }

  /* Grid Stack for Mobile */
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Hero adjustments */
  .hero {
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .hero p {
    font-size: 1.05rem;
    margin-bottom: var(--space-xl);
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
  }

  /* Trust Section (pull-up adjustment for mobile) */
  .trust-section {
    margin-top: -40px;
    margin-bottom: var(--space-2xl);
  }
  .trust-card {
    padding: var(--space-md);
  }

  /* Quality Section - tighter padding on cards */
  .quality-card {
    padding: var(--space-xl) var(--space-sm);
  }
  .quality-number {
    font-size: 2.25rem;
    margin-bottom: var(--space-md);
  }

  /* Tech / Engineering section */
  .tech-image {
    height: 300px;
  }
  .tech-content h2 {
    margin-bottom: var(--space-md);
  }
  .tech-stats {
    margin-top: var(--space-lg);
    gap: var(--space-md);
  }

  /* Premium Materials grid stack for mobile */
  .materials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Solutions Section overlay text reveal */
  .solutions-overlay p {
    transform: translateY(0);
    opacity: 1;
    font-size: 0.9rem;
  }
  .solutions-card {
    height: 380px;
  }
  .solutions-overlay {
    padding: var(--space-lg);
  }

  /* Before / After widescreen look on mobile */
  .ba-img {
    aspect-ratio: 16/10;
  }

  /* Timeline Process tweaks to prevent wrapping/overflow */
  .timeline::before {
    left: 16px;
  }
  .timeline-item {
    padding-left: 44px;
    margin-bottom: var(--space-xl);
  }
  .timeline-dot {
    left: 8px;
    top: 6px;
  }
  .timeline-item h3 {
    font-size: 1.35rem;
  }

  /* Architect section font adjustment */
  .architect-section h2 {
    font-size: 2.1rem !important;
  }
  .architect-section p {
    font-size: 1rem !important;
  }
  .architect-content {
    padding-left: var(--space-md);
  }

  /* FAQ section */
  .faq-question {
    font-size: 1.15rem;
    padding: var(--space-md) 0;
  }

  /* Contact Form card padding */
  .contact-wrapper {
    padding: var(--space-xl) var(--space-md);
  }
  .contact-section h2 {
    font-size: 2.3rem !important;
  }
  
  /* Scale down phone and email font sizes so they never overflow on mobile */
  .contact-section a[href^="tel:"],
  .contact-section a[href^="mailto:"] {
    font-size: clamp(1.2rem, 5vw, 1.45rem) !important;
  }

  /* Footer stack */
  .footer .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer-brand {
    grid-column: span 1 !important;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
    margin-top: var(--space-xl);
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  :root {
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 36px;
  }
  
  .grid {
    gap: var(--space-lg);
  }
  
  .trust-section {
    margin-top: -30px;
  }
  
  .tech-image {
    height: 220px;
  }
  
  .materials-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}
