/* Cosmic Hero Styles - Fully Responsive */
:root {
  /* Base Colors */
  --color-white: #fff;
  --color-black: #000;
  --color-gray-light: #f8f9fa;
  --color-gray: #666;
  --color-gray-dark: #333;
  --color-gray-border: #e9ecef;
  
  /* Primary Colors */
  --color-primary: #0066cc;
  --color-primary-dark: #0055aa;
  --color-primary-light: rgba(102, 126, 234, 0.1);
  
  /* Secondary Colors */
  --color-secondary: #667eea;
  --color-secondary-dark: #764ba2;
  
  /* Text Colors */
  --color-text: #333;
  --color-text-light: #666;
  --color-text-dark: #2c3e50;
  --color-text-inverse: white;
  
  /* Background Colors */
  --color-bg-dark: #2c3e50;
  --color-bg-darker: #34495e;
  --color-bg-light: #f5f5f5;
  
  /* Accent Colors */
  --color-accent: #667eea;
  --color-accent-light: #bdc3c7;
  
  /* Shadow Colors */
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-shadow-dark: rgba(0, 0, 0, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
}

.cosmic-hero {
    position: relative;
    height: 100vh;
    min-height: 600px; /* Reduced from 700px */
    width: 100%;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse);
    padding: 0 15px;
    margin-top: 60px;
}

/* Cosmic background elements */
.cosmic-orbit {
    position: absolute;
    width: 150vmax; /* Changed from vw to vmax for better responsiveness */
    height: 150vmax;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate 120s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cosmic-orbit::before,
.cosmic-orbit::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: inherit;
    border-radius: inherit;
    animation: inherit;
    animation-duration: 80s;
}

.cosmic-orbit::before {
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
}

.cosmic-orbit::after {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation-direction: reverse;
}

.cosmic-particle-1,
.cosmic-particle-2,
.cosmic-particle-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    filter: blur(10px);
    animation: pulse 8s ease-in-out infinite alternate;
}

.cosmic-particle-1 {
    width: 200px; /* Reduced from 300px */
    height: 200px;
    top: -50px; /* Adjusted position */
    right: -50px;
    animation-delay: 0s;
}

.cosmic-particle-2 {
    width: 150px; /* Reduced from 200px */
    height: 150px;
    bottom: -30px; /* Adjusted position */
    left: -30px;
    animation-delay: 2s;
}

.cosmic-particle-3 {
    width: 100px; /* Reduced from 150px */
    height: 100px;
    top: 20%; /* Adjusted position */
    right: 15%;
    animation-delay: 4s;
}

/* Destination cards */
.destination-card {
    position: absolute;
    width: clamp(80px, 10vw, 150px); /* Responsive sizing */
    height: clamp(80px, 10vw, 150px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: translate(calc(var(--x-pos) - 50%), calc(var(--y-pos) - 50%));
    opacity: 0;
    animation: floatIn 1s ease-out forwards;
    animation-delay: var(--delay);
    z-index: 1;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover {
    transform: translate(calc(var(--x-pos) - 50%), calc(var(--y-pos) - 50%)) scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.destination-card:hover img {
    transform: scale(1.2);
}

/* Content styles */
.cosmic-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 100%;
    padding: 0 15px;
}

.cosmic-title {
    font-size: clamp(2rem, 8vw, 4rem); /* Adjusted range */
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px; /* Reduced from 2px */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: letterDrop 0.5s ease forwards;
    animation-delay: var(--delay);
}

.space {
    width: 0.3em; /* Reduced from 0.5em */
}

.cosmic-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.3rem); /* Adjusted range */
    margin-bottom: 2rem;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3em; /* Reduced from 0.5em */
}

.word {
    opacity: 0;
    transform: translateY(15px); /* Reduced from 20px */
    animation: wordFade 0.8s ease forwards;
    animation-delay: var(--delay);
}

/* Button styles */
.cosmic-buttons {
    display: flex;
    gap: 1rem; /* Reduced from 1.5rem */
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem; /* Reduced from 3rem */
}

.cosmic-btn {
    position: relative;
    padding: 0.8rem 2rem; /* Reduced from 1rem 2.5rem */
    border-radius: 50px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cosmic-btn span {
    position: relative;
    z-index: 2;
}

.cosmic-btn-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    top: 0;
    left: -100%;
    transition: all 0.6s ease;
    z-index: 1;
}

.cosmic-btn:hover .cosmic-btn-hover {
    left: 100%;
}

.cosmic-btn-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Reduced shadow */
}

.cosmic-btn-primary:hover {
    transform: translateY(-3px); /* Reduced from -5px */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.cosmic-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cosmic-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Scroll indicator */
.cosmic-scroll {
    position: absolute;
    bottom: 20px; /* Reduced from 30px */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.cosmic-scroll-line {
    width: 2px;
    height: 40px; /* Reduced from 50px */
    background: linear-gradient(to bottom, white, transparent);
    animation: scrollPulse 2s ease infinite;
}

/* Animations (unchanged) */
@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.25; }
    100% { transform: scale(1); opacity: 0.15; }
}

@keyframes floatIn {
    0% { opacity: 0; transform: translate(calc(var(--x-pos) - 50%), calc(var(--y-pos) - 50% + 100px)); }
    100% { opacity: 1; transform: translate(calc(var(--x-pos) - 50%), calc(var(--y-pos) - 50%)); }
}

@keyframes letterDrop {
    0% { opacity: 0; transform: translateY(-30px); }
    50% { opacity: 0.5; transform: translateY(0); }
    75% { transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes wordFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); height: 40px; }
    50% { transform: translateY(8px); height: 25px; }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 992px) {
    .cosmic-hero {
        min-height: 500px;
    }
    
    .cosmic-particle-1 {
        width: 150px;
        height: 150px;
    }
    
    .cosmic-particle-2 {
        width: 120px;
        height: 120px;
    }
    
    .cosmic-particle-3 {
        width: 80px;
        height: 80px;
    }
    
    .destination-card {
        width: clamp(70px, 8vw, 120px);
        height: clamp(70px, 8vw, 120px);
    }
}

@media (max-width: 768px) {
    .cosmic-hero {
        min-height: 450px;
        margin-top: 50px;
    }
    
    .cosmic-title {
        flex-direction: row;
        align-items: center;
    }
    
    .space {
        display: none;
    }
    
    .cosmic-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .cosmic-btn {
        width: 100%;
        max-width: 220px;
    }
    
    .cosmic-orbit {
        width: 200vmax;
        height: 200vmax;
    }
}

@media (max-width: 480px) {
    .cosmic-hero {
        min-height: 400px;
        padding: 0 10px;
    }
    
    .cosmic-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        letter-spacing: 0.5px;
    }
    
    .cosmic-subtitle {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }
    
    .destination-card {
        width: 60px;
        height: 60px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    
    .cosmic-scroll {
        bottom: 15px;
    }
    
    .cosmic-scroll-line {
        height: 30px;
    }
    
    @keyframes scrollPulse {
        0%, 100% { transform: translateY(0); height: 30px; }
        50% { transform: translateY(5px); height: 20px; }
    }
}

/* Orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .cosmic-hero {
        min-height: 50vh;
        height: auto;
        padding: 40px 15px;
    }
    
    .cosmic-content {
        padding: 40px 0;
    }
    
    .cosmic-title {
        margin-bottom: 0.5rem;
    }
    
    .cosmic-buttons {
        margin-top: 1.5rem;
    }
    
    .cosmic-scroll {
        display: none;
    }
}