/* Philippine Theme Palette */
:root {
  --ph-white: #FAFAFA;      /* Soft white */
  --ph-blue: #0038A8;       /* Deep Blue */
  --ph-red: #CE1126;        /* Vibrant Red */
  --ph-yellow: #FCD116;     /* Warm Yellow */
  --ph-black: #000000;      /* Black */

  /* RGB helpers for alpha blending */
  --ph-blue-rgb: 0, 56, 168;
  --ph-red-rgb: 206, 17, 38;
  --ph-yellow-rgb: 252, 209, 22;
  --ph-black-rgb: 0, 0, 0;
  --ph-white-rgb: 250, 250, 250;
}


/* Modern Digital Hub Section Styles - Light Theme */
.digital-hub-card {
  perspective: 1200px;
  height: 480px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  touch-action: manipulation; /* remove 300ms delay, improve tap response */
  -webkit-user-select: none;
  user-select: none;
  border-radius: 20px; /* ensure any outer effects follow rounded corners */
}

/* Remove outer hover shadow to avoid square corners; elevate inner faces instead */

/* Add flipped state class for mobile/touch interactions */
.digital-hub-card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Add hovered state for desktop */
.digital-hub-card.hovered .card-inner {
  transform: rotateY(180deg);
}

/* Desktop hover behavior */
@media (hover: hover) and (pointer: fine) {
  .digital-hub-card:hover .card-inner {
    transform: rotateY(180deg);
  }
  
  /* Enable hover effects only on desktop */
  .digital-hub-card:hover .card-front::before {
    opacity: 1;
  }
  
  .digital-hub-card:hover .card-icon {
    transform: scale(1.1);
  filter: drop-shadow(0 0 30px rgba(var(--ph-blue-rgb), 0.6));
  }
  
  .digital-hub-card:hover .card-indicator {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile/touch behavior - disable hover transform on touch devices */
@media (hover: none) and (pointer: coarse) {
  .digital-hub-card:hover .card-inner {
    transform: none;
  }
  /* Only respect flipped state on mobile */
  .digital-hub-card.flipped .card-inner {
    transform: rotateY(180deg) !important;
  }
  
  .digital-hub-card:hover .card-front::before {
    opacity: 0;
  }
  
  .digital-hub-card:hover .card-icon {
    transform: none;
  filter: drop-shadow(0 0 20px rgba(var(--ph-blue-rgb), 0.3));
  }
  
  .digital-hub-card:hover .card-indicator {
    opacity: 0;
    transform: translateY(10px);
  }
  
  .digital-hub-card {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Show indicator by default on mobile */
  .digital-hub-card .card-indicator {
    opacity: 0.8;
    transform: translateY(0);
  }
  
  /* Add tap feedback */
  .digital-hub-card:active {
    transform: scale(0.98);
  }
  
  /* Improve mobile card sizing */
  .digital-hub-card {
    height: 400px; /* Slightly shorter on mobile */
  }
  
  .card-front,
  .card-back {
    padding: 1.5rem;
  }
  
  .card-icon {
    font-size: 3rem; /* Smaller icon on mobile */
  }
  
  .card-title {
    font-size: 1.25rem; /* Smaller title on mobile */
  }
}

/* Additional mobile responsive improvements */
@media (max-width: 768px) {
  .digital-hub-card {
    height: 360px;
  }
  
  .card-front,
  .card-back {
    padding: 1.25rem;
  }
  
  .card-icon {
    font-size: 2.5rem;
  }
  
  .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .card-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .back-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .detail-item {
    margin-bottom: 1rem;
    padding: 0.5rem;
  }
  
  .detail-item h4 {
    font-size: 0.85rem;
  }
  
  .detail-item p {
    font-size: 0.8rem;
  }
}

/* Hero interactive square grid canvases */
.hero-grid-layer {
  z-index: 1; /* below hero content (z-10) but above background */
}
.hero-grid-layer canvas {
  display: block;
  contain: strict; /* isolate for perf */
  will-change: transform, contents;
}

/* Make hero background fill under fixed navbar on mobile */
@media (max-width: 768px) {
  #hero > .absolute.inset-0 { top: 0; }
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center center;
  will-change: transform; /* hint GPU */
  transform: translateZ(0.01px); /* force 3D layer for iOS */
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 
  0 20px 40px rgba(var(--ph-blue-rgb), 0.15),
  0 0 0 1px rgba(var(--ph-black-rgb), 0.08);
  overflow: hidden;
  top: 0;
  left: 0;
}

/* Elevate visible face on hover so shadow matches rounded corners */
.digital-hub-card:hover .card-front,
.digital-hub-card.hovered .card-front,
.digital-hub-card:hover .card-back,
.digital-hub-card.hovered .card-back {
  box-shadow: 
    0 30px 60px rgba(var(--ph-blue-rgb), 0.18),
    0 0 0 1px rgba(var(--ph-black-rgb), 0.08);
}

.card-front {
  background: linear-gradient(135deg, 
    rgba(250, 250, 250, 0.95) 0%, 
    rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(0, 56, 168, 0.2);
  text-align: center;
  position: relative;
  z-index: 2;
}

.card-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(0, 56, 168, 0.05) 50%, 
    transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-back {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(250, 250, 250, 0.98) 100%);
  border: 1px solid rgba(0, 56, 168, 0.3);
  transform: rotateY(180deg);
  text-align: left;
  justify-content: flex-start;
  padding: 2rem 1.5rem;
  z-index: 1;
}

.icon-container {
  position: relative;
  margin-bottom: 2rem;
}

.icon-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 56, 168, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}

.card-icon {
  font-size: 4rem;
  color: #0038A8; /* Deep Blue */
  color: var(--ph-blue); /* Deep Blue */
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 20px rgba(0, 56, 168, 0.3));
}

.card-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ph-black); /* Black for readability */
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.card-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ph-blue); /* Deep Blue */
  margin-bottom: 1.5rem;
  line-height: 1.4;
  opacity: 0.9;
}

