/* BASE STYLES AND VARIABLES */
:root {
  /* Triadic color scheme */
  --primary-color: #FF6B35; /* Orange */
  --secondary-color: #3587FF; /* Blue */
  --tertiary-color: #8A35FF; /* Purple */
  
  /* Shades and tints */
  --primary-dark: #E55420;
  --primary-light: #FF8C61;
  --secondary-dark: #2A6CC7;
  --secondary-light: #61A1FF;
  --tertiary-dark: #6A25D1;
  --tertiary-light: #A66FFF;
  
  /* Neutrals */
  --dark: #222222;
  --dark-gray: #444444;
  --medium-gray: #777777;
  --light-gray: #DDDDDD;
  --off-white: #F7F7F7;
  --white: #FFFFFF;
  
  /* Shadows and effects */
  --neumorph-light: 8px 8px 16px rgba(0, 0, 0, 0.1);
  --neumorph-dark: -8px -8px 16px rgba(255, 255, 255, 0.8);
  --brutalist-shadow: 5px 5px 0px var(--dark);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  
  /* Border radius */
  --radius-small: 5px;
  --radius-medium: 10px;
  --radius-large: 20px;
  
  /* Typography */
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Work Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Container */
  --container-width: 1200px;
  --container-padding: 2rem;
}

/* GLOBAL RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--off-white);
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

a:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

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

h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-sm);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  color: var(--dark);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: var(--space-sm) auto 0;
  border-radius: var(--radius-small);
}

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

section {
  padding: var(--space-lg) 0;
  position: relative;
}

/* BUTTONS */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.5s ease;
  z-index: 1;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn.primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--brutalist-shadow);
}

.btn.primary:hover {
  background-color: var(--primary-dark);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px var(--dark);
}

.btn.secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: var(--brutalist-shadow);
}

.btn.secondary:hover {
  background-color: var(--secondary-dark);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px var(--dark);
}

.btn.tertiary {
  background-color: var(--tertiary-color);
  color: var(--white);
  box-shadow: var(--brutalist-shadow);
}

.btn.tertiary:hover {
  background-color: var(--tertiary-dark);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px var(--dark);
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

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

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

.desktop-nav {
  display: flex;
}

.desktop-nav ul {
  display: flex;
  gap: var(--space-md);
}

.desktop-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding: 0.5rem 0;
}

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

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 var(--container-padding);
}

.mobile-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 1.1rem;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-gray);
}

/* HERO SECTION */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  margin-top: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1.5s ease;
}

.hero-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1.8s ease;
}

.hero-content p {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 2s ease;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  animation: fadeIn 2.2s ease;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ABOUT SECTION */
.about {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
}

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

.image-container {
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--brutalist-shadow);
  transition: transform 0.3s ease;
}

.image-container:hover {
  transform: translateY(-10px);
}

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

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

/* GAMEPLAY SECTION */
.gameplay {
  background-color: var(--off-white);
  position: relative;
}

.gameplay-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
}

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

.gameplay-video {
  flex: 1;
  min-width: 300px;
}

.gameplay-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--neumorph-light), var(--neumorph-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--brutalist-shadow);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.card-content {
  padding: var(--space-md);
  text-align: center;
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

/* EVENTS SECTION */
.events {
  background-color: var(--white);
  position: relative;
}

.events-intro {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-md);
}

.event-date, .event-location {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: var(--space-xs);
}

/* INNOVATION SECTION */
.innovation {
  background-color: var(--off-white);
  position: relative;
}

.innovation-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.innovation-image {
  flex: 1;
  min-width: 300px;
}

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

.innovation-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  position: relative;
}

.innovation-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transform: translateY(-50%);
}

.timeline-item {
  position: relative;
  width: 120px;
  z-index: 2;
}

.timeline-content {
  background-color: var(--white);
  padding: var(--space-sm);
  border-radius: var(--radius-small);
  text-align: center;
  box-shadow: var(--neumorph-light);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: var(--brutalist-shadow);
}

.timeline-item h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

/* RESOURCES SECTION */
.resources {
  background-color: var(--white);
  position: relative;
}

.resources-intro {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-md);
}

.resource-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: 600;
  color: var(--secondary-color);
  position: relative;
  padding-right: 1.5rem;
}

.resource-link::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.resource-link:hover::after {
  transform: translate(5px, -50%);
}

/* PORTFOLIO SECTION */
.portfolio {
  background-color: var(--off-white);
  position: relative;
}

.portfolio-intro {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.portfolio-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 calc(100% - var(--space-md));
  scroll-snap-align: start;
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--neumorph-light);
  display: flex;
  flex-direction: column;
}

.slide-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

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

.slide-content {
  padding: var(--space-md);
  text-align: center;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.prev-slide, .next-slide {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neumorph-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.prev-slide:hover, .next-slide:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* INSIGHTS SECTION */
.insights {
  background-color: var(--white);
  position: relative;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-md);
}

/* CONTACT SECTION */
.contact {
  background-color: var(--off-white);
  position: relative;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

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

.contact-details {
  margin: var(--space-md) 0;
}

.contact-details li {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  align-items: flex-start;
}

.icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-links a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

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

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

.social-links a:hover::after {
  width: 100%;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-medium);
  box-shadow: var(--neumorph-light), var(--neumorph-dark);
}

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

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--dark-gray);
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-small);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-group.checkbox input {
  width: auto;
  margin-top: 0.3rem;
}

.form-group.checkbox label {
  margin-bottom: 0;
  font-weight: 400;
}

/* FOOTER */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  margin-bottom: var(--space-sm);
}

.footer-logo p {
  color: var(--light-gray);
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-nav, .footer-legal, .footer-social {
  flex: 1;
  min-width: 150px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
}

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

.footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer a {
  color: var(--light-gray);
}

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

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

.footer-bottom p {
  color: var(--light-gray);
  margin-bottom: var(--space-xs);
}

/* SUCCESS PAGE */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
}

.success-content {
  max-width: 600px;
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-medium);
  box-shadow: var(--neumorph-light), var(--neumorph-dark);
  animation: fadeInUp 1s ease;
}

.success-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

/* ABOUT, PRIVACY, TERMS PAGES */
.page-content {
  padding-top: 100px;
  min-height: calc(100vh - 300px);
}

.page-content .container {
  max-width: 800px;
}

.page-title {
  margin-bottom: var(--space-lg);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* PARTICLE ANIMATIONS */
.particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content h2 {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .innovation-timeline {
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
  }
  
  .innovation-timeline::before {
    display: none;
  }
  
  .timeline-item {
    width: 45%;
    margin-bottom: var(--space-sm);
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-nav.active {
    display: block;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .about-content, 
  .gameplay-content, 
  .innovation-content, 
  .contact-content {
    flex-direction: column;
  }
  
  .timeline-item {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 576px) {
  :root {
    --container-padding: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  section {
    padding: var(--space-md) 0;
  }
  
  .section-title {
    margin-bottom: var(--space-md);
  }
  
  .card-image {
    height: 180px;
  }
  
  .events-list, 
  .resources-grid, 
  .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .slide {
    flex: 0 0 100%;
  }
}