/* 
* Kisekino Kachiha - Main Stylesheet
* Modern, responsive design with Philippines-themed color palette
*/

:root {
  --primary-color: #3066BE;
  --secondary-color: #FF9505;
  --accent-color: #FF5964;
  --dark-color: #252627;
  --light-color: #F4F4F8;
  --success-color: #3CDBD3;
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  --transition: all 0.3s ease;
}

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

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

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--dark-color);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-align: center;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(48, 102, 190, 0.2);
}

.btn-primary:hover {
  background-color: #2555a3;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(48, 102, 190, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  box-shadow: 0 4px 12px rgba(255, 149, 5, 0.2);
}

.btn-secondary:hover {
  background-color: #e68700;
  color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 149, 5, 0.3);
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.logo img {
  max-height: 60px;
  width: auto;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

.main-menu {
  display: flex;
  gap: 1.5rem;
}

.main-menu li a {
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem 0.2rem;
  position: relative;
}

.main-menu li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.main-menu li a:hover:after,
.main-menu li a.active:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--dark-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(48, 102, 190, 0.9), rgba(255, 89, 100, 0.8)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 7rem 0;
  position: relative;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(48, 102, 190, 0.1);
  color: var(--primary-color);
}

/* Games Section */
.games {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: #666;
}

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

.game-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  height: 220px;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.game-thumb {
  height: 100%;
  background-color: #333;
  position: relative;
}

.game-card:nth-child(1) .game-thumb {
  background: linear-gradient(135deg, #3066BE, #5D8DE6);
}

.game-card:nth-child(2) .game-thumb {
  background: linear-gradient(135deg, #FF9505, #FFBE5C);
}

.game-card:nth-child(3) .game-thumb {
  background: linear-gradient(135deg, #FF5964, #FF8B94);
}

.game-card:nth-child(4) .game-thumb {
  background: linear-gradient(135deg, #3CDBD3, #7FEAE5);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  transition: var(--transition);
}

.game-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.game-overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.game-overlay a {
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: auto;
}

.game-overlay a:hover {
  color: white;
}

.news-highlight {
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.news-highlight h3 {
  margin-bottom: 0.5rem;
}

.news-highlight p {
  margin-bottom: 1rem;
  color: #666;
}

.news-highlight a {
  font-weight: 600;
}

/* Call to Action */
.cta {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

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

.footer-brand p {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

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

.footer-links ul li a {
  color: #b9b9b9;
}

.footer-links ul li a:hover {
  color: white;
}

.footer-contact h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.footer-contact p {
  margin-bottom: 0.8rem;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 5rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .main-menu.active {
    max-height: 400px;
  }
  
  .main-menu li a {
    display: block;
    padding: 0.8rem 2rem;
  }
  
  .main-menu li a:after {
    display: none;
  }
  
  .main-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .feature-grid,
  .games-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .btn-primary, 
  .btn-secondary {
    width: 100%;
  }
}

/* Loading font files */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459Wlhzg.ttf) format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gnD-w.ttf) format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v15/pxiEyp8kv8JHgFVrJJfedw.ttf) format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLGT9Z1xlEA.ttf) format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z1xlEA.ttf) format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLCz7Z1xlEA.ttf) format('truetype');
}
