/* Reset and base styles */
:root {
  --primary-color: #000;
  --text-color: #000000;
  --gray-light: #f9fafb;
  --gray-medium: #6b7280;
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}


/* ============================= */
/* Header Frosted Glass Effect */
/* ============================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  background: white;
  padding: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color);
}

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }

  .desktop-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
  }

  .desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
  }

  .desktop-nav a:hover {
    color: var(--gray-medium);
  }
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  margin: 4px 0;
  transition: var(--transition);
}

.mobile-nav {
  padding: 1rem 0;
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav.active {
  max-height: 500px; /* adjust depending on nav size */
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Hero section */
.hero {
  padding: 8rem 0 6rem;
  background: white;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }
}



/* ============================= */
/* Hero Slider Styles */
/* ============================= */

.slide-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-slider {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0; /* reset */
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 90%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 90%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 8%;
  padding-right: 2rem;
  color: white;
  z-index: 2;
}


.hero-content {
  position: relative;
  max-width: 600px;
  text-align: left;
  z-index: 5;
}


.hero-content h1,
.hero-content p {
  opacity: 1 !important;
  transition: opacity 1s ease;
}

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

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.view-more {

  position: absolute;
  bottom: -100px;           /* space from the bottom of image */
  left: 8%;               /* aligned with left content padding */
  background: black;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: bold;
  cursor: pointer;
  width: 200px;
  text-align: center;
  white-space: nowrap;
  transition: background 0.3s ease;
  z-index: 3;
}

  

.view-more:hover {
  background: var(--primary-color);
}

.hero-socials {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
  color: #000;
}

.hero-socials a {
  color: white;
  font-size: 1.25rem;
  transition: opacity 0.3s;
}

.hero-socials a:hover {
  opacity: 0.7;
}

.hero-nav {
  position: absolute;
  top: auto;
  right: -10px;
  bottom: -10px;
  display: flex;
  gap: 2rem;
  background: white;
  padding: 1rem 2rem;
  border-radius: 0px;
  color: black;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  z-index: 10;
}

