/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  padding-top: 80px;
}

html {
  scroll-behavior: smooth;
}

/* Navigation */
.nav-container {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.logo-text {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #000000;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-link {
  color: #424242;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #9aed2d;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #000000;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Main Image Section */
.main-image-section {
  width: 100%;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: #ffffff;
  padding: 60px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 20px;
  line-height: 1.1;
  background: linear-gradient(45deg, #ffffff, #9aed2d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 40px;
  color: #e0e0e0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-button {
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #ffffff;
  padding: 16px 45px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-button:hover {
  background-color: #9aed2d;
  border-color: #9aed2d;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(154, 237, 45, 0.3);
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  padding: 100px 5%;
  background-color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: #ffffff;
  padding: 40px 30px;
  text-align: center;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(154, 237, 45, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: #9aed2d;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 25px;
  display: block;
}

.feature-title {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.feature-desc {
  color: #424242;
  line-height: 1.7;
}

/* About Section */
.about {
  background-color: #f8f9fa;
  padding: 80px 5%;
  text-align: center;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 30px;
  font-weight: 700;
  color: #000;
}

.about-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #212121;
  line-height: 1.8;
}

/* Gallery Section */
.gallery {
  padding: 80px 5%;
  background-color: #ffffff;
  text-align: center;
}

.gallery-title {
  margin-bottom: 50px;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #000;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.gallery-image {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

/* Community Section */
.community {
  padding: 80px 5%;
  background: linear-gradient(135deg, #000000 0%, #2d2d2d 100%);
  color: #ffffff;
  text-align: center;
}

.community-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 30px;
  font-weight: 700;
}

.community-desc {
  color: #e0e0e0;
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #9aed2d;
  transform: scale(0);
  transition: transform 0.3s ease;
  border-radius: 50%;
}

.social-link:hover::before {
  transform: scale(1);
}

.social-link:hover {
  color: #000000;
  border-color: #9aed2d;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(154, 237, 45, 0.3);
}

.social-link span {
  position: relative;
  z-index: 1;
}

/* Footer */
.footer-container {
  background-color: #f8f9fa;
  color: #424242;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
  border-top: 1px solid #e0e0e0;
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 15px 25px;
  border-radius: 5px;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 2000;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.toast.show {
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero {
    padding: 120px 5% 80px;
  }
  
  .features {
    grid-template-columns: 1fr;
    padding: 60px 5%;
    gap: 30px;
  }
  
  .about, .gallery, .community {
    padding: 60px 5%;
  }
  
  .gallery-images {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
  
  .social-links {
    gap: 15px;
  }
  
  .social-link {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .toast {
    right: 10px;
    left: 10px;
    transform: translateY(100px);
  }
  
  .toast.show {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 15px 5%;
  }
  
  .logo-text {
    font-size: 24px;
  }
  
  .hero {
    padding: 100px 5% 60px;
  }
  
  .feature-card {
    padding: 30px 20px;
  }
  
  .gallery-images {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  .gallery-item {
    font-size: 3rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.about-content,
.gallery-title,
.gallery-item {
  animation: fadeInUp 0.6s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
.nav-link:focus,
.hero-button:focus,
.social-link:focus {
  outline: 2px solid #9aed2d;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .nav-container,
  .social-links,
  .toast {
    display: none;
  }
  
  .hero {
    padding: 50px 0;
    background: white;
    color: black;
  }
  
  .hero-title {
    color: black;
  }
}