/* Scandiora.life - Main Stylesheet
   Unique Teal-Gold-Navy Theme with Elegant Design
   Featuring Poppins and Montserrat Font Combination */

/* Import Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Unique Teal-Gold-Navy Theme */
  --primary-color: #0e9594;      /* Teal */
  --secondary-color: #e9c46a;    /* Gold */
  --accent-color: #2a2a72;       /* Navy Blue */
  --light-color: #f3f7f0;        /* Off-white */
  --dark-color: #264653;         /* Dark Teal */
  --text-color: #333333;         /* Near Black */
  --bg-color: #f6f8ff;           /* Light Blue-White */
  --highlight: #ffd166;          /* Bright Yellow */
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Poppins', sans-serif;
  
  /* Shadows and Effects */
  --box-shadow: 0 4px 20px rgba(42, 42, 114, 0.15);
  --card-shadow: 0 6px 15px rgba(14, 149, 148, 0.12);
  --text-shadow: 1px 1px 2px rgba(38, 70, 83, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--light-color) 100%);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--text-shadow);
}

h2 {
  font-size: 2.4rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  width: 70%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  bottom: -8px;
  left: 0;
  border-radius: 2px;
}

h3 {
  font-size: 1.8rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.2rem;
  font-weight: 400;
  color: var(--text-color);
  font-size: 1.1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-medium);
}

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

/* Container and Layout */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

/* Unique Header Style with Curved Edge */
.site-header {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

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

.logo {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  color: var(--light-color);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
}

.logo-icon {
  margin-right: 10px;
  height: 35px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light-color);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.main-nav a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.main-nav a:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--secondary-color);
  transition: all var(--transition-medium);
  border-radius: 30px;
  opacity: 0.2;
  z-index: -1;
}

.main-nav a:hover:before,
.main-nav a.active:before {
  width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--light-color);
  transform: translateY(-3px);
}

/* Unique Hero Section with Diagonal Design */
.hero-section {
  background: url(../img/hero.jpg) center/cover no-repeat;
  position: relative;
  padding: 8rem 0 12rem;
  color: var(--light-color);
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-section::before {
  /* stronger dark overlay to ensure good contrast over hero image */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.35));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1{
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-title {
  /* make hero heading solid light color and readable over image */
  color: var(--light-color) !important;
  margin-bottom: 1.5rem;
  font-size: 2.6rem;
  font-weight: 700;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 3px 10px rgba(0,0,0,0.45);
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--secondary-color);
  color: var(--accent-color);
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 15px rgba(233, 196, 106, 0.3);
}

.cta-button:hover {
  background: var(--highlight);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(233, 196, 106, 0.5);
}

/* Games Grid with Elegant Cards */
.games-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: var(--bg-color);
}

.games-grid {
  /* Force stacked layout: one column, three rows (one game per row) */
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.games-disclaimer {
  background: linear-gradient(90deg, rgba(14,149,148,0.06), rgba(42,42,114,0.04));
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 1.25rem 0 1.5rem;
  color: var(--dark-color);
  font-size: 0.98rem;
}

.games-disclaimer strong { color: var(--accent-color); margin-right: 0.5rem; }

.game-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-medium);
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(14, 149, 148, 0.2);
}

.game-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 60%);
  padding: 1.2rem;
  text-align: center;
  color: var(--light-color);
}

.game-title {
  color: var(--light-color);
  margin-bottom: 0;
  font-size: 1.5rem;
}

.game-frame {
  width: 100%;
  max-width: 980px; /* limit iframe width so it doesn't become too wide */
  height: 480px; /* larger desktop height for immersive view */
  border: none;
  display: block;
  margin: 0 auto; /* center within card/container */
}

/* Responsive iframe heights */
@media (max-width: 992px) {
  .game-frame { height: 420px; }
}
@media (max-width: 768px) {
  .game-frame { height: 360px; }
}
@media (max-width: 576px) {
  .game-frame { height: 320px; }
}

/* About Section with Card Design */
.about-section {
  background-color: var(--light-color);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  opacity: 0.05;
  border-radius: 50%;
  top: -100px;
  left: -100px;
}

.about-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--secondary-color);
  opacity: 0.05;
  border-radius: 50%;
  bottom: -200px;
  right: -200px;
}

.about-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
  position: relative;
  z-index: 2;
}

.about-image {
  flex: 1;
  text-align: center;
  position: relative;
}

.about-img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-medium);
}

.about-img:hover {
  transform: scale(1.02) rotate(1deg);
}

/* Features Section with Circular Icons */
.features-section {
  background: linear-gradient(135deg, rgba(14, 149, 148, 0.05) 0%, rgba(42, 42, 114, 0.05) 100%);
  padding: 8rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem;
}

.feature-card {
  text-align: center;
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-medium);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(14, 149, 148, 0.2);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--light-color);
  font-size: 2.5rem;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(14, 149, 148, 0.3);
}

.feature-title {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

/* Reviews Section with Modern Cards */
.reviews-section {
  padding: 8rem 0;
  background-color: var(--bg-color);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.review-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-medium);
  position: relative;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(14, 149, 148, 0.15);
}

.review-card::before {
  content: "\201C";
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  font-family: serif;
  color: var(--primary-color);
  opacity: 0.1;
  line-height: 1;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.review-author {
  font-weight: 600;
  color: var(--accent-color);
}

.review-rating {
  color: var(--secondary-color);
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

/* Footer with Wave Design */
.site-footer {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  color: var(--light-color);
  position: relative;
  padding: 5rem 0 2rem;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 70px;
  background: url('../img/wave.svg') no-repeat;
  background-size: cover;
}

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

.footer-section h3 {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-section h3:after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--secondary-color);
  bottom: -8px;
  left: 0;
  border-radius: 2px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
}

.footer-section a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-disclaimer {
  background: rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 3rem;
}

.footer-disclaimer h3 {
  color: var(--light-color);
  margin-bottom: 1rem;
}

.footer-disclaimer p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* Age Verification Modal */
.age-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.age-modal-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalFadeIn 0.5s forwards;
}

.age-modal-content h2 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.age-modal-content p {
  margin-bottom: 1.5rem;
}

.age-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.age-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.age-btn.yes {
  background: var(--primary-color);
  color: white;
}

.age-btn.yes:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(14, 149, 148, 0.3);
}

.age-btn.no {
  background: #e63946;
  color: white;
}

.age-btn.no:hover {
  background: #c1121f;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

/* Animations */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-grid {
    flex-direction: column;
    text-align: center;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 6rem 0 10rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    background: var(--accent-color);
    height: 100vh;
    width: 80%;
    max-width: 320px;
    padding: 2rem;
    transition: all var(--transition-medium);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 4rem;
  }
  
  .main-nav a {
    padding: 1rem 1.5rem;
    display: block;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-section {
    padding: 5rem 0 8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .feature-card {
    padding: 2rem 1.2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-section {
    padding: 4rem 0 6rem;
  }
  
  .cta-button {
    padding: 0.8rem 2rem;
  }
  
  .games-grid, 
  .features-grid, 
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .age-modal-content {
    padding: 2rem 1.5rem;
  }
  
  .age-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}