* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-placeholder i {
    color: #1e3a8a;
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #1e3a8a;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1e3a8a;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    background: white;
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mobile-nav.active {
    display: block;
    max-height: 400px;
    padding: 1rem;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
}

.mobile-nav ul li a:hover {
    color: #1e3a8a;
}

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #152e6b 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.page-header p {
    font-size: 1.15rem;
    opacity: 0.95;
}

/* ============ GALLERY SECTION ============ */
.gallery-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 10px 22px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.filter-btn.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.drag-hint {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.drag-hint i {
    color: #1e3a8a;
    margin-right: 6px;
}

/* ============ BEFORE-AFTER GRID ============ */
.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.ba-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ba-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.ba-card.hidden {
    display: none;
}

.ba-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    touch-action: pan-y;
    background: #000;
}

.ba-before,
.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ba-after {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.05s linear;
}

.ba-label {
    position: absolute;
    top: 12px;
    padding: 5px 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ba-before .ba-label {
    left: 12px;
    background: rgba(200, 30, 30, 0.85);
}

.ba-after .ba-label {
    right: 12px;
    background: rgba(30, 58, 138, 0.85);
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: white;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
}

.ba-handle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.ba-handle i {
    position: relative;
    font-size: 0.7rem;
    color: #1e3a8a;
    z-index: 4;
    width: 22px;
    text-align: center;
}

.ba-handle i:first-child {
    margin-left: -8px;
}
.ba-handle i:last-child {
    margin-right: -8px;
}

.ba-info {
    padding: 22px 24px 26px;
}

.ba-info h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 700;
}

.ba-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-state i {
    font-size: 3rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 1.1rem;
}

/* ============ CTA ============ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #152e6b 100%);
    color: white;
    text-align: center;
}

.cta-box h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #1e3a8a;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-2px);
}

/* ============ FOOTER ============ */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a,
.footer-section p a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover,
.footer-section p a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: #1e3a8a;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* ============ SCROLL TO TOP ============ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.scroll-to-top:hover {
    background: #152e6b;
    transform: translateY(-3px);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .before-after-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }

    .page-header h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .gallery-section {
        padding: 45px 0 60px;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .drag-hint {
        font-size: 0.85rem;
        margin-bottom: 30px;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ba-wrapper {
        height: 230px;
    }

    .cta-box h2 {
        font-size: 1.7rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 13px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 420px) {
    .page-header h1 {
        font-size: 1.7rem;
    }

    .logo-placeholder {
        font-size: 1.1rem;
    }

    .logo-placeholder i {
        font-size: 1.5rem;
    }

    .ba-wrapper {
        height: 210px;
    }

    .ba-info {
        padding: 18px 18px 22px;
    }

    .ba-info h3 {
        font-size: 1.05rem;
    }
}