.card-indicator {
  font-size: 0.85rem;
  color: rgba(var(--ph-black-rgb), 0.6); /* Black with opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.back-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ph-blue); /* Deep Blue */
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 2px solid rgba(0, 56, 168, 0.3);
  padding-bottom: 0.75rem;
}

.back-content {
  flex: 1;
  overflow-y: auto;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: rgba(0, 56, 168, 0.05);
  border-radius: 12px;
  border-left: 3px solid var(--ph-blue); /* Deep Blue */
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: rgba(0, 56, 168, 0.1);
  transform: translateX(5px);
}

.detail-icon {
  color: var(--ph-red); /* Vibrant Red */
  font-size: 1rem;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.detail-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ph-red); /* Vibrant Red */
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.detail-item p {
  font-size: 0.8rem;
  color: rgba(var(--ph-black-rgb), 0.8); /* Black */
  line-height: 1.4;
  margin: 0;
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .digital-hub-card {
    height: 420px;
  }
  
  .card-front,
  .card-back {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .card-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .digital-hub-card {
    height: 380px;
  }
  
  .card-front,
  .card-back {
    padding: 1.25rem;
  }
  
  .icon-bg {
    width: 100px;
    height: 100px;
  }
  
  .card-icon {
    font-size: 3rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-subtitle {
    font-size: 0.85rem;
  }
  
  .detail-item {
    margin-bottom: 1rem;
    padding: 0.5rem;
  }
}

/* Enhanced gradient text animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.text-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Additional fixes for flip cards */
.digital-hub-card * {
  box-sizing: border-box;
}

.card-inner {
  transform-origin: center center;
}

.card-front {
  transform: rotateY(0deg);
}

.card-back {
  transform: rotateY(180deg);
}

/* Force hardware acceleration */
.digital-hub-card,
.card-inner,
.card-front,
.card-back {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Fixed Marquee Styles for Responsive Design */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  background: transparent;
}

.marquee {
  display: flex;
  animation: marqueeScroll 25s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.marquee-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  padding: 0 2rem;
  flex-shrink: 0;
}

/* Ensure smooth scrolling animation */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-content img {
  height: 3rem; /* 48px */
  width: auto;
  margin: 0 2rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 150px;
  object-fit: contain;
  flex-shrink: 0;
}

.marquee-content img:hover {
  transform: scale(1.1);
  cursor: pointer;
  opacity: 0.8;
}

/* Responsive Marquee Adjustments */
@media (max-width: 1024px) {
  .marquee-content {
    padding: 0 1.5rem;
  }
  
  .marquee-content img {
    height: 2.5rem; /* 40px */
    margin: 0 1.5rem;
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .marquee-content {
    padding: 0 1rem;
  }
  
  .marquee-content img {
    height: 2rem; /* 32px */
    margin: 0 1rem;
    max-width: 100px;
  }
  
  .marquee {
    animation: marqueeScroll 20s linear infinite;
  }
}

@media (max-width: 480px) {
  .marquee-content {
    padding: 0 0.75rem;
  }
  
  .marquee-content img {
    height: 1.75rem; /* 28px */
    margin: 0 0.75rem;
    max-width: 80px;
  }
  
  .marquee {
    animation: marqueeScroll 15s linear infinite;
  }

  .marquee-enhanced {
    animation-duration: 24s;
  }
}
 
/* Global Glassmorphism Utilities */
.glass-card {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card-hover {
    transition: all 0.3s ease;
}

.glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* Enhanced Form Inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(var(--ph-blue-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--ph-blue-rgb), 0.12);
    outline: none;
}

/* Enhanced Buttons */
.glass-button {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(135deg, rgba(var(--ph-blue-rgb), 0.9), rgba(var(--ph-red-rgb), 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-button:hover {
  background: linear-gradient(135deg, rgba(var(--ph-blue-rgb), 1), rgba(var(--ph-red-rgb), 1));
  box-shadow: 0 8px 25px rgba(var(--ph-blue-rgb), 0.25);
    transform: translateY(-2px);
}

/* Page Backgrounds */
.page-background {
  background: linear-gradient(135deg, var(--ph-white) 0%, #ffffff 50%, var(--ph-white) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.page-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(var(--ph-blue-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--ph-red-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(var(--ph-yellow-rgb), 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating Animations */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

.animate-float-gentle {
    animation: float-gentle 6s ease-in-out infinite;
}

/* Mobile Menu Enhancements */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    background: rgba(13, 17, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Philippine DC Capacity Section Styles */
.capacity-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.5s ease;
  overflow: hidden;
}

.capacity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(var(--ph-blue-rgb), 0.1) 0%, rgba(var(--ph-red-rgb), 0.1) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 20px;
}

.capacity-card:hover::before {
  opacity: 1;
}

.capacity-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(var(--ph-blue-rgb), 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(var(--ph-blue-rgb), 0.2);
}

.capacity-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--ph-blue), var(--ph-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.capacity-card:nth-child(2) .capacity-number {
  background: linear-gradient(135deg, var(--ph-red), var(--ph-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.capacity-card:nth-child(3) .capacity-number {
  background: linear-gradient(135deg, var(--ph-blue), var(--ph-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.capacity-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.capacity-card:hover .capacity-icon {
  transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
  .capacity-number {
    font-size: 3rem;
  }
  
  .capacity-icon {
    width: 3rem;
    height: 3rem;
  }
}

/* Enhanced Hero Section Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(90deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(270deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
  opacity: 0;
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 6s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 4s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 3s ease infinite;
}

/* Particle Field Animation */
.particle-field {
  position: relative;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  background: linear-gradient(45deg, rgba(var(--ph-blue-rgb), 0.3), rgba(var(--ph-red-rgb), 0.3));
  border-radius: 50%;
  animation: particle-float 15s ease-in-out infinite;
}

.particle-1 { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 0s; }
.particle-2 { width: 6px; height: 6px; top: 60%; left: 80%; animation-delay: 2s; }
.particle-3 { width: 3px; height: 3px; top: 80%; left: 20%; animation-delay: 4s; }
.particle-4 { width: 5px; height: 5px; top: 30%; left: 70%; animation-delay: 6s; }
.particle-5 { width: 4px; height: 4px; top: 70%; left: 50%; animation-delay: 8s; }
.particle-6 { width: 7px; height: 7px; top: 40%; left: 30%; animation-delay: 10s; }

@keyframes particle-float {
  0%, 100% { transform: translateY(0px) translateX(0px) opacity(0.3); }
  25% { transform: translateY(-50px) translateX(30px) opacity(0.6); }
  50% { transform: translateY(-20px) translateX(-40px) opacity(0.8); }
  75% { transform: translateY(-80px) translateX(20px) opacity(0.4); }
}

/* Enhanced Logo Marquee Styles - Fixed */
.marquee-wrapper-enhanced {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.marquee-enhanced {
  display: flex;
  animation: marqueeScroll 39s linear infinite;
  will-change: transform;
  width: max-content; /* size to two duplicated content blocks combined */
}

.marquee-content-enhanced {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0; /* no edge padding so seam spacing equals internal gap */
  flex-shrink: 0;
  flex: 0 0 auto; /* ensure each duplicate retains its intrinsic width */
  min-width: max-content;
  margin-right: 3rem; /* seam spacing between the two duplicated blocks */
}

.logo-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  min-width: 160px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-image {
  height: 2.5rem;
  max-width: 120px;
  /* Dark gray treatment for marquee logos */
  filter: grayscale(100%) brightness(0.3) contrast(1.1);
  transition: all 0.3s ease;
  object-fit: contain;
}

.logo-overlay {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  background: rgba(var(--ph-black-rgb), 0.85);
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
}

.logo-name {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

/* removed legacy scroll-enhanced keyframes (unused) */

/* Responsive Marquee */
@media (max-width: 768px) {
  .marquee-content-enhanced {
  gap: 2rem;
  margin-right: 2rem; /* keep seam spacing consistent on tablets */
  }
  
  .logo-card {
    min-width: 120px;
    height: 60px;
    padding: 1rem 1.5rem;
  }
  
  .logo-image {
    height: 2rem;
    max-width: 100px;
  }

  /* match base marquee speed on tablets */
  .marquee-enhanced {
    animation-duration: 31s;
  }
}

/* Enhanced Statistics Section Styles - Fixed */
.stats-card {
  position: relative;
  height: 100%;
}

.stats-card-inner {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 2rem;
  height: 100%;
  transition: all 0.5s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats-card:hover .stats-card-inner {
  transform: translateY(-8px);
  border-color: rgba(var(--ph-blue-rgb), 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(var(--ph-blue-rgb), 0.2);
}

.stats-icon-container {
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.stats-card:hover .stats-icon-container {
  transform: scale(1.1) rotate(5deg);
}

.stats-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-label {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stats-description {
  color: rgba(var(--ph-black-rgb), 0.6);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Capacity Projection Cards - Enhanced */
.capacity-projection-card {
  position: relative;
  height: 100%;
}

.capacity-card-inner {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 2rem;
  height: 100%;
  transition: all 0.5s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.capacity-projection-card:hover .capacity-card-inner {
  transform: translateY(-8px);
  border-color: rgba(var(--ph-blue-rgb), 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(var(--ph-blue-rgb), 0.2);
}

.capacity-projection-card.highlight .capacity-card-inner {
  background: linear-gradient(135deg, rgba(var(--ph-blue-rgb), 0.15) 0%, rgba(var(--ph-red-rgb), 0.1) 100%);
  border-color: rgba(var(--ph-blue-rgb), 0.3);
}

.capacity-projection-card.highlight:hover .capacity-card-inner {
  border-color: rgba(var(--ph-blue-rgb), 0.5);
  box-shadow: 0 25px 50px rgba(var(--ph-blue-rgb), 0.2), 0 0 0 1px rgba(var(--ph-blue-rgb), 0.3);
}

.capacity-year-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, rgba(var(--ph-blue-rgb), 0.2), rgba(var(--ph-red-rgb), 0.2));
  border: 1px solid rgba(var(--ph-blue-rgb), 0.3);
  color: var(--ph-blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.capacity-year-badge.special {
  background: linear-gradient(135deg, rgba(var(--ph-blue-rgb), 0.3), rgba(var(--ph-red-rgb), 0.3));
  border-color: rgba(var(--ph-blue-rgb), 0.4);
  color: var(--ph-blue);
  font-weight: 800;
}

.capacity-icon-container {
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.capacity-projection-card:hover .capacity-icon-container {
  transform: scale(1.1) rotate(5deg);
}

.capacity-content {
  flex: 1;
  text-align: center;
  margin-bottom: 1.5rem;
}

.capacity-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.capacity-label {
  color: var(--ph-black);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.capacity-description {
  color: rgba(var(--ph-black-rgb), 0.6);
  font-size: 0.875rem;
  font-weight: 500;
}

.capacity-progress {
  margin-top: auto;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-text {
  color: rgba(var(--ph-black-rgb), 0.6);
  font-size: 0.75rem;
  font-weight: 600;
}

.capacity-insight {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(var(--ph-blue-rgb), 0.1);
  border-radius: 12px;
  border: 1px solid rgba(var(--ph-blue-rgb), 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-number {
    font-size: 2.5rem;
  }
  
  .capacity-number {
    font-size: 2.5rem;
  }
  
  .stats-icon-container,
  .capacity-icon-container {
    width: 3rem;
    height: 3rem;
  }
  
  .logo-card {
    min-width: 120px;
    height: 60px;
    padding: 1rem 1.5rem;
  }
  
  .logo-image {
    height: 2rem;
    max-width: 100px;
  }
  
  .marquee-content-enhanced {
    gap: 2rem;
  }
}

/* Contact Section Styles */
.contact-info-card {
  background: linear-gradient(135deg, rgba(var(--ph-white-rgb), 0.9), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--ph-blue-rgb), 0.12);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-card:hover::before {
    opacity: 1;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--ph-blue-rgb), 0.3);
  box-shadow: 0 20px 40px rgba(var(--ph-blue-rgb), 0.15), 0 0 30px rgba(var(--ph-blue-rgb), 0.12);
}

.contact-card-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  border: 1px solid rgba(var(--ph-blue-rgb), 0.15);
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon-container {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-content {
    flex: 1;
}

.contact-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ph-black);
    margin-bottom: 4px;
}

.contact-description {
  font-size: 1rem;
  color: rgba(var(--ph-black-rgb), 0.7);
    margin-bottom: 2px;
}

.contact-note {
  font-size: 0.875rem;
  color: rgba(var(--ph-black-rgb), 0.55);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
  color: var(--ph-blue);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid rgba(var(--ph-blue-rgb), 0.15);
  border-radius: 12px;
  color: var(--ph-black);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(var(--ph-blue-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--ph-blue-rgb), 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.form-input::placeholder {
  color: rgba(var(--ph-black-rgb), 0.45);
}

.form-input option {
  background: #ffffff;
  color: var(--ph-black);
}

/* Contact section responsive adjustments */
@media (max-width: 768px) {
    .contact-card-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon-container {
        margin: 0 auto;
    }
}

/* Enhanced Navbar Styles - Light Theme */
.enhanced-navbar {
  background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(30px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.1);
  border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    box-shadow: 0 8px 32px rgba(0, 56, 168, 0.1), 
                inset 0 1px 0 rgba(0, 56, 168, 0.05);
    transition: all 0.3s ease;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.enhanced-navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(220%) brightness(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(220%) brightness(1.2);
    box-shadow: 0 12px 40px rgba(0, 56, 168, 0.15),
                inset 0 1px 0 rgba(0, 56, 168, 0.08);
  border-bottom: 1px solid rgba(224, 224, 224, 0.8);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    height: 80px;
}

.navbar-brand .brand-link {
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    filter: none; /* Remove invert filter for light theme */
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
  filter: drop-shadow(0 0 8px rgba(var(--ph-blue-rgb), 0.35));
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0038A8, #CE1126, #FCD116);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-tagline {
    font-size: 0.75rem;
  color: rgba(var(--ph-black-rgb), 0.6); /* Subtle black */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
  color: var(--ph-black); /* Black */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 56, 168, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
  color: var(--ph-blue); /* Deep Blue */
  background: linear-gradient(135deg, rgba(var(--ph-blue-rgb), 0.1), rgba(var(--ph-red-rgb), 0.1));
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link:hover .nav-icon {
    opacity: 1;
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Reusable button styles (no gradients) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(0.5px) scale(0.99);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--ph-blue);
  color: #fff;
  border-color: rgba(var(--ph-blue-rgb), 0.0);
  box-shadow: 0 6px 18px rgba(var(--ph-blue-rgb), 0.25);
}

.btn-primary:hover {
  background: rgba(var(--ph-blue-rgb), 0.92); /* subtle change, still PH blue */
  box-shadow: 0 10px 24px rgba(var(--ph-blue-rgb), 0.32);
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: 2px solid rgba(var(--ph-yellow-rgb), 0.9);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(var(--ph-yellow-rgb), 0.35);
}

.btn-outline {
  background: #fff;
  color: var(--ph-black);
  border-color: rgba(var(--ph-blue-rgb), 0.3);
}

.btn-outline:hover {
  background: rgba(var(--ph-blue-rgb), 0.06);
  border-color: rgba(var(--ph-blue-rgb), 0.5);
  color: var(--ph-blue);
}

.btn-outline:focus-visible {
  outline: 2px solid rgba(var(--ph-yellow-rgb), 0.9);
  outline-offset: 2px;
}

.auth-button {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.login-btn {
  color: var(--ph-blue);
  border-color: rgba(var(--ph-blue-rgb), 0.3);
  background: rgba(var(--ph-blue-rgb), 0.08);
}

.login-btn:hover {
  color: var(--ph-blue);
  border-color: rgba(var(--ph-blue-rgb), 0.5);
  background: rgba(var(--ph-blue-rgb), 0.15);
}

.signup-btn, .dashboard-btn {
  color: #fff;
  background: var(--ph-blue);
  border-color: rgba(var(--ph-blue-rgb), 0.0);
  box-shadow: 0 4px 12px rgba(var(--ph-blue-rgb), 0.28);
}

.signup-btn:hover, .dashboard-btn:hover {
    transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--ph-blue-rgb), 0.38);
}

.logout-btn {
  color: var(--ph-red);
  border-color: rgba(var(--ph-red-rgb), 0.3);
  background: rgba(var(--ph-red-rgb), 0.1);
}

.logout-btn:hover {
  color: #fff;
  background: var(--ph-red);
  border-color: rgba(var(--ph-red-rgb), 0.0);
  box-shadow: 0 6px 18px rgba(var(--ph-red-rgb), 0.25);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-line {
    width: 100%;
    height: 2px;
  background: rgba(var(--ph-black-rgb), 0.5);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover .hamburger-line {
  background: var(--ph-blue);
}

/* Mobile menu styles consolidated above - removing duplicate definitions */

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    border-radius: 12px;
  color: var(--ph-black);
  text-decoration: none;
  font-weight: 500;
  background: rgba(var(--ph-blue-rgb), 0.06);
  border: 1px solid rgba(var(--ph-blue-rgb), 0.15);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--ph-blue);
  background: rgba(var(--ph-blue-rgb), 0.12);
  border-color: rgba(var(--ph-blue-rgb), 0.3);
}

.mobile-auth-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mobile-auth-btn.login-btn {
  color: var(--ph-blue);
  border-color: rgba(var(--ph-blue-rgb), 0.3);
  background: rgba(var(--ph-blue-rgb), 0.08);
}

.mobile-auth-btn.signup-btn, .mobile-auth-btn.dashboard-btn {
  color: #fff;
  background: var(--ph-blue);
}

.mobile-auth-btn.logout-btn {
  color: var(--ph-red);
  border-color: rgba(var(--ph-red-rgb), 0.3);
  background: rgba(var(--ph-red-rgb), 0.1);
}

/* Section anchor offset for fixed navbar */
.section-anchor {
  scroll-margin-top: 88px; /* matches approx navbar height on desktop */
}

@media (max-width: 1024px) {
  .section-anchor { scroll-margin-top: 72px; }
}

/* Keyboard focus treatment for links and cards */
a:focus-visible,
button:focus-visible,
.card-front:focus-visible,
.card-back:focus-visible,
.logo-card:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid rgba(var(--ph-yellow-rgb), 0.95);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Respect user preference to reduce motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee,
  .marquee-enhanced {
    animation: none !important;
  }
}

/* Navbar responsive adjustments */
@media (max-width: 1024px) {
    .navbar-content {
        padding: 0.75rem 0;
        height: 70px;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .navbar-logo {
        height: 45px;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        height: 60px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand-tagline {
        font-size: 0.7rem;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .logo-container {
        gap: 8px;
    }

  /* Remove heavy shadow on mobile to avoid perceived black gap under navbar */
  .enhanced-navbar {
  box-shadow: none;
  border-bottom-color: rgba(var(--ph-black-rgb), 0.04);
  background: rgba(255, 255, 255, 0.92);
  }
  /* Ensure hero sits flush with navbar */
  #hero { margin-top: 0 !important; }
  /* Push hero content below fixed navbar without affecting hero background */
  #hero .container {
    padding-top: 72px; /* ~navbar height + breathing room */
  }
  @supports (padding-top: env(safe-area-inset-top)) {
    #hero .container {
      padding-top: calc(72px + env(safe-area-inset-top));
    }
  }
}

@media (max-width: 480px) {
    .brand-text {
        display: none;
    }
    
    .navbar-logo {
        height: 45px;
    }
}

/* Data Center Cards Styles */
.data-center-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Site-wide subtle background to reduce brightness and plainness */
body.site-bg {
  background: rgb(var(--ph-white-rgb));
}

/* Fixed, very light PH-tinted washes + faint grid */
body.site-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1200px 600px at -10% -10%, rgba(var(--ph-blue-rgb), 0.03), transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, rgba(var(--ph-red-rgb), 0.03), transparent 60%),
    radial-gradient(800px 400px at 50% 120%, rgba(var(--ph-yellow-rgb), 0.03), transparent 60%),
    linear-gradient(rgba(var(--ph-blue-rgb), 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ph-blue-rgb), 0.02) 1px, transparent 1px);
  background-size: auto, auto, auto, 120px 120px, 120px 120px;
}

/* Section background utility: subtle PH wash with softened edges */
.ph-section {
  position: relative;
  overflow: hidden;
  background: rgba(var(--ph-white-rgb), 0.9);
  box-shadow: inset 0 24px 60px rgba(var(--ph-black-rgb), 0.03), inset 0 -24px 60px rgba(var(--ph-black-rgb), 0.03);
}

.ph-section::before {
  content: '';
  position: absolute;
  inset: -1px; /* cover edges fully */
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px 320px at 8% -5%, rgba(var(--ph-blue-rgb), 0.05), transparent 60%),
    radial-gradient(650px 300px at 92% -8%, rgba(var(--ph-red-rgb), 0.045), transparent 60%),
    radial-gradient(700px 320px at 50% 108%, rgba(var(--ph-yellow-rgb), 0.045), transparent 60%);
}

/* Ensure section content renders above decorative overlays */
.ph-section > * { position: relative; z-index: 1; }

/* Subtle dotted pattern overlay with PH color accents */
.ph-pattern {
  position: relative;
  --ph-pattern-color-rgb: var(--ph-blue-rgb);
}

.ph-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at center, rgba(var(--ph-pattern-color-rgb), 0.05) 1.1px, transparent 1.2px);
  background-size: 24px 24px;
}

.ph-pattern--blue { --ph-pattern-color-rgb: var(--ph-blue-rgb); }
.ph-pattern--red { --ph-pattern-color-rgb: var(--ph-red-rgb); }
.ph-pattern--yellow { --ph-pattern-color-rgb: var(--ph-yellow-rgb); }

.data-center-card:hover {
  transform: translateY(-5px);
}

/* Apply hover shadow to rounded inner card to avoid sharp corners */
.data-center-card:hover .data-center-card-inner {
  box-shadow: 0 20px 40px rgba(var(--ph-blue-rgb), 0.15);
}

.data-center-card-inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(var(--ph-white-rgb), 0.96));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--ph-blue-rgb), 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.data-center-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.data-center-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.data-center-icon i {
    font-size: 1.25rem;
}

.data-center-info h3.data-center-name {
  color: var(--ph-black);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.data-center-info p.data-center-location {
  color: rgba(var(--ph-black-rgb), 0.6);
    font-size: 0.875rem;
    margin: 0;
}

.data-center-capacity {
    margin-top: 1rem;
}

.capacity-main {
    margin-bottom: 1rem;
}

.capacity-value {
    font-size: 2rem;
    font-weight: 800;
  background: linear-gradient(to right, var(--ph-blue), var(--ph-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.capacity-unit {
  font-size: 1rem;
  color: rgba(var(--ph-black-rgb), 0.6);
    font-weight: 600;
    margin-left: 0.25rem;
}

.capacity-targets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.target-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: rgba(var(--ph-blue-rgb), 0.06);
  border-radius: 0.5rem;
  border: 1px solid rgba(var(--ph-blue-rgb), 0.12);
}

.target-label {
  color: rgba(var(--ph-black-rgb), 0.6);
    font-size: 0.875rem;
    font-weight: 600;
}

.target-value {
  color: var(--ph-black);
    font-weight: 700;
    font-size: 0.875rem;
}

/* Capacity Overview Stats */
.capacity-overview-stat {
    text-align: center;
    padding: 1rem;
}

/* Regional Stats */
.regional-stat {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.regional-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.regional-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.regional-icon i {
    font-size: 1.25rem;
}

.regional-content {
    flex: 1;
}

.regional-number {
  color: var(--ph-black);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.regional-label {
  color: rgba(var(--ph-black-rgb), 0.6);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.regional-capacity {
  color: var(--ph-blue);
    font-size: 0.875rem;
    font-weight: 700;
}

/* Statistics Card Styles */
.stats-card {
  background: linear-gradient(135deg, rgba(var(--ph-white-rgb), 0.9), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--ph-blue-rgb), 0.12);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.stats-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(var(--ph-blue-rgb), 0.15);
  border-color: rgba(var(--ph-blue-rgb), 0.25);
}

.stats-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stats-icon-container {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon-container {
    transform: scale(1.1) rotate(5deg);
}

.stats-content {
    flex: 1;
}

.stats-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
  color: var(--ph-black);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-description {
  color: rgba(var(--ph-black-rgb), 0.6);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Capacity Planning Cards */
.capacity-projection-card {
  background: linear-gradient(135deg, rgba(var(--ph-white-rgb), 0.9), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--ph-blue-rgb), 0.12);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.capacity-projection-card.highlight {
  border: 2px solid rgba(var(--ph-blue-rgb), 0.3);
  background: linear-gradient(135deg, rgba(var(--ph-blue-rgb), 0.08), rgba(255, 255, 255, 0.95));
}

.capacity-projection-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(var(--ph-blue-rgb), 0.15);
}

.capacity-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 10;
}

.capacity-year-badge {
  background: rgba(var(--ph-blue-rgb), 0.08);
  color: var(--ph-blue);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    align-self: flex-start;
    margin-bottom: 1rem;
  border: 1px solid rgba(var(--ph-blue-rgb), 0.2);
}

.capacity-year-badge.special {
  background: linear-gradient(135deg, rgba(var(--ph-blue-rgb), 0.2), rgba(var(--ph-red-rgb), 0.2));
  border: 1px solid rgba(var(--ph-blue-rgb), 0.3);
}

.capacity-icon-container {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.capacity-content {
    flex: 1;
    margin-bottom: 1rem;
}

.capacity-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.capacity-label {
  color: var(--ph-black);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.capacity-description {
  color: rgba(var(--ph-black-rgb), 0.6);
    font-size: 0.875rem;
}

.capacity-progress {
  background: rgba(var(--ph-black-rgb), 0.08);
    height: 0.5rem;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-top: 1rem;
}

.capacity-progress::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ph-blue), var(--ph-red));
  width: 60%;
  border-radius: 0.25rem;
  animation: progressLoad 2s ease-out;
}

@keyframes progressLoad {
    from { width: 0%; }
    to { width: 60%; }
}

/* Certification Card Styles */
.certification-card {
  background: linear-gradient(135deg, rgba(var(--ph-white-rgb), 0.9), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--ph-blue-rgb), 0.12);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 350px;
    display: flex;
}

.certification-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(var(--ph-blue-rgb), 0.15);
  border-color: rgba(var(--ph-blue-rgb), 0.25);
}

.certification-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.certification-icon-container {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.certification-icon-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.certification-logo {
  filter: none;
    transition: all 0.3s ease;
}

.certification-card:hover .certification-logo {
  filter: drop-shadow(0 0 8px rgba(var(--ph-blue-rgb), 0.3));
    transform: scale(1.05);
}

/* --- Overrides for wrapperless Capacity Planning cards --- */
/*
   After removing .capacity-card-inner, ensure the card itself lays out children
   in a column so .capacity-content can flex and progress sits at the bottom.
*/
.capacity-projection-card {
  display: flex;
  flex-direction: column;
}

/*
   The older style treated .capacity-progress as the bar itself with a ::after.
   Our current markup uses .progress-bar and .progress-fill inside .capacity-progress.
   Reset container to be auto-height and visible so the text isn’t clipped.
*/
.capacity-projection-card .capacity-progress {
  height: auto;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.capacity-projection-card .capacity-progress::after {
  content: none;
}

/* Ensure progress text has spacing when shown below the bar */
.capacity-projection-card .progress-text {
  display: block;
  margin-top: 0.25rem;
}

.certification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.certification-title {
  color: var(--ph-black);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-description {
  color: rgba(var(--ph-black-rgb), 0.6);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-details {
  background: rgba(var(--ph-blue-rgb), 0.06);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(var(--ph-blue-rgb), 0.15);
}

.compliance-stat {
    text-align: center;
}

/* (Removed duplicate Enhanced Marquee Styles definitions to avoid conflicts) */