/* RESET & BASICS */
:root {
  --primary-color: #C4390F;
  --primary-hover: #E34A1F;
  --bg-dark: #111;
  --bg-darker: #000;
  --bg-card: #222;
  --text-light: #fff;
  --text-muted: #aaa;
  --transition-speed: 0.3s;
  --gradient-primary: linear-gradient(135deg, #C4390F, #E34A1F);
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--box-shadow);
}

.nav-logo a {
  font-size: 1.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-logo a:hover {
  transform: scale(1.05);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--transition-speed);
  position: relative;
  padding: 0.5rem 0;
}

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

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

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: var(--text-light);
  margin: 4px 0;
  transition: transform var(--transition-speed);
}

/* HERO SECTION */
.hero-section {
  width: 100%;
  height: 100vh;
  background: url('../images/Header.png') center center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  margin-top: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  transition: all var(--transition-speed);
  display: inline-block;
}

.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-content .store-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-content .store-button img {
  height: 60px;
  transition: transform var(--transition-speed);
}

.hero-content .store-button:hover img {
  transform: translateY(-2px);
}

/* SECTIONS */
section {
  padding: clamp(2rem, 5vw, 4rem) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* FEATURES SECTION */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 12px;
  transition: all var(--transition-speed);
  text-align: center;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* GALLERY */
.carousel-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 500px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  height: 100%;
}

.carousel-item {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 480px;
  border-radius: 4px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  z-index: 1;
  border-radius: 4px;
  font-size: 18px;
}

.carousel-btn.left-btn {
  left: 10px;
}

.carousel-btn.right-btn {
  right: 10px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-title {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-card);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-message {
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 8px;
  margin: 1rem 0;
}

.carousel-item .error-message {
  padding: 1rem;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

/* ABOUT SECTION */
.about-section {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* DOWNLOAD SECTION */
.download-section {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  margin: 4rem auto;
  max-width: 800px;
  box-shadow: var(--box-shadow);
}

.download-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.download-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.download-btn {
  display: inline-block;
  background: var(--primary-color);
  padding: 1rem 2rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: all var(--transition-speed);
  margin-top: 1rem;
}

.download-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
.footer-section {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-darker);
  margin-top: 4rem;
}

/* SOCIAL MEDIA ICONS */
.social-media {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-link {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: all var(--transition-speed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
}

.social-link:hover {
  color: var(--text-light);
  background: var(--gradient-primary);
  transform: translateY(-3px);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 1s ease-out;
}

/* MOBILE RESPONSIVENESS */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-darker);
    flex-direction: column;
    padding: 2rem;
    transition: left var(--transition-speed);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content .store-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-button img {
    height: 50px;
  }
}

@media (max-width: 500px) {
  .carousel-item {
    min-width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  .navbar,
  .carousel-btn,
  .download-btn,
  .social-media {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero-section {
    height: auto;
    background: none;
  }

  .hero-section::before {
    display: none;
  }
}

/* Store Buttons - Global Styles */
.store-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.store-button {
  display: inline-block;
  transition: all var(--transition-speed);
  cursor: pointer;
}

.store-button:hover {
  transform: translateY(-5px);
}

.store-button img {
  height: 60px;
  transition: transform var(--transition-speed);
  display: block;
}

.store-button:hover img {
  transform: scale(1.05);
}

/* Hero Section Store Buttons */
.hero-content .store-buttons {
  margin-top: 2rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .store-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .store-button img {
    height: 50px;
  }
}