/* CSS Variables */
:root {
  --primary-bg: rgb(32, 51, 90);
  --primary-bg-light: rgb(40, 65, 115);
  --primary-bg-dark: rgb(22, 35, 62);
  --accent: rgb(169, 169, 169);
  --accent-hover: rgb(128, 128, 128);
  --text-white: #ffffff;
  --text-light: #e0e0e0;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-bg);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
buttons {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 3rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.max-w-800 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bg-darker {
  background-color: var(--primary-bg-dark);
}

.bg-white {
  background-color: #ffffff;
  color: var(--primary-bg);
}

.bg-white .section-title,
.bg-white h2,
.bg-white h3,
.bg-white p,
.bg-white .highlight-box {
  color: var(--primary-bg);
}

.bg-white .section-tag {
  color: var(--accent);
}

.bg-white .text-strong {
  color: var(--accent);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.highlight {
  color: var(--accent);
}

.highlight-color {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-white);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent);
}

/* Header */
.header {
  background-color: rgba(32, 51, 90, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 3px solid var(--accent);
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  width: 200px;
  height: auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent);
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-contact {
  border: 1px solid var(--accent);
  padding: 8px 20px;
  border-radius: 20px;
  color: var(--accent);
}

.btn-contact:hover {
  background-color: var(--accent);
  color: var(--text-white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px; /* Header height */

  /* Real Image Background */
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
    url("img/earth.jpg") no-repeat center center/cover;
  overflow: hidden;
}

/* Optional: Add a real Earth image here if available:
.hero { background: url('img/earth.jpg') no-repeat center center/cover; } 
*/

/* Decorative stars/space effect */
/* Removed CSS stars as we have real stars in image */
.hero::after {
  display: none;
}

/* decorative stripe - adjusted to be more subtle over the "space" background */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(32, 51, 90, 0.8), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

/* Philosophy */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
}

.highlight-box {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  font-size: 1.5rem;
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--text-light);
}

.text-strong {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1rem;
  color: var(--accent);
}

/* Vision Grid */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.vision-item {
  background: var(--primary-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s;
}

.vision-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.vision-item i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: linear-gradient(
    145deg,
    var(--primary-bg-light),
    var(--primary-bg)
  );
  padding: 2.5rem;
  border-radius: 12px;
  border-bottom: 4px solid transparent;
  transition: all 0.3s;
  /* Default text color for dark scheme */
  color: var(--text-white);
}

/* Specific override for service cards in white section */
.bg-white .service-card {
  background: #f8f9fa;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.bg-white .service-card h3 {
  color: var(--primary-bg);
}

.bg-white .service-card p {
  color: #555;
}

.service-card:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(169, 169, 169, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Team */
.team {
  position: relative;
  background:
    linear-gradient(rgba(32, 51, 90, 0.85), rgba(32, 51, 90, 0.9)),
    url("img/office.jpg") no-repeat center center/cover;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.team-member {
  background: var(--primary-bg);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 2rem;
  width: 300px;
  text-align: center;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

.team-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--accent);
}

.team-member:hover {
  transform: scale(1.02);
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid var(--accent);
}

.team-member h3 {
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.team-email {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.team-email:hover {
  color: var(--text-white);
}

.team-member .role {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.team-member .cert {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Secondary Team Members */
.team-grid-secondary {
  gap: 1.5rem;
}

.team-member.secondary-member {
  width: 260px;
  padding: 1.5rem;
  min-height: auto;
}

.team-member.secondary-member h3 {
  font-size: 1.1rem;
}

.team-member.secondary-member .role {
  font-size: 0.85rem;
}

/* Safeguard */
.safeguard-container {
  background: linear-gradient(
    to right,
    var(--primary-bg-dark),
    var(--primary-bg)
  );
  border-radius: 15px;
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(169, 169, 169, 0.3);
  /* Ensure text inside this dark container stays white even in a white section */
  color: var(--text-white);
}

.bg-white .safeguard-container h2,
.bg-white .safeguard-container p {
  color: var(--text-white);
}

.check-list {
  margin-top: 1.5rem;
}

.check-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.check-list li i {
  color: var(--accent);
}

.big-icon {
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.03);
}

/* Contact */
.contact {
  position: relative;
  background:
    linear-gradient(rgba(32, 51, 90, 0.85), rgba(32, 51, 90, 0.95)),
    url("img/map.jpg") no-repeat center center/cover;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: white;
  font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-closer {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent);
  margin-top: 1rem;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-methods .method {
  text-align: center;
}

.contact-methods i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  padding: 30px 0;
  background-color: black;
  color: #666;
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 1s ease;
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 1s ease;
}
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translate(0);
}

.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}
.delay-500 {
  transition-delay: 0.5s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 70px;
    right: -100%;
    background-color: var(--primary-bg-dark);
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    transition: right 0.4s ease;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .safeguard-container {
    flex-direction: column;
    padding: 2rem;
  }

  .big-icon {
    display: none;
  }
  
  .about-content p {
    text-align: justify;
    padding: 0 10px;
  }
}

/* Image Dividers */
.triumph-divider {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
}

.triumph-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Add a slight filter to make it blend better if needed */
  filter: brightness(0.9) contrast(1.1);
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
  cursor: pointer;
}

.triumph-divider:hover img {
  transform: scale(1.05); /* Slight zoom on hover */
  filter: brightness(1.1) contrast(1.2); /* Brighten up on hover */
}
