/* 
   Suna Mirissa - Luxury Beachfront Hotel
   Style Sheet: Premium Hero Section & Navigation
*/

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

/* --- CSS Variables & Design System --- */
:root {
    /* Color Palette */
    --deep-ocean: #071A2E;
    --deep-ocean-rgb: 7, 26, 46;
    --turquoise: #00B8B8;
    --turquoise-rgb: 0, 184, 184;
    --warm-sand: #E7D7B1;
    --luxury-gold: #D4AF37;
    --luxury-gold-rgb: 212, 175, 55;
    --pure-white: #FFFFFF;
    --pure-white-rgb: 255, 255, 255;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
    
    /* Layout & Shadows */
    --glass-bg: rgba(7, 26, 46, 0.45);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.35);
    
    /* Animations */
    --transition-fast: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--deep-ocean);
    color: var(--pure-white);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

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

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

/* --- Header / Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all var(--transition-normal);
}

/* Scroll Active State (handled in JS) */
.main-header.scrolled {
    padding: 1rem 0;
    background: rgba(7, 26, 46, 0.85);
    backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--pure-white);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-accent {
    color: var(--luxury-gold);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.navbar {
    display: flex;
    align-items: center;
}

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

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--luxury-gold);
    transition: width var(--transition-normal);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Button Classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-nav {
    border: 1px solid var(--luxury-gold);
    background: rgba(212, 175, 55, 0.05);
    color: var(--luxury-gold);
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
}

.btn-nav:hover {
    background: var(--luxury-gold);
    color: var(--deep-ocean);
    box-shadow: var(--gold-glow);
}

.btn-primary {
    background: var(--luxury-gold);
    color: var(--deep-ocean);
    border: 1px solid var(--luxury-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--gold-glow), 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--pure-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--pure-white);
    color: var(--deep-ocean);
    border-color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

/* Mobile Nav Toggle Icon */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 110;
}

.mobile-nav-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: var(--pure-white);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--deep-ocean);
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-slow);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
}

.mobile-link:hover {
    color: var(--luxury-gold);
}

.mobile-booking-btn {
    margin-top: 1rem;
}

/* Mobile Toggle Hamburger Transformation */
.mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 80px; /* offset for waves */
}

/* Background image with kinetic zoom entrance */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.06);
    animation: slowZoomIn 8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Premium Vignette Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(7, 26, 46, 0.2) 0%, rgba(7, 26, 46, 0.5) 45%, rgba(7, 26, 46, 0.8) 80%, rgba(7, 26, 46, 0.95) 100%);
    z-index: 2;
}

/* Floating Particles Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Main Content Alignment */
.hero-content-container {
    position: relative;
    z-index: 4;
    max-width: 900px;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Frosted Glass Container --- */
.hero-glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 18px;
    padding: 3.5rem 4rem;
    box-shadow: var(--glass-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(0.95);
    opacity: 0;
    animation: cardEntrance 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    transition: transform 0.1s ease-out; /* for interactive tilt */
}

/* subtle border glow highlight */
.hero-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shineSweep 8s infinite linear;
    pointer-events: none;
}

/* Status Badge */
.status-badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: revealItem 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.status-badge {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--luxury-gold);
    padding: 0.4rem 1.1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--luxury-gold);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--luxury-gold);
    animation: pulseGlow 1.8s infinite ease-out;
}

/* Labels & Typography inside glass */
.small-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--warm-sand);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    animation: revealItem 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.main-heading {
    font-family: var(--font-heading);
    font-size: 4.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--pure-white) 30%, var(--warm-sand) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: revealItem 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.gold-text {
    background: linear-gradient(135deg, var(--luxury-gold) 0%, #FFF2CC 50%, var(--luxury-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
    display: block;
}

.tagline {
    font-size: 1.35rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: var(--pure-white);
    margin-bottom: 1.5rem;
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    animation: revealItem 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.15s forwards;
}

/* Elegant Divider */
.gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
    opacity: 0;
    transform: scaleX(0.2);
    animation: scaleDivider 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, rgba(212,175,55,0) 0%, rgba(212,175,55,0.7) 100%);
}

.divider-line:last-child {
    background: linear-gradient(270deg, rgba(212,175,55,0) 0%, rgba(212,175,55,0.7) 100%);
}

.divider-gem {
    width: 8px;
    height: 8px;
    border: 1px solid var(--luxury-gold);
    transform: rotate(45deg);
    background: var(--deep-ocean);
}

.description {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    letter-spacing: 0.4px;
    opacity: 0;
    transform: translateY(20px);
    animation: revealItem 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
}

/* CTA buttons inside card */
.cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: revealItem 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.55s forwards;
}


/* --- Hero Utilities & Floating Controls --- */
.hero-utilities {
    position: absolute;
    bottom: 95px; /* sit just above waves */
    left: 0;
    width: 100%;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 6;
    pointer-events: none; /* allow clicks underneath except active items */
}

.hero-utilities > * {
    pointer-events: auto; /* restore clicking */
}

/* Left Utility: Ambient Sound */
.sound-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(7, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.6rem 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all var(--transition-fast);
}

