@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,300,400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Rich Bright Dark Palette */
  --bg-color: #0A0F24; /* Deep vibrant dark blue */
  --bg-color-alt: #131A38; /* Slightly brighter dark blue */
  --primary: #EBC351; /* Elegant Gold */
  --primary-hover: #F7D16B; 
  --text-light: #F0F4F8; /* Soft bright white */
  --text-muted: #8E9BB0; /* Muted steel text */
  --border-color: rgba(235, 195, 81, 0.2);
  
  /* Typography */
  --font-heading: 'Clash Display', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout & Animations */
  --max-width: 1200px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Baseline */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--primary);
  color: var(--bg-color);
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
  background-color: var(--primary-hover);
  color: var(--bg-color);
  transform: translateY(-2px);
}

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

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

/* --- Layout Components --- */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition-normal), border-bottom var(--transition-normal), box-shadow var(--transition-normal), padding var(--transition-normal);
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

.navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(10, 15, 36, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled .nav-logo {
  height: 55px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .navbar .container {
    padding: 0 1.5rem;
  }
}

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

.nav-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-normal);
}

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

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  transition: all var(--transition-fast);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay .nav-links-mobile {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-menu-overlay .nav-links-mobile a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-light);
}

.mobile-menu-overlay .nav-links-mobile a.active {
  color: var(--primary);
}

/* Footer */
.footer {
  background-color: var(--bg-color-alt);
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* Social Links Component */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px);
  background: rgba(235, 195, 81, 0.05);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.back-link:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(235, 195, 81, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Page Header (for subpages) */
.page-header {
  padding: 7rem 0 3rem;
  background: linear-gradient(to bottom, var(--bg-color-alt), var(--bg-color));
  text-align: center;
}

.page-header h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .page-header {
    padding: 8rem 0 4rem;
  }
  
  .page-header h1 {
    font-size: 3rem;
  }
}

.page-header p {
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Base Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Interactive Card Glow --- */
.service-card:hover, 
.tier-card:hover, 
.product-card:hover, 
.case-study:hover,
.hrdcorp-fact-card:hover,
.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    -10px -10px 30px rgba(235, 195, 81, 0.15),
    10px -10px 30px rgba(235, 195, 81, 0.15),
    -10px 10px 30px rgba(235, 195, 81, 0.15),
    10px 10px 30px rgba(235, 195, 81, 0.15);
  border-color: rgba(235, 195, 81, 0.4) !important;
}

.service-card, 
.tier-card, 
.product-card, 
.case-study,
.hrdcorp-fact-card,
.pillar-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

/* --- Interactive Card Glow --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--bg-color);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
  }
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  background: linear-gradient(110deg, rgba(255,255,255,0.01) 8%, rgba(255,255,255,0.04) 18%, rgba(255,255,255,0.01) 33%);
  background-size: 200% 100%;
  animation: gallery-skeleton 1.8s infinite linear;
}

@keyframes gallery-skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.gallery-item.hide {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease, transform var(--transition-slow);
}

.gallery-item img.loaded {
  opacity: 1;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 15, 36, 0.9) 0%, rgba(10, 15, 36, 0.4) 60%, rgba(10, 15, 36, 0) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

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

.gallery-overlay h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  font-size: 0.85rem;
  color: var(--text-light);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Lightbox Modal --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(10, 15, 36, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(235, 195, 81, 0.2);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  color: var(--text-light);
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1010;
}

.lightbox-arrow:hover {
  background-color: var(--primary);
  color: var(--bg-color);
  border-color: var(--primary);
}

.lightbox-arrow.prev {
  left: 10px;
}

.lightbox-arrow.next {
  right: 10px;
}

@media (min-width: 768px) {
  .lightbox-arrow.prev {
    left: -70px;
  }

  .lightbox-arrow.next {
    right: -70px;
  }
  
  .lightbox-close {
    right: 0;
    top: -40px;
  }
}

/* ==========================================================================
   Comprehensive Mobile & Touch Device Responsiveness (Cross-Browser)
   ========================================================================== */

