/* AguaPez Custom Styles */

:root {
    --agua-navy: #4A90B8;
    --agua-light: #B8D4E8;
    --agua-turquoise: #5CBDD9;
    --agua-white: #FAFBFC;
    --agua-red: #E53E3E;
    --agua-pink: #F2B5B5;
    --agua-soft: #E8F4F8;
    --agua-muted: #6B8FA3;
}

/* Typography */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--agua-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Background Water Effects
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(92, 189, 217, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 144, 184, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(184, 212, 232, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, rgba(92, 189, 217, 0.01) 0%, rgba(74, 144, 184, 0.01) 50%, rgba(184, 212, 232, 0.01) 100%);
    z-index: -2;
    pointer-events: none;
    animation: gentleWaterFlow 20s ease-in-out infinite;
} */

@keyframes gentleWaterFlow {
    0%, 100% { 
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translateX(10px) translateY(-5px) scale(1.02);
        opacity: 0.4;
    }
    50% { 
        transform: translateX(-5px) translateY(10px) scale(0.98);
        opacity: 0.5;
    }
    75% { 
        transform: translateX(-10px) translateY(-10px) scale(1.01);
        opacity: 0.4;
    }
}

/* Custom Bootstrap Colors */
.btn-agua-navy {
    background-color: var(--agua-navy);
    border-color: var(--agua-navy);
    color: white;
}

.btn-agua-navy:hover {
    background-color: #3d7ca3;
    border-color: #3d7ca3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 184, 0.3);
}

.btn-agua-light {
    background-color: var(--agua-light);
    border-color: var(--agua-light);
    color: white;
}

.btn-agua-light:hover {
    background-color: #a5c2d4;
    border-color: #a5c2d4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 212, 232, 0.3);
}

.btn-agua-red {
    background-color: var(--agua-red);
    border-color: var(--agua-red);
    color: white;
}

.btn-agua-red:hover {
    background-color: #d44444;
    border-color: #d44444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 90, 90, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.text-agua-navy { color: var(--agua-navy) !important; }
.text-agua-light { color: var(--agua-light) !important; }
.text-agua-turquoise { color: var(--agua-turquoise) !important; }
.text-agua-red { color: var(--agua-red) !important; }
.text-agua-muted { color: var(--agua-muted) !important; }

.bg-agua-navy { background-color: var(--agua-navy) !important; }
.bg-agua-light { background-color: var(--agua-light) !important; }
.bg-agua-turquoise { background-color: var(--agua-turquoise) !important; }
.bg-agua-red { background-color: var(--agua-red) !important; }
.bg-agua-soft { background-color: var(--agua-soft) !important; }

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--agua-navy) !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--agua-red) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--agua-red);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: -76px;
    padding-top: 76px;
}

/* Body adjustments handled below */

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Bootstrap carousel overrides */
.carousel {
    height: 100vh;
}

.carousel-inner,
.carousel-item {
    height: 100vh;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    text-align: center;
    z-index: 10;
    bottom: auto;
    right: auto;
    padding-top: 0;
    padding-bottom: 0;
}

/* Hero Section Typography */
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1.8rem;
    font-weight: 300;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-slogan {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.text-white {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Water Ripple Effect */
/* .water-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 40%, rgba(255,255,255,0.02) 70%),
        radial-gradient(ellipse at 20% 80%, transparent 30%, rgba(255,255,255,0.03) 60%),
        radial-gradient(ellipse at 80% 20%, transparent 35%, rgba(255,255,255,0.02) 65%);
    animation: ripple 8s ease-in-out infinite;
    pointer-events: none;
} */

/* @keyframes ripple {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.1) rotate(180deg); 
        opacity: 0.6; 
    }
} */

/* Cards */
.water-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(92, 189, 217, 0.1);
}

.water-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 144, 184, 0.15);
    border-color: rgba(92, 189, 217, 0.2);
}

