/* --- VARIABLES & RESET --- */
:root {
  /* Colors extracted from the Eternal Phoenix Logo */
  --primary-blue: #003B73; /* Dark Blue from text */
  --accent-blue: #0074D9; /* Lighter Blue from icon */
  --light-bg: #F4F8FB;
  --white: #ffffff;
  --text-dark: #333333;
  --text-gray: #666666;
  --transition: all 0.3s ease;
  --radius: 0px;
  --header-offset: 84px;
  --shadow-1: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 16px 40px rgba(0, 0, 0, 0.14);

  /* Premium system tokens */
  --bg: #070B12;
  --surface: rgba(255, 255, 255, 0.02);
  --surface-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(0, 59, 115, 0.18);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.58);
  --max: 1180px;
}

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

html {
  scroll-padding-top: var(--header-offset);
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(0, 116, 217, 0.22), transparent 55%),
    radial-gradient(900px 600px at 85% 15%, rgba(0, 59, 115, 0.22), transparent 55%),
    linear-gradient(180deg, #05070c, #070b12 35%, #05070c);
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- NAVIGATION --- */
header {
  background: rgba(7, 11, 18, 0.72);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 2rem;
  gap: 1.25rem;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  height: 56px;
  width: auto;
  display: block;
  /* Make the logo white regardless of source color */
  filter: brightness(0) invert(1) drop-shadow(0 8px 24px rgba(0, 116, 217, 0.22));
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  padding: 0.35rem 0;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), #3dd6ff);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(0, 116, 217, 0.45);
  background: rgba(0, 116, 217, 0.14);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: var(--transition);
  box-shadow: 0 18px 50px rgba(0, 116, 217, 0.18);
}

.nav-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(61, 214, 255, 0.6);
  box-shadow: 0 18px 60px rgba(0, 116, 217, 0.26);
}

/* --- HERO SECTION --- */
#home {
  min-height: calc(100vh - var(--header-offset));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
  padding: 0 20px;
  margin-top: var(--header-offset); /* Offset fixed header */
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 18px;
}

.hero-badge {
  display: inline-flex;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 18px;
}

.hero-content h1 {
  color: var(--text);
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.06;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: var(--text);
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
  border: 1px solid var(--border);
  letter-spacing: 0.6px;
}

.btn:hover {
  border-color: rgba(61, 214, 255, 0.6);
  transform: translateY(-3px);
}

.btn-primary {
  background: rgba(0, 116, 217, 0.92);
  border-color: rgba(0, 116, 217, 0.6);
  box-shadow: 0 18px 60px rgba(0, 116, 217, 0.24);
}

.btn-primary:hover {
  background: rgba(0, 116, 217, 1);
  box-shadow: 0 20px 70px rgba(0, 116, 217, 0.32);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.metric {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 14px 12px;
  text-align: left;
}

.metric-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.metric-label {
  color: var(--muted-2);
  font-size: 0.9rem;
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.05), rgba(7, 11, 18, 0.65)),
    radial-gradient(1200px 700px at 50% 0%, rgba(61, 214, 255, 0.16), transparent 60%),
    url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  z-index: -1;
}

/* --- SECTIONS GENERAL --- */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.5rem);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-subtitle {
  max-width: 760px;
  margin: 0.75rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-title .line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), #3dd6ff);
  margin: 18px auto 0;
}

/* --- SERVICES SECTION --- */
#services {
  background: transparent;
}

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

/* Force 4-up on desktop (fits container) */
@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.6rem;
  }
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 214, 255, 0.35);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.icon-box {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 116, 217, 0.45);
  background: linear-gradient(180deg, rgba(0, 116, 217, 0.18), rgba(0, 116, 217, 0.06));
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
}

.icon {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.92);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: rgba(61, 214, 255, 0.95);
  position: relative;
}

.card-link::after {
  content: '';
  height: 1px;
  width: 0;
  background: rgba(61, 214, 255, 0.9);
  position: absolute;
  left: 0;
  bottom: -4px;
  transition: var(--transition);
}

.card-link:hover::after {
  width: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 220px at 30% 0%, rgba(61, 214, 255, 0.12), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

/* --- ABOUT / MYANMAR BASE --- */
#about {
  background: transparent;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.highlight {
  color: rgba(61, 214, 255, 0.95);
  font-weight: 700;
}

.about-text p {
  color: var(--muted);
}

.about-points {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-point {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.about-point-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.about-point-text {
  color: var(--muted-2);
  font-size: 0.92rem;
}

/* --- CONTACT --- */
#contact {
  background: linear-gradient(135deg, rgba(0, 59, 115, 0.55), rgba(7, 11, 18, 0.92));
  color: var(--text);
}

#contact .section-title h2 {
  color: var(--text);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

.info-item {
  margin-bottom: 2rem;
}

.info-item h4 {
  color: rgba(61, 214, 255, 0.95);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.info-item p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  flex: 1.5;
  min-width: 300px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  background: rgba(7, 11, 18, 0.55);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: var(--transition);
}

textarea.form-control {
  height: 120px;
  resize: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
  border-color: rgba(61, 214, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(61, 214, 255, 0.08);
}

.btn-submit {
  background: rgba(0, 116, 217, 0.92);
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 116, 217, 0.65);
  padding: 12px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
  letter-spacing: 0.6px;
  box-shadow: 0 18px 60px rgba(0, 116, 217, 0.22);
}

.btn-submit:hover {
  transform: translateY(-2px);
  background: rgba(0, 116, 217, 1);
  border-color: rgba(61, 214, 255, 0.65);
  box-shadow: 0 20px 70px rgba(0, 116, 217, 0.3);
}

.form-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

/* --- FOOTER --- */
footer {
  background: transparent;
  border-top: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.62);
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn-submit:hover,
  .nav-cta:hover,
  .service-card:hover {
    transform: none;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
    align-items: stretch;
    gap: 0.75rem;
  }

  :root {
    --header-offset: 112px;
  }

  .logo-image {
    height: 46px;
  }

  .nav-cta {
    width: 100%;
    max-width: 360px;
    align-self: center;
    text-align: center;
    padding: 12px 16px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .nav-links {
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .contact-container {
    padding: 1.5rem;
  }
}
