/* --------------------------------
    1. CSS Reset Modern Bonus
-------------------------------- */

html {
    color-scheme: light;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

#root, #__next {
    isolation: isolate;
}

/* --------------------------------
    2. Fonts
-------------------------------- */

:root {
    --bulma-family-primary: 'Noto Sans', 'Noto Sans Bengali', sans-serif;
    --bulma-family-secondary: 'Baloo Da 2', sans-serif;
}

h1, h2, h3, h4, h5, h6, .title {
    --bulma-title-weight: 600;
    font-family: var(--bulma-family-secondary) !important;
}

/* --------------------------------
    3. Navbar Custom Styles
-------------------------------- */
.hero {
    background: rgba(255, 255, 255, 0.8) url(../img/seamless-pattern-with-outline-kolkata.png) center center;
    background-size: contain;
    /* background image opacity */
    background-blend-mode: overlay;
}
.navbar {
    background-color: white;
    border-top: 1px solid #dbdbdb;
    border-bottom: 1px solid #dbdbdb;
}

/* --------------------------------
    3.5 Hero Slider Styles
-------------------------------- */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 1;
    background-color: #000;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Slider Overlay */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 10;
    padding: 2rem;
}

.slider-overlay .title,
.slider-overlay .subtitle {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 2rem;
    color: #ffffff;
}

.slider-nav:hover {
    color: #74ff6f;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .slider-container {
        aspect-ratio: 2 / 1;
    }

    .slider-overlay .title {
        font-size: 1.5rem !important;
    }

    .slider-overlay .subtitle {
        font-size: 1rem !important;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .slider-overlay {
        padding: 1rem;
    }

    .slider-overlay .buttons {
        flex-direction: column;
        width: 100%;
    }

    .slider-overlay .button {
        width: 100%;
    }
}

.navbar-item.is-active {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.navbar-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* --------------------------------
    4. Service Cards and Box Styles
-------------------------------- */

.lni-64 {
    font-size: 64px;
}

.card, .box {
    border: 2px solid #dbdbdb;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background-color: white !important;
    border-radius: 8px;
}

.service-card {
    height: 100%;
}

/* Card hover effects based on icon/button color */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Office Bearer Cards */
.office-bearer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-width: 2px;
    border-style: solid;
}

.office-bearer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.has-primary-border {
    border-color: hsl(171, 100%, 41%) !important;
}

.has-info-border {
    border-color: hsl(207, 61%, 53%) !important;
}

.has-success-border {
    border-color: hsl(153, 53%, 53%) !important;
}

.has-warning-border {
    border-color: hsl(44, 100%, 77%) !important;
}

/* Primary color hover */
.card:has(.has-text-primary):hover,
.box:has(.has-text-primary):hover {
    border-color: hsl(171, 100%, 41%);
}

/* Info color hover */
.card:has(.has-text-info):hover,
.box:has(.has-text-info):hover {
    border-color: hsl(204, 86%, 53%);
}

/* Success color hover */
.card:has(.has-text-success):hover,
.box:has(.has-text-success):hover {
    border-color: hsl(141, 53%, 53%);
}

/* Warning color hover */
.card:has(.has-text-warning):hover,
.box:has(.has-text-warning):hover {
    border-color: hsl(48, 100%, 67%);
}

/* Danger color hover */
.card:has(.has-text-danger):hover,
.box:has(.has-text-danger):hover {
    border-color: hsl(348, 86%, 61%);
}

/* Link color hover */
.card:has(.has-text-link):hover,
.box:has(.has-text-link):hover {
    border-color: hsl(229, 53%, 53%);
}

/* Card header styles - remove colored backgrounds */
.card-header {
    background-color: white !important;
    border-bottom: 2px solid #000000;
}

.card-header.has-background-primary,
.card-header.has-background-info,
.card-header.has-background-success,
.card-header.has-background-warning,
.card-header.has-background-danger,
.card-header.has-background-link {
    background-color: white !important;
}

