@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary-color: #0c1a32; /* Corporate Navy */
  --secondary-color: #fca311; /* Golden/Amber Accent */
  --bg-color: #f8f9fa;
  --text-dark: #212529;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; color: var(--primary-color); }

/* NAVBAR */
header {
  position: fixed; top: 0; width: 100%;
  background-color: #ffffff;
  padding: 20px 5%;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
}
.logo { font-size: 24px; font-weight: 700; color: var(--primary-color); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.logo span { color: var(--secondary-color); }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links li a { text-decoration: none; font-weight: 500; font-size: 20px; color: var(--text-dark); transition: color 0.3s; padding: 5px; }
.nav-links li a:hover { color: var(--secondary-color); }

/* MOBILE MENU TOGGLE */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 6px; }
.menu-toggle .bar { width: 30px; height: 3px; background-color: var(--primary-color); transition: all 0.3s ease-in-out; border-radius: 2px; }

/* HERO */
.hero {
  height: 85vh;
  margin-top: 70px;
  display: flex; align-items: center; padding: 0 5%;
  position: relative;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(12, 26, 50, 0.65); /* Dark navy overlay */
}
.hero-content {
  position: relative; z-index: 2; max-width: 800px; color: var(--text-light); text-align: center; margin: 0 auto;
}
.hero h1 { color: var(--text-light); font-size: clamp(3rem, 5vw, 4rem); margin-bottom: 20px; line-height: 1.1; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); font-weight: 700; }
.hero p { font-size: 20px; margin-bottom: 35px; font-weight: 300; line-height: 1.5; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.btn {
  display: inline-block; padding: 15px 35px;
  background-color: var(--secondary-color); color: var(--primary-color); text-decoration: none;
  font-weight: 600; border-radius: 3px; transition: all 0.3s ease; text-transform: uppercase; font-size: 14px;
}
.btn:hover { background-color: #e08e0b; color: #fff; transform: translateY(-2px); }

/* SECTIONS */
section { padding: 90px 5%; }
.section-title { font-size: 3rem; margin-bottom: 50px; text-align: center; font-weight: 700; }

/* ABOUT & OTHERS */
.about { background-color: #fff; }
.about-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.about-content { flex: 1; min-width: 300px; }
.about-content p { color: var(--text-dark); margin-bottom: 22px; font-size: 22px; line-height: 1.7; font-weight: 300; }

/* STATS */
.about-stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-width: 300px; }
.stat-box { background-color: var(--bg-color); padding: 35px 20px; text-align: center; border: 1px solid var(--border-color); border-radius: 4px; transition: transform 0.3s ease; }
.stat-box:hover { transform: translateY(-5px); border-color: var(--secondary-color); }
.stat-box h3 { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 5px; }
.stat-box p { font-size: 15px; text-transform: uppercase; font-weight: 500; color: var(--primary-color); }

/* SERVICES/CARDS */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.service-card { background: #fff; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.04); transition: transform 0.3s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.service-card img { width: 100%; height: 280px; object-fit: cover; }
.service-content { padding: 35px; }
.service-content h3 { font-size: 24px; margin-bottom: 12px; }
.service-content p { color: var(--text-muted); font-size: 16px; }

/* PROJECTS / PROCESS */
.projects { background-color: #fff; }
.projects-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.step { text-align: center; background-color: var(--bg-color); padding: 40px 25px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.step-number { width: 60px; height: 60px; margin: 0 auto 20px; background-color: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; border-radius: 50%; font-size: 24px; box-shadow: 0 4px 10px rgba(12, 26, 50, 0.2); }
.step h3 { margin-bottom: 15px; font-size: 20px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* TESTIMONIALS */
.testimonials { background-color: var(--primary-color); color: #fff; }
.testimonials .section-title { color: #fff; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }
.testimonial-card { background: rgba(255,255,255,0.03); padding: 40px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08); }
.testimonial-card p { font-style: italic; margin-bottom: 25px; font-weight: 300; font-size: 17px; line-height: 1.8; color: #e2e8f0; }
.testimonial-card h4 { color: var(--secondary-color); font-size: 18px; font-family: 'Roboto', sans-serif; font-weight: 500;}

/* CONTACT */
.contact-form { max-width: 650px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 18px; border: 1px solid var(--border-color); border-radius: 4px; font-family: 'Roboto', sans-serif; font-size: 16px; background-color: #fafafa; transition: border-color 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--secondary-color); background-color: #fff; }
.contact-form textarea { height: 150px; resize: none; }
.contact-form .btn { align-self: flex-start; cursor: pointer; border: none; }

/* FOOTER */
footer { padding: 40px 5%; background-color: #060e1d; color: #fff; text-align: center; font-size: 15px; font-weight: 300; }

/* ABOUT IMAGES */
.about-image { flex: 1.5; min-width: 300px; }
.about-image img { width: 100%; height: 600px; border-radius: 6px; border: 1px solid var(--border-color); object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* REVERSE GRID */
/* Handled via DOM order now to avoid caching issues */

/* GALLERY */
.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 25px;
    margin-top: 20px;
    padding-bottom: 25px; /* ensure scrollbar doesn't clip shadows */
    -webkit-overflow-scrolling: touch;
}
.gallery-grid::-webkit-scrollbar {
    height: 8px;
}
.gallery-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}
.gallery-item {
    flex: 0 0 450px;
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header { padding: 15px 5%; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .logo img { height: 60px !important; }
  .logo span { font-size: 1.4rem !important; }
  
  .menu-toggle { display: flex; }
  .nav-links { 
      position: absolute; top: 100%; left: 0; width: 100%; 
      background-color: #ffffff; flex-direction: column; 
      padding: 0; max-height: 0; overflow: hidden; 
      transition: max-height 0.4s ease; box-shadow: 0 5px 10px rgba(0,0,0,0.1); 
      gap: 0; align-items: center; 
  }
  .nav-links.active { max-height: 400px; padding: 20px 0; }
  .nav-links li { width: 100%; text-align: center; margin: 15px 0; }
  
  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  
  .hero { height: auto; padding-top: 150px; padding-bottom: 80px; }
  .hero h1 { font-size: 2.2rem; }
  
  .section-title { font-size: 2rem; margin-bottom: 30px; }
  
  .about-grid { flex-direction: column; }
  
  .about-image img { height: 400px; }
  
  .about-stats { grid-template-columns: 1fr; }
  .projects-steps { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  
  .gallery-item { flex: 0 0 280px; } /* Slightly smaller on mobile */
}
