/* Base Styles */
:root {
  --primary: #1a365d;
  --accent: #d69e2e;
  --secondary: #2d3748;
  --light: #f7fafc;
  --dark: #2d3748;
  --text: #2d3748;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.text-center {
  text-align: center;
}

/* Header Styles */
.site-header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: white;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem;
}

.nav a:hover, .nav a.active {
  color: var(--accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg') center/cover;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 1rem;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #b3821e;
  transform: translateY(-3px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.section-title {
  text-align: center;
  margin: 2rem 0;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-img {
  height: 200px;
  background-color: #ddd;
  background-position: center;
  background-size: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 250px;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

/* Call to Action */
.cta {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 8px;
  margin: 3rem 0;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Footer Styles */
.site-footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
}

/* About Page Styles */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

.about-content h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.about-content p {
  margin-bottom: 1rem;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-member {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.team-img {
  height: 250px;
  background-color: #ddd;
  background-position: center;
  background-size: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--accent);
  font-style: italic;
  margin-bottom: 1rem;
}

/* Events Timeline */
.events-timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 0;
}

.events-timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.event-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.event-item:nth-child(odd) {
  left: 0;
}

.event-item:nth-child(even) {
  left: 50%;
}

.event-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: white;
  border: 4px solid var(--accent);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.event-item:nth-child(odd)::after {
  right: -13px;
}

.event-item:nth-child(even)::after {
  left: -13px;
}

.event-content {
  padding: 20px;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.event-date {
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Form Styles */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Portfolio Filter */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

/* Contact Page Styles */
.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.contact-info h3 {
  margin-bottom: 0.25rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary);
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav.active {
    display: flex;
  }
  
  .hamburger {
    display: block;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links h3::after,
  .footer-contact h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .events-timeline::after {
    left: 31px;
  }
  
  .event-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .event-item:nth-child(even) {
    left: 0;
  }
  
  .event-item::after {
    left: 18px;
  }
  
  .event-item:nth-child(odd)::after {
    right: auto;
  }
  
  .portfolio-filter {
    flex-wrap: wrap;
  }
}
/* Team Member Icons */
.team-member {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.team-info {
  padding: 0;
}

.team-info h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--accent);
  font-style: italic;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Service image styling for local images */
.service-img {
  width: 100%;
  height: 250px; /* adjust card height */
  background-size: cover;  /* scales image to cover the card */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px 8px 0 0;
}

/* Make service cards responsive */
@media (max-width: 768px) {
  .service-img {
    height: 200px;
  }
}
