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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff9e6; /* light yellow background across entire page */
}

img {
  max-width: 100%;
  display: block;
}

/* Navigation */
.site-header {
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.logo {
  height: 48px;
  width: auto;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #f58220; /* orange from logo */
}

/* Menu toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

/* Hero section */
.hero-section {
  height: 80vh;
  background: linear-gradient(135deg, #f35f5f, #fbd040, #5fcf80, #00a7d6, #4b5bdc);
  background-size: 300% 300%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem; /* to offset fixed header */
  animation: gradientShift 15s ease infinite;
  color: #fff;
  text-align: center;
}

@keyframes gradientShift {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  background-color: #f58220;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #d76c0a;
}

/* Section base styles */
section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #333;
}

/* About section */
.about-section p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.company-info {
  margin-top: 1rem;
  background-color: #eaf8f2;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid #5fcf80;
}

/* Services section */
.services-section {
  background: linear-gradient(135deg, #e9fff3, #f0fff6);
}

/* Team illustration */
.team-image {
  text-align: center;
  margin-bottom: 2rem;
}

.team-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.service-item {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #f58220;
}

.service-item p {
  font-size: 0.95rem;
  color: #555;
}

.service-item:hover {
  transform: translateY(-5px);
}

/* Section color themes */
.about-section {
  background: linear-gradient(135deg, #fff7e6, #ffe4e1);
}

.projects-section {
  background: linear-gradient(135deg, #e6f7ff, #e6f4ff);
}

.video-section {
  background: linear-gradient(135deg, #ffe4f4, #e8e6ff);
}

/* Testimonials section */
.testimonials-section {
  background: linear-gradient(135deg, #fef2e6, #fff5ee);
}

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

.testimonial {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 0.75rem;
}

.testimonial span {
  font-weight: bold;
  color: #333;
}

/* Contact section */
.contact-section {
  background: linear-gradient(135deg, #e6f7ff, #f0f8ff);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background-color: #5fcf80;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #3fab64;
}

/* Video section (styles defined earlier for background) */
.video-section {
  text-align: center;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Gallery section */
.gallery-section {
  background: linear-gradient(135deg, #fef9e7, #fdf2e9);
  text-align: center;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.image-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Ribbon style gallery */
.gallery-ribbon-container {
  overflow: hidden;
  width: 100%;
  margin-top: 2rem;
}

.image-ribbon {
  display: flex;
  /* Animation is handled via JavaScript for smoother ribbon scrolling */
}

.image-ribbon img {
  width: 300px;
  flex-shrink: 0;
  margin-right: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


/* Footer */
.site-footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
}

.site-footer p {
  font-size: 0.9rem;
}

/* Responsive navigation for small screens */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .nav-links li {
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-links a {
    display: block;
    padding: 1rem;
    color: #333;
  }
  .nav-links.active {
    display: flex;
  }
}

/*
 * Carousel cross‑fade styles for the Gallery section.
 * The images are absolutely positioned on top of each other and fade
 * in and out sequentially. Each image stays visible for roughly a
 * third of the animation cycle before fading out, creating a smooth
 * transition through all slides.
 */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px;
}

.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: carouselAnimation 12s infinite;
}

/* Delay each image's animation so they appear one after the other */
.carousel img:nth-child(1) { animation-delay: 0s; }
.carousel img:nth-child(2) { animation-delay: 4s; }
.carousel img:nth-child(3) { animation-delay: 8s; }

@keyframes carouselAnimation {
  /* Fully visible for the first third of the cycle */
  0%, 33%   { opacity: 1; }
  /* Fade out quickly after */
  40%, 100% { opacity: 0; }
}

/* Override the video wrapper to enlarge the embedded video */
.video-wrapper {
  /* Occupy most of the viewport height for a true full‑width video section */
  height: 80vh;
  padding: 0;
}