/* 
 * Fjordify.life Main Stylesheet
 * Unique gaming experience theme
 */

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

:root {
  /* Color Scheme - Nordic Winter Theme */
  --primary: #2a5b84;      /* Deep Fjord Blue */
  --primary-light: #5c88ae; 
  --primary-dark: #1a3c5c;
  --secondary: #4dccbd;    /* Ice Teal */
  --secondary-light: #7fe6db;
  --secondary-dark: #3aa89b;
  --accent: #f5b82e;       /* Northern Lights Amber */
  --accent-light: #ffd166;
  --accent-dark: #d99c11;
  --dark: #121f2a;         /* Night Sky */
  --medium: #34495e;       /* Twilight */
  --light-gray: #e2e9f0;   /* Snow */
  --white: #ffffff;        /* Ice */
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Nunito Sans', sans-serif;
  
  /* Spacing & Layout */
  --container-width: 1200px;
  --section-spacing: 80px;
  --element-spacing: 24px;
  --radius: 8px;
  --shadow: 0 5px 15px rgba(18, 31, 42, 0.1);
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--medium);
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-light);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: 2rem;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 4.2rem;
}

h2 {
  font-size: 3.6rem;
  position: relative;
  margin-bottom: 4rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
}

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.5rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(42, 91, 132, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(42, 91, 132, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(77, 204, 189, 0.2);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(77, 204, 189, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

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

.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--dark);
  transform: translateY(-3px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: var(--white);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--secondary);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 1.5rem;
}

.nav-link {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--medium);
  position: relative;
  padding: 0.8rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.4rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, rgba(42, 91, 132, 0.9) 0%, rgba(26, 60, 92, 0.85) 100%);
  position: relative;
  color: var(--white);
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

/* Games Section */
.games-section {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.8rem;
}

.games-grid {
  display: grid;
  /* Force single column so items stack in rows (1 column) on both mobile and desktop */
  grid-template-columns: 1fr;
  gap: 4rem;
}

.game-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(42, 91, 132, 0.15);
}

.game-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 31, 42, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .play-overlay {
  opacity: 1;
}

.game-content {
  padding: 2rem;
}

.game-content h3 {
  margin-bottom: 1rem;
}

.game-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Features Section */
.features-section {
  padding: var(--section-spacing) 0;
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

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

.feature-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 2rem;
  background: rgba(77, 204, 189, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 35px;
  height: 35px;
}

.feature-card h3 {
  margin-bottom: 1.5rem;
}

/* About Section */
.about-section {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-text h2 {
  margin-bottom: 3rem;
}

.about-text p {
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.about-feature {
  display: flex;
  align-items: center;
}

.about-feature-icon {
  min-width: 30px;
  color: var(--secondary);
  margin-right: 1rem;
  font-size: 2rem;
}

/* Testimonials */
.testimonials-section {
  padding: var(--section-spacing) 0;
  background-color: var(--light-gray);
}

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

.testimonial-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1.5rem;
}

.author-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.author-info p {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0;
}

.testimonial-rating {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--light-gray);
  padding: 6rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr;
  gap: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 40px;
}

.footer-description {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-light);
}

.footer-links {
  display: flex;
  justify-content: space-around;
}

.footer-column h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--secondary);
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 1rem;
}

.footer-menu a {
  color: var(--light-gray);
  transition: color 0.3s ease;
}

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

.footer-subscribe p {
  margin-bottom: 2rem;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
}

.subscribe-form input {
  flex: 1;
  min-width: 180px;
  padding: 1.2rem 1.5rem;
  border: none;
  border-radius: 50px;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.subscribe-form button {
  padding: 1.2rem 2rem;
}

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

.disclaimer-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  font-size: 1.3rem;
  line-height: 1.5;
}

/* Age Verification */
.age-verification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 31, 42, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.age-verification.active {
  opacity: 1;
  visibility: visible;
}

.age-verification-content {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 4rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.age-verification h2 {
  margin-bottom: 2rem;
}

.age-verification p {
  margin-bottom: 2rem;
}

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

.age-disclaimer {
  font-size: 1.3rem;
  color: var(--medium);
  margin-top: 2rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, rgba(42, 91, 132, 0.9) 0%, rgba(26, 60, 92, 0.85) 100%);
  padding: 120px 0 50px;
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
}

.breadcrumbs {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
  color: var(--white);
}

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

/* Contact Page */
.contact-section {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
}

.contact-info {
  padding: 3rem;
  background: var(--light-gray);
  border-radius: var(--radius);
}

.contact-info-item {
  display: flex;
  margin-bottom: 3rem;
}

.contact-info-icon {
  margin-right: 2rem;
  min-width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.contact-info-content h4 {
  margin-bottom: 0.5rem;
}

.contact-form {
  padding: 3rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(52, 73, 94, 0.2);
  border-radius: var(--radius);
  font-size: 1.6rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Legal Pages */
.legal-section {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 4rem;
}

.legal-content h3 {
  margin-top: 3rem;
}

.legal-content p, .legal-content ul, .legal-content ol {
  margin-bottom: 2rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 1rem;
}

.updated-date {
  font-style: italic;
  color: var(--medium);
  margin-bottom: 3rem;
  display: block;
}

.notice-box {
  background: rgba(77, 204, 189, 0.1);
  border-left: 4px solid var(--secondary);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Game Detail Page */
.game-detail-section {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.game-detail-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.game-display {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.game-iframe {
  width: 100%;
  height: 500px;
  border: none;
}

.game-sidebar h3 {
  margin-bottom: 2rem;
}

.game-description {
  margin-bottom: 3rem;
}

.game-features-list {
  list-style: none;
  margin-bottom: 3rem;
}

.game-features-list li {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(52, 73, 94, 0.1);
}

.game-features-list li:last-child {
  border-bottom: none;
}

.feature-icon {
  margin-right: 1.5rem;
  color: var(--secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .footer-subscribe {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 58%;
  }
  
  h1 {
    font-size: 3.6rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease;
  }
  
  .nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .nav-item {
    margin: 1rem 0;
  }
  
  .about-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-image {
    order: -1;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 4rem;
  }
  
  .footer-subscribe {
    grid-column: 1;
  }
  
  .game-detail-container {
    grid-template-columns: 1fr;
  }
  
  .game-iframe {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .age-buttons {
    flex-direction: column;
  }
}

/* Disclaimer card used above games */
.disclaimer-card.small {
  background: rgba(18,18,18,0.05);
  border-left: 4px solid rgba(124,77,255,0.6);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem 0;
  border-radius: 6px;
  color: var(--dark);
  font-size: 1.4rem;
}

.game-iframe-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: rgba(18,18,18,0.04);
  border-top: 1px solid rgba(0,0,0,0.04);
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-header {
  padding: 1.25rem 1.5rem;
  background: rgba(240,240,245,0.7);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.game-header h3 { margin: 0 0 0.25rem 0; }
.game-header p { margin: 0; color: var(--medium); font-size: 1.4rem; }

/* Inline SVG icons used as fallbacks for Font Awesome */
.icon-check { color: var(--secondary); vertical-align: middle; }
.about-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 0.75rem; }
.about-feature .about-feature-icon svg { width: 18px; height: 18px; }