/* ======================================================
   RESET & VARIABLES
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0f5132;
  --secondary: #198754;
  --dark: #222;
  --light: #ffffff;
  --gray: #f5f5f5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gray);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

section {
  padding: 80px 20px;
}

/* ======================================================
   TYPOGRAPHY
====================================================== */
.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 55px;
  color: var(--primary);
}

.section-title::after {
  content: '';
  width: 60px;
  height: 3px;
  background: var(--secondary);
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.highlight {
  background: #e6f4ea;
  padding: 15px 20px;
  border-left: 5px solid var(--secondary);
  margin: 20px 0;
  font-weight: 600;
  color: var(--dark);
  border-radius: 6px;
}

/* ======================================================
   TOP BAR
====================================================== */
.top-bar {
  background: var(--dark);
  color: var(--light);
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  padding: 0 20px;
}

.top-bar li {
  display: flex;
  align-items: center;
}

.top-bar a {
  color: var(--light);
  transition: color 0.3s;
}

.top-bar a:hover {
  color: var(--secondary);
}

/* ======================================================
   NAVBAR - RESPONSIVE
====================================================== */
.navbar {
  background: var(--light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: relative;
}

.logo {
  height: 55px;
  width: auto;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  text-align: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  font-weight: 600;
  padding: 5px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a.active {
  color: var(--secondary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
}

/* ======================================================
   MOBILE MENU TOGGLE
====================================================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  z-index: 1002;
  padding: 10px;
  margin-left: auto;
}

/* ======================================================
   MOBILE RESPONSIVE DESIGN
====================================================== */
@media (max-width: 768px) {
  /* Navbar */
  .nav-container {
    padding: 15px;
  }
  
  .brand-name {
    display: none;
  }
  
  /* Show menu toggle on mobile */
  .menu-toggle {
    display: block;
  }
  
  /* Mobile Menu Styles */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--light);
    flex-direction: column;
    padding: 100px 30px 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    margin: 0;
    gap: 0;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  
  .nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: none;
  }
  
  .nav-links a.active {
    background: rgba(25, 135, 84, 0.1);
    padding-left: 15px;
    border-radius: 4px;
  }
  
  .nav-links a.active::after {
    display: none;
  }
  
  /* Overlay when menu is open */
  .nav-links::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  
  .nav-links.active::before {
    opacity: 1;
    pointer-events: auto;
  }
}
/* ======================================================
   BUTTONS
====================================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--secondary);
  color: var(--light);
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.btn-outline {
  border: 2px solid var(--light);
  color: var(--light);
}

.btn-outline:hover {
  background: var(--light);
  color: var(--dark);
}

.btn-small {
  display: inline-block;
  padding: 8px 20px;
  background: var(--secondary);
  color: var(--light);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-small:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.btn-cta {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--light);
  color: var(--primary);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: var(--secondary);
  color: var(--light);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ======================================================
   HERO SECTIONS (ALL PAGES)
====================================================== */
.hero {
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 0 20px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Hero Backgrounds */
.hero-home {
  background-image: url('img/CITG6560.JPG');
}

.hero-projects {
  background-image: url('img/AOVN1500.JPG');
}

.hero-services {
  height: 75vh;
}

/* ======================================================
   SERVICES SECTION (HOME PAGE)
====================================================== */
.services {
  background: linear-gradient(135deg, #f9f9f9, var(--light));
}

.services-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.service-card {
  background: var(--light);
  padding: 45px 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  width: 60px;
  height: 4px;
  background: var(--secondary);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.service-card h3 {
  margin: 25px 0 15px;
  font-size: 1.4rem;
  color: var(--primary);
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ======================================================
   PROJECT SLIDER
====================================================== */
.project-slider {
  background: var(--light);
}

.slider-container {
  position: relative;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
  border-radius: 16px;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  animation: sliderZoomOut 0.5s ease forwards;
}

@keyframes sliderZoomOut {
  0% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0,0,0,0.6);
  color: var(--light);
  text-align: center;
  font-weight: 600;
}

/* Slider Arrows */
.slider-container .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--light);
  border: none;
  font-size: 28px;
  padding: 12px 16px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.slider-container .arrow:hover {
  background: rgba(0, 0, 0, 0.85);
}

.slider-container .arrow.left {
  left: 20px;
}

.slider-container .arrow.right {
  right: 20px;
}

/* ======================================================
   TESTIMONIALS
====================================================== */
.testimonials {
  background: var(--primary);
  color: var(--light);
}

.testimonials .section-title {
  color: var(--light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.testimonial-card {
  background: var(--light);
  color: var(--dark);
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.testimonial-card .quote {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.7;
}

.client {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.client h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
}

.client span {
  font-size: 0.85rem;
  color: #666;
}

/* ======================================================
   MAP SECTION
====================================================== */
.map-container {
  max-width: 1000px;
  margin: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* ======================================================
   SERVICES PAGE SPECIFIC
====================================================== */

/* Services List */
.services-list {
  background: #f9f9f9;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Service Details */
.service-detail {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
  align-items: center;
  background: var(--light);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  flex-wrap: wrap;
}

.service-detail img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  object-fit: cover;
}

.service-info {
  flex: 1;
  padding: 10px 0;
}

.service-info h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.service-info p {
  color: #555;
  line-height: 1.7;
}

.service-info ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

/* Specializations */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.spec-card {
  background: var(--light);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.spec-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ======================================================
   CALL TO ACTION (CTA)
====================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--light);
  text-align: center;
  padding: 80px 20px;
  border-radius: 16px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 0;
}

.cta-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  line-height: 1.6;
}

/* ======================================================
   PROJECTS GALLERY
====================================================== */
.projects-gallery {
  background: #f9f9f9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: var(--light);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card .overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
}

#lightbox .close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: var(--light);
  cursor: pointer;
}

/* ======================================================
   ABOUT PAGE SPECIFIC
====================================================== */
.about-story {
  background: var(--light);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin: 40px auto;
}

.about-values .service-grid {
  margin-top: 40px;
}

/* ======================================================
   CONTACT PAGE SPECIFIC
====================================================== */
.contact-us {
  background: var(--light);
}

.contact-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form .form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 4px 15px rgba(25,135,84,0.25);
}

.contact-info {
  flex: 1 1 300px;
  background: #f9f9f9;
  padding: 35px 25px;
  border-radius: 16px;
  text-align: center;
}

.contact-info h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.contact-info p {
  margin-bottom: 25px;
  color: #555;
}

.contact-info .whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary);
  color: var(--light);
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-info .whatsapp-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 60px 20px;
  margin-top: 50px;
}

footer h3 {
  color: var(--light);
  margin-bottom: 20px;
}

footer p {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ======================================================
   FLOATING WHATSAPP
====================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: var(--light);
  padding: 14px;
  border-radius: 50%;
  z-index: 9999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.whatsapp-floating:hover {
  transform: scale(1.1);
}

/* ======================================================
   MOBILE RESPONSIVE DESIGN
====================================================== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .slider-container .arrow {
    padding: 10px 14px;
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  /* General */
  section {
    padding: 65px 20px;
  }
  
  .hero {
    height: auto;
    padding: 110px 20px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }
  
  /* Top Bar */
  .top-bar ul {
    gap: 15px;
    justify-content: center;
  }
  
  /* Navbar */
  .nav-container {
    padding: 15px;
  }
  
  .brand-name {
    display: none;
  }
  
  /* Menu Toggle for Mobile */
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--light);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }
  
  /* Hero Actions */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 250px;
    margin-bottom: 10px;
  }
  
  /* Services & Grids */
  .services-grid,
  .service-grid,
  .spec-grid,
  .gallery-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .service-card,
  .testimonial-card {
    padding: 35px 25px;
  }
  
  /* Slider */
  .slide img {
    height: 280px;
  }
  
  .slider-container .arrow {
    padding: 8px 12px;
    font-size: 20px;
  }
  
  .slider-container .arrow.left {
    left: 10px;
  }
  
  .slider-container .arrow.right {
    right: 10px;
  }
  
  /* Map */
  .map-container iframe {
    height: 300px;
  }
  
  /* Service Details */
  .service-detail {
    flex-direction: column;
    padding: 20px;
  }
  
  .service-detail img {
    max-width: 100%;
  }
  
  /* CTA Section */
  .cta-section {
    padding: 60px 20px;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-section p {
    font-size: 1rem;
  }
  
  /* Contact */
  .contact-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-form .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  /* About Page */
  .about-story {
    padding: 25px;
  }
  
  /* Footer */
  footer {
    padding: 40px 20px;
  }
  
  /* WhatsApp Floating */
  .whatsapp-floating {
    bottom: 20px;
    right: 20px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .btn-cta {
    padding: 12px 28px;
    font-size: 1rem;
  }
  
  .service-card,
  .testimonial-card {
    padding: 25px 20px;
  }
  
  .slide img {
    height: 220px;
  }
  
  .caption {
    padding: 15px;
    font-size: 0.9rem;
  }
  
  .top-bar {
    font-size: 0.8rem;
  }
  
  .top-bar ul {
    gap: 10px;
  }
}