/* ===== Global Styles (All Pages) ===== */
@font-face {
  font-family: 'CoHeadlineBold';
  src: url('fonts/Co Headline Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'CoHeadlineLight';
  src: url('fonts/Co Headline Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #5D478A;
  --background-color: #DDDDDD;
  --text-color: #414042;
  --white: #FFFFFF;
  --black: #414042;
  --highlight-yellow: #FAE36F;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'CoHeadlineLight', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.hero-title .container {

  padding: 0 40px;         /* Optional side padding */
  margin: 0 auto;          /* Centering if needed */
}

.hero-title p {
  max-width: none;        /* Remove any width restriction */
  width: 100%;            /* Allow full expansion */
  line-height: 1.8;       /* For nice spacing */
}

/* ===== Global Hover Override to Yellow ===== */
a:hover:not(.filter-btn),
button:hover:not(.filter-btn),
.btn:hover:not(.filter-btn),
.nav-link:hover:not(.filter-btn),
.footer-links a:hover:not(.filter-btn),
.project-tags span:hover:not(.filter-btn),
.about-btn:hover:not(.filter-btn),
.service-item:hover:not(.filter-btn),
.social-link:hover:not(.filter-btn) {
  color: var(--highlight-yellow) !important;
  border-color: var(--highlight-yellow) !important;
  background-color: inherit !important;
}


/* Specific background-hover elements */
.btn:hover:not(.contact-submit-btn),
.about-btn:hover,
.social-link:hover {
  background-color: var(--highlight-yellow) !important;
  color: var(--black) !important;
}


/* Prevent zoom or transform on hover globally */


/* ===== Project Title Hover Effect ===== */
.project-item:hover .project-title {
  color: var(--highlight-yellow) !important;
  transition: var(--transition);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px; /* Enough breathing space */
}

@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.btn:hover {
  background-color: var(--text-color);
  transform: translateY(-3px);
}

/* ===== Index Page: Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  transition: var(--transition);
  height: 100px; /* fixes outer height */
  display: flex;
  align-items: center;
}

.header-scrolled {
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 8px 0; /* ↓ tighter padding on scroll */
}

body:not(.home) header {
  background-color: var(--primary-color);
  padding: 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-img {
  height: 150px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-img {
    height: 80px; /* or 100px based on your preference */
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 60px;
  }
}

.header-container {
  height: 100px; /* match logo height */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
  color: var(--white);
}

.nav-link:hover,
.nav-link.active {
  color: var(--highlight-yellow);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
}

.nav-link:hover::after, 
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--white);
  transition: all 0.3s ease-in-out;
}

/* Animate to X */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

.nav-list.active {
  transform: translateX(0); /* already should exist */
  transition: transform 0.3s ease;
}

.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  padding: 100px 0 40px;
  background-color: transparent;
}

.hero-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: left;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.6;
  color: var(--text-color);
  margin-top: 15px;
  text-align: left;
}

.hero-projects-title {
  padding: 100px 0 40px;
  background-color: transparent;
}

.hero-projects-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: left;
}

.hero-projects-title .hero-subtitle {
  font-size: 1rem;
  max-width: 700px;
  line-height: 1.6;
  color: var(--text-color);
  margin-top: 15px;
  text-align: left;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  height: auto;
  z-index: -1;
}

/* ===== Index Page: About Section ===== */
.about-section {
  padding: 60px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 600px; /* fixed height for desktop */
  object-fit: cover;
  display: block;
}

/* Responsive: Tablet & Mobile view */
@media (max-width: 768px) {
  .about-image img {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .about-image img {
    height: 300px;
  }
}

.about-content p {
  font-size: 1rem;
  opacity: 0.8;
}

.about-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 25px;
  border: 2px solid var(--text-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-btn .dot {
  font-size: 1.5rem;          /* ⬅️ Bigger dot */
  margin-left: 10px;
  color: limegreen;           /* ⬅️ Green color */
  animation: blink 1s infinite; /* ⬅️ Blinking */
}

/* 🔁 Blinking animation */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.about-btn:hover {
  background-color: var(--highlight-yellow);
  color: var(--black);
  border-color: var(--highlight-yellow);
  transform: translateY(-2px);
}

/* ===== Index Page: Services Section ===== */
.services-accordion {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

.accordion-item {
  flex: 1;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  overflow: hidden;
}

.accordion-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.accordion-header h3 {
  margin: 0;
}

.accordion-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--primary-color);
  transition: var(--transition);
}

.accordion-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: none !important;
  display: block !important;
  opacity: 1 !important;
  padding-top: 15px; /* Optional */
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding-top: 15px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg); /* + becomes × */
}

.accordion-content p {
  font-size: 1rem;
  opacity: 0.85;
  color: var(--text-color);
  line-height: 1.7;
}

.accordion-divider {
  width: 2px;
  background-color: var(--primary-color);
  margin: 0 20px;
}

.approach-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 60px;
  padding: 100px 80px; /* Increased horizontal padding */
}

.approach-block {
  flex: 0 0 48%; /* instead of 45%, gives better separation */
  max-width: 48%; /* avoid max-width 700px */
}

.approach-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 20px;
}

.approach-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
}

.approach-content ul li {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.approach-content ul li h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.approach-content ul li p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 5px;
  color: var(--text-color);
}

/* Responsive Stack */
@media (max-width: 768px) {
  .approach-section {
    flex-direction: column;
    padding: 40px 20px;
  }
  .approach-block {
    max-width: 100%;
  }
}

/* ===== Index Page: Projects Section */
.projects-section {
  background: var(--background-color);
  padding: 80px 0;
}

