/* ============================================
   LAYOUT & STRUCTURE STYLES
   Grid System, Containers, Sections
   ============================================ */

/* ===== CONTAINER SYSTEM ===== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-wide {
  max-width: var(--container-wide-width);
}

.container-narrow {
  max-width: var(--container-narrow-width);
}

.container-fluid {
  max-width: 100%;
  padding: 0 var(--container-padding);
}

/* ===== SECTION SPACING ===== */
section {
  position: relative;
  padding: var(--section-padding-y) 0;
  overflow: hidden;
}

section.section-small {
  padding: var(--section-padding-y-small) 0;
}

section.section-no-padding {
  padding: 0;
}

/* ===== HEADER / NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: var(--glass-blur);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: 50px;
  z-index: 2;
  text-decoration: none;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid var(--color-primary-blue);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 66, 132, 0.4);
  transition: all var(--transition-base);
}

.logo:hover .logo-text {
  box-shadow: 0 0 18px rgba(0, 66, 132, 0.6), 0 0 30px rgba(255, 101, 23, 0.3);
  border-color: var(--color-accent-orange);
}

.logo-text .logo-name {
  font-size: 1.3rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary-blue);
  white-space: nowrap;
  letter-spacing: -0.3px;
  transition: all var(--transition-base);
}

.logo-text .logo-y {
  display: inline-block;
  font-size: 1.55rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-accent-orange);
  margin-right: -1px;
  text-shadow: 0 0 8px rgba(255, 101, 23, 0.5);
  transition: all var(--transition-base);
}

.logo-text .logo-suffix {
  font-size: 1.3rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary-blue);
  margin-left: 0;
  letter-spacing: -0.3px;
}

.logo:hover .logo-y {
  text-shadow: 0 0 12px rgba(255, 101, 23, 0.7);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  position: relative;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-dark);
  padding: var(--space-sm) var(--space-md);
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--gradient-orange);
  transition: transform var(--transition-base);
}

.nav-link:hover {
  color: var(--color-accent-orange);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: var(--color-accent-orange);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 3;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-gray-dark);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  padding-bottom: var(--space-4xl);
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/frimages/section2.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 var(--container-padding);
}

.hero-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-full);
  color: var(--color-white);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xl);
}

.hero-title {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-description {
  font-size: var(--font-size-body-large);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
  line-height: var(--line-height-relaxed);
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Stats Overlay - Enhanced Glass Effect */
.hero-stats {
  position: relative;
  margin-top: var(--space-3xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);

  /* Glassmorphism Effect */
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.35)
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  /* Border & Glow */
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;

  /* Shadows for depth */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 60px rgba(255, 101, 23, 0.15);

  padding: var(--space-2xl) var(--space-3xl);
  z-index: 3;
  max-width: 1000px;
  width: 90%;

  /* Subtle animation on load */
  animation: glassFloat 3s ease-in-out infinite;

  /* Overlay shine effect */
  overflow: hidden;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: glassShine 6s linear infinite;
}

.hero-stats::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(145deg,
    rgba(255, 101, 23, 0.3),
    rgba(0, 245, 212, 0.3),
    rgba(8, 157, 227, 0.3)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

/* 3-column variant for pages with only 3 stats */
.hero-stats.stats-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  border-right: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all var(--transition-base);
  z-index: 1;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
}

.stat-item:hover .stat-number {
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(255, 101, 23, 0.5);
}

.stat-number {
  display: block;
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-sm);

  /* Gradient text effect */
  background: linear-gradient(135deg,
    #FF6517 0%,
    #FF8040 50%,
    #00F5D4 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Glow effect */
  filter: drop-shadow(0 2px 8px rgba(255, 101, 23, 0.3));

  transition: all var(--transition-base);
}

.stat-label {
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.95);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== MARQUEE SECTION ===== */
.marquee-section {
  background: linear-gradient(135deg, #E8F4F8 0%, #D6EAF8 100%);
  padding: var(--space-sm) 0;
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: var(--space-5xl);
  animation: marqueeScroll 60s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  white-space: nowrap;
  font-size: 8.5rem;
  font-weight: var(--font-weight-bold);
  color: #85C1E9;
  letter-spacing: 5px;
  line-height: 1.1;
  text-shadow: none;
}

.marquee-item::before {
  content: '•';
  background: radial-gradient(circle, #FFFFFF 0%, #85C1E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 9.5rem;
  text-shadow: none;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--color-accent-cyan-light), var(--color-accent-cyan));
  border-radius: var(--border-radius-full);
  color: var(--color-white);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-gray-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--font-size-body-large);
  color: var(--color-gray-medium);
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

/* ===== GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  aspect-ratio: 3.5 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  color: var(--color-white);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
}

/* ===== STATS SECTION ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

/* ===== COVERAGE SECTION ===== */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient-blue);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--color-accent-orange);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-lg);
}

.cta-description {
  font-size: var(--font-size-body-large);
  margin-bottom: var(--space-2xl);
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-gray-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer-logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo .footer-logo-text {
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: all var(--transition-base);
}

.footer-logo:hover .footer-logo-text {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 25px rgba(255, 101, 23, 0.3);
  border-color: var(--color-accent-orange);
}

.footer-logo .footer-logo-name {
  font-size: 1.1rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.footer-logo .footer-logo-name .logo-y {
  display: inline-block;
  font-size: 1.3rem;
  color: var(--color-accent-orange);
  margin-right: -1px;
  text-shadow: 0 0 8px rgba(255, 101, 23, 0.5);
}

.footer-logo .footer-logo-suffix {
  font-size: 1.1rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  letter-spacing: -0.2px;
}

.footer-tagline {
  font-size: var(--font-size-body);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-relaxed);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--font-size-body-small);
}

.footer-contact a {
  color: var(--color-accent-cyan-light);
  transition: color var(--transition-base);
}

.footer-contact a:hover {
  color: var(--color-white);
}

.footer-column h4 {
  color: var(--color-white);
  font-size: var(--font-size-h6);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--font-size-body-small);
  transition: all var(--transition-base);
  padding-left: 0;
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: var(--space-sm);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--font-size-small);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
}
