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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Fredoka', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fefefe;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Accessibility - Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, #ff6b9d, #ffc93c);
  box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Main Content */
main {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ff9a56, #ff6b9d);
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(#stars)"/></svg>');
  animation: twinkle 20s linear infinite;
}

@keyframes twinkle {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(360deg); }
}

.hero-content {
  flex: 1;
  max-width: 600px;
  color: #fff;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: slideInLeft 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.9;
  animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.85;
  line-height: 1.7;
  animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideInLeft 1s ease-out 0.6s both;
}

.hero-image {
  flex: 1;
  text-align: center;
  z-index: 2;
  position: relative;
  animation: slideInRight 1s ease-out 0.3s both;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: rotate(-3deg);
  transition: all 0.3s ease;
}

.hero-image img:hover {
  transform: rotate(0deg) scale(1.05);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: #fff;
  box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(78, 205, 196, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about {
  background: linear-gradient(135deg, #ffeaa7, #fab1a0);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2d3436;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #636e72;
  margin-bottom: 2rem;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #ff6b9d;
}

.stat-label {
  font-size: 0.9rem;
  color: #636e72;
  font-weight: 500;
}

.about-features h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2d3436;
}

.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.features-list li:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.8);
}

.feature-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Gallery Section */
.gallery {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay p {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Experience Section */
.experience {
  background: linear-gradient(135deg, #a8e6cf, #dcedc1);
}

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

.experience-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.experience-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2d3436;
}

.experience-card p {
  color: #636e72;
  line-height: 1.7;
}

.experience-card ul {
  list-style: none;
  color: #636e72;
}

.experience-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.experience-card li::before {
  content: '⭐';
  position: absolute;
  left: 0;
  color: #ff6b9d;
}

.availability {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}

.availability h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2d3436;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.availability-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.availability-item:hover {
  transform: scale(1.05);
}

.availability-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-method strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-method a {
  color: #fff;
  text-decoration: none;
}

.contact-method a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #fff;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

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

/* Footer */
.footer {
  background: #2d3436;
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  opacity: 0.8;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ff6b9d;
}

.footer-bottom {
  border-top: 1px solid #636e72;
  padding-top: 2rem;
  text-align: center;
  opacity: 0.8;
}

/* Error Page Styles */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ff9a56, #ff6b9d);
  color: #fff;
}

.error-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.error-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.superhero-icon {
  font-size: clamp(3rem, 8vw, 6rem);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

.error-message h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.error-message p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.error-suggestions {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

.error-suggestions h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.suggestions-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.suggestions-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.suggestions-list a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.suggestion-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.error-quote {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  font-style: italic;
}

.error-quote cite {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  opacity: 0.8;
}

/* Animations */
/* The .animate-in class will define the final state and transition */
.animate-in {
  opacity: 1 !important; /* Use !important to override any default 0 opacity */
  transform: translateY(0) !important; /* Use !important to override any default transform */
  transition: all 0.6s ease;
}

/* Base styles for elements that are animated - ensure they are visible by default */
.about,
.gallery,
.experience,
.contact {
  opacity: 1; /* Ensure sections are visible by default */
  transform: translateY(0); /* Ensure sections are in their final position by default */
  transition: none; /* Remove initial transition, it will be added by .animate-in */
}

.gallery-item,
.experience-card,
.availability-item {
  opacity: 1; /* Ensure grid items are visible by default */
  transform: translateY(0); /* Ensure grid items are in their final position by default */
  transition: none; /* Remove initial transition, it will be added by .animate-in */
}

.header-scrolled {
  background: rgba(255, 107, 157, 0.95);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-content {
    margin-bottom: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-grid,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    justify-content: center;
  }

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

  .error-hero {
    flex-direction: column;
    gap: 1rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .suggestions-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav {
    padding: 1rem;
  }

  .hero {
    padding: 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .btn {
    padding: 0.8rem 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .experience-grid,
  .availability-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
  }
  
  .btn-secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }
}

/* Focus Styles for Better Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #ff6b9d;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .contact-form-container {
    display: none;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .hero {
    background: #fff;
    color: #000;
  }
}
