:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --accent-color: #8b5cf6;
  --background-dark: #0f172a;
  --surface-dark: #1e293b;
  --text-light: #f8fafc;
  --text-dim: #94a3b8;
  --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
  font-family: "Outfit", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Header & Nav */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed; /* Fixed for modern feel */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.7); /* More transparency */
  backdrop-filter: blur(16px); /* Stronger glass effect */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Hero Section */
header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 0 5%;
  overflow: hidden;
  padding-top: 6rem; /* Adjust for fixed nav */
}

.hero-overlay {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: var(--primary-dark);
  filter: blur(150px);
  opacity: 0.2;
  z-index: -1;
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-top: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-text h1 {
  font-size: 3.5rem; /* Slightly smaller for balance */
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white; /* Ensure text is visible */
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-image img {
  width: 100%;
  max-width: 350px; /* NEW: Smaller Hero Image */
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
  animation: fadeInUp 1.2s ease-out;
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Sections */
.section {
  padding: 6rem 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(30, 41, 59, 0.6); /* More transparent */
  backdrop-filter: blur(10px);
  padding: 2.5rem; /* Restore padding */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Gallery Slider */
.dark-bg {
  background: #141c2f;
}

.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-slider {
  display: flex;
  gap: 1.5rem; /* Reduced gap */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
}

.gallery-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.gallery-item {
  flex: 0 0 220px; /* NEW: Smaller Gallery Images */
  scroll-snap-align: center;
  border-radius: 16px;
  transition: all 0.4s ease;
  opacity: 0.7;
  transform: scale(0.95);
  position: relative;
}

.gallery-item:hover {
  opacity: 1;
  transform: scale(1);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
    .gallery-item {
        flex: 0 0 240px; /* Slightly larger on desktop but still compact */
    }
}

.slider-btn {
  background: var(--surface-dark);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 5;
  display: none; /* Hidden on mobile initially */
}

@media (min-width: 768px) {
    .slider-btn {
        display: grid;
        place-items: center;
    }
    .slider-btn:hover {
        background: var(--primary-color);
        transform: scale(1.1);
    }
}

/* Privacy */
.privacy-container {
  background: var(--surface-dark);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.last-update {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.privacy-content h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p,
.privacy-content ul {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.privacy-list li,
.privacy-content ul li {
  margin-bottom: 0.5rem;
  list-style-position: inside;
}

/* Footer */
footer {
  background: #0b1120;
  padding: 4rem 5% 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--text-dim);
}

.social-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

/* Improved Responsiveness */
@media (max-width: 991px) {
  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 6rem;
  }

  .hero-text h1 {
    font-size: 2.5rem; /* Smaller for mobile */
  }

  .hero-text p {
    font-size: 1rem;
    margin: 0 auto 2rem;
  }

  .hero-image img {
    max-width: 280px; /* Even smaller on mobile */
    margin: 0 auto;
  }
  
  .navbar {
    padding: 1rem 5%;
  }
  
  .nav-links { 
    display: none; 
  }
  
  .section {
    padding: 4rem 5%; /* Less padding on mobile */
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .gallery-item {
    flex: 0 0 180px; /* Very compact on small screens */
  }
}
