/* Custom Styles untuk Lestari Bahari */

body {
    font-family: 'Inter', sans-serif;
}

/* Ocean Background */
.ocean-background {
    background: linear-gradient(-135deg, #0f172a, #1e3a8a, #3b82f6);
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
    position: relative;
    overflow: hidden;
}

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

/* Text Shadow Effects */
.text-shadow {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.text-shadow-sm {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Navigation Bubbles */
.nav-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-bubble:hover {
    transform: translateY(-8px);
}

.nav-bubble-icon {
    width: 6rem;
    height: 6rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-bubble:hover .nav-bubble-icon {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

.group:hover .nav-bubble-icon {
    transform: scale(1.05);
}

/* Marine Life Animation */
.marine-life {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.6;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(10px) rotate(5deg); }
    50% { transform: translateY(0) translateX(0) rotate(0deg); }
    75% { transform: translateY(20px) translateX(-10px) rotate(-5deg); }
    100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

.marine1 { top: 15%; left: 5%; animation-duration: 25s; animation-delay: 0s; }
.marine2 { top: 20%; left: 85%; animation-duration: 30s; animation-delay: -5s; }
.marine3 { top: 50%; right: 5%; animation-duration: 22s; animation-delay: -10s; }
.marine4 { bottom: 10%; right: 15%; animation-duration: 28s; animation-delay: -3s; }
.marine5 { bottom: 20%; left: 15%; animation-duration: 26s; animation-delay: -7s; }
.marine6 { top: 80%; left: 50%; animation-duration: 24s; animation-delay: -12s; }

/* Bubble Animation */
.bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
    bottom: -50px;
    z-index: 0;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-120vh) scale(1.5);
        opacity: 0;
    }
}

.bubble1 { width: 10px; height: 10px; left: 10%; animation-duration: 15s; animation-delay: 0s; }
.bubble2 { width: 20px; height: 20px; left: 20%; animation-duration: 12s; animation-delay: 3s; }
.bubble3 { width: 15px; height: 15px; left: 35%; animation-duration: 18s; animation-delay: 1s; }
.bubble4 { width: 8px; height: 8px; left: 50%; animation-duration: 20s; animation-delay: 4s; }
.bubble5 { width: 25px; height: 25px; left: 65%; animation-duration: 10s; animation-delay: 0s; }
.bubble6 { width: 12px; height: 12px; left: 80%; animation-duration: 16s; animation-delay: 2s; }

/* Dashboard Phylum Cards - New Minimalist Design */
.phylum-card {
    background-color: white;
    border-radius: 1.5rem; /* rounded-3xl */
    padding: 1.5rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.phylum-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.07);
}

.phylum-card-icon {
    margin-bottom: 1rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.04);
}

.phylum-card-icon i {
    width: 2rem;
    height: 2rem;
}

.phylum-card-title {
    font-weight: 700;
    font-size: 1.125rem; /* text-xl */
    line-height: 1.75rem;
    color: #1e293b; /* slate-800 */
    text-align: center;
}

.species-count {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: white;
}

/* Animasi gambar untuk filum tertentu */
.phylum-animation {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.4;
    animation: float-gentle 4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.phylum-animation.shark { animation-delay: 0s; }
.phylum-animation.fish { animation-delay: 0.5s; }
.phylum-animation.turtle { animation-delay: 1s; }
.phylum-animation.coral { animation-delay: 1.5s; }
.phylum-animation.shell { animation-delay: 2s; }
.phylum-animation.octopus { animation-delay: 2.5s; }

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

@keyframes gentleFloat {
    0% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-15px) rotate(2deg) scale(1.05);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-8px) rotate(-1deg) scale(0.95);
        opacity: 0.7;
    }
    75% { 
        transform: translateY(-20px) rotate(3deg) scale(1.02);
        opacity: 0.9;
    }
    100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
}

@keyframes coralSway {
    0% { transform: rotate(-1deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.03); }
    50% { transform: rotate(-0.5deg) scale(0.98); }
    75% { transform: rotate(2.5deg) scale(1.01); }
    100% { transform: rotate(-1deg) scale(1); }
}

@keyframes shellRotate {
    0% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-12px) rotate(180deg);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(0px) rotate(360deg);
        opacity: 0.5;
    }
}

@keyframes sharkGlide {
    0% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% { 
        transform: translateX(8px) translateY(-3px) rotate(1deg);
        opacity: 0.9;
    }
    50% { 
        transform: translateX(-4px) translateY(-6px) rotate(-0.5deg);
        opacity: 0.8;
    }
    75% { 
        transform: translateX(12px) translateY(-2px) rotate(1.5deg);
        opacity: 0.9;
    }
    100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
}

@keyframes whaleDive {
    0% { 
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-18px) scale(1.08);
        opacity: 0.9;
    }
    100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
}

.floating-element {
    position: absolute;
    font-size: 1.5rem;
    animation: gentleFloat 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.floating-element:nth-child(1) { animation: gentleFloat 10s ease-in-out infinite; }
.floating-element:nth-child(2) { animation: coralSway 11s ease-in-out infinite; }
.floating-element:nth-child(3) { animation: coralSway 13s ease-in-out infinite; }
.floating-element:nth-child(4) { animation: shellRotate 12s ease-in-out infinite; }
.floating-element:nth-child(5) { animation: shellRotate 14s ease-in-out infinite; }
.floating-element:nth-child(6) { animation: sharkGlide 16s ease-in-out infinite; }
.floating-element:nth-child(7) { animation: whaleDive 18s ease-in-out infinite; }
.floating-element:nth-child(8) { animation: gentleFloat 15s ease-in-out infinite; }
.floating-element:nth-child(9) { animation: coralSway 17s ease-in-out infinite; }
.floating-element:nth-child(10) { animation: shellRotate 19s ease-in-out infinite; }

/* Compact Card Styles */
.phylum-card {
    transform: scale(0.85);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.phylum-card:hover {
    transform: scale(0.9) translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.animal-card {
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.animal-card:hover {
    transform: scale(0.85) translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Image Sizing and Display */
.animal-card img,
.detail-gallery img,
.image-modal img {
    object-fit: contain !important;
    background-color: #f8fafc;
    background-image: 
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%), 
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%), 
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Ensure images fit properly in their containers */
.animal-card .relative {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem; /* h-48 equivalent */
}

.detail-gallery .aspect-video,
.detail-gallery .aspect-square {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal image sizing */
.image-modal .modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain !important;
    background-color: #f8fafc;
}

/* Minimalist Dashboard Styles */
.dashboard-minimalist {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

/* Subtle Card Hover Effects */
.phylum-card-minimalist {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.phylum-card-minimalist:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

/* Elegant Text Styling */
.text-elegant {
    color: #1e293b;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.text-subtle {
    color: #64748b;
    font-weight: 400;
}

/* Minimalist Button Styles */
.btn-minimalist {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #475569;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.btn-minimalist:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(148, 163, 184, 0.3);
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Subtle Animation */
@keyframes subtle-float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-2px); 
    }
}

.animate-subtle-float {
    animation: subtle-float 6s ease-in-out infinite;
}

/* Clean Grid Pattern */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Minimalist Header */
.header-minimalist {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Legal boxes hover effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Download button animations */
.download-btn {
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Notification animations */
.notification-slide-in {
    animation: slideInRight 0.3s ease-out;
}

.notification-slide-out {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}


