/* 
* KITAC Campaign - Main Stylesheet
* Modern, responsive design for Philippine gaming site
*/

:root {
  /* Main color scheme */
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --dark-color: #1a2a36;
  --light-color: #f7fff7;
  --accent-color: #ffd166;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --success-color: #06d6a0;
  --warning-color: #ffd166;
  --error-color: #ef476f;

  /* Typography */
  --font-body: 'Nunito', 'Arial', sans-serif;
  --font-heading: 'Montserrat', 'Arial', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  --spacing-xxl: 4rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Container width */
  --container-width: 1200px;
  --container-padding: 1rem;
}

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

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

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

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

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

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-md);
}

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

a:hover, a:focus {
  color: var(--dark-color);
  text-decoration: underline;
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section Styles */
section {
  padding: var(--spacing-xxl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.underline {
  height: 4px;
  width: 70px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

/* Header and Navigation */
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: var(--spacing-md) var(--container-padding);
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-left: var(--spacing-sm);
}

.logo-svg {
  width: 40px;
  height: 40px;
}

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

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-menu a {
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-menu a:hover, .nav-menu a:focus {
  color: var(--primary-color);
}

.nav-menu a:hover::after, .nav-menu a:focus::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--dark-color);
  border-radius: 3px;
  transition: all var(--transition-normal);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark-color) 0%, #2c3e50 100%);
  color: white;
  text-align: center;
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="50" height="50" x="0" y="0" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: var(--spacing-lg);
  color: white;
  font-size: 3rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  color: rgba(255,255,255,0.9);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover, .cta-button:focus {
  background-color: var(--dark-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  text-decoration: none;
}

/* About Section */
.about-section {
  background-color: white;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  justify-content: space-between;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: center;
  flex: 1;
  min-width: 300px;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--light-color);
  border-radius: var(--border-radius-lg);
  flex: 1;
  min-width: 150px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
}

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

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.game-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: all var(--transition-normal);
  border-top: 4px solid var(--primary-color);
}

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

.game-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--dark-color);
}

.game-card a {
  font-weight: 600;
}

.news-highlight {
  background-color: rgba(255,209,102,0.1);
  border-left: 4px solid var(--accent-color);
  padding: var(--spacing-md);
  margin-top: var(--spacing-xl);
  border-radius: var(--border-radius-sm);
}

.news-highlight p {
  margin-bottom: 0;
}

/* News Section */
.news-section {
  background-color: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.news-card {
  background-color: #f9f9f9;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-content {
  padding: var(--spacing-lg);
}

.news-date {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

.read-more {
  display: inline-block;
  margin-top: var(--spacing-sm);
  font-weight: 600;
  color: var(--primary-color);
}

/* Contact Section */
.contact-section {
  background-color: #f5f7fa;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: var(--spacing-md);
  color: var(--primary-color);
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.submit-button:hover, 
.submit-button:focus {
  background-color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

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

.footer-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  margin-left: var(--spacing-sm);
}

.footer-links {
  display: flex;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.footer-links-column {
  min-width: 150px;
}

.footer-links-column h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

.footer-links-column ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-links-column a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer-links-column a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  :root {
    --spacing-xxl: 3rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xxl: 2.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) 0;
    gap: var(--spacing-md);
    transform: translateY(-100vh);
    opacity: 0;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  .about-content,
  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --spacing-xxl: 2rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}
