/* =============================================
   MBC — Modern Buildings Construction LLC
   style.css — Production Ready
   ============================================= */

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

:root {
  --teal:    #1F6D82;
  --teal-dk: #185a6c;
  --teal-lt: #2a8fa8;
  --navy:    #0F172A;
  --navy-2:  #1e293b;
  --light:   #F8FAFC;
  --text:    #334155;
  --text-2:  #64748b;
  --white:   #ffffff;
  --border:  rgba(31,109,130,0.15);
  --shadow:  0 4px 24px rgba(15,23,42,0.10);
  --shadow-lg: 0 12px 48px rgba(15,23,42,0.18);
  --radius:  12px;
  --radius-lg: 20px;
  --font:    'Inter', system-ui, sans-serif;
  --serif:   'Playfair Display', Georgia, serif;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ---------- TYPOGRAPHY ---------- */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
  background: rgba(31,109,130,0.08);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 16px;
}
.section-tag.light { color: var(--teal-lt); background: rgba(31,109,130,0.2); }
.section-tag::before {
  content: ''; display: block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--teal);
}
.section-tag.light::before { background: var(--teal-lt); }

.section-title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--navy); line-height: 1.15; margin-bottom: 16px;
}
.section-title.light { color: var(--light); }
.section-title .highlight { color: var(--teal); }
.section-desc { font-size: 1.05rem; color: var(--text-2); max-width: 580px; line-height: 1.7; }
.section-desc.light { color: rgba(248,250,252,0.65); }

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

/* ---------- LAYOUT ---------- */
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.bg-dark { background: var(--navy); }
.bg-light { background: var(--light); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background 0.25s;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: var(--teal); color: var(--white);
  box-shadow: 0 4px 16px rgba(31,109,130,0.35);
}
.btn-primary:hover { background: var(--teal-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31,109,130,0.45); }

