/* ==========================================================================
   Green Goo Games — Purpose-built stylesheet
   ========================================================================== */

/* --- CSS Variables (derived from game art palette) --- */
:root {
  --color-bg: #0a0e17;
  --color-surface: #111827;
  --color-surface-light: #1a2332;
  --color-primary: #0ec99a;
  --color-primary-dark: #0a9e79;
  --color-primary-glow: rgba(14, 201, 154, 0.15);
  --color-accent-red: #c0392b;
  --color-accent-amber: #f0a030;
  --color-text: #e2e8f0;
  --color-text-muted: #8892a0;
  --color-border: #1e293b;
  --color-white: #ffffff;
  --font-heading: 'Rajdhani', 'Poppins', sans-serif;
  --font-body: 'Outfit', 'Assistant', sans-serif;
  --container-width: 1140px;
  --header-height: 70px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: 1rem; }
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.clear { clear: both; }

/* screen reader text */
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: background 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.logo img {
  height: 44px;
  width: auto;
}
.logo span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

/* --- Navigation --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links li a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.25s;
  border-radius: 6px;
}
.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--color-white);
}
.nav-links .social-link a {
  font-size: 1.15rem;
  padding: 8px 10px;
  color: var(--color-text-muted);
}
.nav-links .social-link a:hover {
  color: var(--color-primary);
}
.nav-separator {
  width: 1px;
  height: 24px;
  background: var(--color-border);
  margin: 0 4px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1;
}

/* --- Hero / Slider Section --- */
.hero {
  position: relative;
  margin-top: var(--header-height);
  overflow: hidden;
}
.slider-main {
  position: relative;
  width: 100%;
}

/* Nivo Slider Core */
.nivoSlider {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.nivoSlider img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
}
.nivo-main-image {
  display: block !important;
  position: relative !important;
  width: 100% !important;
}
.nivoSlider a.nivo-imageLink {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0;
  z-index: 6;
  display: none;
  background: white;
  filter: alpha(opacity=0);
  opacity: 0;
}
.nivo-slice {
  display: block;
  position: absolute;
  z-index: 5;
  height: 100%;
  top: 0;
}
.nivo-box {
  display: block;
  position: absolute;
  z-index: 5;
  overflow: hidden;
}
.nivo-box img { display: block; }
.nivo-html-caption { display: none; }
.nivo-directionNav a {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
  cursor: pointer;
  font-size: 0;
  border: 0;
  display: block;
  height: 62px;
  width: 62px;
  line-height: 62px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  color: var(--color-white);
  transition: background 0.25s;
  border-radius: 4px;
}
.nivo-directionNav a:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}
a.nivo-prevNav { left: 16px; }
a.nivo-nextNav { right: 16px; }
a.nivo-nextNav:before, a.nivo-prevNav:before {
  font-size: 28px;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: relative;
  text-align: center;
}
a.nivo-nextNav:before { content: "\f105"; }
a.nivo-prevNav:before { content: "\f104"; }
.nivo-controlNav {
  text-align: center;
  position: absolute;
  width: 100%;
  bottom: 20px;
  z-index: 11;
}
.nivo-controlNav a {
  cursor: pointer;
  border: 0;
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  text-indent: -9999px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.25s;
}
.nivo-controlNav a.active {
  background: var(--color-primary);
}

/* Hero overlay */
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 80px 0 60px;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.6) 50%, transparent 100%);
  text-align: center;
  pointer-events: none;
}
.hero-overlay h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.hero-overlay h1 .accent {
  color: var(--color-primary);
}
.hero-overlay .tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* --- Section base --- */
.section {
  padding: 100px 0;
  position: relative;
}
.section-alt {
  background: var(--color-surface);
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-header h2 .accent { color: var(--color-primary); }
.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding: 4px 0;
  border-bottom: 2px solid var(--color-primary);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}
.about-text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.about-image img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.about-image:hover img {
  transform: scale(1.03);
}

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 36px;
}
.stat-item {
  text-align: left;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 201, 154, 0);
  transition: background 0.3s;
}
.gallery-item:hover::after {
  background: rgba(14, 201, 154, 0.1);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- Studio Section --- */
.studio-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.studio-content p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}
.studio-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--color-border);
  box-shadow: 0 8px 30px rgba(14, 201, 154, 0.15);
}
.studio-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
}
.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.footer-col p,
.footer-col .contact-info {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.footer-col .contact-info strong {
  color: var(--color-white);
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-surface-light);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 1.15rem;
  transition: all 0.25s;
}
.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.copyright {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* --- Back to top --- */
#back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
#back-top.visible {
  opacity: 1;
  visibility: visible;
}
#back-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: 8px;
  font-size: 1.1rem;
  transition: transform 0.25s, background 0.25s;
  box-shadow: 0 4px 12px rgba(14, 201, 154, 0.3);
}
#back-top a:hover {
  transform: translateY(-3px);
  background: var(--color-primary-dark);
}

/* --- Scroll animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section {
    padding: 70px 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li a {
    padding: 12px 16px;
    width: 100%;
  }
  .nav-separator {
    width: 100%;
    height: 1px;
    margin: 4px 0;
  }
  .nav-links .social-row {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
  }
  .hero-overlay {
    padding: 60px 20px 40px;
  }
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .stat-row {
    flex-direction: column;
    gap: 20px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 50px 0;
  }
  .nivo-directionNav a {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }
}
