/* OceanSoft Design System - Maldives Ocean Theme v3 */

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
}

[x-cloak] {
    display: none !important;
}

/* ===== GLASSMORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== OCEAN ANIMATED BACKGROUND ===== */
.ocean-bg {
    background: linear-gradient(-45deg, #f0fdff, #ccfbfe, #e0f7ff, #f8fafc, #ecfeff);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== FLOATING PARTICLES ===== */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
    animation: particle-float 6s ease-in-out infinite;
}

@keyframes particle-float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
    25% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
    50% { transform: translateY(-10px) translateX(-5px); opacity: 0.4; }
    75% { transform: translateY(-30px) translateX(5px); opacity: 0.7; }
}

/* ===== TEXT GRADIENT - IMPROVED FOR VISIBILITY ===== */
.text-gradient {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #155e75 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(14, 116, 144, 0.3));
}

/* Alternative: Solid dark ocean color for better contrast */
.text-ocean-dark {
    color: #0e7490;
    text-shadow: 0 2px 10px rgba(14, 116, 144, 0.2);
}

/* ===== ACCOUNT BUTTON WAVE ANIMATION - SMOOTH INFINITE ===== */
.account-btn {
    position: relative;
    overflow: hidden;
}

.account-btn .wave-animation {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(6, 182, 212, 0.2) 25%,
        rgba(34, 211, 238, 0.4) 50%,
        rgba(6, 182, 212, 0.2) 75%,
        transparent 100%
    );
    animation: wave-smooth 2.5s ease-in-out infinite;
}

@keyframes wave-smooth {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Second wave for continuous effect */
.account-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(6, 182, 212, 0.15) 25%,
        rgba(34, 211, 238, 0.3) 50%,
        rgba(6, 182, 212, 0.15) 75%,
        transparent 100%
    );
    animation: wave-smooth 2.5s ease-in-out infinite;
    animation-delay: 1.25s;
}

.account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animation delays */
.animation-delay-1 { transition-delay: 0.1s; }
.animation-delay-2 { transition-delay: 0.2s; }
.animation-delay-3 { transition-delay: 0.3s; }
.animation-delay-4 { transition-delay: 0.4s; }
.animation-delay-5 { transition-delay: 0.5s; }
.animation-delay-6 { transition-delay: 0.6s; }
.animation-delay-7 { transition-delay: 0.7s; }
.animation-delay-8 { transition-delay: 0.8s; }

/* ===== HERO ANIMATIONS ===== */
.animate-slide-up {
    animation: slide-up 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(100%);
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
    opacity: 0;
}

@keyframes fade-in {
    to { opacity: 1; }
}

.animate-scroll-bounce {
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ===== BLOB ANIMATIONS ===== */
.animate-blob {
    animation: blob 8s infinite ease-in-out;
}

@keyframes blob {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(30px, 10px) scale(1.02); }
}

/* ===== PULSE SLOW ===== */
.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* ===== FORM INPUTS ===== */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.form-input:focus {
    background: white;
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

/* ===== SHADOWS ===== */
.shadow-glass {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.shadow-ocean {
    box-shadow: 0 20px 40px -12px rgba(6, 182, 212, 0.2);
}

.shadow-ocean-lg {
    box-shadow: 0 30px 60px -15px rgba(6, 182, 212, 0.3);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #22d3ee, #06b6d4);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #06b6d4, #0891b2);
}

/* Hide scrollbar for horizontal scroll areas */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(6, 182, 212, 0.2);
    color: #0e7490;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .particle {
        width: 6px;
        height: 6px;
    }
    
    .animate-blob {
        display: none;
    }
}

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* ===== HERO TITLE SPECIAL STYLING ===== */
.hero-title-gradient {
    position: relative;
    color: #0e7490;
}

.hero-title-gradient::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #0891b2, #06b6d4, #0e7490);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
}

.hero-title-gradient::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    border-radius: 4px;
    opacity: 0.3;
}
