/* ===========================================
   Vibe In Pocket - Landing Page Styles
   Apple-inspired scroll effects & animations
   =========================================== */

/* ============ CSS Variables ============ */
:root {
    /* Ocean-inspired color palette */
    --ocean-deep: #0a1628;
    --ocean-dark: #0d2137;
    --ocean-medium: #134e6f;
    --ocean-light: #1a7a9e;
    --ocean-surface: #22a5c4;
    --ocean-foam: #7dd3e8;
    
    /* Coral & warm accents */
    --coral-pink: #ff6b9d;
    --coral-light: #ffa3c4;
    --sunset-orange: #ff9f43;
    --golden-sand: #ffd93d;
    
    /* Text colors */
    --text-white: #ffffff;
    --text-light: #e8f4f8;
    --text-muted: #8cb4c5;
    --text-subtle: #5a8a9e;
    
    /* Gradients */
    --gradient-ocean: linear-gradient(180deg, #0a1628 0%, #134e6f 50%, #1a7a9e 100%);
    --gradient-hero: linear-gradient(135deg, #0d2137 0%, #134e6f 40%, #22a5c4 100%);
    --gradient-coral: linear-gradient(135deg, #ff6b9d 0%, #ff9f43 100%);
    --gradient-sunset: linear-gradient(180deg, #134e6f 0%, #1a7a9e 30%, #ff9f43 80%, #ff6b9d 100%);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--ocean-deep);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============ Navigation ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.4s ease;
    /* Solid dark background at top for readability */
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* When scrolled down - more transparent glassmorphism effect */
.navbar.scrolled {
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.logo-icon {
    font-size: 1.75rem;
    animation: float-gentle 3s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.logo-accent {
    background: var(--gradient-coral);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.15);
}

.nav-link-icon {
    font-size: 1rem;
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-btn-login {
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn-login:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn-signup {
    background: var(--gradient-coral);
    color: white;
}

.nav-btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

/* ============ User Menu (Logged In State) - Modern Style ============ */
.nav-user-menu {
    position: relative;
}

.nav-user-menu.hidden {
    display: none !important;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* CIRCULAR AVATAR - Force circular shape */
.user-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    object-fit: cover !important;
    overflow: hidden !important;
    border: none !important;
    flex-shrink: 0;
    display: block;
}

.user-menu-trigger:hover .user-avatar {
    opacity: 0.9;
}

/* Show username next to avatar */
.user-name {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown arrow */
.menu-arrow {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--ocean-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: dropdownSlide 0.15s ease-out;
}

.user-dropdown.hidden {
    display: none;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* User info header in dropdown - clean text only */
.dropdown-user-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
}

.dropdown-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-item span {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 0;
}

.logout-btn {
    color: #f87171;
}

.logout-btn:hover {
    background: rgba(248, 113, 113, 0.1);
}

/* Mobile User Menu */
.mobile-user {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.mobile-user.hidden {
    display: none;
}

.mobile-logout-btn {
    background: rgba(255, 107, 157, 0.2);
    color: var(--coral-pink);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-logout-btn:hover {
    background: rgba(255, 107, 157, 0.3);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

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

.mobile-link {
    padding: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-auth {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============ Hero Section ============ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Start from top, not center */
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    padding-top: 100px; /* Space for fixed navbar (navbar is ~70px) */
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(34, 165, 196, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(255, 107, 157, 0.15), transparent),
        radial-gradient(ellipse 50% 30% at 80% 20%, rgba(255, 159, 67, 0.1), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
    margin-top: 40px; /* Extra space below navbar */
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-line-1 {
    color: var(--text-white);
    opacity: 0;
    animation: slideInWord 0.8s ease forwards 0.5s;
}

.title-line-2 {
    background: var(--gradient-coral);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: slideInWord 0.8s ease forwards 0.7s;
}

@keyframes slideInWord {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(-20deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.1s;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
}

.cta-primary {
    background: var(--gradient-coral);
    color: white;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.4);
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-primary:hover .cta-arrow {
    transform: translateX(5px);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Image with Scroll Zoom */
.hero-image-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
}

.image-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse at center, rgba(34, 165, 196, 0.4) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-image {
    position: relative;
    width: 100%;
    border-radius: 24px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    z-index: 1;
}

.hero-image:hover {
    transform: scale(1.02) rotateX(2deg);
}

/* Floating Bubbles */
.floating-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    animation: float-bubble linear infinite;
}

.bubble-1 {
    width: 30px;
    height: 30px;
    left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.bubble-2 {
    width: 20px;
    height: 20px;
    left: 15%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.bubble-3 {
    width: 40px;
    height: 40px;
    right: 10%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.bubble-4 {
    width: 15px;
    height: 15px;
    right: 25%;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

.bubble-5 {
    width: 25px;
    height: 25px;
    left: 40%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.bubble-6 {
    width: 18px;
    height: 18px;
    right: 40%;
    animation-duration: 7s;
    animation-delay: 1.5s;
}

@keyframes float-bubble {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(20px) scale(1);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.5s;
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--text-subtle);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce-scroll 2s ease-in-out infinite;
}

.scroll-arrow span {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-subtle);
    border-bottom: 2px solid var(--text-subtle);
    transform: rotate(45deg);
    margin-top: -6px;
}

@keyframes bounce-scroll {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ============ Features Section ============ */
.features-section {
    padding: var(--section-padding) 2rem;
    background: var(--ocean-deep);
    position: relative;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 107, 157, 0.15);
    color: var(--coral-pink);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 157, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-coral);
    border-radius: 20px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============ Ocean Gallery Section - Apple Style ============ */
.ocean-gallery {
    position: relative;
    min-height: 100vh;
    padding: 100px 0;
    background: linear-gradient(180deg, 
        var(--ocean-medium) 0%, 
        #0f3d5c 30%,
        var(--ocean-deep) 70%,
        #061220 100%
    );
    overflow: hidden;
}

/* Animated background bubbles */
.gallery-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gallery-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.05)
    );
    animation: bubble-float 8s ease-in-out infinite;
}

.gb-1 { width: 60px; height: 60px; left: 5%; bottom: -60px; animation-delay: 0s; animation-duration: 12s; }
.gb-2 { width: 30px; height: 30px; left: 15%; bottom: -30px; animation-delay: 2s; animation-duration: 10s; }
.gb-3 { width: 45px; height: 45px; left: 25%; bottom: -45px; animation-delay: 4s; animation-duration: 14s; }
.gb-4 { width: 25px; height: 25px; left: 55%; bottom: -25px; animation-delay: 1s; animation-duration: 11s; }
.gb-5 { width: 50px; height: 50px; left: 70%; bottom: -50px; animation-delay: 3s; animation-duration: 13s; }
.gb-6 { width: 35px; height: 35px; left: 85%; bottom: -35px; animation-delay: 5s; animation-duration: 9s; }
.gb-7 { width: 40px; height: 40px; left: 40%; bottom: -40px; animation-delay: 6s; animation-duration: 15s; }
.gb-8 { width: 20px; height: 20px; left: 95%; bottom: -20px; animation-delay: 7s; animation-duration: 8s; }

@keyframes bubble-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50vh) scale(1.1);
        opacity: 0.4;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100vh) scale(0.8);
        opacity: 0;
    }
}

/* Gallery container */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Gallery cards with 3D perspective */
.gallery-card {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.gallery-card-1 {
    animation: float-gentle 6s ease-in-out infinite;
}

.gallery-card-2 {
    animation: float-gentle 6s ease-in-out infinite;
    animation-delay: -3s;
}

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

.card-inner {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(6, 182, 212, 0.15);
}

.gallery-card:hover .card-inner {
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(255, 107, 157, 0.2);
}

.card-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(6, 182, 212, 0.3) 0%, 
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-card:hover .card-glow {
    opacity: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.08);
}

/* Shine effect on hover */
.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.15) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.gallery-card:hover .card-shine {
    transform: translateX(100%);
}

/* Card captions */
.card-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.gallery-card:hover .card-caption {
    opacity: 1;
    transform: translateY(0);
}

.caption-icon {
    font-size: 1.5rem;
}

.caption-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Center content */
.gallery-center {
    text-align: center;
    padding: 2rem;
    max-width: 300px;
}

.gallery-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    background: var(--gradient-coral);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.gallery-divider {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-shell {
    font-size: 2rem;
    animation: shell-spin 4s ease-in-out infinite;
}

@keyframes shell-spin {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

/* Floating decorative elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-shell {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    animation: float-around 20s ease-in-out infinite;
}

.float-1 { top: 10%; left: 10%; animation-delay: 0s; }
.float-2 { top: 20%; right: 15%; animation-delay: -5s; }
.float-3 { bottom: 25%; left: 8%; animation-delay: -10s; }
.float-4 { bottom: 15%; right: 10%; animation-delay: -15s; }

@keyframes float-around {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-10px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(30px, 10px) rotate(270deg);
    }
}

/* Responsive gallery */
@media (max-width: 1024px) {
    .gallery-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .gallery-center {
        order: -1;
    }
    
    .card-inner {
        width: 280px;
        height: 350px;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .ocean-gallery {
        padding: 60px 0;
    }
    
    .card-inner {
        width: 260px;
        height: 320px;
    }
    
    .gallery-title {
        font-size: 1.75rem;
    }
}

/* ============ Parallax Section ============ */
.parallax-section {
    height: 80vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.parallax-image-wrapper {
    position: absolute;
    inset: -20%;
    z-index: 0;
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        var(--ocean-deep) 0%, 
        rgba(10, 22, 40, 0.4) 50%, 
        var(--ocean-deep) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.parallax-content {
    text-align: center;
    padding: 2rem;
}

.parallax-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.parallax-text {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ Stats Section ============ */
.stats-section {
    padding: 80px 2rem;
    background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-dark) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    /* Prevent layout shifts during animation */
    min-width: 120px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-coral);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Stabilize number animation */
    font-variant-numeric: tabular-nums;
    min-width: 80px;
    display: inline-block;
    text-align: center;
    will-change: contents;
    /* Prevent flickering during updates */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-coral);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

/* ============ About Section ============ */
.about-section {
    padding: var(--section-padding) 2rem;
    background: var(--ocean-dark);
}

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

.about-text .section-title {
    text-align: left;
}

.about-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-description.highlight {
    color: var(--coral-light);
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-image-frame {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform: rotate(3deg);
    transition: transform 0.4s ease;
}

.about-image-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-image-frame img {
    display: block;
    width: 100%;
}

.about-float-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--gradient-coral);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    animation: float-card 3s ease-in-out infinite;
}

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

.float-emoji {
    font-size: 1.5rem;
}

.float-text {
    font-weight: 600;
    color: white;
}

/* ============ CTA Section ============ */
.cta-section {
    padding: var(--section-padding) 2rem;
    position: relative;
    overflow: hidden;
    background: var(--gradient-ocean);
}

.cta-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,60 C300,120 600,0 900,60 C1200,120 1200,120 1200,120 L0,120 Z'/%3E%3C/svg%3E") repeat-x;
    animation: wave-move 10s linear infinite;
}

.wave-1 { bottom: 0; animation-duration: 10s; opacity: 0.5; }
.wave-2 { bottom: 10px; animation-duration: 15s; opacity: 0.3; animation-direction: reverse; }
.wave-3 { bottom: 20px; animation-duration: 20s; opacity: 0.2; }

@keyframes wave-move {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-white {
    background: white;
    color: var(--ocean-deep);
}

.cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

.cta-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============ Footer ============ */
.footer {
    padding: 60px 2rem 30px;
    background: var(--ocean-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-column h4 {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--coral-pink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-subtle);
    font-size: 0.9rem;
}

.footer-hearts {
    color: var(--coral-pink);
}

/* ============ Responsive Design ============ */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text .cta-btn {
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-links,
    .nav-auth,
    .nav-user-menu {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .mobile-menu:not(.hidden) {
        display: flex;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-image-container {
        width: 95%;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-float-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-tagline {
        margin: 0 auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ============ Utility Classes ============ */
.hidden {
    display: none !important;
}

