/* ===============================
   SECTION VERTICAL RHYTHM
================================ */
.section {
  margin-top: 160px;   /* space from previous section */
}

.section:first-of-type {
  margin-top: 120px;
}

.section h2 {
  margin-bottom: 40px;
}

.content-block p {
  margin-bottom: 24px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

#thinking.section {
  margin-top: 200px;
}

@media (max-width: 768px) {
  .section {
    margin-top: 120px;
  }

  .section h2 {
    margin-bottom: 32px;
  }
}


/* ===============================
   GLOBAL SECTION WRAP FIX
================================ */
main.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* Force all major sections to stay centered */
.section {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ===================================================
   ROOT VARIABLES
=================================================== */
:root {
  --bg: #0b0f14;
  --bg-soft: #0f1620;
  --text: #e6e8eb;
  --muted: #a1a7b3;
  --accent: #4da3ff;
  --border: #1c2430;
}

/* ===================================================
   RESET
=================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===================================================
   HEADER / NAV
=================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11,15,20,0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(28,36,48,0.5);
  z-index: 100;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(11,15,20,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  max-width: 1400px;
  margin: auto;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--bg-soft);
}

.nav-links a {
  margin-left: 32px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ===================================================
   HERO / PARALLAX
=================================================== */
.hero-parallax {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(77,163,255,0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(77,163,255,0.05), transparent 50%);
}

.parallax-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.layer-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(77,163,255,0.3), transparent);
  top: 10%;
  left: 15%;
}

.layer-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(77,163,255,0.2), transparent);
  bottom: 20%;
  right: 20%;
}

.layer-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(77,163,255,0.15), transparent);
  top: 40%;
  right: 10%;
}

@keyframes float {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(30px,-30px); }
}

/* ===================================================
   HERO CONTENT
=================================================== */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 0 40px;
  text-align: center;
  animation: fadeInUp 1s ease;
}

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

.hero-content h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #fff, #a1a7b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================================================
   REVIEWS SCROLLER
=================================================== */
.reviews-wrapper {
  margin-top: 24px;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 32px;
  animation: scrollReviews 40s linear infinite;
  width: max-content;
}

.review {
  white-space: nowrap;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
}

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

@keyframes scrollReviews {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================================================
   CAPABILITIES
=================================================== */
.capability-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.capability-row span {
  padding: 10px 18px;
  font-size: 13px;
  background: linear-gradient(135deg, rgba(77,163,255,0.15), rgba(77,163,255,0.03));
  border: 1px solid rgba(77,163,255,0.25);
  border-radius: 999px;
}

/* ===================================================
   WHATSAPP FLOAT
=================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg,#25d366,#128c7e);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  z-index: 999;
  font-weight: 600;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.02);
}

/* ===============================
   FLOATING WHATSAPP CTA
================================ */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(
    135deg,
    rgba(37,211,102,1),
    rgba(18,140,126,1)
  );
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  z-index: 2000;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.6);
}

.whatsapp-float svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Mobile – icon only */
@media (max-width: 768px) {
  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    justify-content: center;
    padding: 0;
    bottom: 20px;
    right: 20px;
  }
}


/* ===============================
   CASEBOOK
================================ */
.section#casebook {
  padding-top: 140px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  margin-top: 40px;
}

.project-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.01)
  );
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
}

.project-card:hover {
  transform: translateY(-14px);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55);
  border-color: rgba(77,163,255,0.35);
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 28px 30px 32px;
}

.project-info h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ===============================
   FOOTER (CLEAN + PREMIUM)
================================ */
.site-footer {
  margin-top: 140px;
  background: linear-gradient(
    180deg,
    rgba(15,22,32,1),
    rgba(11,15,20,1)
  );
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: 1400px;
  margin: auto;
  padding: 80px 40px 50px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
}

.site-footer h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.site-footer a {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.25s ease;
}

.site-footer a:hover {
  color: var(--accent);
  transform: translateX(6px);
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons svg {
  width: 18px;
  height: 18px;
  fill: var(--muted);
}

.social-icons a:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.social-icons a:hover svg {
  fill: var(--accent);
}

/* FOOTER BOTTOM */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 26px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* RESPONSIVE FOOTER */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 24px 40px;
  }
}

