body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: #0b131e;
    color: #f8fafc;
    overflow-x: hidden;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-button {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

@keyframes wave-ambient {
    0% {
        transform: translate(0%, 0%) scale(1) rotate(0deg);
        opacity: 0.35;
    }
    33% {
        transform: translate(3%, -5%) scale(1.08) rotate(120deg);
        opacity: 0.45;
    }
    66% {
        transform: translate(-5%, 8%) scale(0.95) rotate(240deg);
        opacity: 0.3;
    }
    100% {
        transform: translate(0%, 0%) scale(1) rotate(360deg);
        opacity: 0.35;
    }
}

@keyframes drift-light {
    0% { transform: translateY(0px) translateX(0px); opacity: 0.2; }
    50% { transform: translateY(-20px) translateX(15px); opacity: 0.4; }
    100% { transform: translateY(0px) translateX(0px); opacity: 0.2; }
}

.animate-ambient-1 {
    animation: wave-ambient 25s infinite linear;
}

.animate-ambient-2 {
    animation: wave-ambient 30s infinite linear reverse;
}

.animate-drift {
    animation: drift-light 8s infinite ease-in-out;
}

.snowflake-spin:hover i {
    transform: rotate(180deg);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.snowflake-spin i {
    transition: transform 0.5s ease;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.avatar-stack {
    display: inline-flex;
    align-items: center;
}

.avatar-item {
    margin-left: -12px;
    border: 3px solid #ffffff;
    transition: all 0.3s ease;
}

.avatar-item:first-child {
    margin-left: 0;
}

.avatar-item:hover {
    transform: scale(1.1) translateY(-2px);
    z-index: 10;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.animate-modal {
    animation: modalFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stat-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, margin-top 0.8s ease;
    position: relative;
    background: #ffffff;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes marquee-right {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-left {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-track-right {
    display: flex;
    width: fit-content;
    animation: marquee-right 60s linear infinite;
}

.marquee-track-left {
    display: flex;
    gap: 5rem;
    width: fit-content;
    animation: marquee-left 80s linear infinite;
}


@keyframes coolAirWave {
    0% { opacity: 0.1; transform: translateY(0) scaleX(0.9); filter: blur(4px); }
    50% { opacity: 0.5; transform: translateY(8px) scaleX(1); filter: blur(6px); }
    100% { opacity: 0; transform: translateY(18px) scaleX(1.05); filter: blur(8px); }
}
.cool-air-wave {
    animation: coolAirWave 3s infinite ease-in-out;
}

.appliance-glow {
    box-shadow: 0 0 20px rgba(88, 150, 246, 0.45);
    border-color: rgba(88, 150, 246, 0.8) !important;
    transform: scale(1.03) translateY(-2px);
}

/* ===== Service Cards — Left Border Active State (Home & Commercial) ===== */

.srv-card {
    position: relative;
    overflow: visible;
    border-left: 2px solid #e2e8f0;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.srv-card.expanded {
    border-left-color: #5896F6 !important;
    box-shadow: none !important;
}

.srv-card .flex-grow {
    position: relative;
    z-index: 1;
}

/* Description hidden by default */
.srv-description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    color: #64748B !important;
    transform: translateY(-6px);
}
.srv-card.expanded .srv-description {
    opacity: 1 !important;
    max-height: 80px !important;
    transform: translateY(0) !important;
}

/* Heading stays dark even when active */
.srv-card.expanded h3 {
    color: #0f172a !important;
}

/* Arrow: blue bg, white icon when expanded */
.srv-card.expanded .srv-arrow-btn {
    background-color: #5896F6 !important;
    color: #ffffff !important;
    border-color: #5896F6 !important;
}

/* Hover: blue left border, accent heading, blue arrow */
.srv-card:hover {
    border-left-color: #5896F6 !important;
    box-shadow: none !important;
}

.srv-card:hover h3 {
    color: #5896F6 !important;
}
.srv-card:hover .srv-arrow-btn {
    background-color: #5896F6 !important;
    color: #ffffff !important;
    border-color: #5896F6 !important;
}

.srv-img,
.com-srv-img {
    transition: opacity 0.6s ease, transform 0.6s ease;
    background: #ffffff;
}
.srv-img:not(.active),
.com-srv-img:not(.active) {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}
.srv-img.active,
.com-srv-img.active {
    z-index: 2;
}

.gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    will-change: transform;
}

.lightbox-open {
    overflow: hidden;
}

#lightbox-modal {
    transition: opacity 0.35s ease;
}

#lightbox-image {
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .gallery-item:hover .group-hover\:scale-110 {
        transform: scale(1.1);
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.05); }
}
.ambient-glow {
    animation: subtlePulse 8s infinite ease-in-out;
}