.hero-tab {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.hero-tab.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  @media (max-width: 768px) {
    .view-more {
      position: fixed;
      bottom: 6rem;
      left: 50%;
      transform: translateX(-50%);
      width: 200px;
      z-index: 999;
    }
  
    .hero-nav {
      position: fixed !important;
      bottom: 1rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
      background: white;
      padding: 1rem;
      width: 90vw;                     /* Fit within screen */
      max-width: 360px;               /* Optional cap */
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      overflow-x: auto;
      white-space: nowrap;
    }
  
    .hero-tab {
      flex: 1;
      text-align: center;
    }
  }
  

  .hero-socials {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    flex-direction: row;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* ============================= */
/*      features section         */
/* ============================= */


.features {
  padding: 5rem 0;
  background: white;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

.section-header p {
  color: var(--gray-medium);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.feature-card {
  width: 280px;
  background: white;
  padding: 2rem;
  transition: var(--transition);
  color: inherit;
  text-decoration: none;
  display: block;
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.feature-icon {
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-4px);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: inherit;
}

.feature-card p {
  color: var(--gray-medium);
}


/* ============================= */
/*         Team section          */
/* ============================= */

.team {
  padding: 5rem 0;
  background: white;
}

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

.team-member {
  text-align: center;
}

.member-image {
  position: relative;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.social-links {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: var(--transition);
}

.team-member:hover .social-links {
  opacity: 1;
}

.social-link {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--gray-light);
}

.team-member h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.team-member p {
  color: var(--gray-medium);
}

/* ============================= */
/* Projects Section (Our Projects) */
/* ============================= */

.projects {
  padding: 5rem 0;
  background: var(--gray-light);
}

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

.project-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-item:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  color: white !important;
  opacity: 0;
  transition: var(--transition);
  padding: 1rem;
  text-align: center;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay span {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-align: center;
  width: 100%;
  color: white !important;
}

.project-overlay h3 {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  width: 100%;
  margin: 0;
  padding: 0;
  color: white !important;
}

/* Ensure anchor tags don't override overlay text color */
a.project-item .project-overlay,
a.project-item .project-overlay span,
a.project-item .project-overlay h3 {
  color: white !important;
}


/* ============================= */
/*    Partners Section Styles    */
/* ============================= */

.partners {
  padding: 5rem 0;
  background: white;
  overflow: hidden;
}

.partners .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.partners-track-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.partners-track {
  display: flex;
  gap: 3rem;
  width: fit-content;
  animation: scroll-left 30s linear infinite;
}

.partner-logo {
  transition: transform 0.3s ease, filter 0.3s ease;
  display: inline-block;
  flex-shrink: 0;
}

.partner-logo img {
  height: 80px;
  width: 150px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s, transform 0.3s;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* ============================= */
/*     Contact Section Styles    */
/* ============================= */


.contact {
  padding: 5rem 0;
  background: var(--gray-light);
}

.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: stretch;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.info-card,
.business-hours {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
}

.info-card h3,
.business-hours h3,
.contact-form h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.icon {
  font-size: 1.5rem;
}

.info-item p {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.info-item a {
  color: var(--gray-medium);
  text-decoration: none;
  transition: var(--transition);
}

.info-item a:hover {
  color: var(--primary-color);
}

.business-hours {
  background: var(--primary-color);
  color: white;
  padding: 2rem;
  margin-bottom: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.business-hours table {
  width: 100%;
}

.business-hours td {
  padding: 0.5rem 0;
}

.business-hours td:last-child {
  text-align: right;
}

.contact-form {
  background: white;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  transition: var(--transition);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

#map {
  height: 400px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  display: inline-block;
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background-color: black;
  color: white;
}

.btn:hover {
  background-color: #333; /* dark gray on hover */
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ============================= */
/*             FOOTER            */
/* ============================= */


.footer {
  background: var(--primary-color);
  color: white;
  padding-top: 4rem;
}

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

.footer-about h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.footer h3 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: white;
}

.newsletter-form {
  margin-bottom: 1rem;
}

.newsletter-form .form-group {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  background: #1f2937;
  border: none;
  padding: 0.5rem 1rem;
  color: white;
}

.newsletter-form input:focus {
  outline: none;
}

.btn-white {
  background: white;
  color: var(--primary-color);
}

.privacy-notice {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 4rem;
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-bottom .footer-links {
  display: flex;
  gap: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header,
.feature-card,
.team-member,
.portfolio-item,
.testimonial-card {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Mobile menu animation */
.mobile-menu-btn.active span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}



/* ============================= */
/* About Page Styles */
/* ============================= */


.about-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 2rem 0;

}

.about-hero-image {
  position: relative;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 3rem;   /* ✅ this is what gives the white margin around image */
}

.about-hero-image img {
  width: 100%;
  height: 450px;
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  object-fit: cover;
}

.about-hero-image h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

@media (max-width: 768px) {
  .about-hero-image h1 {
    font-size: 2.5rem;
  }
}

/* ======================================= */
/*  What We Have Done Section in about us  */
/* ======================================= */


.what-we-have-done {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.project-slider {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  max-width: 650px;    /* ✅ bigger image */
}

/* Add fade animation */
#projectImage.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#projectImage.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.project h3{
  text-align: center;
}

.project span{
  text-align: center;
}

.image-wrapper img {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Arrow box attached to image */
.arrow-box {
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.arrow {
  background: none;
  border: none;
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.arrow:hover {
  background: var(--primary-color);
  color: white;
}

/* Dots inside image bottom center */
.image-wrapper .slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots div {
  width: 10px;
  height: 10px;
  background: #ddd;
  border-radius: 50%;
  cursor: pointer;
}

.slider-dots .active {
  background-color: var(--primary-color);
}

/* Description block */
.project-description {
  flex: 1 1 35%;
  max-width: 300px;
}

.project-description h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.project-description p {
  font-size: 1rem;
  color: var(--gray-medium);
  margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .what-we-have-done {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .image-wrapper {
    max-width: 90%;
  }

  .arrow-box {
    right: 10px;
    flex-direction: row;
  }

  .project-description {
    max-width: 100%;
  }
}



/* ======================================= */
/*     projects gallery(projects.html)     */
/* ======================================= */

/* PROJECTS PAGE FINAL LAYOUT */
.projects-page {
  padding: 5rem 0;
  background: white;
}

/* Top intro */
.projects-intro {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.intro-title h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.intro-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.intro-columns div {
  flex: 1 1 250px;
  text-align: left;
}

.intro-columns h4 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.intro-columns p,
.intro-columns ul {
  font-size: 0.9rem;
  color: var(--gray-medium);
  line-height: 1.5;
}

.intro-columns ul {
  list-style: none;
  padding: 0;
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.projects-grid div,
.projects-grid a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.projects-grid a:hover {
  transform: translateY(-4px);
}

.projects-grid img {
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  object-fit: cover;
}

.projects-grid h5 {
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  letter-spacing: 1px;
}

.projects-grid p {
  font-size: 0.75rem;
  color: var(--gray-medium);
  text-transform: uppercase;
}

/* Bottom icons row */
.projects-icons {
  display: flex;
  justify-content: center;
  gap: 150px;
  align-items: center;
}

.projects-icons img {
  width: 50px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.projects-icons img:hover {
  opacity: 1;
}


.projects-icons span.material-icons {
  font-size: 48px;
  color: var(--text-color);
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
  margin-bottom: 100px;
  margin-top: 30px;
}



/* Responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-icons {
    flex-wrap: wrap;
    gap: 2rem;
  }
}