.sound-toggle-btn:hover {
    color: var(--luxury-gold);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(7, 26, 46, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Sound Wave bars animation */
.sound-waves {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    width: 18px;
    height: 14px;
}

.sound-waves span {
    width: 2px;
    height: 100%;
    background-color: currentColor;
    border-radius: 20px;
    transform-origin: bottom;
    transform: scaleY(0.25);
    transition: transform var(--transition-fast);
}

/* equalizer playing state toggled by class */
.sound-waves.playing span:nth-child(1) {
    animation: audioWave 1.2s ease-in-out infinite alternate;
}
.sound-waves.playing span:nth-child(2) {
    animation: audioWave 0.8s ease-in-out infinite alternate 0.2s;
}
.sound-waves.playing span:nth-child(3) {
    animation: audioWave 1.4s ease-in-out infinite alternate 0.1s;
}
.sound-waves.playing span:nth-child(4) {
    animation: audioWave 1.0s ease-in-out infinite alternate 0.3s;
}

.sound-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Center Utility: Mouse Scroll */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--warm-sand);
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--warm-sand);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background-color: var(--luxury-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouseWheel 1.6s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* Right Utility: Coordinates */
.hotel-coordinates {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
}


/* --- Wave Separator Footer CSS --- */
.wave-container {
    position: absolute;
    bottom: -2px; /* cover rounding/subpixel rendering artifacts */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}

.waves {
    position: relative;
    width: 100%;
    height: 12vh;
    min-height: 80px;
    max-height: 130px;
}

/* Wave Path Animation speeds */
.parallax-waves > use {
    animation: waveShift 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax-waves > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 9s;
}

.parallax-waves > use:nth-child(2) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax-waves > use:nth-child(3) {
    animation-delay: -5s;
    animation-duration: 17s;
}

.parallax-waves > use:nth-child(4) {
    animation-delay: -3s;
    animation-duration: 22s;
}


/* --- CSS Keyframe Animations --- */

/* Background Kinetic Reveal */
@keyframes slowZoomIn {
    0% {
        transform: scale(1.08);
        filter: blur(2px);
    }
    100% {
        transform: scale(1);
        filter: blur(0);
    }
}

/* Main Container Entrance */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(10deg) rotateY(0deg) scale(0.92) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1) translateY(0);
    }
}

/* Staggered Items Reveal */
@keyframes revealItem {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Expand Gold Divider */
@keyframes scaleDivider {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Frosted glass sweep shine */
@keyframes shineSweep {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

/* Pulsing Badge Indicator */
@keyframes pulseGlow {
    0% {
        transform: scale(0.65);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Equalizer Bars */
@keyframes audioWave {
    0% {
        transform: scaleY(0.2);
    }
    100% {
        transform: scaleY(1);
    }
}

/* Mouse Wheel scroll motion */
@keyframes scrollMouseWheel {
    0% {
        top: 6px;
        opacity: 1;
        height: 6px;
    }
    50% {
        top: 15px;
        opacity: 0.5;
        height: 4px;
    }
    100% {
        top: 22px;
        opacity: 0;
        height: 2px;
    }
}

/* Smooth Wave Floating Shift */
@keyframes waveShift {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.logoImg {
	margin-bottom: 20px;
	width: 300px;
	height: auto;
}


/* --- Responsive Media Queries --- */

/* Large screens layout overrides */
@media (min-width: 1400px) {
    .main-heading {
        font-size: 5.2rem;
    }
    .hero-glass-card {
        padding: 4.5rem 5.5rem;
    }
}

/* Tablets (landscape & portrait) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    .nav-menu {
        gap: 1.5rem;
    }
    .hero-glass-card {
        padding: 3rem 3rem;
    }
    .main-heading {
        font-size: 3.8rem;
    }
    .tagline {
        font-size: 1.2rem;
    }
    .hero-utilities {
        padding: 0 2rem;
    }
}

/* Small screen tablets & Mobile menu activator */
@media (max-width: 768px) {
    /* Navbar adjust */
    .navbar {
        display: none; /* Hide standard menu on mobile */
    }
    .mobile-nav-toggle {
        display: flex; /* Show Hamburger menu trigger */
    }
    .btn-nav {
        display: none; /* Hide header CTA to keep neat */
    }
    
    /* Hero Section adjust */
    .hero-section {
        padding-bottom: 60px;
    }
    
    .hero-glass-card {
        padding: 2.2rem 1.8rem;
        border-radius: 12px;
        width: 100%;
    }
    
    .main-heading {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
    
    .tagline {
        font-size: 1.05rem;
        letter-spacing: 1px;
    }
    
    .description {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 1.8rem;
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .cta-group .btn {
        width: 100%;
    }
    
    /* Utility indicators mobile stacking */
    .hero-utilities {
        bottom: 70px;
        padding: 0 1.5rem;
    }
    
    .utility-right {
        display: none; /* coordinates hidden on mobile to avoid clutter */
    }
    
    .sound-text {
        display: none; /* text hidden on mobile sound toggle to save space */
    }
    .sound-toggle-btn {
        padding: 0.6rem;
    }
}

/* Small Mobiles */
@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
        letter-spacing: 2px;
    }
    .logo-accent {
        font-size: 1.15rem;
    }
    
    .hero-glass-card {
        padding: 1.8rem 1.2rem;
    }
    
    .main-heading {
        font-size: 2.3rem;
    }
    
    .small-label {
        font-size: 0.75rem;
        letter-spacing: 4px;
    }
    
    .waves {
        height: 8vh;
        min-height: 60px;
    }
	
	.logoImg { 
		width: 70%; 
	}
}
