/* --- 1. Global Variables --- */
:root { 
    --primary: #2c3e50; 
    --accent: #e67e22; 
    --light: #ecf0f1; 
    --success: #27ae60; 
    /* Default tool in case the JS takes a second to load */
    --tool-icon: url('https://cdn-icons-png.flaticon.com/512/2505/2505634.png'); 
}

/* --- 2. Base Styles --- */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background: #f4f4f4; }
.container { max-width: 850px; margin: 0 auto; padding: 0 20px; }
.content-block { background: white; padding: 2.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin: 2.5rem 0; }

/* --- 3. Header & Navigation --- */
.main-header {
    background: #fff;
    padding: 1.5rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.branding { display: flex; align-items: center; gap: 15px; }
.title-group h1 { font-size: 1.4rem; margin: 0; color: var(--primary); }
.tagline { font-size: 0.9rem; margin: 0; color: #666; font-style: italic; }

nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.nav-link { 
    color: var(--accent); 
    text-decoration: none; 
    font-weight: bold; 
    cursor: pointer; 
    padding: 10px 20px; 
    border: 2px solid var(--accent); 
    border-radius: 5px; 
    transition: 0.3s; 
}
.nav-link:hover { background: var(--accent); color: white; }

/* Desktop adjustments */
@media (min-width: 900px) {
    .main-header { flex-direction: row; justify-content: space-between; }
    .title-group h1 { font-size: 1.8rem; }
}

.logo-container { width: 120px; }
.brand-logo { width: 100%; height: auto; transition: transform 0.3s ease; }
.brand-logo:hover { transform: rotate(-3deg) scale(1.05); }

/* --- 4. Comparison Slider (The Tool Part) --- */
.comparison-slider { position: relative; width: 100%; height: 450px; overflow: hidden; border-radius: 8px; }
.image-before, .image-after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.image-before { z-index: 1; }
.image-after { z-index: 2; width: 50%; border-right: 5px solid white; box-shadow: 5px 0 15px rgba(0,0,0,0.3); }

.slider-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    z-index: 10;
    margin: 0;
    cursor: ew-resize;
}

/* Consistently style the handle with the tool icon */
.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 55px; height: 55px;
    background-color: white;
    background-image: var(--tool-icon);
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    border: 3px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.slider-input::-moz-range-thumb {
    width: 55px; height: 55px;
    background-color: white;
    background-image: var(--tool-icon);
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    border: 3px solid var(--accent);
    border-radius: 50%;
}

/* --- 5. Carousel & Buttons --- */
.carousel-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.nav-btn { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.nav-btn:hover { background: var(--accent); }
.slide-counter { font-weight: bold; color: var(--primary); }

.project-slide { display: none; }
.project-slide.active { display: block; animation: fadeIn 0.4s; }

/* --- 6. Testimonials --- */
.testimonial-wrapper { text-align: center; padding: 20px 0; }
.testimonial-slide { display: none; margin-bottom: 40px; }
.testimonial-slide.active { display: block !important; }

.testimonial-header { font-size: 1.1rem; margin-bottom: 15px; color: var(--primary); }
.star-rating { color: #f1c40f; margin-left: 10px; letter-spacing: 2px; }

.testimonial-text { 
    font-style: italic; font-size: 1.2rem; line-height: 1.6; color: #555; 
    position: relative; padding: 0 30px; margin-bottom: 10px; 
}

.testimonial-text::before, .testimonial-text::after {
    content: '"'; font-size: 3rem; color: var(--accent); position: absolute; opacity: 0.3;
}
.testimonial-text::before { left: -10px; top: -20px; }
.testimonial-text::after { right: -10px; bottom: -30px; transform: rotate(180deg); }

.testimonial-context {
    margin-top: 20px; font-size: 0.85rem; color: #777; font-style: italic;
    border-top: 1px dashed #ddd; padding-top: 10px; display: inline-block; max-width: 80%;
}

/* --- 7. Contact Form --- */
#contact-section { 
    display: none; background: #fff; padding: 40px; border-radius: 8px; 
    max-width: 600px; margin: 40px auto; border: 1px solid #ddd; 
}
#toggle-contact { color: #6a1b9a !important; border-color: #6a1b9a !important; }
#toggle-contact:hover { background: #6a1b9a; color: #fff !important; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }