/* ==========================================================================
   GRRGL Modern Styling Framework (Revised Visuals)
   ========================================================================== */

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

:root {
  --primary: #4AD1E5;
  --primary-hover: #1dc6df;
  --dark: #0f172a;
  --dark-accent: #1e293b;
  --light: #f8fafc;
  --gray-light: #e2e8f0;
  --gray-med: #64748b;
  --text-dark: #0f172a;
  --text-light: #f8fafc;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
  font-family: var(--font-sans);
  color: #334155;
  background-color: var(--light);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Hide legacy utility top bar */
.top-bar {
  display: none !important;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
p { margin-bottom: 1.2rem; }

/* Sticky Solid White Header */
header.site-header {
  position: sticky;
  top: 0;
  background: #ffffff; /* Solid White header */
  border-bottom: 1px solid var(--gray-light);
  padding: 15px 0;
  z-index: 999;
  transition: var(--transition-smooth);
}

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

.header-left-group {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo-container a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

/* Inline Language selector */
.lang-selector-inline {
  position: relative;
}

.lang-btn-inline {
  background: none;
  color: var(--text-dark);
  border: none;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.lang-btn-inline:hover {
  color: var(--primary-hover);
}

.lang-dropdown-inline {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  margin-top: 8px;
  min-width: 120px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 1000;
}

.lang-selector-inline:hover .lang-dropdown-inline {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-inline a {
  display: block;
  padding: 8px 16px;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
}

.lang-dropdown-inline a:hover {
  background-color: var(--light);
  color: var(--primary);
}

/* Main Navigation Menu */
nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

nav.main-nav ul li a {
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-transform: capitalize;
}

nav.main-nav ul li a:hover,
nav.main-nav ul li.active a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Dropdown Navigation Menu */
nav.main-nav ul li.nav-dropdown {
  position: relative;
}

nav.main-nav ul li.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  min-width: 170px;
  box-shadow: var(--shadow-lg);
  display: none;
  list-style: none;
  padding: 8px 0;
  z-index: 1000;
  margin-top: 10px;
}

nav.main-nav ul li.nav-dropdown:hover .dropdown-menu {
  display: block;
}

nav.main-nav ul li.nav-dropdown .dropdown-menu li {
  width: 100%;
  margin: 0;
}

nav.main-nav ul li.nav-dropdown .dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: none;
  text-align: left;
  width: 100%;
  text-transform: capitalize;
}

nav.main-nav ul li.nav-dropdown .dropdown-menu li a:hover {
  background-color: var(--light);
  color: var(--primary);
  border-bottom-color: transparent;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Slideshow Slider (With subtle dark overlay for readability) */
.hero-slider {
  position: relative;
  height: 480px;
  background-color: var(--dark);
  overflow: hidden;
}

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

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Image overlay filter (balanced overlay for transparent text contrast) */
.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.35); /* Subtle dark slate overlay to pop text */
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  width: 90%;
  max-width: 800px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 3;
  padding: 0;
}

/* Slide Typography (Standard clean headers) */
.slide-caption h1 {
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: none; /* No drop shadows */
}

/* Consistent Subpage Hero text overlays on top of slide captions */
.slide-page-title {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary); /* Cyan accent */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.slide-page-subtitle {
  display: block;
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 20px;
  font-weight: 500;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.slide-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  width: 120px;
  margin: 0 auto 20px;
}

.slide-caption h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #ffffff;
}

.slide-caption p {
  font-size: 1.15rem;
  font-weight: 400;
  color: #cbd5e1;
  text-shadow: none; /* No drop shadows */
  margin: 0;
  line-height: 1.5;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-light);
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.slider-nav:hover {
  background: #ffffff;
  color: var(--dark);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* Grid Cards (Sectors) */
.section-padding {
  padding: 60px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 45px;
  position: relative;
}

.section-title h2 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.sector-card {
  background: var(--light);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.sector-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.sector-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 18px;
  display: inline-block;
  transition: var(--transition-smooth);
}

.sector-card:hover .sector-icon {
  transform: scale(1.08);
}

.sector-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.sector-card p {
  color: var(--gray-med);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Recent works */
.portfolio-intro {
  background-color: #ffffff;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

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

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: 20px;
  text-align: center;
  color: var(--text-light);
}

.work-item:hover img {
  transform: scale(1.08);
}

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

.work-overlay h4 {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.work-overlay p {
  font-size: 0.85rem;
  margin: 0;
}

/* Split Block with Side-by-Side Images */
.feature-split {
  display: flex;
  align-items: stretch;
  background-color: #0f172a; /* Slate Dark background */
  color: var(--text-light);
  overflow: hidden;
}

.feature-text {
  flex: 1.2;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-text h2 {
  color: var(--text-light);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.feature-text .lead {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.feature-text p {
  color: #cbd5e1;
}

.feature-visual {
  flex: 0.8;
  position: relative;
  min-height: 380px;
}

.feature-visual img.feature-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-left: 2px solid var(--primary);
}

/* Testimonial Cards */
.testimonials {
  background-color: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.testimonial-card {
  padding: 35px;
  border-radius: 12px;
  background: var(--light);
  border: 1px solid var(--gray-light);
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  border-color: var(--primary);
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--dark-accent);
  margin-bottom: 15px;
}

.testimonial-footer {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

/* Subpage hero header */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-accent) 100%);
  color: var(--text-light);
  padding: 50px 0;
  text-align: center;
  border-bottom: 3px solid var(--primary);
}

.page-hero h1 {
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-hero p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin: 0;
}

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

.service-card {
  background: #ffffff;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 35px 25px;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card h3 {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card h3 i {
  color: var(--primary);
}

.service-card ul {
  list-style: none;
  margin-top: 12px;
}

.service-card ul li {
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* ==========================================================================
   ROUNDED CAPSULE FOOTER WITH GRADIENT
   ========================================================================== */
footer.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); /* Slate Dark to Slate Blue Gradient */
  color: #cbd5e1;
  padding-top: 60px;
  border-radius: 60px 60px 0 0; /* Curved Top Capsule Shape */
  overflow: hidden;
  border-top: 2px solid var(--primary); /* Cyan highlight line at the top */
}

footer.site-footer a {
  color: #f1f5f9;
}

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

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* Cyan Inquire button */
.btn-inquire {
  display: inline-block;
  background-color: var(--primary); /* Cyan background */
  color: var(--dark) !important;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 5px;
}

.btn-inquire:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 0 12px rgba(74, 209, 229, 0.4);
  transform: translateY(-2px);
}

/* Footer Bottom Area */
.footer-bottom-line {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 auto;
  max-width: 1200px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom p {
  color: #e2e8f0;
  margin: 0;
}

/* Dark Circular Social Media Buttons in Footer */
.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #111827; /* Dark circular background */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.15rem;
  transition: var(--transition-smooth);
}

.footer-social-btn:hover {
  background-color: #1f2937;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   MODAL OVERLAYS (GLASSMORPHISM)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 10000;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  width: 90%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-header {
  background: var(--dark);
  color: var(--text-light);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--dark-accent);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  background-color: var(--light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(74, 209, 229, 0.15);
}

.btn-submit {
  display: block;
  width: 100%;
  background: var(--primary);
  color: var(--dark);
  border: none;
  padding: 11px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.form-status {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  display: none;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .work-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-split {
    flex-direction: column;
  }
  .feature-text {
    padding: 40px;
  }
  .feature-visual {
    width: 100%;
    min-height: 280px;
  }
  .feature-visual img.feature-img {
    border-left: none;
    border-top: 2px solid var(--primary);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  footer.site-footer {
    border-radius: 40px 40px 0 0;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 0;
  }
  .nav-toggle {
    display: block;
  }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--primary);
    padding: 10px 20px;
    box-shadow: var(--shadow-md);
  }
  nav.main-nav.open {
    display: block;
  }
  nav.main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .slide-caption h1 {
    font-size: 1.8rem;
  }
  .slide-caption p {
    font-size: 0.95rem;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
