/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #ffffff;
    color: #252525;
    overflow-x: hidden;
}

/* Carousel Section */
.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Before/After Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.image-layer {
    position: absolute;
    inset: 0;
}

.image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.after-image {
    z-index: 1;
}

.before-image {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

/* Image Badges */
.badge {
    position: absolute;
    top: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: rgba(37, 37, 37, 0.8);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.badge-left {
    left: 1rem;
}

.badge-right {
    right: 1rem;
    background-color: rgba(37, 37, 37, 0.9);
}

/* Slider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #252525;
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #252525;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.slider-arrows {
    width: 16px;
    height: 16px;
    position: relative;
}

.slider-arrows::before,
.slider-arrows::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 2px;
    height: 16px;
    background-color: #ffffff;
    border-radius: 2px;
    transform: translateY(-50%);
}

.slider-arrows::before {
    left: 4px;
}

.slider-arrows::after {
    right: 4px;
}

/* Content Overlay */
.content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding-bottom: 100px;
    pointer-events: none;
    z-index: 20;
}

.content-center {
    text-align: center;
}

/* Logo */
.logo {
    width: 128px;
    height: 128px;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

/* Title and Subtitle */
.title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    pointer-events: auto;
}

.nav-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(247, 247, 247, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #252525;
}

.nav-button:hover {
    background-color: rgba(247, 247, 247, 1);
    transform: scale(1.05);
}

/* Dots */
.dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: rgba(163, 163, 163, 0.8);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot:hover {
    background-color: rgba(115, 115, 115, 1);
}

.dot.active {
    width: 32px;
    background-color: #FF3100;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #ebebeb;
    padding: 3rem 1rem 4rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #252525;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #252525;
    color: #fcfcfc;
    transform: scale(1.05);
}

/* Copyright */
.copyright {
    text-align: center;
}

.copyright p {
    font-size: 0.75rem;
    color: #8e8e8e;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .title {
        font-size: 2.25rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .content-overlay {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
    }
    
    .logo {
        width: 96px;
        height: 96px;
        margin-bottom: 1rem;
    }
    
    .content-overlay {
        padding-bottom: 60px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .nav-button {
        width: 36px;
        height: 36px;
    }
    
    .slider-button {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .carousel-controls {
        gap: 0.75rem;
    }
    
    .nav-button {
        width: 32px;
        height: 32px;
    }
    
    .nav-button svg {
        width: 16px;
        height: 16px;
    }
}
