/* Dominion Inc - Blueprint & Structure Theme */
:root {
  --navy: #1b365d;
  --white: #ffffff;
  --steel-blue: #4a90e2;
  --accent-gold: #d4af37;
  --light-gray: #f5f7fa;
  --dark-gray: #2c3e50;
  --border-gray: #e1e8ed;
}

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

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background: var(--white);
  scroll-behavior: smooth; /* Ensure smooth scrolling for new nav links */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
.main-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-gold);
  transform: rotate(45deg);
  display: inline-block;
  position: relative;
}

.logo-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  transform: translate(-50%, -50%);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

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

.main-nav a:hover {
  color: var(--accent-gold);
}

.menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel-blue) 100%);
  overflow: hidden;
  padding-top: 80px; /* Account for fixed header */
}

.blueprint-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: blueprint-move 20s linear infinite;
}

@keyframes blueprint-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.shape-text {
  display: block;
  color: var(--white);
  animation: build-up 1s ease-out;
}

.your-text {
  display: block;
  color: var(--accent-gold);
  animation: build-up 1s ease-out 0.3s both;
}

.future-text {
  display: block;
  color: var(--steel-blue);
  animation: build-up 1s ease-out 0.6s both;
}

@keyframes build-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: var(--white);
  max-width: 500px;
  position: relative;
  z-index: 2;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--steel-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.compass-indicator {
  position: relative;
  width: 200px;
  height: 200px;
}

.compass-circle {
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent-gold);
  border-radius: 50%;
  position: relative;
}

.compass-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 80px;
  background: var(--accent-gold);
  transform: translate(-50%, -50%);
  transform-origin: center bottom;
  animation: compass-spin 4s ease-in-out infinite;
}

@keyframes compass-spin {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg);
  }
}

/* Section Styles */
section {
  padding: 6rem 0;
}

.section-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Programs Section */
.programs {
  background: var(--light-gray);
}

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

.program-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-gold);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-icon {
  font-size: 2.5rem;
  margin-right: 1rem;
}

.card-header h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
}

.program-card p {
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-metrics {
  border-top: 1px solid var(--border-gray);
  padding-top: 1rem;
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Dashboard Section */
.dashboard {
  background: var(--white);
}

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

.dashboard-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
}

.dashboard-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--navy);
  text-transform: uppercase;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-gray);
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 4px;
  width: 0%;
  transition: width 2s ease;
}

.dashboard-card p {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

/* About Section */
.about {
  background: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  max-width: 600px;
}

.mission-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 3rem;
  color: var(--dark-gray);
}

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

.stat {
  text-align: center;
}

.stat-number {
  font-family: "Oswald", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.blueprint-lines {
  position: relative;
  width: 200px;
  height: 200px;
}

.line {
  position: absolute;
  background: var(--accent-gold);
  opacity: 0.3;
  animation: line-draw 3s ease-in-out infinite;
}

.line-1 {
  top: 20%;
  left: 0;
  width: 100%;
  height: 2px;
  animation-delay: 0s;
}

.line-2 {
  top: 0;
  left: 30%;
  width: 2px;
  height: 100%;
  animation-delay: 1s;
}

.line-3 {
  top: 60%;
  left: 0;
  width: 80%;
  height: 2px;
  animation-delay: 2s;
}

@keyframes line-draw {
  0% {
    width: 0%;
    opacity: 0;
  }
  50% {
    width: 100%;
    opacity: 0.3;
  }
  100% {
    width: 100%;
    opacity: 0.3;
  }
}

/* Contact Section */
.contact {
  background: var(--white);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group:nth-child(3),
.form-group:nth-child(4) {
  grid-column: span 2;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-gray);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.contact-form .btn {
  width: 100%;
  font-size: 1.2rem;
  padding: 1.2rem;
}

/* Footer */
.main-footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 4rem 0;
  font-size: 0.9rem;
}

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

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-social h4 {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--steel-blue);
}

.footer-email {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  margin-bottom: 1rem; /* Space between email and social icons */
  display: block; /* Ensure it takes its own line */
}

.footer-email:hover {
  color: var(--accent-gold);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--white);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .main-header {
    padding: 0.8rem 0;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    background: var(--navy);
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    transform: translateY(-100%); /* Start off-screen */
    opacity: 0;
    pointer-events: none;
  }

  .main-nav.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a::after {
    display: none; /* Hide underline on mobile menu */
  }

  .menu-toggle {
    display: block; /* Show hamburger on mobile */
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px; /* Adjust for mobile header height */
  }

  .hero-visual {
    margin-top: 2rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    text-align: center;
    width: 100%;
    max-width: 300px;
  }

  section {
    padding: 4rem 0;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .mission-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group:nth-child(3),
  .form-group:nth-child(4) {
    grid-column: span 1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links ul {
    padding-left: 0;
  }

  .social-icons {
    justify-content: center;
  }
}