/* Universal Mobile Fixes */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img, video, iframe, canvas, svg {
  max-width: 100% !important;
  height: auto;
}

/* Screen widths below 768px (Mobile & Tablet Vertical) */
@media (max-width: 767.98px) {
  .container {
    padding: 0 1.25rem !important;
  }

  .section {
    padding: 2.5rem 0 !important;
  }

  /* Prevent text headers from forcing horizontal scroll */
  h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.5rem) !important;
    word-break: break-word;
  }

  h2 {
    font-size: clamp(1.35rem, 5.5vw, 2rem) !important;
    word-break: break-word;
  }

  h3 {
    font-size: clamp(1.15rem, 4.5vw, 1.5rem) !important;
    word-break: break-word;
  }

  /* Override any hardcoded white-space: nowrap on cards & buttons */
  .service-card h3,
  .service-card h2,
  .product-card h3,
  .creation-info h3,
  .tier-card-price,
  .flavor-note,
  .hero-buttons .btn {
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Flavor notes wrapping */
  .flavor-profile {
    flex-wrap: wrap !important;
  }

  /* Buttons on mobile */
  .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    padding: 0.85rem 1.25rem !important;
    text-align: center;
    font-size: 0.95rem;
  }

  .hero-buttons {
    width: 100%;
    padding: 0 0.5rem;
  }

  /* Mobile Navbar & Hamburger */
  .navbar {
    padding: 0.75rem 0 !important;
  }

  .navbar.scrolled {
    padding: 0.5rem 0 !important;
  }

  .nav-logo {
    height: 55px !important;
  }

  .navbar.scrolled .nav-logo {
    height: 45px !important;
  }

  .hamburger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
  }

  .mobile-menu-overlay .nav-links-mobile {
    gap: 1.5rem !important;
    padding: 2rem 1rem !important;
  }

  .mobile-menu-overlay .nav-links-mobile a {
    font-size: 1.6rem !important;
    padding: 0.5rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Cards & Sections Padding on Mobile */
  .service-card,
  .tier-card,
  .product-card,
  .creation-card,
  .case-study,
  .hrdcorp-fact-card,
  .pillar-card,
  .contact-info-card,
  .academy-section,
  .feature-box,
  .feature-header {
    padding: 1.5rem 1.25rem !important;
    border-radius: 12px !important;
  }

  /* Section Spacing Overrides */
  .experience-section {
    margin-bottom: 3.5rem !important;
  }

  .product-section {
    margin-bottom: 3.5rem !important;
  }

  .creation-img {
    height: 240px !important;
  }

  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Gallery Filters & Grid */
  .gallery-filters {
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .filter-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    min-height: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 1rem !important;
  }

  /* Lightbox Modal on Mobile */
  .lightbox-content {
    max-width: 95% !important;
    max-height: 75vh !important;
  }

  .lightbox-img {
    max-height: 60vh !important;
    border-radius: 6px !important;
  }

  .lightbox-close {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 2.2rem !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(10, 15, 36, 0.85) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1020 !important;
  }

  .lightbox-arrow {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.3rem !important;
    background: rgba(10, 15, 36, 0.85) !important;
  }

  .lightbox-arrow.prev {
    left: 8px !important;
  }

  .lightbox-arrow.next {
    right: 8px !important;
  }

  .lightbox-caption {
    font-size: 1rem !important;
    margin-top: 0.75rem !important;
  }

  /* Footer Adjustments */
  .footer {
    padding: 2rem 0 1.5rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .quick-links-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .about-text p {
    text-align: left !important;
  }

  .timeline {
    padding-left: 1.5rem !important;
  }

  .timeline-item::before {
    left: -1.9rem !important;
  }
}

/* Extra Small Mobile Devices (e.g., iPhone SE, 320px - 380px) */
@media (max-width: 479.98px) {
  .container {
    padding: 0 1rem !important;
  }

  h1 {
    font-size: 1.6rem !important;
  }

  h2 {
    font-size: 1.3rem !important;
  }

  .intro-image {
    max-width: 100% !important;
  }

  .review-card {
    flex: 0 0 260px !important;
    padding: 1.5rem 1rem !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}


