/* ============================================
   ARX INFRA — Premium Construction Website
   Design System & Global Styles — White & Blue Theme
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core palette — White base */
  --bg-900: #ffffff;
  --bg-800: #f4f6fb;
  --bg-700: #e8edf6;
  --bg-600: #d4ddf0;
  --bg-500: #b8c7e4;

  /* Dark text shades */
  --dark-900: #0d1b2a;
  --dark-800: #1b2a3b;
  --dark-700: #2c3e55;
  --dark-600: #415a77;
  --dark-500: #566f8a;

  /* Primary Blue accent (from logo) */
  --primary-500: #004aad;
  --primary-400: #1a62bf;
  --primary-300: #3378d1;
  --primary-200: #6fa3e8;
  --primary-glow: rgba(0, 74, 173, 0.15);

  /* Neutrals — remap for light theme */
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.95);
  --white-70: rgba(255, 255, 255, 0.75);
  --white-50: rgba(255, 255, 255, 0.55);
  --white-30: rgba(255, 255, 255, 0.35);
  --white-10: rgba(255, 255, 255, 0.12);
  --white-05: rgba(255, 255, 255, 0.06);

  /* Text colours */
  --text-primary: #0d1b2a;
  --text-secondary: #415a77;
  --text-muted: #7a94ad;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Glass — for cards on white bg */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 74, 173, 0.1);
  --glass-blur: 18px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 74, 173, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 74, 173, 0.12);
  --shadow-lg: 0 16px 64px rgba(0, 74, 173, 0.18);
  --shadow-primary: 0 4px 24px rgba(0, 74, 173, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-900);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-out);
}

ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---------- Section Utilities ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-500);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--dark-900);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(0, 74, 173, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary-500);
  border: 1.5px solid var(--primary-400);
}

.btn-outline:hover {
  background: var(--primary-500);
  color: #ffffff;
  border-color: var(--primary-500);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 74, 173, 0.1);
  box-shadow: 0 2px 20px rgba(0, 74, 173, 0.08);
  transition: box-shadow 0.3s var(--ease-out);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  height: 48px;
  width: auto;
  border-radius: 4px;
}

.navbar-logo span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--dark-900);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark-700);
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width 0.35s var(--ease-out);
}

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

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

.nav-cta {
  margin-left: 8px;
  border-color: var(--primary-500) !important;
  color: var(--primary-500) !important;
  padding: 8px 20px !important;
  font-size: 0.82rem !important;
  border-radius: 100px !important;
  letter-spacing: 0.3px;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--primary-500) !important;
  color: #ffffff !important;
  border-color: var(--primary-500) !important;
  box-shadow: var(--shadow-primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark-900);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
}

/* ---- Image Panel ---- */
.hero-img-panel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-img-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Bottom vignette only — to frame the scroll arrow */
.hero-img-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

/* ---- Scroll-Down Button ---- */
.scroll-down-btn {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  z-index: 10;
  transition: opacity 0.3s;
}

.scroll-down-btn:hover {
  opacity: 0.8;
}

.scroll-down-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.scroll-down-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  animation: bounceDown 1.8s ease-in-out infinite;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ---- Text Band (below image) ---- */
.hero-text-band {
  background: var(--bg-900);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--bg-600);
}

.hero-text-band .hero-content {
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
  /* Slide-up entrance animation */
  animation: heroSlideUp 0.9s var(--ease-out) both;
}

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

/* Overrides for light background context */
.hero-text-band .hero-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--primary-500);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-shadow: none;
}

.hero-text-band .hero-label::before {
  content: '';
  width: 40px;
  height: 1.5px;
  background: var(--primary-500);
}

.hero-text-band .hero-label::after {
  content: '';
  width: 40px;
  height: 1.5px;
  background: var(--primary-500);
}

.hero-text-band .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--dark-900);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: none;
}

.hero-text-band .hero-title span {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text-band .hero-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 auto 36px;
  line-height: 1.8;
  max-width: 620px;
  text-shadow: none;
}

.hero-text-band .hero-buttons {
  justify-content: center;
  margin-bottom: 0;
}

.hero-text-band .hero-stats {
  border-top: 1px solid var(--bg-600);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
  padding-top: 36px;
}

.hero-text-band .hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--bg-600);
}

.hero-text-band .hero-stat:last-child {
  border-right: none;
}

.hero-text-band .hero-stat h3 {
  color: var(--primary-500);
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.hero-text-band .hero-stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ---- Legacy hero vars (keep for accent elements if referenced) ---- */
.hero-accent { display: none; }

/* ---------- CLIENT LOGOS STRIP ---------- */
.clients-strip {
  padding: 48px 0;
  background: var(--bg-800);
  border-top: 1px solid var(--bg-600);
  border-bottom: 1px solid var(--bg-600);
  overflow: hidden;
}

.clients-strip .section-label {
  text-align: center;
  margin-bottom: 32px;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scrollLogos 30s linear infinite;
}

.clients-track-wrapper {
  display: flex;
  gap: 60px;
  overflow: hidden;
}

.client-item {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid var(--bg-600);
  border-radius: 6px;
  transition: all 0.4s var(--ease-out);
}

.client-item:hover {
  color: var(--primary-500);
  border-color: var(--primary-500);
  background: var(--primary-glow);
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- SERVICES SECTION ---------- */
.services { background: var(--bg-900); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--bg-600);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-300));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-500);
  box-shadow: 0 12px 40px rgba(0,74,173,0.15);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-glow), rgba(0, 74, 173, 0.05));
  font-size: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- ABOUT SECTION ---------- */
