@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('./modal.css');
@import url('./floating.css');

/* Reset & Variables */
:root {
  --primary: #00A3E0; /* CCG Blue */
  --primary-hover: #007BB5;
  --dark: #121619; /* CCG Dark Grey */
  --darker: #0B0E10;
  --light: #F8FAFC;
  --text: #475569;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--darker);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--light);
}

.highlight {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--darker);
  border: 2px solid var(--primary);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.btn-primary-small, .btn-outline-small {
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary-small {
  background-color: var(--primary);
  color: var(--darker);
  border: 2px solid var(--primary);
}
.btn-primary-small:hover {
  background-color: transparent;
}

.btn-outline-small {
  background-color: transparent;
  color: var(--darker);
  border: 2px solid var(--darker);
}
.btn-outline-small:hover {
  background-color: var(--darker);
  color: var(--white);
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  background-color: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  position: fixed;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px 0;
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .mobile-menu-btn {
  color: var(--darker);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.logo-text {
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-color: var(--dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 50%;
  padding-left: 10%;
  color: var(--white);
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 500px;
  color: #CBD5E1;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 45%;
  height: 85vh;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  mask-image: linear-gradient(to top, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 80%, transparent 100%);
  border-radius: 20px 20px 0 0;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 30px;
}

.features-list {
  margin-bottom: 30px;
}

.features-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--darker);
}

.features-list i {
  color: var(--primary);
  font-size: 1.2rem;
}

.about-images {
  position: relative;
  height: 500px;
}

.image-mask-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.mask-img-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 70%;
  object-fit: cover;
  border-radius: 30px 100px 30px 30px;
  box-shadow: var(--shadow);
}

.mask-img-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 50%;
  object-fit: cover;
  border-radius: 30px 30px 100px 30px;
  border: 10px solid var(--white);
  box-shadow: var(--shadow);
  z-index: 2;
}