.accordion-item {
    position: relative;
}

.accordion-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(24, 24, 27, 0.8);
}

@media (min-width: 640px) {
    .accordion-item::after {
        left: -12rem;
    }
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out, margin-top 0.3s ease-in-out;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
}

/* New Hero Section Styles */
@keyframes softPulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.05); }
}

.ambient-lamp {
    animation: softPulse 8s infinite ease-in-out;
}

@keyframes blowAir {
    0% {
        transform: translate(0, 0) scale(0.9) skewX(-15deg);
        opacity: 0;
        filter: blur(15px);
    }
    15% {
        opacity: 0.55;
        filter: blur(10px);
    }
    85% {
        opacity: 0.35;
        filter: blur(25px);
    }
    100% {
        transform: translate(-100px, 120px) scale(1.4) skewX(-10deg);
        opacity: 0;
        filter: blur(40px);
    }
}

.cool-breeze-stream {
    animation: blowAir var(--breeze-duration, 4s) infinite linear;
}

.drawer-transition {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#hero-bg-image-layer {
    will-change: transform;
}
.section-snap {
    position: relative;
    z-index: 1;
}
.process-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.process-card:hover {
    box-shadow: 0 8px 25px -8px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
    #hero-bg-image-layer {
        position: absolute;
    }
}

/* Breathe Easy section - slow zoom + 3D parallax */
@keyframes breatheZoom {
    0% {
        background-size: 100%;
    }
    100% {
        background-size: 108%;
    }
}

.breathe-zoom {
    animation: breatheZoom 12s infinite alternate ease-in-out;
    will-change: background-size, background-position;
}

/* ===== REVIEWS SECTION — Horizontal Accordion Cards ===== */

.reviews-flex {
    display: flex;
    gap: 10px;
    align-items: stretch;
    height: 460px;
}

.review-card {
    flex: 1 1 0;
    min-width: 120px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    background: #F5F5F7;
    color: #3A3A3C;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, color 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.review-card.active {
    flex: 2.2 1 0;
    background: #5197E9;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(81, 151, 233, 0.2);
}

/* --- Inner Layout --- */

.review-card-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 48px 12px 24px;
    height: 100%;
    gap: 0;
    overflow: hidden;
    transition: padding-top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding-left 0.5s ease,
                padding-right 0.5s ease,
                gap 0.5s ease;
}

.review-card.active .review-card-inner {
    justify-content: flex-start;
    padding-top: 245px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    gap: 20px;
}

/* Step number — absolute at top-left in all states */
.step-num {
    position: absolute;
    top: 20px;
    left: 16px;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8E8E93;
    white-space: nowrap;
    transition: color 0.4s ease;
}

.review-card.active .step-num {
    color: rgba(255, 255, 255, 0.8);
}

/* Icon — bottom-left in collapsed, moved up in expanded */
.review-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #5197E9;
    background: rgba(81, 151, 233, 0.1);
    transition: all 0.4s ease;
}

.review-card.active .review-icon-wrap {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
}

