/* 
   Studio Berserk - Main Stylesheet
   Theme: Dark, Gamer, Cyberpunk-ish (Berserk Red/Orange)
*/

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #121212;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --accent-primary: #ff0000;
  /* Berserk Red/Orange */
  --accent-glow: rgba(255, 0, 0, 0.5);
  --font-heading: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: bold;
  border: 2px solid var(--accent-primary);
  /* clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%); Cool gamer shape */
  border-radius: 4px;
  /* Fallback/Softer look */
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: 0 0 10px var(--accent-glow);
}

.btn:hover {
  background: transparent;
  color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-primary);
  margin: 10px auto 0;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Header */
header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  /* Offset fixed header */
}

/* Background Slider Styles */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.hero-slide.current {
  opacity: 1;
  z-index: 2;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Games Section */
.games-section {
  padding: 100px 0;
  background: var(--bg-dark);
  text-align: center;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-primary);
}

.game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.game-content {
  padding: 25px;
  text-align: center;
}

.game-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--accent-primary);
}

.game-platform {
  background: rgba(255, 0, 0, 0.1);
  color: var(--accent-primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 15px;
  display: inline-block;
}

/* About Section */
.about-section {
  padding: 100px 0;
  background: #0f0f0f;
  position: relative;
  text-align: center;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.team-member {
  text-align: center;
}

.member-avatar {
  width: 120px;
  height: 120px;
  background: #222;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  text-align: center;
}

.contact-box {
  background: var(--bg-card);
  padding: 50px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-block;
}

/* Footer */
footer {
  padding: 40px 0;
  background: #050505;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Refined Contact Section */
.contact-box {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  padding: 60px;
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.contact-box p {
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.contact-btn {
  font-size: 1.2rem;
  padding: 15px 40px;
  margin-bottom: 3rem;
  width: auto;
  display: inline-block;
}

.social-links {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.social-title {
  font-family: var(--font-heading);
  font-size: 0.9rem !important;
  letter-spacing: 0.1em;
  color: #fff !important;
  margin-bottom: 1.5rem !important;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all var(--transition-speed);
}

.social-link:hover {
  color: #fff;
  border-color: var(--accent-primary);
  background: rgba(255, 0, 0, 0.1);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

/* Social Icon Styles */
.social-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  color: #fff;
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--accent-glow);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {

  /* Navbar - More Compact */
  .logo {
    font-size: 1.2rem;
  }

  .logo img {
    height: 30px;
  }

  .nav-links {
    flex-direction: row;
    gap: 1rem;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
  }

  nav {
    flex-direction: column !important;
    gap: 0.75rem;
  }

  /* Typography */
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  /* Section Spacing - Reduce Padding */
  .games-section {
    padding: 60px 0;
  }

  .about-section {
    padding: 60px 0;
  }

  .contact-section {
    padding: 60px 0;
  }

  /* Contact Box */
  .contact-box {
    padding: 30px 20px;
    width: 90%;
  }

  .contact-btn {
    font-size: 0.9rem;
    padding: 12px 20px;
    word-break: break-all;
  }

  /* Game Cards */
  .games-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .game-card {
    border-radius: 4px;
  }

  .game-image {
    height: auto;
    min-height: 200px;
    object-fit: contain;
  }
}