.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.9); transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }
.hidden { display: none !important; }

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
  margin-bottom: 24px;
  opacity: 0; animation: fadeInUp 0.6s 0.2s forwards;
  display: flex; justify-content: center;
}
.loader-logo-img {
  width: 100px; height: 100px; object-fit: contain;
}
.loader-bar {
  width: 200px; height: 3px; background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden; margin: 0 auto 16px;
  opacity: 0; animation: fadeIn 0.4s 0.5s forwards;
}
.loader-fill {
  height: 100%; width: 0; background: var(--teal);
  border-radius: 2px; animation: loadFill 1.8s 0.6s cubic-bezier(0.4,0,0.2,1) forwards;
}
.loader-text {
  color: rgba(248,250,252,0.5); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  opacity: 0; animation: fadeIn 0.4s 0.8s forwards;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0; transition: all 0.4s ease;
}
.navbar.scrolled {
  padding: 12px 0; background: rgba(15,23,42,0.96);
  backdrop-filter: blur(20px); box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1220px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img {
  width: 50px; height: 50px; object-fit: contain; flex-shrink: 0;
  transition: opacity var(--transition);
}
.nav-logo:hover .logo-img { opacity: 0.8; }
.footer-logo-img { width: 46px; height: 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 0.88rem; font-weight: 700; color: var(--white); letter-spacing: 0.01em; }
.logo-sub { font-size: 0.68rem; font-weight: 400; color: rgba(248,250,252,0.55); }

.nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.nav-link {
  padding: 8px 14px; border-radius: 6px; font-size: 0.88rem; font-weight: 500;
  color: rgba(248,250,252,0.75); transition: all var(--transition); position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 2px; left: 14px; right: 14px;
  height: 2px; background: var(--teal); border-radius: 1px;
}

.nav-cta {
  padding: 9px 22px; background: var(--teal); color: var(--white);
  border-radius: 7px; font-size: 0.85rem; font-weight: 600;
  transition: all var(--transition); white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { background: var(--teal-dk); transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; border-radius: 6px; margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--white);
  border-radius: 2px; transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; position: relative; display: flex;
  align-items: center; overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 80% at 60% 50%, rgba(31,109,130,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(31,109,130,0.12) 0%, transparent 60%),
    linear-gradient(135deg, #0a101e 0%, #0F172A 50%, #0d1e2a 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(31,109,130,0.15) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,109,130,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,109,130,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 1; max-width: 1220px; margin: 0 auto;
  padding: 140px 24px 100px; width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31,109,130,0.18); border: 1px solid rgba(31,109,130,0.35);
  color: rgba(248,250,252,0.9); padding: 8px 18px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,109,130,0.3);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800; color: var(--white); line-height: 1.08; margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-accent { color: var(--teal); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(248,250,252,0.65);
  max-width: 600px; line-height: 1.7; margin-bottom: 40px; font-weight: 400;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 72px; }

.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(248,250,252,0.04);
  border: 1px solid rgba(248,250,252,0.08);
  border-radius: var(--radius); padding: 24px 32px;
  backdrop-filter: blur(12px); max-width: max-content;
}
.stat-item { text-align: center; padding: 0 32px; }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { padding-right: 0; }
.stat-row { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-number {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 700;
  color: var(--white); line-height: 1;
}
.stat-plus { font-size: 1.5rem; font-weight: 700; color: var(--teal); }
.stat-label { font-size: 0.78rem; color: rgba(248,250,252,0.5); font-weight: 500; letter-spacing: 0.03em; margin-top: 4px; display: block; }
.stat-divider { width: 1px; height: 48px; background: rgba(248,250,252,0.1); }

.hero-scroll {
  position: absolute; bottom: 40px; right: 60px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(248,250,252,0.35); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; writing-mode: vertical-lr;
}
.scroll-line {
  width: 1px; height: 60px; background: rgba(248, 250, 252, 0.465);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute; top: -60px; left: 0; width: 100%; height: 60px;
  background: var(--teal); animation: scrollDown 2s infinite;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-visual { position: relative; }
.about-img-frame { position: relative; height: 500px; }
.about-img-bg {
  position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px;
  background: rgba(31, 109, 130, 0.204); border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 138, 143, 0.2);
}
.about-img-front {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(31,109,130,0.2);
}
.about-img-inner {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a2a3a 0%, #0d1e2e 100%);
  display: flex; align-items: center; justify-content: center;
}
.about-logo-display {
  width: 85%; max-width: 400px;
  opacity: 0.92;
  filter: drop-shadow(0 8px 32px rgba(31,109,130,0.35));
  transition: opacity var(--transition), transform var(--transition);
}
.about-img-front:hover .about-logo-display {
  opacity: 1;
  transform: scale(1.04);
}
.about-badge-float {
  position: absolute; bottom: -24px; right: -24px;
  background: rgba(15,23,42,0.9); border: 1px solid rgba(31,109,130,0.25);
  backdrop-filter: blur(12px); border-radius: var(--radius); padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px; min-width: 160px;
}
.float-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--teal); }
.float-label { font-size: 0.78rem; color: rgba(248,250,252,0.55); font-weight: 500; }
.glass { background: rgba(15,23,42,0.7) !important; }

.about-pillars { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.pillar {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}
.pillar:hover { border-color: rgba(31,109,130,0.35); background: rgba(31,109,130,0.04); }
.pillar-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(31,109,130,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.pillar-icon svg { width: 20px; height: 20px; }
.pillar-body h4 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.pillar-body p { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; }

.about-intro { font-size: 1.08rem; color: var(--text); line-height: 1.8; margin-bottom: 8px; }

/* ---------- TEAM ---------- */
.team { padding: 80px 0 100px; background: var(--light); }

.team-leader-card {
  max-width: 900px; margin: 0 auto 56px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 40px; align-items: start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 44px 48px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.team-leader-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-lt) 100%);
  border-radius: 4px 0 0 4px;
}
.team-leader-avatar { width: 120px; height: 120px; flex-shrink: 0; }
.team-leader-avatar svg { width: 100%; height: 100%; border-radius: 50%; }
.team-leader-badge-icon {
  position: absolute; bottom: 0; right: 0;
  width: 32px; height: 32px;
  background: var(--teal); border-radius: 50%; border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.team-leader-badge-icon svg { width: 14px; height: 14px; }
.team-leader-avatar { position: relative; }

.team-leader-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 8px;
}
.team-leader-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.team-leader-bio { font-size: 0.93rem; color: var(--text-2); line-height: 1.75; max-width: 480px; margin-bottom: 20px; }
.team-leader-stats { display: flex; gap: 32px; }
.leader-stat { display: flex; flex-direction: column; gap: 2px; }
.leader-stat strong { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.leader-stat span { font-size: 0.75rem; color: var(--text-2); }
.team-leader-socials { display: flex; gap: 10px; flex-direction: column; }
.team-social {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all var(--transition);
}
.team-social:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.team-social svg { width: 16px; height: 16px; }

.team-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 0 24px;
}
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
  transition: all var(--transition); box-shadow: var(--shadow);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(31,109,130,0.3); }