/* Services Section */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.service-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: left;
  transition: var(--transition);
  border: 1px solid #E2E8F0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.service-card.active {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: var(--light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--darker);
  margin-bottom: 25px;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.service-card p {
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.control-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background-color: #E2E8F0;
  color: var(--darker);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.control-btn:hover, .control-btn.active {
  background-color: var(--primary);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.testimonial-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.testimonial-cards {
  position: relative;
  height: 350px;
}

.t-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  position: absolute;
  width: 80%;
  transition: all 0.35s ease-in-out;
  cursor: pointer;
}

.back-card {
  top: 0;
  left: 20%;
  transform: scale(0.9);
  transform-origin: top right;
  opacity: 0.7;
  z-index: 1;
}

.front-card {
  top: 60px;
  left: 0;
  transform: scale(1);
  transform-origin: top left;
  opacity: 1;
  z-index: 2;
}

.hidden-card {
  top: -20px;
  left: 40%;
  transform: scale(0.8);
  transform-origin: top right;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.leaving-card {
  top: 60px;
  left: -20%;
  transform: scale(1.1);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

.t-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.t-profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.t-profile h4 {
  font-size: 1rem;
}

.t-profile span {
  font-size: 0.85rem;
  color: #94A3B8;
}

.stars {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.t-card p {
  font-size: 0.95rem;
  font-style: italic;
}

.t-controls {
  position: absolute;
  bottom: -20px;
  right: 20%;
}

/* News Section */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.news-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.news-main {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-main img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.news-content {
  padding: 25px;
  position: relative;
}

.news-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.news-content p {
  font-size: 0.95rem;
  color: #64748B;
}

.read-more {
  position: absolute;
  bottom: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.news-main:hover .read-more,
.news-item:hover .read-more {
  background-color: var(--primary);
  color: var(--darker);
}

.news-side {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.news-item {
  display: flex;
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 200px;
}

.news-item img {
  width: 40%;
  height: 100%;
  object-fit: cover;
}

.news-item .news-content {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background-color: var(--light);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--darker);
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: #f1f5f9;
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 25px 20px;
  margin: 0;
  color: #64748B;
}

/* Footer */
.footer {
  background-color: var(--darker);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.footer-logo {
  color: var(--white);
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links li {
  list-style: none;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: #94A3B8;
  font-size: 0.95rem;
}

.footer-contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-info i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-links a {
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-links a:hover {
  background-color: var(--primary);
  color: var(--darker);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #94A3B8;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
  }
  .hero-content {
    width: 100%;
    padding: 0 5%;
    text-align: center;
    margin-top: 40px;
    z-index: 10;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content p {
    margin: 0 auto 30px;
    font-weight: 500;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
    z-index: 1;
    opacity: 0.15;
    align-items: center;
  }
  .hero-image img {
    border-radius: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .about-grid, .testimonial-grid, .news-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-cards {
    margin-top: 40px;
  }
  .page-header {
    padding: 120px 0 60px;
  }
  .page-header h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .news-item {
    flex-direction: column;
    height: auto;
  }
  .news-item img {
    width: 100%;
    height: 200px;
  }
  .news-item .news-content {
    width: 100%;
  }
  .section-padding, .about-content, .services-section, .process-section, .timeline-section, .gallery, .team-section {
    padding: 50px 0;
  }
  h2, .section-header h2, .about-text h2, .testimonial-header h2, .news-header h2, .s-text h2 {
    font-size: 2rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  .footer-top {
    gap: 20px;
  }
  .t-card {
    width: 95%;
  }
  .front-card {
    bottom: 20px;
  }
  .mask-img-1 {
    width: 90%;
    height: 80%;
  }
  .mask-img-2 {
    width: 70%;
    height: 60%;
  }
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--white);
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 40px 30px;
  transition: right 0.4s ease;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-close {
  align-self: flex-end;
  font-size: 1.5rem;
  color: var(--darker);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 30px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}

.mobile-nav-links a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--darker);
  transition: color 0.3s;
}

.mobile-nav-links a:hover {
  color: var(--primary);
}

.mobile-nav-actions {
  margin-top: 40px;
}

      .page-header { background-color: var(--darker); padding: 150px 0 80px; text-align: center; color: var(--white); }
      .page-header h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 15px; }
      .page-header p { font-size: 1.1rem; color: #CBD5E1; max-width: 600px; margin: 0 auto; }
      
      .about-content { padding: 80px 0; }
      
      /* Timeline specific styles */
      .timeline-section { padding: 80px 0; background-color: var(--light); }
      .timeline { position: relative; max-width: 800px; margin: 0 auto; }
      .timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--primary); top: 0; bottom: 0; left: 50%; margin-left: -2px; }
      .timeline-container { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
      .timeline-container::after { content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background-color: var(--white); border: 4px solid var(--primary); top: 15px; border-radius: 50%; z-index: 1; }
      .left-timeline { left: 0; }
      .right-timeline { left: 50%; }
      .right-timeline::after { left: -10px; }
      .timeline-content { padding: 20px 30px; background-color: var(--white); position: relative; border-radius: 10px; box-shadow: var(--shadow); }
      .timeline-content h3 { color: var(--darker); margin-bottom: 5px; }
      .timeline-content span { color: var(--primary); font-weight: bold; margin-bottom: 10px; display: block; }
      
      @media screen and (max-width: 768px) {
        .timeline::after { left: 31px; }
        .timeline-container { width: 100%; padding-left: 70px; padding-right: 25px; }
        .timeline-container::after { left: 21px; }
        .right-timeline { left: 0%; }
      }
    


      .page-header { background-color: var(--darker); padding: 150px 0 80px; text-align: center; color: var(--white); }
      .page-header h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 15px; }
      .page-header p { font-size: 1.1rem; color: #CBD5E1; max-width: 600px; margin: 0 auto; }
      
      .filter-bar { display: flex; justify-content: center; gap: 15px; padding: 40px 0 20px; flex-wrap: wrap; }
      .filter-btn { padding: 10px 25px; border: 2px solid var(--primary); background: transparent; border-radius: 30px; color: var(--darker); font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: 'Outfit', sans-serif; }
      .filter-btn:hover, .filter-btn.active { background-color: var(--primary); color: var(--darker); }
      
      .gallery { padding: 20px 0 80px; }
      .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
      .gallery-item { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; transition: opacity 0.4s ease, transform 0.4s ease; }
      .gallery-item.hidden { display: none; opacity: 0; transform: scale(0.9); }
      .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
      .gallery-item:hover img { transform: scale(1.1); }
      .gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; opacity: 0; transition: opacity 0.3s; color: white; }
      .gallery-item:hover .gallery-overlay { opacity: 1; }
      .gallery-overlay h3 { font-size: 1.5rem; margin-bottom: 5px; transform: translateY(20px); transition: transform 0.3s; }
      .gallery-overlay p { color: var(--primary); font-weight: 500; transform: translateY(20px); transition: transform 0.3s 0.1s; }
      .gallery-item:hover .gallery-overlay h3, .gallery-item:hover .gallery-overlay p { transform: translateY(0); }
      
      @media (max-width: 992px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
      @media (max-width: 768px) { .gallery-grid { grid-template-columns: 1fr; } }
    


      .page-header { background-color: var(--darker); padding: 150px 0 80px; text-align: center; color: var(--white); }
      .page-header h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 15px; }
      .page-header p { font-size: 1.1rem; color: #CBD5E1; max-width: 600px; margin: 0 auto; }
      
      .services-section { padding: 80px 0; }
      .service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 100px; }
      .service-detail:nth-child(even) { direction: rtl; }
      .service-detail:nth-child(even) .s-text { direction: ltr; }
      .s-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
      .s-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
      .s-text p { font-size: 1.1rem; color: var(--text); margin-bottom: 30px; line-height: 1.8; }
      
      .process-section { background-color: var(--light); padding: 80px 0; }
      .process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 40px; }
      .process-card { background-color: var(--white); padding: 40px 30px; border-radius: 15px; text-align: center; box-shadow: var(--shadow); position: relative; }
      .process-card .step-num { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; background-color: var(--primary); color: var(--darker); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; border: 4px solid var(--light); }
      .process-card i { font-size: 2.5rem; color: var(--dark); margin-bottom: 20px; margin-top: 10px; }
      .process-card h3 { margin-bottom: 15px; }
      .process-card p { color: var(--text); font-size: 0.95rem; }
      
      @media (max-width: 992px) {
        .service-detail { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
        .service-detail:nth-child(even) { direction: ltr; }
        .process-grid { grid-template-columns: repeat(2, 1fr); }
      }
      @media (max-width: 768px) {
        .process-grid { grid-template-columns: 1fr; }
      }
    


      .page-header { background-color: var(--darker); padding: 150px 0 80px; text-align: center; color: var(--white); }
      .page-header h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 15px; }
      .page-header p { font-size: 1.1rem; color: #CBD5E1; max-width: 600px; margin: 0 auto; }
      .team-section { padding: 80px 0; }
      .team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
      .team-member { text-align: center; background-color: var(--white); padding: 20px; border-radius: 15px; box-shadow: var(--shadow); transition: transform 0.3s ease; }
      .team-member img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; margin-bottom: 20px; }
      .team-member:hover { transform: translateY(-10px); }
      .team-member h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--darker); }
      .team-member p { color: var(--primary); font-weight: 600; font-size: 0.95rem; margin-bottom: 15px; }
      .team-member .bio { color: var(--text); font-size: 0.9rem; font-weight: 400; line-height: 1.5; }
      
      @media (max-width: 992px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
      @media (max-width: 768px) { .team-grid { grid-template-columns: 1fr; } }
    

/* Single Service Details Grid */

.service-details-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

}

@media (max-width: 991px) {

    .service-details-grid {

        grid-template-columns: 1fr;

    }

}

/* Logo Switching for Navbar */
.navbar .logo-for-dark { display: block !important; }
.navbar .logo-for-light { display: none !important; }
.navbar.scrolled .logo-for-dark { display: none !important; }
.navbar.scrolled .logo-for-light { display: block !important; }


/* ============================================= */
/* COMPREHENSIVE MOBILE RESPONSIVE OPTIMIZATION  */
/* ============================================= */

/* --- Mobile Menu Overlay --- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--darker);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 80px 30px 40px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.mobile-nav-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-links li a {
  display: block;
  padding: 18px 0;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.mobile-nav-links li a:hover {
  color: var(--primary);
  padding-left: 10px;
}

.mobile-nav-actions {
  margin-top: auto;
}

.mobile-nav-actions .btn {
  width: 100%;
  text-align: center;
  padding: 16px 28px;
  font-size: 1.05rem;
}

/* Mobile nav backdrop/overlay */
.mobile-nav::before {
  content: '';
  position: fixed;
  top: 0;
  left: -100vw;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.mobile-nav.open::before {
  opacity: 1;
  pointer-events: auto;
}

/* --- Navbar Mobile --- */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    color: var(--white) !important;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .navbar.scrolled .mobile-menu-btn {
    color: var(--darker) !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-actions {
    gap: 0;
  }

  .navbar {
    padding: 12px 0;
  }

  .navbar.scrolled {
    padding: 10px 0;
  }

  .logo img {
    height: 45px !important;
  }
}

/* --- Hero Mobile --- */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    padding-top: 70px;
  }

  .hero-content {
    width: 100%;
    padding: 0 20px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin: 0 auto 25px;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .hero-image {
    opacity: 0.4;
  }
}

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

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

/* --- About Section Mobile --- */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-text h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-images {
    height: 350px;
  }

  .mask-img-1 {
    width: 90%;
    height: 65%;
  }

  .mask-img-2 {
    width: 55%;
    height: 45%;
    border-width: 5px;
  }

  .features-list li {
    font-size: 0.9rem;
  }
}

/* --- Services Grid Mobile --- */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 25px 20px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }
}

/* --- Testimonials Mobile --- */
@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .testimonial-header {
    text-align: center;
  }

  .testimonial-header h2 {
    font-size: 1.8rem;
  }

  .testimonial-cards {
    height: 300px;
  }

  .t-card {
    width: 95%;
    padding: 20px;
  }

  .front-card {
    top: 40px;
    left: 2.5%;
  }

  .back-card {
    top: 0;
    left: 5%;
  }

  .t-controls {
    right: 5%;
    bottom: -30px;
  }
}