.projects-section .container-fluid {
  padding-left: 40px;
  padding-right: 40px;
  max-width: 100%;
}

.projects-section .section-title {
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--text-color);
  text-align: left;
}

.projects-slider {
  overflow: hidden;
  position: relative;
}

.projects-content {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.project-item {
  flex: 0 0 50%; /* 2 items per slide (100% / 2 = 50%) */
  max-width: 50%;
  padding: 0 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.project-img {
  width: 100%;
  height: 300px; /* Keep the height consistent */
  object-fit: contain; /* Ensure the entire image is visible without cropping */
  border: none; /* No border */
  border-radius: 0; /* Sharp edges (though not relevant without border) */
  display: block;
  margin-bottom: 15px;
  outline: none; /* No outline */
  transition: none; /* Prevent any transitions that might cause zooming */
}

/* Ensure no hover zoom effect */
.project-img:hover,
.project-item:hover .project-img {
  transform: none !important; /* Explicitly prevent any transform on hover */
  scale: 1 !important; /* Explicitly prevent scaling on hover */
  transition: none !important; /* Disable transitions on hover */
}

.project-info {
  text-align: left;
}

.news-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 10px;
}

.project-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
}

.project-tags {
  display: flex;
  gap: 8px;
}

.project-tags span {
  background-color: var(--highlight-yellow);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #555;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .projects-section {
    padding: 60px 0;
  }

  .projects-section .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-item {
    flex: 0 0 100%; /* 1 item per slide (100% / 1 = 100%) */
    max-width: 100%;
    padding: 0 10px;
  }

  .project-img {
    height: 200px;
    border: none; /* No border on smaller screens */
    border-radius: 0; /* Sharp edges (though not relevant without border) */
    outline: none; /* No outline */
    transition: none; /* Prevent transitions */
  }

  .project-title {
    font-size: 1.1rem;
  }

  .project-desc {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .projects-section {
    padding: 40px 0;
  }

  .project-img {
    height: 180px;
    border: none; /* No border on smaller screens */
    border-radius: 0; /* Sharp edges (though not relevant without border) */
    outline: none; /* No outline */
    transition: none; /* Prevent transitions */
  }
}

/* ===== Index Page: Clients Section ===== */
/* Default - desktop with animation */
.clients-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.clients-slider {
  display: flex;
  gap: 100px;
  animation: slideLoop 30s linear infinite;
  width: max-content;
}

.client-logo {
  flex: 0 0 auto;
}

.client-logo img {
  height: 80px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition);
}

@keyframes slideLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .clients-slider {
    animation-duration: 20s;
  }

  .client-logo img {
    height: 60px;
  }
}


/* ===== Global: Footer (All Pages) ===== */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px; /* Reduced bottom padding */
}
.footer-column h2.section-title {
  font-size: 1.8rem; /* Optional: match other headings visually */
  margin-bottom: 20px;
}


.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-about {
  margin-bottom: 20px;
  opacity: 0.8;
  line-height: 1.8;
}

.footer-heading {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  display: center;
  text-align: left;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
}

.footer-links a,
.footer-links p {
  display: block;
  margin-bottom: 10px;
  opacity: 0.8;
  transition: var(--transition);
  text-align: left;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--highlight-yellow);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
}


.footer-bottom {
  padding-top: 20px;
  text-align: center;
  opacity: 0.8;
  font-size: 0.9rem;
}


/* ===== Responsive for Mobile ===== */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-heading {
    text-align: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a,
  .footer-links p {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ===== Global: Other Pages ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.service-item {
  position: relative;
  padding: 30px;
  background-color: var(--white);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-description {
  font-size: 1rem;
  opacity: 0.8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(93, 71, 138, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
  transform: translateY(20px);
}

.project-item:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-item:hover .project-img {
  transform: scale(1.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

/* ===== Responsive Styles (All Pages) ===== */
@media screen and (max-width: 992px) {
  .section {
    padding: 60px 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .services-accordion {
    flex-direction: column;
  }
  
  .accordion-divider {
    width: 100%;
    height: 2px;
    margin: 20px 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .logo-img {
    width: 80px;
    height: 80px;
  }
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .nav-link {
    margin: 15px 0;
    font-size: 1.2rem;
    color: var(--text-color);
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--primary-color);
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .logo-img {
    width: 60px;
    height: 60px;
  }
  
  .header-container {
    padding: 0 15px;
  }
}

@media screen and (max-width: 576px) {
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .logo-img {
    width: 50px;
    height: 50px;
  }
  
  .nav-link {
    font-size: 1rem;
  }
  
  .hero {
    height: 60vh; /* Reduced height for smaller screens */
  }
}

/* ===== Media Queries for Video Responsiveness ===== */
@media screen and (max-width: 768px) {
  .hero-video {
    object-fit: cover;
    object-position: center;
  }
}

@media screen and (max-aspect-ratio: 3/4) {
  .hero-video {
    width: auto;
    height: 100%;
    min-width: 100%;
  }
}

/* ===== contact section ===== */
#contact.section {
  padding-top: 200px;
}

@media (max-width: 768px) {
  #contact.section {
    padding-top: 140px; /* mobile devices - slightly reduced */
  }
}

@media (max-width: 480px) {
  #contact.section {
    padding-top: 120px; /* very small devices */
  }
}

.map-section {
  width: 100vw;
  margin: 0;
  padding: 0;
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  background-color: var(--background-color); /* optional */
}

.map-embed {
  width: 100%;
  height: 400px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .map-embed {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .map-embed {
    height: 250px;
  }
}