.team-avatar { width: 72px; height: 72px; margin: 0 auto 14px; }
.team-avatar svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.team-dept { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.team-card-info h4 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.team-card-info p { font-size: 0.82rem; color: var(--text-2); }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.service-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(31,109,130,0.15);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all var(--transition); cursor: default; position: relative;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-lt));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0; transition: opacity var(--transition);
}
.service-card:hover { background: rgba(31,109,130,0.08); border-color: rgba(31,109,130,0.4); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px; background: rgba(31,109,130,0.15);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--teal-lt); margin-bottom: 18px;
  transition: background var(--transition);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card:hover .service-icon { background: rgba(31,109,130,0.25); }
.service-card h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.service-card p { font-size: 0.88rem; color: rgb(248, 250, 252); line-height: 1.65; margin-bottom: 20px; }
.service-arrow { color: var(--teal); font-size: 1.2rem; transition: transform var(--transition); }
.service-card:hover .service-arrow { transform: translateX(4px); }

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  width: 100%; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--white);
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card.hidden-card { display: none; }
.card-slider { position: relative; height: 220px; overflow: hidden; }
.card-slides { display: flex; height: 100%; transition: transform 0.4s ease; }
.card-slide { min-width: 100%; height: 100%; }
.card-slide img { width: 100%; height: 100%; object-fit: cover; }
.card-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: rgba(15,23,42,0.6); backdrop-filter: blur(4px);
  border-radius: 50%; color: var(--white); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition), background var(--transition);
}
.card-arrow:hover { background: rgba(31,109,130,0.8); }
.card-prev { left: 8px; }
.card-next { right: 8px; }
.card-slider:hover .card-arrow { opacity: 1; }
.card-arrow svg { width: 16px; height: 16px; }
.card-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.card-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: background 0.3s; cursor: pointer; }
.card-dot.active { background: var(--white); }
.project-overlay {
  position: absolute; top: 12px; left: 12px; z-index: 2;
}
.project-cat {
  padding: 4px 12px; border-radius: 100px;
  background: rgba(15,23,42,0.75); backdrop-filter: blur(8px);
  color: var(--white); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-info { padding: 18px 20px; }
.project-info h4 { font-size: 0.98rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.project-info p { font-size: 0.84rem; color: var(--text-2); line-height: 1.55; }

.portfolio-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 22px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500;
  border: 1.5px solid var(--border); color: var(--text-2);
  background: var(--white);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.active { background: var(--teal); color: var(--white); border-color: var(--teal); }

.proj-arrow-left, .proj-arrow-right {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--navy);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); z-index: 2;
}
.proj-arrow-left { left: -16px; }
.proj-arrow-right { right: -16px; }
.proj-arrow-left:hover, .proj-arrow-right:hover { background: var(--teal); color: var(--white); }
.proj-arrow-left svg, .proj-arrow-right svg { width: 20px; height: 20px; }

/* ---------- WHY US ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.why-card {
  padding: 32px 28px; border-radius: var(--radius-lg);
  border: 1px solid rgba(31,109,130,0.18); background: rgba(255,255,255,0.04);
  transition: all var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); border-color: rgba(31,109,130,0.4); background: rgba(31,109,130,0.07); }
.why-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(31,109,130,0.18); color: var(--teal-lt);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  transition: background var(--transition);
}
.why-icon svg { width: 24px; height: 24px; }
.why-card:hover .why-icon { background: rgba(31,109,130,0.30); }
.why-card h4 { font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.why-card p { font-size: 0.9rem; color: rgb(248, 250, 252); line-height: 1.7; }

/* ---------- CLIENTS MARQUEE ---------- */
.clients-track-wrap { overflow: hidden; position: relative; }
.clients-track-wrap::before, .clients-track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.clients-track-wrap::before { left: 0; background: linear-gradient(90deg, var(--light), transparent); }
.clients-track-wrap::after { right: 0; background: linear-gradient(-90deg, var(--light), transparent); }
.clients-track {
  display: flex; gap: 20px; width: max-content;
  animation: marquee 28s linear infinite;
}
.client-item { flex-shrink: 0; }
.client-logo {
  height: 60px; min-width: 160px; padding: 0 28px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); box-shadow: var(--shadow);
}
.client-logo:hover { border-color: rgba(31, 109, 130, 0.938); box-shadow: var(--shadow-lg); }
.client-logo span { font-size: 0.88rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }

