/* ═══════════════════════════════════════
   IronGate Studios — Global Styles
   ═══════════════════════════════════════ */

:root {
  --navy: #0c1a2e;
  --blue: #0078bf;
  --blue-light: #0090dd;
  --green: #00a86b;
  --g50: #f8fafb;
  --g100: #eef2f6;
  --g200: #dce3eb;
  --g300: #b8c5d3;
  --g400: #8a9bb0;
  --g500: #6b7d94;
  --g600: #4a5e74;
  --g700: #2d3f54;
  --white: #ffffff;
  --shadow: 0 2px 20px rgba(12,26,46,0.06);
  --shadow-hover: 0 8px 32px rgba(12,26,46,0.12);
  --font: 'Outfit', sans-serif;
  --font-display: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

/* ─── TYPOGRAPHY ─── */
.label {
  font-size: 13px; font-weight: 600; color: var(--blue);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
}
.heading-xl {
  font-family: var(--font-display); font-size: 60px; font-weight: 700;
  color: var(--navy); line-height: 1.1; letter-spacing: -1.5px;
}
.heading-lg {
  font-family: var(--font-display); font-size: 46px; font-weight: 700;
  color: var(--navy); line-height: 1.15; letter-spacing: -1px;
}
.heading-md {
  font-family: var(--font-display); font-size: 38px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.5px;
}
.heading-sm {
  font-family: var(--font-display); font-size: 21px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.2px;
}
.text-body { font-size: 17px; color: var(--g500); line-height: 1.65; }
.text-sm { font-size: 15px; color: var(--g500); line-height: 1.65; }
.text-accent { color: var(--blue); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 36px; border-radius: 40px; font-size: 16px;
  font-weight: 600; border: none; cursor: pointer;
  transition: all 0.25s ease; text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #162d4a; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: var(--white); color: var(--navy); border: 2px solid var(--g200); }
.btn-secondary:hover { border-color: var(--g300); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-sm { padding: 12px 28px; font-size: 14px; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0; transition: all 0.35s ease;
  background: transparent; border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g100); padding: 12px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; cursor: pointer; z-index: 1001;
}
.nav-logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--navy); letter-spacing: 1px;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-link {
  background: transparent; border: none; padding: 8px 18px; border-radius: 40px;
  font-size: 14px; font-weight: 400; color: var(--g500); cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.nav-link:hover, .nav-link.active { background: var(--g50); color: var(--navy); font-weight: 600; }
.nav-cta {
  background: var(--navy); color: var(--white); border: none;
  padding: 10px 24px; border-radius: 40px; font-size: 14px; font-weight: 600;
  cursor: pointer; margin-left: 8px; transition: all 0.2s; text-decoration: none;
}
.nav-cta:hover { background: #162d4a; }

/* Mobile menu */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; z-index: 1001;
}
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--white); padding: 70px 20px 24px;
  transform: translateY(-110%); transition: transform 0.35s ease;
  box-shadow: none; border-bottom: 1px solid var(--g100);
}
.mobile-menu.open {
  transform: translateY(0); box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.mobile-menu a, .mobile-menu button {
  display: block; width: 100%; text-align: left; padding: 14px 16px;
  border-radius: 10px; font-size: 16px; font-weight: 400; color: var(--g500);
  background: transparent; border: none; cursor: pointer; text-decoration: none;
  margin-bottom: 4px;
}
.mobile-menu a.active { background: var(--g50); color: var(--navy); font-weight: 600; }
.mobile-menu .mobile-cta {
  background: var(--navy); color: var(--white); text-align: center;
  font-weight: 600; margin-top: 8px;
}
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,0.2);
}
.mobile-overlay.open { display: block; }

/* ─── CARDS ─── */
.card {
  background: var(--white); border-radius: 12px; border: 1px solid var(--g100);
  box-shadow: var(--shadow); transition: all 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.icon-box {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-box.blue { background: rgba(0,120,191,0.07); }
.icon-box.green { background: rgba(0,168,107,0.07); }
.icon-box.navy { background: rgba(12,26,46,0.06); }

.icon-box svg { stroke: var(--blue); }

/* ─── GRID LAYOUTS ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── SECTIONS ─── */
.section { padding: 100px 32px; }
.section-sm { padding: 80px 32px; }
.section-bg { background: var(--g50); }
.section-dark { background: var(--navy); }
.text-center { text-align: center; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--g200) 1px, transparent 1px);
  background-size: 32px 32px; opacity: 0.5;
}
.hero-glow {
  position: absolute; top: 10%; right: 15%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,120,191,0.06), transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 780px; padding: 140px 32px 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--g50); border: 1px solid var(--g200);
  border-radius: 40px; padding: 6px 16px 6px 10px;
  margin-bottom: 28px; font-size: 12px; color: var(--g600);
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── STATS ─── */
.stat-num {
  font-family: var(--font-display); font-size: 42px; font-weight: 800;
  color: var(--navy); margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--g400); letter-spacing: 1px; }

