/* EGOVPH Website CSS Design - Mobile-First Responsive Design */
/* All classes use 'pg75-' prefix for namespace isolation */

/* CSS Custom Properties */
:root {
  --pg75-primary: #98FB98;
  --pg75-secondary: #273746;
  --pg75-accent: #20B2AA;
  --pg75-light: #AFEEEE;
  --pg75-neutral: #A9A9A9;
  --pg75-background: #E8F5E8;
  --pg75-dark: #273746;
  --pg75-text: #273746;
  --pg75-text-light: #98FB98;
  --pg75-border: #20B2AA;
  --pg75-shadow: rgba(32, 178, 170, 0.3);
  --pg75-gradient: linear-gradient(135deg, #98FB98 0%, #AFEEEE 100%);
  --pg75-gradient-dark: linear-gradient(135deg, #273746 0%, #20B2AA 100%);
  --pg75-hover: #20B2AA;
  --pg75-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--pg75-text);
  background-color: var(--pg75-background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout containers */
.pg75-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
  width: 100%;
}

.pg75-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--pg75-background) 0%, #f0f8f0 100%);
}

.pg75-grid {
  display: grid;
  gap: 2rem;
}

.pg75-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pg75-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header styles */
.pg75-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(231, 245, 231, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--pg75-border);
  z-index: 1000;
  padding: 1.2rem 0;
  box-shadow: 0 4px 20px var(--pg75-shadow);
  transition: var(--pg75-transition);
}

.pg75-header-hidden {
  transform: translateY(-100%);
}

.pg75-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

.pg75-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--pg75-text);
  font-weight: 700;
  font-size: 1.8rem;
  transition: var(--pg75-transition);
}

.pg75-logo:hover {
  color: var(--pg75-hover);
  transform: scale(1.05);
}

.pg75-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  box-shadow: 0 2px 8px var(--pg75-shadow);
}

.pg75-nav-links {
  display: none;
  gap: 2.4rem;
}

.pg75-nav-link {
  color: var(--pg75-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.4rem;
  transition: var(--pg75-transition);
  position: relative;
}

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

.pg75-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pg75-hover);
  transition: width 0.3s ease;
}

.pg75-nav-link:hover::after {
  width: 100%;
}

.pg75-nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pg75-menu-toggle {
  background: none;
  border: none;
  color: var(--pg75-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 8px;
  transition: var(--pg75-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg75-menu-toggle:hover,
.pg75-menu-toggle.pg75-active {
  background: var(--pg75-hover);
  color: white;
  transform: scale(1.1);
}

/* Mobile menu */
.pg75-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--pg75-dark);
  z-index: 1001;
  padding: 8rem 2.4rem 2.4rem;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-left: 3px solid var(--pg75-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.pg75-mobile-menu.pg75-menu-open {
  right: 0;
}

.pg75-menu-item {
  display: block;
  color: var(--pg75-text-light);
  text-decoration: none;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(152, 251, 152, 0.2);
  font-size: 1.6rem;
  font-weight: 500;
  transition: var(--pg75-transition);
  position: relative;
}

.pg75-menu-item:hover {
  color: var(--pg75-primary);
  padding-left: 1rem;
}

.pg75-menu-item:last-child {
  border-bottom: none;
}

.pg75-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39, 55, 70, 0.8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--pg75-transition);
  backdrop-filter: blur(4px);
}

.pg75-mobile-overlay.pg75-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Button styles */
.pg75-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  background: var(--pg75-gradient);
  color: var(--pg75-text);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: var(--pg75-transition);
  min-height: 44px;
  min-width: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--pg75-shadow);
}

.pg75-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--pg75-shadow);
}

.pg75-btn:active {
  transform: translateY(0);
}

.pg75-btn-primary {
  background: var(--pg75-primary);
  color: var(--pg75-dark);
}

.pg75-btn-secondary {
  background: var(--pg75-gradient-dark);
  color: var(--pg75-text-light);
}

.pg75-btn-accent {
  background: var(--pg75-accent);
  color: white;
}

.pg75-btn-small {
  padding: 1rem 2rem;
  font-size: 1.3rem;
}

.pg75-btn-large {
  padding: 1.6rem 3.2rem;
  font-size: 1.6rem;
}

/* Main content */
.pg75-main {
  flex: 1;
  padding-top: 8.4rem;
  padding-bottom: 8rem;
}

/* Hero section */
.pg75-hero {
  padding: 3rem 0;
  text-align: center;
  background: var(--pg75-gradient);
  margin: -1.6rem -1.6rem 3rem;
  border-radius: 0 0 24px 24px;
  position: relative;
  overflow: hidden;
}

.pg75-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pg75-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(39,55,70,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23pg75-pattern)"/></svg>') repeat;
  opacity: 0.3;
}

.pg75-hero-content {
  position: relative;
  z-index: 2;
}

.pg75-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--pg75-dark);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pg75-hero p {
  font-size: 1.6rem;
  color: var(--pg75-dark);
  margin-bottom: 2.4rem;
  opacity: 0.9;
}

/* Slider styles */
.pg75-slider {
  position: relative;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px var(--pg75-shadow);
}

.pg75-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.pg75-slide.pg75-active {
  opacity: 1;
}

.pg75-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pg75-slide:hover img {
  transform: scale(1.05);
}

.pg75-indicators {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.pg75-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--pg75-transition);
  border: 2px solid transparent;
}

.pg75-indicator.pg75-active {
  background: var(--pg75-primary);
  border-color: white;
  transform: scale(1.2);
}