/* ---------- TESTIMONIALS ---------- */
.testi-wrap { max-width: 800px; margin: 0 auto; }
.testi-slider { overflow: hidden; border-radius: var(--radius-lg); }
.testi-track { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.testi-card {
  min-width: 100%; padding: 48px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.testi-stars { display: flex; gap: 4px; color: var(--teal); margin-bottom: 20px; }
.testi-stars svg { width: 18px; height: 18px; fill: currentColor; }
.testi-text { font-size: 1.1rem; color: var(--text); line-height: 1.8; font-style: italic; margin-bottom: 28px; }
.testi-author { display: flex; gap: 14px; align-items: center; }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.testi-name { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.testi-role { font-size: 0.82rem; color: var(--text-2); }

.testi-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.testi-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--border); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.testi-btn:hover { border-color: var(--teal); color: var(--teal); }
.testi-btn svg { width: 18px; height: 18px; }
.testi-dots { display: flex; gap: 6px; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: background var(--transition), width var(--transition);
}
.testi-dot.active { background: var(--teal); width: 24px; border-radius: 4px; }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-form-wrap {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(31,109,130,0.15);
  border-radius: var(--radius-lg); padding: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: rgba(248,250,252,0.7); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border-radius: 8px;
  border: 1.5px solid rgba(31,109,130,0.2);
  background: rgba(255,255,255,0.05); color: var(--white);
  font-size: 0.9rem; font-family: var(--font);
  transition: border-color var(--transition), background var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(248,250,252,0.3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); background: rgba(31,109,130,0.08);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: 0.78rem; color: #f87171; min-height: 16px; }
.form-success {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: rgba(31,109,130,0.15);
  border: 1px solid rgba(31,109,130,0.3); border-radius: 8px;
  color: var(--teal-lt); font-size: 0.9rem; font-weight: 500;
}
.form-success svg { width: 18px; height: 18px; color: var(--teal); }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-map { height: 280px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(31,109,130,0.2); }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail-item {
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(31,109,130,0.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--teal-lt);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-detail-item strong { display: block; font-size: 0.82rem; font-weight: 600; color: rgba(248,250,252,0.8); margin-bottom: 2px; }
.contact-detail-item span { font-size: 0.88rem; color: rgba(248,250,252,0.5); }

.social-links { display: flex; gap: 10px; margin-top: 8px; }
.social-link {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(31,109,130,0.2);
  color: rgba(248,250,252,0.55); display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.social-link:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.social-link svg { width: 17px; height: 17px; }
.social-link i { font-size: 17px; line-height: 1; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); border-top: 1px solid rgba(31,109,130,0.15); }
.footer-top { padding: 72px 0 48px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-tagline { font-size: 0.88rem; color: rgba(248,250,252,0.45); line-height: 1.6; max-width: 260px; }
.footer-col h5 {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(248,250,252,0.5); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.88rem; color: rgba(248,250,252,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--teal-lt); }
.footer-contact li { font-size: 0.88rem; color: rgba(248,250,252,0.5); }
.footer-bottom {
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(248,250,252,0.3); }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 500;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(31,109,130,0.4);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-dk); transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- REVEAL ANIMATION SYSTEM ---------- */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(32px);
}
.reveal-left { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }

.reveal[data-delay="1"], .reveal-left[data-delay="1"], .reveal-right[data-delay="1"] { animation-delay: 0.1s; }
.reveal[data-delay="2"], .reveal-left[data-delay="2"], .reveal-right[data-delay="2"] { animation-delay: 0.2s; }
.reveal[data-delay="3"], .reveal-left[data-delay="3"], .reveal-right[data-delay="3"] { animation-delay: 0.3s; }
.reveal[data-delay="4"], .reveal-left[data-delay="4"], .reveal-right[data-delay="4"] { animation-delay: 0.4s; }
.reveal[data-delay="5"], .reveal-left[data-delay="5"], .reveal-right[data-delay="5"] { animation-delay: 0.5s; }
.reveal[data-delay="6"], .reveal-left[data-delay="6"], .reveal-right[data-delay="6"] { animation-delay: 0.6s; }
.reveal[data-delay="7"], .reveal-left[data-delay="7"], .reveal-right[data-delay="7"] { animation-delay: 0.7s; }

.reveal.visible {
  animation: revealFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.reveal-left.visible {
  animation: revealFadeLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.reveal-right.visible {
  animation: revealFadeRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes revealFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealFadeLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealFadeRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- KEYFRAMES ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes loadFill {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(31,109,130,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(31,109,130,0.1); }
}
@keyframes scrollDown {
  0%   { top: -60px; }
  100% { top: 120px; }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats { flex-direction: column; max-width: 280px; padding: 20px 24px; gap: 16px; }
  .stat-divider { width: 80%; height: 1px; }
  .stat-item { padding: 0; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: rgba(15,23,42,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 6px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { display: flex; transform: translateX(0); }
  .nav-link { padding: 12px 16px; font-size: 1rem; }
  .nav-cta { display: none; }
  .hamburger { display: flex; z-index: 1000; }

  .section-pad { padding: 72px 0; }
  .section-header { margin-bottom: 44px; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .service-card { padding: 24px 20px; }

  .projects-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .team-leader-card { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; text-align: center; }
  .team-leader-card::before { width: 100%; height: 5px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .team-leader-bio { max-width: 100%; }
  .team-leader-stats { justify-content: center; gap: 24px; }
  .team-leader-socials { justify-content: center; }
  .team-grid { grid-template-columns: 1fr 1fr; }

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

  .contact-form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .hero-scroll { display: none; }
  .hero-content { padding: 120px 24px 80px; }
}

@media (max-width: 500px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .portfolio-filters { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 0.8rem; }
  .testi-text { font-size: 0.98rem; }
  .about-badge-float { display: none; }
}

/* ---------- GLOBAL UTILITIES ---------- */
.hide-mobile { display: inline; }
@media (max-width: 600px) {
  .hide-mobile { display: none; }
}

/* =============================================
   PRODUCTION FACILITY / WORKSHOP SECTION
   ============================================= */

/* --- Two-column layout (mirrors .about-grid) --- */
.workshop-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}

/* Left column — exact copy of the About image visual (frame + logo, no badge). */
.workshop-visual { position: relative; margin-top: 40px; }
.workshop-img-frame { position: relative; height: 420px; }
.workshop-img-bg {
  position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px;
  background: rgba(31, 109, 130, 0.204); border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 138, 143, 0.2);
}
.workshop-img-front {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(31,109,130,0.2);
}
.workshop-img-inner {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a2a3a 0%, #0d1e2e 100%);
  display: flex; align-items: center; justify-content: center;
}
.workshop-logo-display {
  width: 65%; max-width: 280px;
  opacity: 0.92;
  filter: drop-shadow(0 8px 32px rgba(31,109,130,0.35));
  transition: opacity var(--transition), transform var(--transition);
}
.workshop-img-front:hover .workshop-logo-display {
  opacity: 1;
  transform: scale(1.04);
}
/* Photo variant — fills the frame edge-to-edge instead of floating centered. */
.workshop-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.workshop-img-front:hover .workshop-photo {
  transform: scale(1.05);
  transition: transform var(--transition);
}
/* When the inner holds a photo, stop centering/shrinking — let it fill completely. */
.workshop-img-inner:has(.workshop-photo) {
  display: block;
  padding: 0;
}

/* Centered note below both columns */
.workshop-note {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 720px; margin: 56px auto 0;
  text-align: center;
}
.workshop-note-dot {
  width: 6px; height: 6px; flex-shrink: 0;
  border-radius: 50%; background: var(--teal);
}
.workshop-note-text {
  font-size: 1rem; line-height: 1.7; color: var(--teal); font-weight: 500;
}

/* Discipline points — mirror .pillar */
.workshop-points { display: flex; flex-direction: column; gap: 20px; }
.workshop-point {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}
.workshop-point:hover { border-color: rgba(31,109,130,0.35); background: rgba(31,109,130,0.04); }
.workshop-point-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(31,109,130,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.workshop-point-icon svg { width: 20px; height: 20px; }
.workshop-point-body h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.workshop-point-body p { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; }

/* Responsive — mirrors About, but the image stays visible (stacked on top) */
@media (max-width: 1100px) {
  .workshop-grid { gap: 48px; }
}

@media (max-width: 900px) {
  .workshop-grid { grid-template-columns: 1fr; }
}
