/* ================================================
   WADA - West Africa Diving Association  
   Modern, Mobile-First Stylesheet
   ================================================ */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #005f99;
    --primary-dark: #003366;
    --primary-light: rgba(0, 95, 153, 0.1);
    --accent-color: #00aced;
    --text-dark: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    --background-light: #f8f9fa;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
    --border-radius: 15px;
    --border-radius-lg: 20px;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

section {
    padding: 60px 0;
}

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

a {
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

/* ===== TOP HEADER ===== */
.top-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 0.75rem 0;
}

.top-header a {
    transition: transform var(--transition-speed) ease;
}

.top-header a:hover {
    transform: scale(1.15);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
}

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

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    margin-top: 0.5rem;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-speed) ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
    left: 0;
}

/* ===== HERO/CAROUSEL ===== */
.carousel-item {
    position: relative;
}

.carousel-item img {
    height: 85vh;
    object-fit: cover;
    filter: brightness(0.5);
}

.carousel-caption {
    bottom: 35%;
    animation: fadeInUp 1s ease;
}

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

.carousel-caption h1 {
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.carousel-caption p {
    font-size: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* ===== SECTIONS ===== */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-bg {
    background-color: var(--background-light);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== HOVER EFFECTS ===== */
.hover-scale {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.hover-scale:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* ===== TEAM SECTION ===== */
.team-card {
    background: var(--white);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.team-card:hover::before {
    left: 0;
}

.team-card img {
    position: relative;
    z-index: 1;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
}

.team-card:hover img {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.team-card h5,
.team-card p {
    position: relative;
    z-index: 1;
}

/* ===== BANNER ===== */
.banner {
    background: url('../images/banner1.jpeg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 0;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.banner-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.banner h1 {
    font-size: 3.5rem;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.3rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Projects page banner with banner2 */
.projects-banner {
    background: url('../images/banner2.jpeg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 0;
}

.projects-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Team page banner with banner3 */
.team-banner {
    background: url('../images/banner3.jpeg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 0;
}

.team-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Accreditation page banner with diving1 */
.accreditation-banner {
    background: url('../images/diving1.png') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 0;
}

.accreditation-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Equipment page banner with banner2 */
.equipment-banner {
    background: url('../images/banner2.jpeg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 0;
}

.equipment-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Partners page banner with Hull_Inspection */
.partners-banner {
    background: url('../images/Hull_Inspection.png') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 0;
}

.partners-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Contact page banner with diving2 */
.contact-banner {
    background: url('../images/diving2.png') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 0;
}

.contact-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* ===== WORK CULTURE SECTION ===== */
.bg-primary-light {
    background: linear-gradient(135deg, var(--primary-light), rgba(0, 172, 237, 0.05));
    border-radius: var(--border-radius-lg);
    padding: 3rem;
}

.culture-icon {
    font-size: 4rem !important;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.culture-icon:hover {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-dark);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
    transition: all var(--transition-speed) ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--primary-dark), #001a33);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 0;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

footer a {
    color: var(--accent-color);
    font-weight: 600;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ===== SOCIAL ICONS ===== */
.social-icons a {
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.social-icons a:hover {
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Typography */
    .carousel-caption h1,
    .banner h1 {
        font-size: 2rem !important;
    }
    
    .carousel-caption p,
    .banner p {
        font-size: 1rem !important;
    }
    
    .display-5 {
        font-size: 2rem !important;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-bg {
        padding: 2rem 1rem;
    }
    
    /* Carousel */
    .carousel-item img {
        height: 50vh;
    }
    
    .carousel-caption {
        bottom: 20%;
    }
    
    /* Banner */
    .banner {
        height: 50vh;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team */
    .team-card img {
        width: 120px;
        height: 120px;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* WhatsApp */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
    
    /* Top Header */
    .top-header .container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    /* Typography */
    .carousel-caption h1,
    .banner h1 {
        font-size: 1.5rem !important;
    }
    
    .carousel-caption p,
    .banner p {
        font-size: 0.9rem !important;
    }
    
    .display-5 {
        font-size: 1.5rem !important;
    }
    
    h1 {
        font-size: 1.8rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.2rem !important;
    }
    
    .fs-5 {
        font-size: 1rem !important;
    }
    
    /* Sections */
    section {
        padding: 30px 0;
    }
    
    .section-bg {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }
    
    /* Carousel */
    .carousel-item img {
        height: 40vh;
    }
    
    .carousel-caption {
        bottom: 15%;
    }
    
    /* Banner */
    .banner {
        height: 40vh;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Team */
    .team-card img {
        width: 100px;
        height: 100px;
    }
    
    /* Work Culture Icons */
    .culture-icon {
        font-size: 3rem !important;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Spacing */
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Large Desktops (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .carousel-item img {
        height: 90vh;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-4 {
    border-radius: var(--border-radius) !important;
}

.rounded-pill {
    border-radius: 50px !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

/* ===== LOADING ANIMATION ===== */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* ===== PAGE TRANSITIONS ===== */
.page-transition {
    animation: fadeInUp 0.6s ease;
}

/* ===== ACCESSIBILITY ===== */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .whatsapp-float,
    footer {
        display: none;
    }
    
    body {
        color: black;
    }
}

/* ===== ADDITIONAL ENHANCEMENTS ===== */

/* Smooth transitions for all interactive elements */
button, a, input, select, textarea {
    transition: all var(--transition-speed) ease;
}

/* Prevent text selection on buttons */
button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Better form styling */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed) ease;
    width: 100%;
}

input:focus:not([type="checkbox"]):not([type="radio"]),
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 95, 153, 0.1);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Text selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(0, 95, 153, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Badge styling */
.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Alert styling */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
}

/* Link hover underline animation */
.content-link {
    position: relative;
    text-decoration: none;
}

.content-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pulse animation for emphasis */
@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 95, 153, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 95, 153, 0);
    }
}

.pulse-border {
    animation: pulse-border 2s infinite;
}

/* Mobile menu improvements */
@media (max-width: 992px) {
    .navbar-collapse {
        background: var(--primary-dark);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .dropdown-menu {
        background: rgba(0, 0, 0, 0.2);
        border: none;
    }
    
    .dropdown-item {
        color: white !important;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Extra small devices optimization */
@media (max-width: 400px) {
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .top-header .container {
        font-size: 0.85rem;
    }
    
    .social-icons a {
        font-size: 1.2rem;
        margin-right: 10px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        color: #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented if needed */
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .carousel-item img,
    .banner,
    .hero-team,
    .hero-blog {
        height: 70vh;
    }
}

/* Tablet landscape specific */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .carousel-caption h1,
    .banner h1 {
        font-size: 2.5rem !important;
    }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== BLOG PAGE STYLES ===== */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content-img {
    max-width: 90%;
    max-height: 80%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-in-out;
    object-fit: contain;
}

.modal-caption {
    color: #fff;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    animation: slideUp 0.3s ease-in-out 0.1s both;
}

@media (max-width: 768px) {
    .modal-content-img {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .modal-caption {
        font-size: 1rem;
        padding: 0 15px;
    }
}

