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

:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2548;
  --accent: #e8620a;
  --accent-light: #f97316;
  --light: #f5f7fa;
  --dark: #111827;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --border: #e5e7eb;
  --white: #ffffff;
  --card-bg: #ffffff;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow: 0 4px 24px rgba(26,58,107,0.08);
  --shadow-hover: 0 12px 40px rgba(26,58,107,0.15);
}

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-alt { background: var(--light); }

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-title span { color: var(--accent); }

.section-sub {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 52px;
  max-width: 600px;
}

/* ===== SUBTLE GRID BG ===== */
.grid-bg {
  background-image:
    linear-gradient(rgba(26,58,107,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,58,107,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  background-color: var(--white);
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  transition: box-shadow 0.3s;
}

.navbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-logo { height: 44px; width: auto; }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { color: var(--gray); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #c9520a !important; color: var(--white) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--primary-dark);
}

#particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Subtle gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,37,72,0.3) 0%, rgba(15,37,72,0.7) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,98,10,0.15);
  border: 1px solid rgba(232,98,10,0.4);
  color: #fba96a;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: var(--white);
}

.hero h1 .line2 {
  color: #fba96a;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232,98,10,0.35);
}
.btn-primary:hover {
  background: #c9520a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,98,10,0.45);
  color: var(--white);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--primary);
}

/* ===== STATS ===== */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 52px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.stats-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border);
}

.stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover {
  border-color: rgba(26,58,107,0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: var(--light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg { width: 28px; height: 28px; stroke: var(--primary); }

.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.92rem; line-height: 1.7; }

/* ===== CASES ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(26,58,107,0.15);
}

.case-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.case-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.case-card:hover .case-img img { transform: scale(1.05); }

.case-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,37,72,0.7) 100%);
}

.case-body { padding: 24px; }

.case-tag {
  display: inline-block;
  background: rgba(26,58,107,0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-body h3 { font-size: 0.98rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.case-body p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; }

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

.about-text h2 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.about-text p { color: var(--gray); margin-bottom: 16px; line-height: 1.8; }

.about-values { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.value-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; background: var(--light);
  border-radius: 10px; border-left: 3px solid var(--accent);
  transition: box-shadow 0.2s;
}
.value-item:hover { box-shadow: var(--shadow); }
.value-icon { flex-shrink: 0; margin-top: 2px; }
.value-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.value-item h4 { font-size: 0.92rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.value-item p { font-size: 0.85rem; color: var(--gray); margin: 0; }

.about-visual {
  background: var(--primary);
  border-radius: 20px;
  padding: 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: rgba(232,98,10,0.12);
  border-radius: 50%;
  pointer-events: none;
}

.about-visual h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; }
.about-facts { display: flex; flex-direction: column; gap: 12px; }
.fact {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.fact strong { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.fact span { font-size: 0.8rem; color: rgba(255,255,255,0.55); text-align: right; max-width: 120px; }

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2a5298);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
  margin: 0 auto 16px;
  color: var(--white);
}

.team-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.team-card .role { color: var(--accent); font-size: 0.85rem; margin-bottom: 10px; font-weight: 600; }
.team-card p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
}

.contact-info h2 { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.contact-info p { color: var(--gray); margin-bottom: 28px; line-height: 1.8; }

.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--primary); }
.contact-item h4 { font-size: 0.8rem; color: var(--gray); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item p { font-size: 0.95rem; color: var(--dark); margin: 0; }

.contact-form {
  background: var(--light);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--border);
}
.contact-form h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 64px 24px 24px;
  color: rgba(255,255,255,0.65);
}

.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 { color: var(--white); font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1140px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 12px; position: relative; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 560px; margin: 0 auto; position: relative; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--light);
  padding: 12px 24px;
  font-size: 0.82rem;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}
.breadcrumb .container { display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--primary); }

/* ===== POLICY PAGES ===== */
.policy-content { max-width: 800px; margin: 0 auto; }
.policy-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin: 36px 0 12px; }
.policy-content p, .policy-content li { color: var(--gray); margin-bottom: 12px; line-height: 1.8; }
.policy-content ul { padding-left: 20px; }
.policy-content .last-updated {
  background: rgba(26,58,107,0.06);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
  font-size: 0.88rem;
  color: var(--gray);
}

/* ===== DIVIDER ===== */
.glow-divider {
  height: 1px;
  background: var(--border);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--primary);
  padding: 90px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(232,98,10,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .section-title { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.7); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== TYPEWRITER ===== */
.typewriter::after {
  content: '|';
  color: #fba96a;
  animation: blink 0.8s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services-grid, .cases-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.6rem; }
}

@media (max-width: 600px) {
  .services-grid, .cases-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stat-item::after { display: none; }
}

/* ===== DROPDOWN NAV ===== */
.nav-item { position: relative; }

.nav-item .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(26,58,107,0.12);
  z-index: 200;
}

.nav-item:hover .dropdown { display: block; }

.nav-item .dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark) !important;
  transition: background 0.15s, color 0.15s;
}

.dropdown a:hover {
  background: var(--light);
  color: var(--primary) !important;
}

.dropdown a svg {
  width: 16px; height: 16px;
  stroke: var(--primary);
  flex-shrink: 0;
}

.nav-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7rem;
  transition: transform 0.2s;
  vertical-align: middle;
}

.nav-item:hover .nav-arrow { transform: rotate(180deg); }

@media (max-width: 600px) {
  .nav-item .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    background: transparent;
  }
  .nav-item .dropdown::before { display: none; }
  .dropdown a { color: var(--gray) !important; font-size: 0.85rem; padding: 6px 0; }
}

/* ===== DROPDOWN FIX ===== */
.nav-item { position: relative; }
.nav-item .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(26,58,107,0.12);
  z-index: 200;
  white-space: nowrap;
}
.nav-item .dropdown.open { display: block; }
.nav-item > a { cursor: pointer; }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark) !important;
  transition: background 0.15s;
}
.dropdown a:hover { background: var(--light); color: var(--primary) !important; }
