/* ==========================================================================
   COSMIC HORIZON - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

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

/* Reset and Core Variables */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette */
  --bg-primary: #07050f;
  --bg-secondary: #0f0b24;
  --bg-glass: rgba(15, 11, 36, 0.6);
  --bg-glass-active: rgba(26, 20, 58, 0.85);
  
  --color-primary: #8a2be2;      /* Purple */
  --color-secondary: #00f3ff;    /* Cyan */
  --color-accent: #ff007f;       /* Pink/Magenta */
  
  --text-primary: #ffffff;
  --text-secondary: #c5c2d9;
  --text-muted: #74708c;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 243, 255, 0.3);
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  --grad-accent: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
  --grad-glow: radial-gradient(circle at top right, rgba(138, 43, 226, 0.15), transparent 60%);
  --grad-glow-left: radial-gradient(circle at bottom left, rgba(0, 243, 255, 0.1), transparent 60%);
  
  /* Shadows and Borders */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 20px rgba(0, 243, 255, 0.35);
  --shadow-glow-purple: 0 0 25px rgba(138, 43, 226, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    var(--grad-glow),
    var(--grad-glow-left),
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 80px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 300px 240px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 450px 120px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 700px 350px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 850px 200px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 1100px 180px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 1300px 400px, rgba(255,255,255,0.8), rgba(0,0,0,0));
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

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

.gradient-text {
  background: var(--grad-accent);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s linear infinite;
}

/* Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); }
  50% { box-shadow: 0 0 25px rgba(0, 243, 255, 0.5); }
}

@keyframes starPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Reusable Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  color: #ffffff;
  background: var(--grad-accent);
  background-size: 200% auto;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  opacity: 0;
  transition: var(--transition-normal);
  z-index: -1;
}

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

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 5, 15, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px 0;
  transition: var(--transition-normal);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: var(--grad-accent);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px var(--color-primary);
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--bg-primary);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-secondary);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(138, 43, 226, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-secondary);
  animation: starPulse 2s infinite;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-glass);
  padding-top: 32px;
}

.stat-item h3 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  animation: float 6s ease-in-out infinite;
  position: relative;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 40%);
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 60%);
  z-index: -1;
}

/* ==========================================================================
   DESTINATIONS SECTION
   ========================================================================== */
.destinations {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-tag {
  color: var(--color-secondary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.destination-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dest-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.dest-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.destination-card:hover .dest-img-wrapper img {
  transform: scale(1.08);
}

.dest-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: rgba(7, 5, 15, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.dest-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.dest-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.dest-content p {
  font-size: 0.9rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.dest-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
  font-size: 0.8rem;
}

.meta-label {
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.meta-val {
  font-weight: 600;
  color: #ffffff;
}

.destination-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 243, 255, 0.2);
}

/* ==========================================================================
   EXPERIENCE SECTION
   ========================================================================== */
.experience {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  position: relative;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.experience-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-item:nth-child(2) .feature-icon {
  background: rgba(255, 0, 127, 0.1);
  border-color: rgba(255, 0, 127, 0.2);
  color: var(--color-accent);
}

.feature-item:nth-child(3) .feature-icon {
  background: rgba(138, 43, 226, 0.1);
  border-color: rgba(138, 43, 226, 0.2);
  color: var(--color-primary);
}

.feature-text h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-text p {
  font-size: 0.9rem;
}

.experience-item-visual {
  position: relative;
}

.exp-graphic-box {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  background: rgba(15, 11, 36, 0.8);
  padding: 32px;
}

.exp-hud-ring {
  width: 200px;
  height: 200px;
  border: 2px dashed var(--color-secondary);
  border-radius: 50%;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: rotation 20s linear infinite;
}

.exp-hud-ring::before {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  animation: rotation-reverse 12s linear infinite;
}

.exp-hud-inner {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotation-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.exp-hud-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hud-stat-item {
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hud-stat-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.hud-stat-item .value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
}

/* ==========================================================================
   BOOKING/CONTACT SECTION
   ========================================================================== */
.booking {
  padding: 100px 0;
  position: relative;
}

.booking-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.form-group-full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(7, 5, 15, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group select option {
  background: var(--bg-secondary);
  color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.2);
}

.booking-form button {
  grid-column: span 2;
  margin-top: 16px;
  padding: 16px;
}

/* Form success notice */
.form-success-message {
  grid-column: span 2;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
  display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #04020a;
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-info p {
  font-size: 0.9rem;
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.social-icon:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-left: 4px;
}

.footer-newsletter h4 {
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  flex-grow: 1;
}

.newsletter-form input:focus {
  border-color: var(--color-secondary);
}

.newsletter-form button {
  padding: 10px 20px;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
  h1 {
    font-size: 3.25rem !important;
  }
  
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .experience-grid {
    gap: 32px;
  }
}

/* Tablets & Mobile Devices */
@media (max-width: 768px) {
  body {
    background-size: cover;
  }

  .navbar {
    padding: 12px 0;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 65px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: 64px 24px;
    gap: 32px;
    transition: 0.4s ease;
    border-top: 1px solid var(--border-glass);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links .btn {
    width: 100%;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-badge {
    margin: 0 auto 24px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-image-container {
    margin: 0 auto;
    max-width: 380px;
  }

  .destinations-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

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

  .experience-item-visual {
    order: -1;
  }

  .booking-wrapper {
    padding: 24px;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .form-group-full,
  .booking-form button {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem !important;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
