/* css/styles.css */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/* CSS Variables for Theming */
:root {
  --primary-color: #1a1f36; /* Deep Navy Blue */
  --secondary-color: #d4af37; /* Metallic Gold */
  --accent-color: rgba(0, 0, 0, 0.15); /* Subtle shadow color */
  --background-color: #f5f5f5; /* Light Gray */
  --text-color: #333333; /* Charcoal */
  --link-color: #1a1f36; /* Deep Navy Blue */
  --link-hover-color: #d4af37; /* Metallic Gold */
  --footer-bg-color: #1a1f36; /* Deep Navy Blue */
  --navbar-bg-color: rgba(26, 31, 54, 0.9); /* Semi-transparent */
  --font-family: 'Urbanist', sans-serif;
  --secondary-font: 'Open Sans', sans-serif;
  --transition-speed: 0.3s;
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-style: normal;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navigation Bar */
nav.navbar {
  background-color: var(--navbar-bg-color);
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  transition: background-color var(--transition-speed) ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.navbar .logo h1 {
  font-size: 1.6rem;
  color: #ffffff;
  letter-spacing: 1px;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.navbar .nav-links li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-speed) ease;
}

.navbar .nav-links li a:hover,
.navbar .nav-links li a:focus {
  color: var(--link-hover-color);
  outline: none;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger .bar {
  height: 3px;
  width: 25px;
  background-color: #ffffff;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Main Container */
.container {
  margin-top: 70px; /* so content doesn't go under navbar */
}

/* Hero Section */
.hero-section {
  position: relative; /* so #vanta-hero-bg is absolutely positioned inside */
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* ensures wave stays within the hero */
  padding: 0 20px;
}

#vanta-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-family: var(--secondary-font);
  color: var(--text-color);
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color var(--transition-speed) ease,
    color var(--transition-speed) ease,
    transform var(--transition-speed) ease;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #ffffff;
  color: var(--primary-color);
  outline: none;
  transform: translateY(-2px);
}

/* About Section */
.about-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
}

.about-section h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.about-section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--secondary-font);
  color: var(--text-color);
  line-height: 1.7;
}

/* Services Section */
.services-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.services-section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px var(--accent-color);
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.4rem;
  margin: 15px;
  color: var(--primary-color);
}

.service-card p {
  font-size: 1rem;
  margin: 0 15px 20px 15px;
  font-family: var(--secondary-font);
  color: var(--text-color);
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px var(--accent-color);
}

/* Projects Section */
.projects-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.projects-section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px var(--accent-color);
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  font-size: 1.4rem;
  margin: 15px;
  color: var(--primary-color);
}

.project-card p {
  font-size: 1rem;
  margin: 0 15px 20px 15px;
  font-family: var(--secondary-font);
  color: var(--text-color);
  line-height: 1.6;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px var(--accent-color);
}

/* Contact Section */
.contact-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.contact-section h2 {
  font-size: 2.4rem;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--primary-color);
}

.contact-info-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-info {
  max-width: 300px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 8px var(--accent-color);
  padding: 20px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.contact-info p,
.contact-info address {
  font-size: 1rem;
  margin-bottom: 10px;
  font-family: var(--secondary-font);
  color: var(--text-color);
  line-height: 1.5;
}

.contact-info a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.contact-info a:hover,
.contact-info a:focus {
  color: var(--link-hover-color);
  outline: none;
}

/* Map Section */
.map-section {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px var(--accent-color);
}

.map-section iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* CTA Section */
.cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
}

.cta-section h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-family: var(--secondary-font);
  color: var(--text-color);
  line-height: 1.7;
}

.cta-section .cta-button {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.cta-section .cta-button:hover,
.cta-section .cta-button:focus {
  background-color: #ffffff;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo h1 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--link-hover-color);
  outline: none;
}

.footer p {
  font-size: 0.9rem;
  font-family: var(--secondary-font);
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-text h2 {
    font-size: 2.5rem;
  }

  .map-section iframe {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--navbar-bg-color);
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border-radius: 8px;
    padding: 20px 0;
  }

  .navbar .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .map-section iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 1.8rem;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .map-section iframe {
    height: 250px;
  }

  .contact-info-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Transitions for any element */
*, *::before, *::after {
  transition: all var(--transition-speed) ease;
}
