/* Global Resets and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Smooth scroll for anchor links */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #0A2342; /* Deep Blue */
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; color: #1a3a63; /* Slightly lighter blue */ }

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #555;
}

a {
  color: #D4AF37; /* Gold/Bronze */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #b08f26; /* Darker Gold/Bronze */
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Navbar */
.navbar {
  background: #ffffff;
  color: #0A2342;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

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

.nav-logo img {
  height: 40px;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu a {
  color: #0A2342;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #D4AF37;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #0A2342;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(10, 35, 66, 0.8), rgba(10, 35, 66, 0.95)), url('/images/processing.gif') no-repeat center center/cover; /* Using processing.gif as an example for a techy background */
  /* Or use a static image: background: linear-gradient(rgba(10, 35, 66, 0.8), rgba(10, 35, 66, 0.95)), url('/images/your-hero-background.jpg') no-repeat center center/cover; */
  color: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px; /* Account for navbar height */
}

.hero-section .hero-logo {
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
}

.hero-section .subtitle {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  color: #e0e0e0;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #D4AF37;
  color: #0A2342; /* Deep Blue text on Gold button */
}

.btn-primary:hover {
  background-color: #b08f26;
  color: #0A2342;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #0A2342;
  color: #fff;
  border: 1px solid #D4AF37;
}

.btn-secondary:hover {
  background-color: #1a3a63;
  color: #D4AF37;
  transform: translateY(-2px);
}

/* Content Sections */
.content-section {
  padding: 80px 0;
  opacity: 0; /* For scroll animation */
  transform: translateY(20px); /* For scroll animation */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible { /* Class added by JS */
  opacity: 1;
  transform: translateY(0);
}

.content-section.bg-light {
  background-color: #f8f9fa; /* Off-white */
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

/* Features Grid (Overview Section) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.feature-item {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}
.feature-item.visible { /* Animation specific for items */
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.1s * var(--item-index, 1)); /* Stagger animation if needed */
}


.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 60px; /* Adjust as needed */
  height: 60px; /* Adjust as needed */
  margin-bottom: 1rem;
  /* background-color: #e6f3ff; Temporary background for placeholder icons */
  /* border-radius: 50%; */
  /* display: inline-block; */
  /* line-height: 60px; */
  /* color: #0A2342; */
  /* font-size: 1.5em; */
}

/* Technology Section */
.tech-highlights {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 2rem;
}
.tech-highlights ul {
    list-style: disc;
    margin-left: 20px;
}
.tech-highlights ul li {
    margin-bottom: 0.5rem;
}
.link-styled {
    font-weight: 500;
    margin: 0 5px;
}

/* Heritage Section */
.heritage-container {
  display: flex;
  align-items: center;
  gap: 40px;
}
.heritage-container > div { /* For individual animation */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.heritage-container > div.visible {
  opacity: 1;
  transform: translateY(0);
}

.heritage-text {
  flex: 2;
}
.heritage-text.visible { transition-delay: 0.1s; } /* Stagger if desired */

.heritage-image {
  flex: 1;
  text-align: center;
}
.heritage-image.visible { transition-delay: 0.2s; } /* Stagger if desired */


.heritage-image img {
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Getting Started Section */
.cta-buttons {
  text-align: center;
  margin-top: 2rem;
}

.cta-buttons .btn {
  margin: 0 10px;
}

/* Documentation Section */
.doc-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 2rem;
}

.doc-links li a {
  display: block;
  background: #eef2f7;
  color: #0A2342;
  padding: 15px 25px;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.doc-links li a:hover {
  background-color: #dde6ed;
  transform: translateY(-2px);
  color: #b08f26;
}

/* Footer */
.footer-section {
  background: #0A2342;
  color: #adb5bd;
  text-align: center;
  padding: 40px 0;
}

.footer-section a {
  color: #D4AF37;
}

.footer-section a:hover {
  color: #fff;
}

.footer-section p {
  margin-bottom: 0.5rem;
  color: #adb5bd;
}

.footer-section .copyright {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #868e96;
}

/* Scroll Animations (Basic Fade-in, more advanced handled by JS) */
.fade-in { opacity: 0; transform: translateY(15px); animation: fadeInAnimation 0.8s ease-out forwards; }
.fade-in-delay1 { opacity: 0; transform: translateY(15px); animation: fadeInAnimation 0.8s 0.2s ease-out forwards; }
.fade-in-delay2 { opacity: 0; transform: translateY(15px); animation: fadeInAnimation 0.8s 0.4s ease-out forwards; }
.fade-in-delay3 { opacity: 0; transform: translateY(15px); animation: fadeInAnimation 0.8s 0.6s ease-out forwards; }

@keyframes fadeInAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%; /* Hidden by default */
    top: 65px; /* Below navbar */
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    left: 0; /* Show menu */
  }

  .nav-menu li {
    margin: 1.5rem 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-section .subtitle {
    font-size: 1.1rem;
  }
  .hero-section .hero-logo {
    max-width: 200px;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .heritage-container {
    flex-direction: column;
  }
  .heritage-image img {
      max-width: 250px;
  }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .subtitle {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .features-grid {
        grid-template-columns: 1fr; /* Stack features on smallest screens */
    }
}