/* Content — hidden in collapsed (pushed right), visible on expand (slide from right) */
.review-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: visible;
    padding: 0;
    margin: 0;
    border: 0;
    transform: translateX(100px);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.45s ease 0.05s;
}

.review-card.active .review-content {
    transform: translateX(0);
    max-height: 300px;
    opacity: 1;
    padding: 0;
    margin: 0;
    overflow: visible;
}

.review-heading {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    transition: color 0.4s ease;
}

.review-card.active .review-heading {
    color: #ffffff;
    margin-bottom: 14px;
}

.review-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748B;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.5em;
    transition: color 0.4s ease;
}

.review-card.active .review-desc {
    color: rgba(255, 255, 255, 0.85);
}

.review-stars {
    display: flex;
    gap: 3px;
    font-size: 0.75rem;
    color: #FBBF24;
    flex-shrink: 0;
}

.read-all-link {
    margin-top: 4px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-all-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.read-all-link i {
    font-size: 0.6rem;
}

/* Projects: reduce card top margin on mobile so images go higher */
@media (max-width: 768px) {
    #testimonial-scroller > div {
        margin-top: 2rem !important;
        min-height: 320px !important;
    }
}

/* Mobile: single column stack */
@media (max-width: 768px) {
    .reviews-flex {
        flex-direction: column;
        gap: 10px;
        height: auto;
        min-height: auto;
    }
    .review-card {
        min-width: unset;
        width: 100%;
        height: auto;
        flex: none !important;
        background: #5197E9;
        color: #ffffff;
        border: none;
        outline: none;
    }
    .review-card.active {
        flex: none !important;
    }
    .review-card .step-num {
        position: static;
        color: rgba(255, 255, 255, 0.7);
        width: 100%;
        margin-bottom: 4px;
        font-size: 0.6rem;
    }
    .review-card .review-icon-wrap {
        display: none;
    }
    .review-card .review-heading {
        color: #ffffff;
        font-size: 0.95rem;
        margin-bottom: 0;
    }
    .review-card .review-desc {
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.78rem;
        -webkit-line-clamp: unset;
        max-height: none;
        overflow: visible;
    }
    .review-card-inner {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 16px;
        gap: 6px;
        height: auto;
    }
    .review-card.active .review-card-inner {
        padding: 16px;
        gap: 6px;
        padding-top: 16px;
        justify-content: flex-start;
    }
    .review-content {
        flex: none;
        width: 100%;
        max-width: 100% !important;
        max-height: none !important;
        opacity: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        transform: none !important;
        text-align: left;
        align-items: flex-start;
    }
    .review-heading {
        white-space: normal;
    }
    .review-stars {
        justify-content: flex-start;
        font-size: 0.7rem;
    }
    .read-all-link {
        justify-content: flex-start;
        font-size: 0.65rem;
    }
    /* Remove any borders between reviews section and next */
    #reviews-section {
        border: none;
        outline: none;
    }
    #reviews-grid {
        border: none;
        outline: none;
    }
}

/* === SECTION FLEX FILL (lg screens): sections fill viewport without empty space === */
@media (min-width: 1024px) {
    #services-overview,
    #home-appliances-section,
    #reviews-section,
    #commercial-appliances-section,
    #faq-section {
        display: flex;
        flex-direction: column;
    }
    #services-overview > .w-full,
    #home-appliances-section > .w-full,
    #reviews-section > .w-full,
    #commercial-appliances-section > .w-full,
    #faq-section > .w-full {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    /* Sections without scroll-reveal animations: safely centered */
    #home-appliances-section > .w-full,
    #reviews-section > .w-full,
    #commercial-appliances-section > .w-full,
    #faq-section > .w-full {
        justify-content: center;
    }
    /* About Us: stat cards use negative margins on reveal — static padding avoids layout shift */
    #services-overview > .w-full {
        justify-content: flex-start;
        padding-top: 3vh;
    }
}

