/* 2026 Trend: Glassmorphism & Bento Grid Theme */

:root {
    --brand-dark: #072e58;
    --brand-yellow: #fbde04;
    --brand-cyan: #2fe7f0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

html,
body {
    width: 100%;
    overflow-x: clip;

    /* Uses clip to prevent horizontal scroll without breaking position: sticky */
    background-color: #fcefe9;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}


/* --- From gallery.css --- */
.gallery-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* HERO SECTION */
.hero-glass-wrapper {
    position: relative;
    height: 85vh;
    /* Default height for detail/landing pages */
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-glass-wrapper.hero-sm {
    height: 60vh;
    /* Smaller height for standard pages like About/Contact */
    min-height: 400px;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.6);
    transform: scale(1.1);
    z-index: 0;
}

.hero-content-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.glass-card-hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-left: 6px solid var(--brand-yellow);
    padding: 3rem 4rem;
    color: white;
    max-width: 800px;
    box-shadow: var(--glass-shadow);
    animation: slideInLeft 1s ease-out;
}

@media (max-width: 768px) {
    .glass-card-hero {
        padding: 1.5rem;
        width: 90%;
        margin: 0 auto;
    }

    .hero-title-main {
        font-size: 1.8rem;
        /* Force smaller size on mobile */
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title-main {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-yellow);
    margin-bottom: 0.5rem;
}

/* CONTENT WRAPPERS */
.content-wrapper {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

/* BENTO GRID SYSTEM */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: -100px;
    /* Overlap hero default */
    position: relative;
    z-index: 20;
    padding-bottom: 3rem;
}

/* Non-overlapping bento grid variant for pages defined without negative margin */
.bento-grid.no-overlap {
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(7, 46, 88, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(7, 46, 88, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-yellow), var(--brand-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover::before,
.bento-card.card-hover-effect:hover::before {
    opacity: 1;
}

.bento-card:hover,
.bento-card.card-hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(7, 46, 88, 0.15);
    border-color: var(--brand-cyan);
    cursor: default;
}

.bento-card.card-hover-effect:hover {
    cursor: pointer;
}

.bento-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(45deg, var(--brand-dark), var(--brand-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    width: auto;
    height: auto;
    border-radius: 0;
}

.bento-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.2rem;
}

.bento-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.bento-text {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.5;
}

/* CARD STYLES */
.modern-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* SIDEBAR & LINKS */
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 50;
}

.other-services-card {
    background: var(--brand-dark);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
    position: relative;
}

.other-services-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--brand-yellow);
    border-radius: 50%;
    opacity: 0.1;
}

.service-link-item {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.service-link-item:hover,
.service-link-item.active {
    color: var(--brand-yellow);
    padding-left: 10px;
}

.service-link-item:last-child {
    border-bottom: none;
}

/* TYPOGRAPHY */
.section-title-modern {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--brand-dark), var(--brand-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle-modern {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

/* UTILITIES */
.col-span-1 {
    grid-column: span 1;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-4 {
    grid-column: span 4;
}

@media (max-width: 991px) {

    .col-span-2,
    .col-span-3,
    .col-span-4 {
        grid-column: span 1;
    }
}

/* --- From index.css --- */
.hero-carousel .carousel-item {
    min-height: 600px;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Before/After Compare Slider --- */
.ba-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
    cursor: ew-resize;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ba-slider-container img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.ba-before {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid white;
}

.ba-after img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    /* Width is set via JS to match container */
    max-width: none;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ba-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #072e58;
    border: 3px solid #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-size: 14px;
}

.ba-label {
    position: absolute;
    top: 20px;
    padding: 6px 12px;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    z-index: 5;
    pointer-events: none;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ba-label.label-left {
    left: 20px;
}

.ba-label.label-right {
    right: 20px;
}

/* SECTION DIVIDER */
.section-divider-gradient {
    height: 4px;
    border: 0;
    margin: 4rem 0;
    background: linear-gradient(90deg, transparent, var(--brand-yellow), var(--brand-cyan), transparent);
    opacity: 0.8;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.section-divider-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}