.card-header.has-background-primary .card-header-title {
    color: hsl(171, 100%, 41%) !important;
}

.card-header.has-background-info .card-header-title {
    color: hsl(204, 86%, 53%) !important;
}

.card-header.has-background-success .card-header-title {
    color: hsl(141, 53%, 53%) !important;
}

.card-header.has-background-warning .card-header-title {
    color: hsl(48, 100%, 67%) !important;
}

.card-header.has-background-danger .card-header-title {
    color: hsl(348, 86%, 61%) !important;
}

.card-header.has-background-link .card-header-title {
    color: hsl(229, 53%, 53%) !important;
}

.title .icon { vertical-align: middle; }

/* --------------------------------
    5. Button Styles
-------------------------------- */

.button {
    border-width: 2px !important;
}

.button.is-primary {
    background-color: transparent !important;
    border-color: hsl(171, 100%, 41%) !important;
    color: hsl(171, 100%, 41%) !important;
}

.button.is-primary:hover {
    background-color: hsl(171, 100%, 41%) !important;
    color: white !important;
}

.button.is-info {
    background-color: transparent !important;
    border-color: hsl(204, 86%, 53%) !important;
    color: hsl(204, 86%, 53%) !important;
}

.button.is-info:hover {
    background-color: hsl(204, 86%, 53%) !important;
    color: white !important;
}

.button.is-success {
    background-color: transparent !important;
    border-color: hsl(141, 53%, 53%) !important;
    color: hsl(141, 53%, 53%) !important;
}

.button.is-success:hover {
    background-color: hsl(141, 53%, 53%) !important;
    color: white !important;
}

.button.is-warning {
    background-color: transparent !important;
    border-color: hsl(48, 100%, 67%) !important;
    color: hsl(48, 100%, 67%) !important;
}

.button.is-warning:hover {
    background-color: hsl(48, 100%, 67%) !important;
    color: rgba(0, 0, 0, 0.7) !important;
}

.button.is-danger {
    background-color: transparent !important;
    border-color: hsl(348, 86%, 61%) !important;
    color: hsl(348, 86%, 61%) !important;
}

.button.is-danger:hover {
    background-color: hsl(348, 86%, 61%) !important;
    color: white !important;
}

.button.is-link {
    background-color: transparent !important;
    border-color: hsl(229, 53%, 53%) !important;
    color: hsl(229, 53%, 53%) !important;
}

.button.is-link:hover {
    background-color: hsl(229, 53%, 53%) !important;
    color: white !important;
}

.button.is-light {
    background-color: transparent !important;
    border-color: hsl(0, 0%, 96%) !important;
    color: hsl(0, 0%, 29%) !important;
}

.button.is-light:hover {
    background-color: hsl(0, 0%, 96%) !important;
    color: hsl(0, 0%, 29%) !important;
}

.button.is-dark {
    background-color: transparent !important;
    border-color: hsl(0, 0%, 21%) !important;
    color: hsl(0, 0%, 21%) !important;
}

.button.is-dark:hover {
    background-color: hsl(0, 0%, 21%) !important;
    color: white !important;
}

.slider-overlay .button {
    background-color: #00000055 !important;
}

/* --------------------------------
    6. Gallery Styles
-------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    border: 2px solid #dbdbdb;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: hsl(204, 86%, 53%);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.gallery-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
}

/* --------------------------------
    7. Lightbox Styles
-------------------------------- */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-top: 0.5rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ff4444;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease, transform 0.3s ease;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: hsl(204, 86%, 53%);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Responsive Gallery */
@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .lightbox-prev {
        left: 10px;
        font-size: 2rem;
    }

    .lightbox-next {
        right: 10px;
        font-size: 2rem;
    }

    .lightbox-close {
        right: 20px;
        font-size: 30px;
    }

    .lightbox-title {
        font-size: 1.2rem;
    }
}

/* --------------------------------
    8. Footer Styles
-------------------------------- */

.footer {
    background-color: #f5f5f5;
    padding: 2rem 1.5rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #3273dc;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
