/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Add scroll offset for fixed header */
section {
    scroll-margin-top: 80px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    padding-top: 80px; /* Account for fixed header */
}
.slider-container {
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fade-in Animation - Content visible by default */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.animate {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: #2c2c2c;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #2c2c2c;
}

.header-phone a {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.header-phone a:hover {
    color: #666;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: white;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background-color: #2c2c2c;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.cta-button:hover {
    background-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Content Blocks */
.content-block {
    padding: 80px 0;
    background-color: #fff;
}

.content-block:nth-child(even) {
    background-color: #fafafa;
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-block.reverse .content-row {
    grid-template-columns: 1fr 1fr;
}

.content-text h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    color: #2c2c2c;
    line-height: 1.2;
}

.content-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.content-text ul {
    list-style: none;
}

.content-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #555;
    font-size: 1rem;
}

.content-text li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c2c2c;
    font-weight: bold;
}

.rounded-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.rounded-image:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Images Gallery Section */
.images-gallery-section {
    padding: 80px 0;
    background-color: #fff;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.image-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.gallery-image:hover {
    filter: grayscale(0%);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup {
    background: white;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup {
    transform: scale(1);
}

.popup p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

/* Before/After Section */
.before-after-section {
    padding: 100px 0;
    background-color: #f8f8f8;
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

/* Before/After Slider Styles */
.before-after-container {
    max-width: 800px;
    margin: 20px auto;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    cursor: col-resize;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.after-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    /* Position the image so it aligns with the before image */
    transform: translateX(-400px);
}

/* Slider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    cursor: col-resize;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.handle-line {
    width: 4px;
    height: 40%;
    background-color: rgba(255, 255, 255, 0.8);
}

.handle-circle {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    margin: 10px 0;
}

.handle-arrow-left,
.handle-arrow-right {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.handle-arrow-left {
    left: 15px;
    border-width: 6px 8px 6px 0;
    border-color: transparent #666 transparent transparent;
}

.handle-arrow-right {
    right: 15px;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #666;
}

.slider-handle:hover .handle-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section li:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .content-row {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .content-block.reverse .content-row {
        grid-template-columns: 1fr;
    }

    .content-text h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .before-after-wrapper {
        height: 300px;
    }

    .after-image {
        width: 100vw;
        transform: translateX(-50vw);
    }

    .handle-circle {
        width: 40px;
        height: 40px;
    }

    .handle-arrow-left {
        left: 12px;
        border-width: 5px 6px 5px 0;
    }

    .handle-arrow-right {
        right: 12px;
        border-width: 5px 0 5px 6px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .content-block {
        padding: 50px 0;
    }

    .content-text h2 {
        font-size: 1.8rem;
    }

    .before-after-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }
}