/* Game sections */
.pg75-games-section {
  margin-bottom: 4rem;
  padding: 2.4rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(32, 178, 170, 0.2);
  backdrop-filter: blur(10px);
}

.pg75-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--pg75-dark);
  text-align: center;
  position: relative;
}

.pg75-section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--pg75-gradient);
  border-radius: 2px;
}

.pg75-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.pg75-game-item {
  text-align: center;
  padding: 1.2rem;
  background: linear-gradient(145deg, #ffffff, #f0f8f0);
  border-radius: 16px;
  border: 1px solid rgba(32, 178, 170, 0.3);
  transition: var(--pg75-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pg75-game-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(152, 251, 152, 0.3), transparent);
  transition: left 0.5s ease;
}

.pg75-game-item:hover::before {
  left: 100%;
}

.pg75-game-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px var(--pg75-shadow);
  border-color: var(--pg75-primary);
}

.pg75-game-img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: var(--pg75-transition);
}

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

.pg75-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pg75-text);
  line-height: 1.3;
  transition: var(--pg75-transition);
}

.pg75-game-item:hover .pg75-game-name {
  color: var(--pg75-hover);
}

/* Content sections */
.pg75-section {
  margin-bottom: 3rem;
  padding: 2.4rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  border: 1px solid rgba(32, 178, 170, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(32, 178, 170, 0.1);
}

.pg75-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--pg75-dark);
  position: relative;
}

.pg75-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--pg75-accent);
}

.pg75-section p {
  margin-bottom: 1.6rem;
  line-height: 1.7;
  color: var(--pg75-text);
}

.pg75-section ul {
  margin-bottom: 2rem;
  padding-left: 2.4rem;
}

.pg75-section li {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--pg75-text);
}

/* Link styles */
.pg75-link {
  color: var(--pg75-accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--pg75-transition);
  position: relative;
}

.pg75-link:hover {
  color: var(--pg75-hover);
  text-decoration: underline;
}

/* Footer styles */
.pg75-footer {
  background: var(--pg75-dark);
  color: var(--pg75-text-light);
  padding: 4rem 0 8rem;
  margin-top: auto;
  position: relative;
}

.pg75-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pg75-gradient);
}

.pg75-footer-content {
  text-align: center;
}

.pg75-footer-text {
  margin-bottom: 2.4rem;
  font-size: 1.4rem;
  opacity: 0.9;
  line-height: 1.6;
}

.pg75-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.pg75-footer-link {
  color: var(--pg75-text-light);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--pg75-transition);
  opacity: 0.8;
}

.pg75-footer-link:hover {
  color: var(--pg75-primary);
  opacity: 1;
}

.pg75-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.pg75-partner-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  opacity: 0.7;
  transition: var(--pg75-transition);
  filter: grayscale(100%);
}

.pg75-partner-img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.pg75-copyright {
  font-size: 1.2rem;
  opacity: 0.7;
  line-height: 1.5;
}

/* Mobile bottom navigation */
.pg75-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pg75-dark);
  z-index: 999;
  height: 60px;
  transition: var(--pg75-transition);
  border-top: 2px solid var(--pg75-border);
  box-shadow: 0 -4px 20px var(--pg75-shadow);
}

.pg75-bottom-nav.pg75-nav-hidden {
  transform: translateY(100%);
}

.pg75-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pg75-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pg75-text-light);
  transition: var(--pg75-transition);
  padding: 0.8rem;
  border-radius: 12px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  opacity: 0.7;
}

.pg75-nav-item:hover,
.pg75-nav-item.pg75-active {
  color: var(--pg75-primary);
  background: rgba(152, 251, 152, 0.1);
  opacity: 1;
  transform: translateY(-2px);
}

.pg75-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.pg75-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Animation classes */
.pg75-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pg75-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.pg75-fade-in {
  animation: pg75FadeIn 0.6s ease-out forwards;
}

@keyframes pg75FadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pg75-parallax {
  transition: transform 0.1s ease-out;
}

/* Responsive design */
@media (min-width: 768px) {
  .pg75-container {
    max-width: 768px;
    padding: 0 3rem;
  }
  
  .pg75-nav-links {
    display: flex;
  }
  
  .pg75-menu-toggle {
    display: none;
  }
  
  .pg75-games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .pg75-hero h1 {
    font-size: 3.6rem;
  }
  
  .pg75-bottom-nav {
    display: none;
  }
  
  .pg75-main {
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .pg75-container {
    max-width: 1024px;
  }
  
  .pg75-games-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .pg75-hero {
    padding: 4rem 0;
  }
}

/* Utility classes */
.pg75-text-center { text-align: center; }
.pg75-text-left { text-align: left; }
.pg75-text-right { text-align: right; }
.pg75-hidden { display: none; }
.pg75-visible { display: block; }
.pg75-mb-1 { margin-bottom: 1rem; }
.pg75-mb-2 { margin-bottom: 2rem; }
.pg75-mb-3 { margin-bottom: 3rem; }
.pg75-mt-1 { margin-top: 1rem; }
.pg75-mt-2 { margin-top: 2rem; }
.pg75-mt-3 { margin-top: 3rem; }
.pg75-p-1 { padding: 1rem; }
.pg75-p-2 { padding: 2rem; }
.pg75-p-3 { padding: 3rem; }

/* Loading states */
.pg75-loading {
  position: relative;
  overflow: hidden;
}

.pg75-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(152, 251, 152, 0.4), transparent);
  animation: pg75Loading 1.5s infinite;
}

@keyframes pg75Loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --pg75-shadow: rgba(0, 0, 0, 0.5);
  }
  
  .pg75-game-item {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .pg75-parallax {
    transform: none !important;
  }
}