/* ============================================
   AG Simulations — Custom Design System
   Light Premium Theme with Teal Accents
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(43, 89, 119, 0.05);

  --accent: #2b5977;
  --accent-dark: #1a3d52;
  --accent-glow: rgba(43, 89, 119, 0.2);
  --accent-gradient: linear-gradient(135deg, #2b5977, #1a3d52);

  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(43, 89, 119, 0.25);

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(43, 89, 119, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* ---------- Global Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  /* Hide blinking cursor */
  caret-color: transparent;
}

/* Remove default focus outline */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hide blinking cursor globally */
* {
  caret-color: transparent;
}

/* Ambient background glow from edges */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at top left, rgba(18, 36, 58, 0.15), transparent 50%),
    radial-gradient(ellipse at top right, rgba(18, 36, 58, 0.12), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(18, 36, 58, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(18, 36, 58, 0.12), transparent 50%);
  animation: ambientGlow 8s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* Ensure content sits above background */
body>* {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-dark);
}

/* ---------- Utility Classes ---------- */
.section-padding {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 20px 0;
}

/* ---------- Navbar ---------- */
.navbar {
  padding: 5px 0;
  transition: all var(--transition-smooth);
  z-index: 1050;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  height: 80px;
  width: auto;
  display: none;
}

.navbar-brand-text {
  display: inline-block;
}

.navbar-brand .brand-accent {
  color: var(--accent);
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 18px !important;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar-toggler {
  border: none;
  padding: 8px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(43, 89, 119, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.3s ease;
  position: relative;
  z-index: 1060;
}

.navbar-toggler:hover {
  background: rgba(43, 89, 119, 0.15);
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Animate to X when open */
.navbar-toggler[aria-expanded="true"] {
  background: rgba(43, 89, 119, 0.12);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(248, 250, 252, 0.3) 0%,
      rgba(248, 250, 252, 0.7) 40%,
      rgba(248, 250, 252, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.2;
  }

  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1);
  }
}

/* ---------- Buttons ---------- */
.btn-accent {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #fff;
}

.btn-accent:hover::before {
  opacity: 1;
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 50px;
  border: 1px solid var(--accent);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* ---------- Glass Cards ---------- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* Project Cards */
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

/* Scroll animation states - CSS based for better performance */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.project-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.project-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      transparent 40%,
      rgba(18, 36, 58, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: all var(--transition-smooth);
}

.project-card:hover .card-overlay {
  background: linear-gradient(180deg,
      transparent 30%,
      rgba(18, 36, 58, 0.95) 100%);
}

.project-card .card-overlay h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(18, 36, 58, 0.8);
}

.project-card .card-overlay .card-subtitle {
  font-size: 0.8rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(18, 36, 58, 0.8);
}

.project-card .card-overlay .card-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--transition-smooth);
  margin-top: 0;
}

.project-card:hover .card-overlay .card-desc {
  max-height: 100px;
  opacity: 1;
  margin-top: 12px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(18, 36, 58, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.72rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ---------- Stats Section ---------- */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
}

/* ---------- Hero Stats Card ---------- */
.stats-card {
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.stat-item-inline {
  text-align: center;
}

.stat-item-inline .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item-inline .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Feature Cards ---------- */
.feature-card {
  padding: 36px;
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: rgba(43, 89, 119, 0.1);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--accent);
  transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
}

.feature-card h5 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- About / Our Story ---------- */
.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  pointer-events: none;
}

.about-accent-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  opacity: 0.3;
  z-index: -1;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-item .timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.timeline-item h5 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Founder Card */
.founder-card {
  padding: 40px;
  text-align: center;
}

.founder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  margin: 0 auto 20px;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent);
}

.founder-card h4 {
  margin-bottom: 6px;
  color: var(--text-primary);
}

.founder-card .founder-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.founder-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  margin: 0 6px;
  transition: all var(--transition-fast);
  background: var(--bg-secondary);
}

.founder-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(43, 89, 119, 0.1);
}

/* ---------- News Cards ---------- */
.news-card {
  overflow: hidden;
}

.news-card .news-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-card .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.06);
}

.news-card .news-body {
  padding: 28px;
}

.news-card .news-date {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.news-card h5 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
  color: var(--text-primary);
}

.news-card:hover h5 {
  color: var(--accent);
}

.news-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.read-more:hover {
  gap: 12px;
  color: var(--accent-dark);
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.contact-card {
  padding: 50px;
  text-align: center;
  background: linear-gradient(135deg, rgba(43, 89, 119, 0.06), transparent);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.glass-card.contact-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-card), var(--shadow-glow) !important;
  border-color: var(--border-accent) !important;
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(43, 89, 119, 0.1);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: var(--accent);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.site-footer .footer-brand {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Project Detail Page ---------- */
.project-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.project-hero .hero-bg::after {
  background: linear-gradient(180deg,
      rgba(248, 250, 252, 0.3) 0%,
      rgba(248, 250, 252, 0.98) 100%);
}

.project-hero .hero-content {
  padding-bottom: 60px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-list li i {
  color: var(--accent);
  font-size: 1.1rem;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* ---------- Filter Buttons ---------- */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 24px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

/* ---------- Placeholder Images ---------- */
.placeholder-img {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,
      transparent 40%,
      rgba(43, 89, 119, 0.05) 50%,
      transparent 60%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ---------- Partners ---------- */
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-fast);
  height: 100%;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.partner-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.partner-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.partner-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--bg-glass);
  border-radius: 20px;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-fast);
  border: none;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .section-padding {
    padding: 70px 0;
  }

  .navbar-logo {
    height: 70px;
  }

  .navbar-collapse {
    padding: 0;
    margin-top: 10px;
    border: none;
    background: none;
    box-shadow: none;
    overflow: hidden;
  }

  .navbar-collapse .navbar-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-top: 32px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-item-inline .stat-number {
    font-size: 2rem;
  }

  .stats-card {
    margin-top: 40px;
  }

  .contact-card {
    padding: 30px;
  }

  .glass-card.contact-card:hover {
    transform: translateY(-4px) !important;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 50px 0;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-content {
    padding-top: 80px;
  }

  .hero p.lead {
    font-size: 1rem;
  }

  .stat-item-inline .stat-number {
    font-size: 1.6rem;
  }

  .stat-item-inline .stat-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }

  .btn-accent,
  .btn-outline-accent {
    padding: 12px 28px;
    font-size: 0.85rem;
  }

  .project-card .card-overlay {
    padding: 20px;
  }

  .filter-buttons {
    justify-content: center;
  }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Glow orbs background ---------- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.15;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: #12243a;
  top: -250px;
  right: -150px;
}

.glow-orb-2 {
  width: 400px;
  height: 400px;
  background: #12243a;
  bottom: -200px;
  left: -150px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lightboxFadeIn 0.3s ease-out;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10000;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* Hover effect on gallery images */
.gallery-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(43, 89, 119, 0.3);
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 767.98px) {
  .hero-badge {
    display: none;
  }

  /* Lightbox: use explicit viewport units to fix centering on mobile browsers */
  .lightbox {
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
  }

  .lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 28px;
  }

  .lightbox-prev {
    left: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .lightbox-next {
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .lightbox-counter {
    bottom: 15px;
  }
}