.about { background: var(--bg-800); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.6s var(--ease-out);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(0,74,173,0.15);
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,74,173,0.15);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.about-badge-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.about-badge-text h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-500);
}

.about-badge-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.about-content .section-label {
  text-align: left;
}

.about-content .section-title {
  text-align: left;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.about-feature .check {
  color: var(--primary-500);
  font-size: 1rem;
}

/* ---------- TEAM SECTION ---------- */
.team { background: var(--bg-900); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--bg-600);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.5s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-500);
  box-shadow: 0 16px 48px rgba(0,74,173,0.15);
}

.team-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  position: relative;
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-glow);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.team-dept {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.team-quote {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  border-top: 1px solid var(--bg-600);
  padding-top: 16px;
}

/* ---------- PROCESS / ROADMAP ---------- */
.process { background: var(--bg-800); }

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-500), var(--primary-200), var(--primary-500));
  transform: translateX(-50%);
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  position: relative;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.process-number {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--bg-800), 0 0 0 8px var(--primary-glow);
}

.process-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--bg-600);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.4s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.process-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 8px;
}

.process-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- PORTFOLIO ---------- */
.portfolio { background: var(--bg-900); }

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--bg-600);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-500);
  color: #ffffff;
  border-color: var(--primary-500);
  box-shadow: var(--shadow-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,30,90,0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.portfolio-overlay p {
  font-size: 0.82rem;
  color: var(--primary-200);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hidden items for filter */
.portfolio-item.hidden {
  display: none;
}

/* ---------- CONTACT SECTION ---------- */
.contact { background: var(--bg-800); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-glow), rgba(0,74,173,0.08));
  border: 1px solid rgba(0,74,173,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-info-card a {
  color: var(--primary-500);
  transition: color 0.3s;
}

.contact-info-card a:hover {
  color: var(--primary-300);
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--bg-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all 0.35s var(--ease-out);
}

.social-link:hover {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--bg-600);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 8px;
}

.contact-form-wrapper > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-700);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-800);
  border: 1px solid var(--bg-600);
  border-radius: 8px;
  color: var(--dark-900);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all 0.35s var(--ease-out);
  outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--white);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23004aad' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: var(--bg-800);
  padding-right: 40px;
}

.form-group select option {
  background: var(--white);
  color: var(--dark-900);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 32px;
}

/* Thank you message */
.thank-you-message {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.thank-you-message.show {
  display: block;
  animation: fadeIn 0.5s var(--ease-out);
}

.thank-you-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.thank-you-message h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 12px;
}

.thank-you-message p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Map container */
.map-container {
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bg-600);
  height: 350px;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: none;
  transition: filter 0.4s;
}

.map-container:hover iframe {
  filter: none;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .navbar-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary-200);
  padding-left: 6px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: var(--primary-200);
}

/* Footer social links — on dark bg */
.footer .social-link {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
}

.footer .social-link:hover {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #ffffff;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 40, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s var(--ease-out);
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: var(--primary-500);
  color: #ffffff;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.5s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-out);
  box-shadow: var(--shadow-primary);
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 74, 173, 0.5);
}

/* ---------- WhatsApp floating ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.35s var(--ease-out);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { gap: 40px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 0;
    border-left: 1px solid var(--bg-600);
    transition: right 0.4s var(--ease-out);
    box-shadow: -4px 0 24px rgba(0,74,173,0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--bg-700);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
  }

  .hero-title { font-size: clamp(2.2rem, 7vw, 3.2rem); }

  /* Stats: 2x2 grid on mobile */
  .hero-text-band .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex-wrap: unset;
  }

  .hero-text-band .hero-stat {
    padding: 20px 16px;
    border-right: 1px solid var(--bg-600);
    border-bottom: 1px solid var(--bg-600);
  }

  /* Remove right border from 2nd column */
  .hero-text-band .hero-stat:nth-child(2n) {
    border-right: none;
  }

  /* Remove bottom border from last row */
  .hero-text-band .hero-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .hero-text-band .hero-stat h3 {
    font-size: 2rem;
  }

  .hero-text-band .hero-stats {
    margin-top: 32px;
  }

  .about-grid { grid-template-columns: 1fr; }
  .about-image img { height: 300px; }

  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .process-timeline::before { left: 28px; }
  .process-step { flex-direction: column !important; gap: 16px; padding-left: 80px; text-align: left !important; }
  .process-number { position: absolute; left: 0; }

  .portfolio-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .hero-stat h3 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .clients-track { gap: 32px; }
  .client-item { font-size: 0.78rem; padding: 10px 18px; }
  .portfolio-filters { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 0.75rem; }

  /* Stats stay 2x2 but tighter */
  .hero-text-band .hero-stat h3 { font-size: 1.8rem; }
  .hero-text-band .hero-stat p  { font-size: 0.78rem; }

  /* Hero text band padding */
  .hero-text-band { padding: 48px 0 40px; }
}

/* ---------- Mobile nav overlay ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,20,60,0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 100px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

.preloader-bar {
  width: 120px;
  height: 3px;
  background: var(--bg-600);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--primary-500);
  border-radius: 2px;
  animation: loadBar 1.2s ease-in-out infinite;
}

@keyframes loadBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