.service-card, .species-card, .gallery-card, 
.testimonial-card, .training-card, .commitment-card, .professional-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(92, 189, 217, 0.05);
}

.service-card:hover, .species-card:hover, .gallery-card:hover,
.testimonial-card:hover, .training-card:hover, .commitment-card:hover, .professional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(74, 144, 184, 0.15);
    border-color: rgba(92, 189, 217, 0.2);
}

/* Gallery Images */
.gallery-img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 144, 184, 0.2);
}

/* Object Cover Utility */
.object-cover {
    object-fit: cover;
}

/* Welcome Modal */
.water-themed .modal-body {
    background: linear-gradient(135deg, rgba(74, 144, 184, 0.1), rgba(92, 189, 217, 0.05));
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.floating-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0.1));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: floatBubble 6s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 60%;
    left: 70%;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 25px;
    height: 25px;
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
    50% { transform: translateY(-10px) scale(1.1); opacity: 1; }
}

/* Fish Background */
.fish-bg {
    display: none; /* Removed to fix spacing issues */
}

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

/* Testimonials Stars */
.stars i {
    font-size: 0.9rem;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: var(--agua-turquoise);
    box-shadow: 0 0 0 0.2rem rgba(92, 189, 217, 0.25);
}

/* Contact Messages */
.alert-success {
    background-color: rgba(92, 189, 217, 0.1);
    border-color: var(--agua-turquoise);
    color: var(--agua-navy);
}

.alert-danger {
    background-color: rgba(232, 90, 90, 0.1);
    border-color: var(--agua-red);
    color: #721c24;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        margin-top: -70px;
        padding-top: 70px;
    }

    .carousel {
        height: 70vh;
    }

    .carousel-inner,
    .carousel-item {
        height: 70vh;
    }

    .carousel-caption {
        width: 95%;
        max-width: 600px;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem !important;
    }

    .hero-description {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }

    .hero-slogan {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    .display-5 {
        font-size: 2rem;
    }

    .gallery-img {
        margin-bottom: 1rem;
    }

    .d-flex.flex-column.flex-md-row {
        gap: 1rem !important;
    }

    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 65vh;
        margin-top: -65px;
        padding-top: 65px;
    }

    .carousel {
        height: 65vh;
    }

    .carousel-inner,
    .carousel-item {
        height: 65vh;
    }

    .carousel-caption {
        width: 98%;
        max-width: 480px;
        padding: 1rem;
        top: 52%;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem !important;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem !important;
    }

    .hero-description {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.8rem !important;
    }

    .hero-slogan {
        font-size: 0.9rem;
        margin-bottom: 1.5rem !important;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 250px;
    }

    .d-flex.flex-column.flex-md-row {
        gap: 0.8rem !important;
    }

    /* Improve carousel indicators positioning */
    .carousel-indicators {
        bottom: 15px;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    /* Better control buttons for mobile */
    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
        opacity: 0.7;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 60vh;
        margin-top: -60px;
        padding-top: 60px;
    }

    .carousel {
        height: 60vh;
    }

    .carousel-inner,
    .carousel-item {
        height: 60vh;
    }

    .carousel-caption {
        top: 50%;
        padding: 0.8rem;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.6rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.6rem !important;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 0.6rem !important;
    }

    .hero-slogan {
        font-size: 0.8rem;
        margin-bottom: 1.2rem !important;
    }

    .btn-lg {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
        max-width: 220px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Image Hover Effects */
.rounded:hover, .rounded-3:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Social Links */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--agua-turquoise) !important;
    transform: translateY(-2px);
}

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

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

/* Hover effects for departments */
.hover-bg-light:hover {
    background-color: rgba(92, 189, 217, 0.1) !important;
    transition: background-color 0.3s ease;
    cursor: pointer;
    transform: translateX(5px);
}

/* Footer should be at bottom */
footer {
    margin-top: auto;
}

/* Ensure proper page height */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

@keyframes wave {
    0% { left: -100%; }
    100% { left: 100%; }
}