/* --- News Section Mobile --- */
@media (max-width: 768px) {
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .news-header h2 {
    font-size: 1.8rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-item {
    flex-direction: column;
    height: auto;
  }

  .news-item img {
    width: 100%;
    height: 200px;
  }

  .news-item .news-content {
    width: 100%;
    padding: 20px;
  }

  .news-main img {
    height: 200px;
  }
}

/* --- FAQ Mobile --- */
@media (max-width: 768px) {
  .faq-question {
    font-size: 0.95rem;
    padding: 16px 20px;
  }

  .faq-answer p {
    padding: 0 20px 16px;
    font-size: 0.9rem;
  }
}

/* --- Footer Mobile --- */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 15px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-contact-info p {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }

  .footer-logo img {
    height: 45px !important;
  }
}

/* --- Page Headers Mobile --- */
@media (max-width: 768px) {
  .page-header {
    padding: 120px 20px 60px !important;
  }

  .page-header h1 {
    font-size: 2rem !important;
  }

  .page-header p {
    font-size: 0.95rem !important;
  }
}

/* --- Section Padding Mobile --- */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .container {
    padding: 0 16px;
  }
}

/* --- CTA / Stats Sections Mobile --- */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Touch Target Minimums (Accessibility) --- */
@media (max-width: 768px) {
  .btn,
  .filter-btn,
  .control-btn,
  .faq-question,
  .social-links a {
    min-height: 44px;
    min-width: 44px;
  }

  .filter-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* --- Utility: Prevent Horizontal Overflow --- */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* --- Smooth Scrolling on iOS --- */
@supports (-webkit-touch-callout: none) {
  html {
    -webkit-overflow-scrolling: touch;
  }
}
