/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateX(60px);
    display: flex;
    align-items: center;
    pointer-events: none;
}
.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    z-index: 1;
}
.slide-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.slide-text {
    color: #fff;
}
.slide-line {
    display: block;
    width: 120px;
    height: 3px;
    background: #ffd700;
    margin-bottom: 1.5rem;
}
.slide-text h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #0d2a4e;
    line-height: 1;
    margin-bottom: 1.2rem;
}
.slide-text > p {
    font-size: 1rem;
    color: #0d2a4e;
    margin-bottom: 1.8rem;
    max-width: 420px;
    line-height: 1.7;
}
.slide-sub {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(13,42,78,0.2);
}
.slide-sub h4 { font-size: 0.95rem; font-weight: 800; color: #0d2a4e; margin-bottom: 0.6rem; line-height: 1.4; }
.slide-sub p { font-size: 0.88rem; color: #1a2a4a; line-height: 1.7; }
.slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-image img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.2));
    animation: floatImg 4s ease-in-out infinite;
}
@keyframes floatImg {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* SLIDER CONTROLS */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.7rem;
    z-index: 10;
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: 0.3s;
}
.dot.active, .dot:hover { background: #fff; }
.slider-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { background: rgba(255,255,255,0.4); }
.slider-arrow.prev { left: 2rem; }
.slider-arrow.next { right: 2rem; }

/* =============================================
   BEFORE & AFTER
   ============================================= */
.before-after-section {
    background: #f0f4f9;
    padding: 7rem 5%;
}
.ba-container { max-width: 1200px; margin: 0 auto; }
.ba-header { text-align: center; margin-bottom: 4rem; }
.ba-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3rem; font-weight: 900; color: #0d2a4e; margin-bottom: 0.5rem;
}
.ba-header p { color: #666; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.ba-card { border-radius: 20px; overflow: hidden; box-shadow: 0 15px 50px rgba(0,0,0,0.12); }
.ba-compare {
    position: relative;
    height: 380px;
    cursor: col-resize;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
.ba-after, .ba-before {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.ba-before {
    width: 50%;
    border-right: 3px solid #fff;
    z-index: 1;
}
.ba-handle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 44px; height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    cursor: col-resize;
    user-select: none;
}
.ba-arrow-left, .ba-arrow-right {
    font-size: 1.3rem; color: #1a6fc4; font-weight: 900; line-height: 1;
}
.ba-labels {
    display: flex;
    justify-content: space-between;
    background: #0d2a4e;
    padding: 0.8rem 1.5rem;
    border-radius: 0 0 16px 16px;
}
.label-before, .label-after {
    color: #fff; font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;
}

/* =============================================
   SCROLL-SWAP PORTFOLIO SECTION
   ============================================= */
.scroll-swap-section {
    position: relative;
    height: 400vh; /* Space for scroll triggers */
    background: linear-gradient(180deg, #4a90d9 0%, #6faedf 50%, #87c1e8 100%);
}
.scroll-swap-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
    gap: 4rem;
    overflow: hidden;
}
.scroll-swap-text { color: #0d2a4e; }
.scroll-swap-text h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 4rem; font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem; line-height: 1.05;
}
.scroll-swap-text p { color: #1a2a4a; line-height: 1.8; margin-bottom: 2rem; font-size: 1rem; }
.swap-indicators { display: flex; gap: 0.8rem; margin-top: 1rem; }
.swap-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(13,42,78,0.25);
    cursor: pointer;
    transition: 0.3s;
}
.swap-dot.active { background: #0d2a4e; transform: scale(1.4); }

.scroll-swap-images { position: relative; height: 75vh; }
.swap-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85) rotate(5deg);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.19,1,0.22,1);
    pointer-events: none;
}
.swap-img.active {
    opacity: 1;
    transform: scale(1) rotate(-3deg);
    pointer-events: all;
}
.swap-img img {
    max-width: 85%;
    max-height: 80%;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    object-fit: cover;
}
.scroll-panel { height: 100vh; } /* each panel = 1 screen height */

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .slide-content { grid-template-columns: 1fr; }
    .slide-text h1 { font-size: 3rem; }
    .slide-image { display: none; }
    .hero-slider { height: auto; min-height: 70vh; }
    .slide { position: relative; }
    .ba-grid { grid-template-columns: 1fr; }
    .scroll-swap-sticky { grid-template-columns: 1fr; }
    .scroll-swap-images { display: none; }
}
