/*
 * Main stylesheet for perchance.site
 * Features modern design with full mobile responsiveness
 */

:root {
  --primary: #8e44ad;
  --secondary: #3498db;
  --dark: #1a1a2a;
  --light: #ffffff;
  --gray: #f5f7fa;
  --text: #2c3e50;
  --accent: #e74c3c;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius: 10px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--light);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(142, 68, 173, 0.05), transparent 70%),
              radial-gradient(circle at bottom left, rgba(52, 152, 219, 0.05), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 1.75rem;
  margin: 0;
  display: flex;
  align-items: center;
}

h1 span {
  font-weight: 300;
  font-size: 1.25rem;
  opacity: 0.8;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--light);
  position: relative;
}

h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

p {
  margin-bottom: 1rem;
}

section {
  padding: 5rem 0;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.logo-icon {
  margin-right: 0.75rem;
}

nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

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

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

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

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  max-width: 600px;
}

.hero h2 {
  font-size: 3rem;
  text-align: left;
  margin-bottom: 1rem;
}

.hero h2::after {
  margin: 1rem 0 0;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.cta-button {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(142, 68, 173, 0.4);
}

.hero-visual {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
}

.hero-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* About Section */
.about {
  background-color: var(--gray);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.text-link {
  color: var(--primary);
  font-weight: 500;
  display: inline-block;
  margin-top: 0.5rem;
  position: relative;
}

.text-link::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.text-link:hover::after {
  margin-left: 10px;
}

.about-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1rem;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Features Section */
.features {
  background-color: white;
}

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

.feature-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

/* Gallery Section */
.gallery {
  background-color: var(--gray);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-svg {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

.gallery-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.gallery-cta {
  text-align: center;
  margin-top: 3rem;
}

.gallery-cta p {
  margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials {
  background-color: white;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: 250px;
}

.testimonial-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  visibility: hidden;
}

.testimonial-item.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.author {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stars {
  color: gold;
  font-size: 1.2rem;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
}

/* Join Section */
.join {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 6rem 0;
}

.join h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.join h2::after {
  background: white;
  opacity: 0.5;
}

.join p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.join .cta-button {
  background: white;
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--light);
  padding: 4rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 2rem;
}

.footer-icon {
  margin-bottom: 1rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 600;
}

.footer-brand span {
  font-weight: 300;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex: 1;
  justify-content: flex-end;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p:first-child {
  margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 992px) {
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero h2 {
    text-align: center;
  }
  
  .hero h2::after {
    margin: 1rem auto 0;
  }
  
  .about-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin: 0 0 2rem;
  }
  
  .footer-links {
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding-top: 3rem;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .quote {
    font-size: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-slider {
    height: 300px;
  }
}
