@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --primary: #6B4E71;
  --secondary: #9B7EAC;
  --accent: #D4A5A5;
  --dark: #2C1810;
  --light: #F5F1ED;
  --cream: #FFF8F0;
  --text: #3A3A3A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Text', serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 15px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Crimson Text', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  font-style: italic;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--light) 100%);
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(155, 126, 172, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 165, 165, 0.1) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero h1 {
  font-size: 72px;
  color: var(--primary);
  margin-bottom: 25px;
  animation: fadeInUp 1s ease;
  font-style: italic;
}

.hero-subtitle {
  font-size: 24px;
  color: var(--secondary);
  margin-bottom: 30px;
  font-family: 'Crimson Text', serif;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

.btn {
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(107, 78, 113, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 15px;
  font-style: italic;
}

.section-header p {
  font-size: 18px;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.feature-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 48px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text);
  line-height: 1.7;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.course-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.course-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.course-content {
  padding: 30px;
}

.course-tag {
  display: inline-block;
  padding: 6px 15px;
  background: var(--light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}

.course-card h3 {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 12px;
}

.course-card p {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--light);
}

.course-duration {
  font-size: 14px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Crimson Text', serif;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--secondary);
  transform: rotate(90deg);
}

.modal-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.modal-body {
  padding: 40px;
}

.modal-body h2 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 20px;
}

.modal-body .course-tag {
  margin-bottom: 20px;
}

.modal-body p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.modal-body h3 {
  font-size: 24px;
  color: var(--primary);
  margin: 30px 0 15px;
}

.modal-body ul {
  list-style: none;
  margin-bottom: 20px;
}

.modal-body li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
}

.modal-body li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.stories-grid {
  display: grid;
  gap: 50px;
}

.story-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 300px 1fr;
  transition: all 0.3s ease;
}

.story-card:hover {
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content {
  padding: 40px;
}

.story-content h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 10px;
}

.story-role {
  font-size: 14px;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 20px;
  font-style: italic;
}

.story-content p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 15px;
}

.story-quote {
  font-family: 'Crimson Text', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--primary);
  padding: 20px;
  border-left: 4px solid var(--secondary);
  background: var(--light);
  margin-top: 20px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 15px;
}

.contact-icon {
  font-size: 24px;
  color: var(--secondary);
  margin-top: 3px;
}

.contact-item-content h4 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-item-content p {
  margin: 0;
  color: var(--text);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--light);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  font-size: 28px;
  margin-bottom: 15px;
  font-style: italic;
}

.footer-about p {
  line-height: 1.7;
  opacity: 0.9;
}

.footer-links h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  opacity: 0.8;
}

.company-info {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 15px;
  margin-top: 40px;
  font-size: 13px;
  line-height: 1.8;
}

.company-info h4 {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.company-info p {
  margin-bottom: 8px;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.legal-content h1 {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 30px;
}

.legal-content h2 {
  font-size: 28px;
  color: var(--primary);
  margin: 40px 0 20px;
}

.legal-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.legal-content ul {
  margin: 20px 0;
  padding-left: 30px;
}

.legal-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 100px 40px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-image {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-header h2 {
    font-size: 36px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .features-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 30px 20px;
  }

  .modal-body {
    padding: 30px 20px;
  }

  .company-info {
    padding: 20px;
    font-size: 12px;
  }
}
