/* css/index.css */

/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* CSS Variables for Brand Colors */
:root {
  --d3f-blue: #0D407F;
  --d3f-green: #2C9A3D;
}

/* --- Hero Section Styles --- */

/* Hero container background is set to a dark color (customize as needed) */
.hero-section {
  position: relative;
  width: 100%;
  height: 120vh;             /* Full viewport height */
  overflow: hidden;
  background-color: #000;    /* Prevents white flashes during crossfade */
}

/* Common style for each slide */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  animation: heroFade 10s infinite;
}

/* Slide 1 using hero.png */
.hero-slide1 {
  background-image: url("../images/hero1.png");
  animation-delay: 0s;
}

/* Slide 2 using hero1.png */
.hero-slide2 {
  background-image: url("../images/hero1.png");
  animation-delay: 5s;  /* Starts halfway through the cycle */
}

/* Adjusted keyframes for seamless crossfade */
@keyframes heroFade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }   /* Fade in to full visibility */
  45%  { opacity: 1; }   /* Stay visible */
  65%  { opacity: 0; }   /* Fade out gradually */
  100% { opacity: 0; }
}

/* Content overlay for text and call-to-action */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 700px;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

/* Button styling */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero-btn {
  background-color: #2C9A3D; /* D3F’s signature green */
  color: #fff;
}

.hero-btn:hover {
  background-color: #249435;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* -------------------- */
/* OUR SOLUTIONS        */
/* -------------------- */
.solutions-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}
.solutions-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--d3f-blue);
}
.solutions-section p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
}
.solutions-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 30px;
}
.solutions-cards .card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.solutions-cards .card:hover {
  transform: translateY(-5px);
}
.solutions-cards .card img {
  width: 100%;
  height: auto;
}
.solutions-cards .card h3 {
  font-size: 1.5rem;
  margin: 15px 0;
  color: var(--d3f-blue);
}
.solutions-cards .card p {
  font-size: 1rem;
  color: #666;
  padding: 0 15px 15px;
}
.solutions-cards .card a.btn {
  margin: 15px;
}

/* ------------------------- */
/* WHY DIGITIZE SECTION      */
/* ------------------------- */
.why-digitize {
  padding: 60px 0;
  text-align: center;
}
.why-digitize h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--d3f-blue);
}
.why-digitize .features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
}
.why-digitize .feature {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.why-digitize .feature:hover {
  transform: translateY(-5px);
}
.why-digitize .feature i {
  font-size: 2.5rem;
  color: var(--d3f-green);
  margin-bottom: 15px;
}
.why-digitize .feature h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--d3f-blue);
}
.why-digitize .feature p {
  font-size: 1rem;
  color: #666;
}

/* ------------------------- */
/* TESTIMONIALS SECTION      */
/* ------------------------- */
.testimonials {
  padding: 60px 0;
  background: #f9f9f9;
  text-align: center;
}
.testimonials h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--d3f-blue);
}
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
}
.testimonial {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.testimonial p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}
.testimonial h4 {
  font-size: 1rem;
  color: var(--d3f-blue);
  font-weight: bold;
}

/* ------------------------- */
/* CALL-TO-ACTION SECTION    */
/* ------------------------- */
.cta {
  padding: 60px 0;
  background: var(--d3f-blue);
  color: #fff;
  text-align: center;
}
.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.cta p {
  font-size: 1.25rem;
  margin-bottom: 30px;
}
.cta a.btn.btn-large {
  padding: 15px 40px;
  font-size: 1.2rem;
}

/* ------------------------- */
/* RESPONSIVE MEDIA QUERIES  */
/* ------------------------- */
@media (max-width: 1024px) {
  .solutions-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-digitize .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .hero-overlay p {
    font-size: 1rem;
  }
  .solutions-cards,
  .why-digitize .features,
  .testimonial-cards {
    grid-template-columns: 1fr;
  }
}


/* CUSTOM SOLUTIONS SECTION */
.custom-solutions {
  padding: 60px 0;
  text-align: center;
  background-color: #fff;
}
.custom-solutions h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--d3f-blue);
}
.custom-solutions p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.custom-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
}
.custom-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.custom-card:hover {
  transform: translateY(-5px);
}
.custom-card i {
  font-size: 2.5rem;
  color: var(--d3f-green);
  margin-bottom: 15px;
}
.custom-card h3 {
  font-size: 1.5rem;
  color: var(--d3f-blue);
  margin-bottom: 10px;
}
.custom-card p {
  font-size: 1rem;
  color: #666;
}

/* Responsive adjustments for Custom Solutions */
@media (max-width: 768px) {
  .custom-cards {
    grid-template-columns: 1fr;
  }
}
