/* 
 * Aviar Background and Transparency Styles
 * Default Image Background Implementation
 */

/* Body setup */
body {
    position: relative;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    z-index: -1;
    pointer-events: none;
}

/* Transparent DataTable and Cards */
.table-responsive {
    background-color: transparent !important;
    border-radius: 8px;
    backdrop-filter: blur(3px);
}

.dataTables_wrapper {
    background-color: transparent !important;
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(3px);
}

table.dataTable {
    background-color: transparent !important;
}

table.dataTable tbody tr {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

table.dataTable tbody tr:hover {
    background-color: rgba(230, 247, 255, 0.4) !important;
}

table.dataTable tbody tr.odd {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

table.dataTable tbody tr.even {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

table.dataTable thead th {
    background-color: rgba(240, 240, 240, 0.3) !important;
}

/* Override Bootstrap table striped */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

/* DataTables specific overrides */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    background-color: transparent !important;
}

div.dataTables_wrapper div.dataTables_length select,
div.dataTables_wrapper div.dataTables_filter input {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

.card {
    background-color: transparent !important;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-body {
    background-color: transparent !important;
}

.card-header {
    background-color: rgba(13, 110, 253, 0.7) !important;
    backdrop-filter: blur(5px);
}

.chart-container {
    background-color: transparent !important;
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(3px);
}

canvas {
    background-color: transparent !important;
}

/* Modal transparency */
.modal-content {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.modal-body {
    background-color: rgba(255, 255, 255, 0.85) !important;
}

/* Container and sections */
.container {
    background-color: transparent !important;
}

/* Additional transparent elements */
.bg-light {
    background-color: rgba(248, 249, 250, 0.7) !important;
}

.bg-white {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

/* Form controls transparency */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Alert boxes */
.alert {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
}

/* Full Screen Hero Section */
.hero-fullscreen {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Video Background for Hero */
.hero-fullscreen #hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Animated Shrimp Image */
.swimming-shrimp {
    position: absolute;
    width: 50%;
    height: auto;
    max-width: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    animation: swimAround 20s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes swimAround {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    15% {
        transform: translate(-40%, -60%) rotate(-5deg) scale(1.05);
    }
    30% {
        transform: translate(-60%, -45%) rotate(3deg) scale(0.95);
    }
    45% {
        transform: translate(-55%, -55%) rotate(-3deg) scale(1.02);
    }
    60% {
        transform: translate(-45%, -50%) rotate(2deg) scale(0.98);
    }
    75% {
        transform: translate(-52%, -48%) rotate(-2deg) scale(1.03);
    }
    90% {
        transform: translate(-48%, -52%) rotate(4deg) scale(0.97);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
}

.hero-fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03) 0px,
            transparent 2px,
            transparent 4px,
            rgba(255, 255, 255, 0.03) 6px
        ),
        radial-gradient(ellipse at top, rgba(100, 200, 255, 0.15) 0%, transparent 60%);
    z-index: 1;
    animation: waterShimmer 8s ease-in-out infinite;
}

@keyframes waterShimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.hero-fullscreen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Bubbles Effect */
.hero-fullscreen .bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    border-radius: 50%;
    opacity: 0.6;
    z-index: 1;
    animation: riseBubble linear infinite;
}

.hero-fullscreen .bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.hero-fullscreen .bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-duration: 6s;
    animation-delay: 2s;
}

.hero-fullscreen .bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.hero-fullscreen .bubble:nth-child(4) {
    width: 30px;
    height: 30px;
    left: 50%;
    animation-duration: 7s;
    animation-delay: 3s;
}

.hero-fullscreen .bubble:nth-child(5) {
    width: 25px;
    height: 25px;
    left: 65%;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

.hero-fullscreen .bubble:nth-child(6) {
    width: 35px;
    height: 35px;
    left: 80%;
    animation-duration: 8s;
    animation-delay: 4s;
}

.hero-fullscreen .bubble:nth-child(7) {
    width: 15px;
    height: 15px;
    left: 90%;
    animation-duration: 6s;
    animation-delay: 2.5s;
}

.hero-fullscreen .bubble:nth-child(8) {
    width: 45px;
    height: 45px;
    left: 15%;
    animation-duration: 11s;
    animation-delay: 5s;
}

.hero-fullscreen .bubble:nth-child(9) {
    width: 20px;
    height: 20px;
    left: 75%;
    animation-duration: 7s;
    animation-delay: 1.5s;
}

.hero-fullscreen .bubble:nth-child(10) {
    width: 30px;
    height: 30px;
    left: 45%;
    animation-duration: 9s;
    animation-delay: 3.5s;
}

@keyframes riseBubble {
    0% {
        bottom: -100px;
        opacity: 0;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateX(20px) scale(1.1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 110vh;
        opacity: 0;
        transform: translateX(-20px) scale(0.8);
    }
}

/* Navigation Buttons at Top */
.hero-nav {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
}

/* Hero Content - Centered */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-logo-container {
    text-align: center;
}

.hero-logo-large {
    height: 150px;
    width: auto;
    max-width: 700px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

.hero-title {
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin-top: 30px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    font-weight: 300;
    margin-top: 15px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 24px;
    margin-bottom: 8px;
}

.scroll-indicator span {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-btn i {
    font-size: 16px;
}

.hero-btn-text {
    display: inline-block;
}

/* Hero Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Full Screen Hero */
@media (max-width: 1024px) {
    .hero-logo-large {
        height: 120px;
        max-width: 500px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero-nav {
        padding: 0 30px;
    }
    
    .hero-logo-large {
        height: 100px;
        max-width: 400px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .hero-btn-text {
        display: none;
    }
    
    .hero-btn i {
        margin: 0 !important;
    }
    
    .scroll-indicator span {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .hero-nav {
        padding: 0 20px;
    }
    
    .hero-logo-large {
        height: 80px;
        max-width: 300px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-btn {
        padding: 8px 12px;
    }
    
    .scroll-indicator {
        bottom: 30px;
    }
}

