/* 
 * perchance.love CSS Stylesheet
 * A unique purple and gold theme with elegant styling
 */

/* ---------- Base Styles ---------- */
:root {
  /* Main Color Palette */
  --primary: #9c27b0;
  --primary-dark: #7b1fa2;
  --primary-light: #e1bee7;
  --secondary: #ffd700;
  --secondary-dark: #cca900;
  --accent: #673ab7;
  --accent-light: #d1c4e9;
  
  /* Neutral Colors */
  --dark: #1a0e2a;
  --light: #f5f0ff;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Box Shadow */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Typography Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

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

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

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  position: relative;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.gradient-text {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--primary-dark), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  color: var(--gray);
  font-size: 1.1rem;
}

/* ---------- Layout & Components ---------- */

/* Accent Line */
.accent-line {
  display: flex;
  width: 100%;
  height: 3px;
}

.accent-line span {
  height: 100%;
  flex-grow: 1;
}

.accent-line span:nth-child(1) {
  background-color: var(--primary);
}

.accent-line span:nth-child(2) {
  background-color: var(--primary-dark);
}

.accent-line span:nth-child(3) {
  background-color: var(--accent);
}

.accent-line span:nth-child(4) {
  background-color: var(--secondary-dark);
}

.accent-line span:nth-child(5) {
  background-color: var(--secondary);
}

/* Header */
.site-header {
  padding: var(--space-sm) 0;
  background-color: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

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

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

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
}

.logo-text .accent {
  color: var(--primary);
}

.main-nav .nav-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

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

.nav-cta {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.2);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(156, 39, 176, 0.3);
}

.nav-cta::after {
  display: none;
}

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

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

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

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* Hero Section */
.hero {
  padding: var(--space-xl) 0 calc(var(--space-xl) + 70px);
  position: relative;
  overflow: hidden;
  background-color: var(--light);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-content {
  z-index: 1;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  color: var(--gray);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.dream-visual {
  max-width: 100%;
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

/* Gallery Section */
.gallery {
  padding: var(--space-xl) 0;
  background-color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.gallery-item {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.item-content {
  padding: var(--space-md);
}

.item-content h3 {
  margin-bottom: var(--space-xs);
}

.item-content p {
  color: var(--gray);
  margin-bottom: var(--space-md);
}

.gallery-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* Features Section */
.features {
  padding: var(--space-xl) 0;
  background-color: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.feature-card {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.feature-icon {
  margin-bottom: var(--space-sm);
}

.features-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* About Section */
.about {
  padding: var(--space-xl) 0;
  background-color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-intro {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.about-list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.about-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.about-visual {
  max-width: 100%;
}

/* Footer */
.site-footer {
  padding: var(--space-lg) 0 var(--space-md);
  background-color: var(--dark);
  color: white;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.footer-brand .accent {
  color: var(--secondary);
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--gray-light);
  transition: color 0.3s ease;
}

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

.footer-cta {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
}

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

/* ---------- Responsive Styles ---------- */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero .container,
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-visual {
    order: -1;
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.3rem;
  }
  
  .menu-toggle {
    display: block;
    z-index: 110;
  }
  
  .main-nav .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: 80px var(--space-md) var(--space-md);
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  
  .main-nav .nav-list.active {
    right: 0;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-nav ul {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .gallery-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item,
  .feature-card {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
}
