/* our_works.css - Complete standalone CSS for Our Works page */
/* Nav & Footer identical to web_development.html */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #1E3F5C;
  --primary-light: #37A2B5;
  --secondary: #1E3F5C;
  --secondary-dark: #0b233e;
  --accent: #FF6B35;
  --text-dark: #111827;
  --text-light: #f1f2f5;
  --text-muted: #64748b;
  --bg-light: #f5f8fb;
  --bg-white: #fff;
  --border: #e5e8ed;
  --shadow: 0 4px 20px rgba(0, 0, 0, .08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all .3s ease;
  --nav-h: 80px;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
p { margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }



/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5vw;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* subtle parallax */
  color: #161515;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.6);
  z-index: -1;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: #28e1c2;
  text-shadow: 0 0 25px rgba(13, 13, 14, 0.5);
  margin-bottom: 16px;
}
.typing-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: #00D4FF;
  margin-bottom: 24px;
}
.about-text {
  font-size: 1.25rem;
  color: #dbe2f0;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== PROJECT SECTIONS (UPDATED) ===== */
.project {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 120px 5vw;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.project::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.02);
}
.project-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.35) contrast(1.2);
  z-index: -1;
  transform: scale(1.05);
  transition: transform .8s ease;
}
.project:hover .project-bg { transform: scale(1.1); }

/* Unified GRID layout */
.project-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Add .alt to a .project section to flip sides */
.project.alt .project-container { direction: rtl; }
.project.alt .project-info,
.project.alt .project-media { direction: ltr; }

@media (max-width: 1100px) { .project-container { gap: 48px; } }
@media (max-width: 991px) {
  .project { padding: 80px 5vw; }
  .project-container { grid-template-columns: 1fr; gap: 28px; }
}

/* Text */
.project-info { color: #fff; }
.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.project-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin-bottom: 22px;
  color: var(--text-light);
  line-height: 1.8;
}
.project-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  transition: color .3s;
}
.project-link:hover { color: var(--primary); }

/* Video box — bigger by default + size modifiers */
.project-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  width: 100%;
  max-width: 820px;           /* larger default */
  aspect-ratio: 16 / 9;
  height: auto;
  flex-shrink: 0;
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-media:hover { transform: scale(1.015); }
.project-media.video-lg { max-width: 920px; }
.project-media.video-xl { max-width: 1080px; }

.project-media::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  border-radius: 24px;
}

.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Optional poster layer if used */
.video-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: brightness(.35) contrast(1.2);
}
.project-media > * { position: relative; z-index: 2; }

/* Mobile video sizing */
@media (max-width: 1200px) {
  .project-media         { max-width: 760px; }
  .project-media.video-lg{ max-width: 860px; }
  .project-media.video-xl{ max-width: 980px; }
}
@media (max-width: 991px) {
  .project-media,
  .project-media.video-lg,
  .project-media.video-xl {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
  }
}

/* ===== INDUSTRIES WE SERVE ===== */
:root {
  --step-1: #E84C3D;
  --step-2: #F06543;
  --step-3: #F28F3B;
  --step-4: #D97A2B;
  --step-5: #C94F4F;
  --step-6: #E7663F;
  --step-7: #F59E0B;
  --step-8: #C85C2B;
  --step-text: #FFFFFF;
  --step-muted: #FFE9D8;
  --steps-bg: #0B0E15;
  --steps-shadow: 0 18px 40px rgba(0, 0, 0, .32);
}
.industries-steps { background: var(--steps-bg); padding: 70px 5vw 90px; }
.industries-steps .steps-head { text-align: center; margin-bottom: 28px; }
.industries-steps .steps-head h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}
.industries-steps .steps-head h2::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 140px; height: 3px; background: #F06543; border-radius: 2px;
}
.steps-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 auto 24px;
  max-width: 1400px;
}
.step { position: relative; min-height: 230px; display: flex; }
.step-card {
  position: relative; display: block; color: var(--step-text); text-decoration: none;
  padding: 68px 24px 22px; width: 100%; box-shadow: var(--steps-shadow); isolation: isolate;
  transform: translateZ(0); transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 26px 70px rgba(0,0,0,.38); }
.step-card::after {
  content: ""; position: absolute; top: 0; right: -28px; width: 0; height: 0; z-index: 1;
  border-top: 115px solid transparent; border-bottom: 115px solid transparent;
}
.step:last-child .step-card::after { display: none; }
.steps-strip .step:nth-child(4) .step-card::after { display: none; }

.step-icon {
  position: absolute; top: -28px; left: 0; right: 0; width: 68px; height: 68px; margin-inline: auto;
  border-radius: 50%; display: grid; place-items: center; background: #111; color: #fff; font-size: 1.25rem; z-index: 3;
  border: 3px solid rgba(255, 255, 255, .25);
}
.step-num { position: absolute; top: 22px; left: 24px; font-weight: 900; font-size: 2.2rem; letter-spacing: .02em; }
.step-title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; margin: 10px 0 6px; }
.step-desc { font-size: .95rem; color: var(--step-muted); line-height: 1.6; }

.step-1 .step-card { background: var(--step-1); } .step-1 .step-card::after { border-left: 28px solid var(--step-1); }
.step-2 .step-card { background: var(--step-2); } .step-2 .step-card::after { border-left: 28px solid var(--step-2); }
.step-3 .step-card { background: var(--step-3); } .step-3 .step-card::after { border-left: 28px solid var(--step-3); }
.step-4 .step-card { background: var(--step-4); } .step-4 .step-card::after { border-left: 28px solid var(--step-4); }
.step-5 .step-card { background: var(--step-5); } .step-5 .step-card::after { border-left: 28px solid var(--step-5); }
.step-6 .step-card { background: var(--step-6); } .step-6 .step-card::after { border-left: 28px solid var(--step-6); }
.step-7 .step-card { background: var(--step-7); color: #1B1305; }
.step-7 .step-desc { color: #4A3412; }
.step-7 .step-card::after { border-left: 28px solid var(--step-7); }
.step-8 .step-card { background: var(--step-8); } .step-8 .step-card::after { border-left: 28px solid var(--step-8); }

@media (max-width: 1100px) {
  .steps-strip { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .step-card { padding: 64px 22px 22px; }
  .step-card::after { display: none; }
  .step-icon { top: -24px; width: 60px; height: 60px; }
  .step-num { top: 18px; left: 20px; font-size: 1.9rem; }
}
@media (max-width: 560px) { .steps-strip { grid-template-columns: 1fr; } }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; text-align: center; padding: 80px 20px;
}
.cta h2 { font-size: 2.1rem; margin-bottom: 14px; font-weight: 900; }
.cta p { max-width: 700px; margin: 0 auto 26px; }
.btn {
  display: inline-block; background: var(--primary-light); color: #083344;
  padding: 12px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 700; cursor: pointer; transition: filter .25s ease, transform .25s ease;
}
.btn.small { padding: 10px 18px; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--bg-light); color: var(--text-dark); }


/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