/* ─── SERVICE FEATURE LIST ─── */
.feature-list { list-style: none; }
.feature-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--g100);
}
.feature-item:last-child { border-bottom: none; }
.feature-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,168,107,0.1); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-check svg { width: 12px; height: 12px; stroke: var(--green); }
.feature-text { font-size: 14px; color: var(--g600); }

/* ─── PORTFOLIO ─── */
.filter-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  background: var(--g50); color: var(--g500); border: 1px solid var(--g200);
  padding: 8px 18px; border-radius: 40px; font-size: 13px; cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.project-card { border-radius: 14px; overflow: hidden; }
.project-header {
  height: 140px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.project-header-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.project-header-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.12); display: flex;
  align-items: center; justify-content: center;
}
.project-header-icon svg { stroke: rgba(255,255,255,0.8); }
.project-body { padding: 24px 28px 28px; }
.project-cat {
  font-size: 11px; font-weight: 600; color: var(--blue);
  letter-spacing: 1px; text-transform: uppercase;
}
.project-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--navy); margin: 6px 0 8px;
}
.project-desc { font-size: 13px; color: var(--g400); line-height: 1.65; margin-bottom: 14px; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  background: var(--g50); border: 1px solid var(--g100);
  border-radius: 20px; padding: 3px 10px; font-size: 11px; color: var(--g500);
}

/* ─── ABOUT VALUES ─── */
.value-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 36px 32px; border-radius: 14px;
}
.quote-bar {
  width: 4px; height: 36px; border-radius: 4px;
  background: linear-gradient(var(--blue), var(--green));
  margin: 0 auto 24px;
}
.quote-text {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--navy); line-height: 1.5; font-style: italic;
}
.quote-attr { font-size: 14px; color: var(--g400); margin-top: 18px; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-item { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.contact-info-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--g50); border: 1px solid var(--g100);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-icon svg { stroke: var(--blue); }
.contact-info-text { font-size: 14px; color: var(--g600); }

.form-card {
  background: var(--white); border-radius: 16px; padding: 36px;
  border: 1px solid var(--g100); box-shadow: var(--shadow);
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--g600); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--g200); font-family: var(--font);
  font-size: 15px; color: var(--navy); outline: none;
  background: var(--g50); transition: border 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; }

.form-success {
  text-align: center; padding: 50px 16px; display: none;
}
.form-success.show { display: block; }
.form-success .check-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,168,107,0.1); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 18px;
}
.form-success .check-circle svg { stroke: var(--green); }
.form-fields.hidden { display: none; }

/* ─── FOOTER ─── */
.footer { background: var(--navy); padding: 60px 32px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-text { font-size: 13px; color: var(--g400); line-height: 1.7; max-width: 280px; }
.footer-col-title {
  font-size: 12px; font-weight: 600; color: var(--g300);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.footer-link {
  display: block; font-size: 13px; color: var(--g400);
  margin-bottom: 9px; cursor: pointer; transition: color 0.2s; text-decoration: none;
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--g700); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: var(--g500); }

/* ─── SCROLL ANIMATIONS ─── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE (< 768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 20px; }
  .section-sm { padding: 50px 20px; }

  /* Typography */
  .heading-xl { font-size: 36px; }
  .heading-lg { font-size: 30px; }
  .heading-md { font-size: 26px; }
  .heading-sm { font-size: 18px; }
  .text-body { font-size: 15px; }
  .stat-num { font-size: 32px; }

  /* Nav */
  .nav { padding: 16px 0; }
  .nav-logo-text { font-size: 17px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .mobile-menu { display: block; }

  /* Grids */
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-content { padding: 120px 20px 60px; }
  .btn { padding: 13px 28px; font-size: 15px; }

  /* Portfolio */
  .project-header { height: 110px; }
  .project-body { padding: 20px 22px 24px; }
  .project-title { font-size: 18px; }

  /* Services */
  .service-section-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .heading-service { font-size: 26px !important; }

  /* About */
  .value-card { padding: 24px 20px; }
  .quote-text { font-size: 22px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-card { padding: 24px; }
  .heading-contact { font-size: 30px !important; }

  /* Footer */
  .footer { padding: 48px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
