/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Variables for Colors */
:root {
  /* Primary Colors */
  --primary-dark: #2d1653;
  --primary-main: #372179;
  --primary-light: #30227d;

  /* Accent Colors */
  --accent-pink: #b66281;
  --accent-purple: #7e377e;
  --accent-lavender: #c18abc;

  /* Highlight Colors */
  --highlight-gold: #e2b069;
  --highlight-coral: #e08778;

  /* Background Colors */
  --bg-light: #faf9fa;
  --bg-soft: #f9f4f6;
  --white: #ffffff;

  /* Text Colors */
  --text-dark: #2d1653;
  --text-light: #666;
  --text-white: #ffffff;

  /* Shadows */
  --shadow-light: 0 2px 10px rgba(55, 33, 121, 0.1);
  --shadow-medium: 0 4px 20px rgba(55, 33, 121, 0.15);
  --shadow-heavy: 0 8px 30px rgba(55, 33, 121, 0.2);
  --glow: 0 0 20px rgba(55, 33, 121, 0.3);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* Hero Section - Other Pages (60vh) */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #372179 0%, #b66281 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}


.hero .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 0.3);
    font-family: 'Playfair Display', serif;
}

.hero .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    opacity: 0.9;
}

/* Hero Section - Main (Index) (100vh) */
.hero.home {
    padding: 100px 0;
    background: linear-gradient(135deg, #372179 0%, #b66281 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Larger text sizes for index/home hero section */
.hero.home .hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 0.3);
    font-family: 'Playfair Display', serif;
}

.hero.home .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    opacity: 0.9;
}
/* Animated Stars in Hero */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.floating-icon {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 0.3);
    font-family: 'Playfair Display', serif;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
   opacity: 0.9;
}

.hero-content .btn.btn-primary {
    padding: 0.75rem 1.5rem;
    background: #e08778;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 14px rgb(224, 135, 120, 0.5);
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    display: inline-block;
}

.hero-content .btn.btn-primary:hover {
    transform: translateY(-5px);
    background: #ff7a6e;
    box-shadow: 0 6px 20px rgb(255, 122, 110, 0.7);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-weight: 400;
}

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

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

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(55, 33, 121, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(55, 33, 121, 0.6);
  }
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Scale In on Load */
.scale-in {
  animation: scaleIn 0.6s ease-out;
}

/* Fade In Text */
.fade-in-text {
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

/* Navigation - Fixed Purple Color Issue */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(55, 33, 121, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(55, 33, 121, 0.3);
  border-bottom: 1px solid rgba(55, 33, 121, 0.2);
}

.navbar.scrolled {
  background: rgba(250, 249, 250, 0.98);
  box-shadow: var(--shadow-medium);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-main);
  text-decoration: none;
}

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

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
  color: var(--text-white);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
  animation: glow 2s infinite;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: var(--text-white);
  box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(182, 98, 129, 0.4);
}

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

.btn-outline:hover {
  background: var(--primary-main);
  color: var(--text-white);
  box-shadow: var(--glow);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple), var(--highlight-gold));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: translateX(0);
}

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

/* Card Hover Effects */
.card-flip {
  perspective: 1000px;
  height: 300px;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  box-shadow: var(--shadow-light);
}

.card-flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
  color: var(--text-white);
}

.card-expand {
  transition: all 0.4s ease;
}

.card-expand:hover {
  transform: scale(1.05);
  z-index: 10;
}

.card-pulse:hover {
  animation: pulse 1.5s infinite;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--bg-soft);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-main);
  background: var(--white);
  box-shadow: 0 0 15px rgba(55, 33, 121, 0.2);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.8rem;
  color: var(--primary-main);
  background: var(--white);
  padding: 0 0.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
  color: var(--text-white);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

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

.footer-section h3 {
  color: var(--highlight-gold);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--text-white);
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--highlight-gold);
}

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

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }

/* Media Queries */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .container {
    padding: 0 0.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .section {
    padding: 2rem 0;
  }

  .card {
    padding: 1rem;
    border-radius: 15px;
  }

  .nav-logo {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .navbar {
    background: rgba(45, 22, 83, 0.95);
  }

  .navbar.scrolled {
    background: rgba(45, 22, 83, 0.98);
  }

  .nav-link {
    color: var(--text-white);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}