@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #00a8ff;
    --primary-dark: #0097e6;
    --secondary: #00d2d3;
    --accent: #ff9f43;
    --text: #1e272e;
    --text-light: #576574;
    --bg: #ffffff;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    hyphens: none;
    -webkit-hyphens: none;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: var(--glass);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

nav {
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
    flex-shrink: 1;
    min-width: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: fill; /* "Schiacciato" a bit as requested to look bolder */
    transition: var(--transition);
    opacity: 0;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.logo img.processed {
    opacity: 1;
}

/* Fallback if JS fails */
.logo img:not(.processed) {
    mix-blend-mode: multiply;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    padding: 1rem 2rem;
    border-radius: 50px;
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
    border: none;
}

.back-link:hover {
    color: var(--white);
    background: var(--secondary);
    transform: translateX(-5px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 53, 66, 0.2);
}

.back-link i {
    font-size: 0.9rem;
}

/* Language Selector Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropbtn {
    background: var(--white);
    color: var(--text);
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid rgba(0, 168, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.lang-dropbtn:hover {
    border-color: var(--primary);
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.1);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--white);
    min-width: 130px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 15px;
    z-index: 1001;
    margin-top: 0; /* Remove margin to avoid gap */
    padding-top: 10px; /* Add padding instead */
    background: transparent; /* Top part is transparent */
}

.lang-dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.lang-dropdown-content-inner {
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
}

.lang-dropdown-content a {
    color: var(--text);
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem; /* Slightly larger for easier tapping and visibility */
}

.lang-dropdown-content a:hover {
    background-color: #f0f9ff;
    color: var(--primary);
    padding-left: 1.5rem;
}

.lang-dropdown.active .lang-dropdown-content {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .lang-dropdown {
        margin-right: 0;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('assets/outdoor_cleaning.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 5%;
}

.hero-content {
    max-width: 1000px;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 3rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.4);
}

/* Sections */
section {
    padding: 5rem 5%;
    width: 100%;
    transition: var(--transition);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.3rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

/* About Section */
.about {
    display: flex;
    gap: 6rem;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-img {
    flex: 1;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: var(--transition);
}

.about-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-img img {
    width: 100%;
    display: block;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1800px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-20px);
    border-color: var(--primary);
}

.service-card i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-card p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Slideshow Section */
.slideshow-wrapper {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 5%;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.prev { left: 2rem; }
.next { right: 2rem; }

.prev:hover, .next:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Contact Section */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 2rem;
    color: var(--primary);
}

.info-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 1.1rem;
    overflow-wrap: break-word;
}

.whatsapp-section {
    background: linear-gradient(135deg, #f5f6fa 0%, #ffffff 100%);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

/* Footer */
footer {
    background: var(--text);
    color: var(--white);
    padding: 5rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #a4b0be;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #a4b0be;
}

/* Gallery Tabs */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.tab-btn {
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(52, 152, 219, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Results CTA Section */
.cta-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #f5f6fa 0%, #ffffff 100%);
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
}

.standalone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    .cta-section {
        padding: 5rem 5%;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .slideshow-wrapper {
        padding: 0 20px;
    }
    
    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .comparison-slider {
        border-radius: 20px;
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Gallery & Comparison Slider */
.gallery-section {
    background: #f8f9fa;
}

.comparison-container {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    cursor: ew-resize;
    user-select: none;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid white;
}

.img-overlay img {
    width: 100%; /* Must match container width */
    height: 100%;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 100%;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.handle-circle {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    border: 2px solid white;
}

.label {
    position: absolute;
    bottom: 15px;
    padding: 0.4rem 0.8rem;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    z-index: 4;
}

.label-before { left: 15px; }
.label-after { right: 15px; }

/* Standalone Gallery */
.standalone-gallery {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16/9;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    section {
        padding: 6rem 5%;
    }
    .about, .contact-container {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 3rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .section-title h2 {
        font-size: 2rem; /* Even smaller to fit */
    }
    .hero p {
        font-size: 1.1rem;
    }
    .about-text h3 {
        font-size: 1.8rem;
    }
    .info-item p {
        font-size: 0.9rem; /* Smaller for mobile */
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .info-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 5%;
    }
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .btns-container {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100%;
        max-width: 250px;
        margin: 0 auto !important;
    }
    .btns-container .btn {
        width: 100% !important;
        padding: 0.8rem 1.5rem !important;
        margin: 0 !important;
        text-align: center;
    }
    .about-text h3 {
        font-size: 2rem;
    }
    .service-card {
        padding: 3rem 2rem;
    }
    .slide-content {
        bottom: 20px;
        left: 5%;
        right: 5%;
    }
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary);
    text-decoration: none;
    transform: scale(1.1);
}

/* Add cursor pointer to clickable images */
.comparison-slider, .gallery-item {
    cursor: zoom-in;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 95%;
    }
    .modal-close {
        top: 15px;
        right: 25px;
    }
}
