/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', Arial, sans-serif;
  background: #111111;
  color: #EAEAEA;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
img, svg {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
.navbar {
  background: rgba(17, 17, 17, 0.85);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: #FFFFFF;
}
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-link {
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  color: #A0A0A0;
  position: relative;
}
.nav-link:hover {
  color: #FFFFFF;
}
.nav-link.nav-active {
    color: #FFFFFF;
}
.nav-link.nav-active::after {
    width: 100%;
}
.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #007BFF;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -4px;
}
.nav-link:hover::after {
  width: 100%;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.bar {
  width: 25px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  /* background: #111111; */ /* Removed to allow background image to show */
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.6);
    z-index: 2;
}
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/game_background.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.1); /* Prevents blurred edges from showing */
    z-index: 1;
}
.floating-assets {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.floating-assets .asset {
  position: absolute;
  background: rgba(255, 255, 255, 0.046);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.1s linear;
}
.floating-assets .asset:nth-child(2) {
  animation-duration: 8s;
  animation-delay: 1s;
}
.floating-assets .asset:nth-child(3) {
  animation-duration: 5s;
}
.floating-assets .asset:nth-child(4) {
  background: rgba(255, 255, 255, 0.05);
  animation-duration: 9s;
  animation-delay: 0.5s;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
    100% { transform: translateY(0px); }
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 4;
}
.hero-text {
  flex: 1 1 350px;
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
  line-height: 1.2;
}
/* Sober override for gradient */
.gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  text-fill-color: unset;
  color: #FFFFFF;
}
.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: #007BFF;
  margin-bottom: 1.5rem;
}
.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: #A0A0A0;
}
.hero-buttons {
  display: flex;
  gap: 1.2rem;
}
.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn-primary {
  background: #007BFF;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}
.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
}
.btn-secondary {
  background: transparent;
  color: #EAEAEA;
  border: 1px solid #444;
}
.btn-secondary:hover {
  background: #EAEAEA;
  color: #111111;
  border-color: #EAEAEA;
}
.hero-visual {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-placeholder {
  width: 280px;
  height: 280px;
  background: #1F1F1F;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 1px solid #2a2a2a;
  overflow: hidden;
}
.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  opacity: 0.8;
  font-size: 2.5rem;
  gap: 0.5rem;
}
.placeholder-content p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #A0A0A0;
}
.scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0.6;
}
.scroll-arrow {
  width: 25px;
  height: 25px;
  border-bottom: 2px solid #A0A0A0;
  border-right: 2px solid #A0A0A0;
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(12px) rotate(45deg); }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: #A0A0A0;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* General Section Styling */
section {
  padding: 5rem 0;
}

/* About Section */
.about {
  background: #1F1F1F;
}
.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}
.about-text {
  flex: 1 1 350px;
}
.about-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}
.about-visual {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-placeholder {
  width: 220px;
  height: 220px;
  background: #111111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a2a2a;
}
.stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
}
.stat h4 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #007BFF;
}
.stat p {
  color: #A0A0A0;
  font-size: 1rem;
}

/* Games Section */
.games {
  background: #111111;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.game-card {
  background: #1F1F1F;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid #2a2a2a;
}
.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.game-image-placeholder {
  height: 300px;
  background-color: #2A2A2A;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.game-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/game_background2.png');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transform: scale(1.15);
    z-index: 1;
}
.game-image-placeholder .placeholder-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}
.game-info {
  padding: 1.5rem;
}
.game-info h3 {
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.game-status {
    margin: 1rem 0;
    padding: 0.5rem 0;
    text-align: center;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}
.game-status p {
    color: #009fff;
    font-weight: 500;
    font-size: 0.9rem;
}
.game-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  background: #007bff30;
  color: #009fff;
  border-radius: 5px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Team Section */
.team {
  background: #1F1F1F;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.team-member {
  background: #111111;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.member-image-placeholder {
  width: 100px;
  height: 100px;
  background: #2A2A2A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 2.5rem;
}
.member-info h3 {
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.member-role {
  color: #007BFF;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.member-bio {
  color: #A0A0A0;
  font-size: 0.95rem;
}

/* Contact Section */
.contact {
  background: #111111;
}
.contact-content {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.contact-info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.contact-item i {
  font-size: 1.8rem;
  color: #007BFF;
  width: 30px;
  text-align: center;
}
.contact-info h3 {
    margin-bottom: 0.2rem;
    color: #FFFFFF;
}
.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
}
.social-link {
  color: #A0A0A0;
  font-size: 1.5rem;
  transition: color 0.2s;
}
.social-link:hover {
  color: #007BFF;
}
.contact-form {
  flex: 1 1 400px;
  background: #1F1F1F;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #333;
  background: #111111;
  color: #EAEAEA;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #007BFF;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
.contact-form button {
  margin-top: 0.5rem;
  padding: 1rem;
}

/* Footer */
.footer {
  background: #1F1F1F;
  color: #A0A0A0;
  padding: 3rem 0 1.5rem 0;
  border-top: 1px solid #2a2a2a;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 2rem auto;
  padding: 0 2rem;
}
.footer-section h3, .footer-section h4 {
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-section ul {
  list-style: none;
}
.footer-section ul li {
  margin-bottom: 0.6rem;
}
.footer-section ul li a {
  color: #A0A0A0;
  transition: color 0.2s;
}
.footer-section ul li a:hover {
  color: #007BFF;
}
.footer-bottom {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
  max-width: 1100px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero-content {
    text-align: center;
  }
  .hero-content, .about-content, .contact-content {
    flex-direction: column;
    gap: 3rem;
  }
  .hero-buttons {
      justify-content: center;
  }
  .games-grid, .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1F1F1F;
        text-align: center;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-link {
        padding: 1rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid #2a2a2a;
    }
    .nav-link::after {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
}
@media (max-width: 600px) {
  .games-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Works Page */
.works-page {
  background: #111111;
}
.works-category {
  margin-bottom: 4rem;
}
.works-category h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #007BFF;
  display: inline-block;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.works-item {
  background: #1F1F1F;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.works-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}
.works-image-placeholder {
  height: 250px;
  background-color: #2A2A2A;
  overflow: hidden;
}
.works-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.works-image-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  scale: 1.3;
}
.works-item:hover .works-image-placeholder video {
  transform: scale(1.35);
}
.works-item:hover .works-image-placeholder img {
  transform: scale(1.1);
}
.works-info {
  padding: 1rem 1.2rem;
  color: #A0A0A0;
}

/* Legal Pages */
.legal-content {
    background: #111111;
    padding: 4rem 0;
    min-height: 80vh;
}
.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}
.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}
.legal-content p, .legal-content li {
    line-height: 1.8;
    color: #A0A0A0;
    margin-bottom: 1rem;
}
.legal-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.legal-content a {
    color: #007BFF;
    text-decoration: underline;
}

/* Image Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  transition: opacity 0.3s ease;
}
.modal-content {
  margin: auto;
  display: block;
  width: auto;
  max-width: 90%;
  max-height: 80vh;
}
.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}
.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
}
.works-item .works-image-placeholder {
    cursor: pointer;
} 