/* Base Styles */
:root {
  --primary-color: #E53935;
  --secondary-color: #B71C1C;
  --dark-color: #212121;
  --accent-color: #FF5252;
  --light-accent: #FFCDD2;
  --text-color: #212121;
  --light-text: #FFFFFF;
  --background: #121212;
  --card-bg: #1E1E1E;
  --shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--light-text);
  background-color: var(--background);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--light-accent);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light-text);
}

p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

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

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--light-text);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.btn-primary:hover {
  background: var(--secondary-color);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
  color: var(--light-text);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 57, 53, 0.2);
}

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

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

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 0.8rem;
}

.logo svg {
  width: 35px;
  height: 35px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  font-weight: 600;
  color: var(--light-text);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link:hover {
  color: var(--primary-color);
}

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

/* Hero Section */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background-color: var(--dark-color);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(229, 57, 53, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  margin-top: 2rem;
}

.accent {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-image {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: auto;
  opacity: 0.8;
}

/* Features Section */
.features {
  padding: 6rem 0;
  background-color: var(--background);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10 10L90 90M90 10L10 90' stroke='rgba(229, 57, 53, 0.1)' stroke-width='2'/%3E%3C/svg%3E");
  opacity: 0.2;
  pointer-events: none;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  display: inline-block;
  position: relative;
}

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

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

.feature-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 57, 53, 0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(229, 57, 53, 0.2);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* How It Works */
.how-it-works {
  padding: 6rem 0;
  background-color: var(--dark-color);
  position: relative;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
}

.step {
  flex: 0 0 30%;
  margin: 0 1.5%;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -15%;
  transform: translateY(-50%);
  width: 30%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), transparent);
  display: none;
}

.step:last-child::after {
  display: none;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--light-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

/* Gallery Section */
.gallery {
  padding: 6rem 0;
  background-color: var(--background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  aspect-ratio: 1;
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(229, 57, 53, 0.1);
}

.gallery-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(33, 33, 33, 0.9), transparent);
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-content {
  transform: translateY(0);
}

.gallery-item-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: rotate(-30deg);
}

.cta-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.cta-text {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-btn {
  background-color: var(--light-text);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
}

.cta-btn:hover {
  background-color: var(--light-text);
  color: var(--secondary-color);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-col h3 {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

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

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo svg {
  width: 35px;
  height: 35px;
  margin-right: 1rem;
}

.footer-logo-text {
  color: var(--light-text);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

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

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 4rem;
}

/* Responsive Styles */
@media (min-width: 992px) {
  .step::after {
    display: block;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-image {
    opacity: 0.4;
  }
  
  .step {
    flex: 0 0 100%;
    margin: 1rem 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    visibility: hidden;
  }
  
  .nav.active {
    max-height: 300px;
    visibility: visible;
  }
  
  .nav-item {
    margin: 1rem 0;
  }
  
  .hero {
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}
