/* Base Styles and Variables */
:root {
  --primary-color: #103d6b;
  --secondary-color: #00549e;
  --accent-color: #149753;
  --highlight-color: #f4c542;
  --text-color: #333333;
  --light-color: #ffffff;
  --dark-color: #0a1f33;
  --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --font-main: 'Montserrat', sans-serif;
  --font-heading: 'Roboto Slab', serif;
  --shadow: 0 5px 15px rgba(10, 31, 51, 0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

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

img, svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-bottom: 0.8em;
  color: var(--primary-color);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

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

p {
  margin-bottom: 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-title h2 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 4px;
  background-color: var(--highlight-color);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--light-color);
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
}

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

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

.btn-alt:hover {
  background: #0b7a40;
}

/* Header & Navigation */
.header {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

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

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

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

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 800"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23103d6b;stop-opacity:0.9" /><stop offset="100%" style="stop-color:%2300549e;stop-opacity:0.9" /></linearGradient></defs><rect width="1440" height="800" fill="url(%23grad1)" /><path d="M0,800 L1440,800 L1440,400 C1200,600 960,500 720,550 C480,600 240,400 0,450 L0,800 Z" fill="%23149753" opacity="0.3" /><path d="M0,800 L1440,800 L1440,500 C1200,650 960,600 720,620 C480,640 240,550 0,580 L0,800 Z" fill="%23149753" opacity="0.4" /></svg>');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--light-color);
}

.hero-content {
  max-width: 650px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--light-color);
  text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* About Section */
.about {
  background-color: #f8f9fa;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.about-text p {
  font-size: 1.1rem;
}

/* Features Section */
.features {
  background-color: #f0f5fa;
  position: relative;
}

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

.feature-card {
  background: var(--light-color);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border-top: 5px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-top: 5px solid var(--highlight-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Games Section */
.games {
  background-color: #ffffff;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background-color: var(--light-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  border-bottom: 4px solid transparent;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(10, 31, 51, 0.2);
  border-bottom: 4px solid var(--highlight-color);
}

.game-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.game-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.game-description {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.game-link {
  display: inline-block;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: #f0f5fa;
  transition: var(--transition);
  align-self: flex-start;
}

.game-link:hover {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

/* CTA Section */
.cta {
  background: var(--gradient-bg);
  color: var(--light-color);
  text-align: center;
  padding: 5rem 0;
}

.cta-title {
  color: var(--light-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.cta-btn:hover {
  background: #e5b52d;
  color: var(--dark-color);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: #bbb;
  padding: 4rem 0 2rem;
}

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

.footer-column h3 {
  color: var(--light-color);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--highlight-color);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light-color);
}

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

.footer-link {
  margin-bottom: 0.8rem;
}

.footer-link a {
  color: #bbb;
  transition: var(--transition);
}

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

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

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

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }

/* Responsive Styles */
@media screen and (max-width: 991px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .hero-title { font-size: 2.8rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    padding: 2rem;
    flex-direction: column;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    transition: 0.4s;
  }

  .nav-menu.active {
    left: 0;
  }

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

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
