/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #2d2d2d;
    --gray: #666666;
    --light-gray: #e0e0e0;
    --white: #ffffff;
    --off-white: #f8f8f8;
    --accent: #3d3d3d;
    --accent-light: #4a4a4a;
    --accent-dark: #2a2a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 8px;
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* hide elements intended only for mobile by default */
.mobile-only {
    display: none;
}

.lang-btn {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    background: transparent;
    padding: 0;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

.lang-btn.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(61, 61, 61, 0.2);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--black);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    margin-top: 50px;
    padding: 60px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1050px;
    margin: 0 auto;
}

.hero-logo {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo-video-container {
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

#logo-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--black);
    letter-spacing: -2px;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--gray);
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Make the title image responsive */
.hero-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.75rem;
}

/* Make hero CTA wider and centered within the hero-text block */
.hero-text .btn {
    padding: 14px 56px; /* wider horizontal padding for larger button */
    min-width: 400px;
    display: inline-flex;
    justify-content: center;
}

/* Button */
.btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    border: 2px solid var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.18s ease, box-shadow 0.18s ease;
    font-size: 0.95rem;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(61, 61, 61, 0.28);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(61,61,61,0.12), 0 6px 18px rgba(61,61,61,0.18);
    transform: translateY(-1px) scale(1.01);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--black);
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
}

/* Services */
.services {
    /* background image with a light overlay to keep text readable */
    background-image: linear-gradient(rgba(248,248,248,0.85), rgba(248,248,248,0.85)), url('assets/background2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-category {
    margin-bottom: 4rem;
}

.service-category:last-child {
    margin-bottom: 0;
}

.category-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
}

.category-header h3 {
    font-size: 2rem;
    color: var(--black);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header i {
    font-size: 1.8rem;
    color: var(--accent);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--light-gray);
    transition: all 0.3s;
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 0 var(--accent);
    border-color: var(--accent);
}

.service-item i {
    font-size: 1.8rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.service-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--black);
    font-weight: 600;
}

.service-item p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Portfolio */
.portfolio {
    background: var(--white);
}

.project {
    margin-bottom: 6rem;
    border-top: 1px solid var(--light-gray);
    padding-top: 3rem;
}

.project:last-child {
    margin-bottom: 0;
}

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--light-gray);
    line-height: 1;
}

.project-title-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
    font-weight: 700;
}

.project-category {
    display: inline-block;
    padding: 4px 16px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.project-description p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.8;
}

.project-specs {
    list-style: none;
    margin-top: 2rem;
}

.project-specs li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.project-specs i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Gallery */
.project-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    width: 100%;
    height: 400px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    filter: grayscale(20%);
}

.gallery-main img:hover {
    transform: scale(1.05);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}

.gallery-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    filter: grayscale(50%);
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    border-color: var(--accent);
    filter: grayscale(0%);
}

/* Quote Banner */
.quote-banner {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
}

.quote-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
}

.quote-banner blockquote {
    font-size: 1.5rem;
    line-height: 1.8;
    font-style: italic;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 3rem;
}

.quote-banner blockquote::before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -2rem;
    left: 0;
    opacity: 0.3;
    color: var(--accent);
}

/* Contact */
.contact {
    background: var(--off-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
    font-weight: 700;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.contact-person {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-left: 3px solid var(--accent);
}

.contact-person h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 0.3rem;
}

.contact-role {
    color: var(--gray);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-items {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--accent);
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--accent);
}

.social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social a {
    width: 45px;
    height: 45px;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s;
}

.social a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--light-gray);
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    border: 1px solid var(--light-gray);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

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

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(61, 61, 61, 0.4);
    z-index: 999;
    transition: all 0.3s;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.whatsapp-float:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(61, 61, 61, 0.5);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-logo {
        flex: 0 0 280px;
    }

    #logo-video-container {
        width: 280px;
        height: 280px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .project-content {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }

    /* Move language switcher into the mobile menu: hide the fixed switcher */
    .language-switcher {
        display: none;
    }

    /* Show the mobile language buttons inside the nav menu */
    .mobile-only {
        display: flex;
        gap: 8px;
        margin-top: 1rem;
        align-items: center;
    }

    .mobile-only .lang-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: 0.3s;
        border-top: 1px solid var(--light-gray);
    }

    .nav-links.active {
        left: 0;
    }

    .hero {
        min-height: 50vh;
    }

    .hero-logo {
        flex: 0 0 220px;
    }

    #logo-video-container {
        width: 220px;
        height: 220px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    /* On mobile keep the hero text left-aligned while logo stays centered */
    .hero-text {
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    /* Ensure the title image scales and doesn't center itself */
    .hero-text img {
        max-width: 90%;
        margin-left: 0;
    }

    /* Keep CTA aligned to the left */
    .hero-text .btn {
        align-self: flex-start;
    }

    /* Make hero CTA full-width on mobile (but limit maximum) */
    .hero-text .btn {
        width: 100%;
        max-width: 420px; /* prevents overly large full-width on wide mobile containers */
        padding: 12px 20px;
        min-width: 0;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .project-header {
        flex-direction: column;
        gap: 1rem;
    }

    .project-number {
        font-size: 3rem;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .quote-banner blockquote {
        font-size: 1.2rem;
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

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

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .gallery-main {
        height: 250px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    #logo-video-container {
        width: 200px;
        height: 200px;
    }
}

/* Customers carousel */
.customers-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customers-carousel {
    overflow: hidden; /* hide native scrollbar; we control scrollLeft programmatically */
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.carousel-track {
    display: flex;
    gap: 16px;
    padding: 12px 6px;
}

/* full-width wrapper: center the 100vw element inside the page flow */
.customers-carousel-wrapper.full-width {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 20px 30px 00px;
    box-sizing: border-box;
    align-items: center;
}

.carousel-item {
    flex: 0 0 200px; /* fixed item width, same proportion for all */
    height: 120px; /* fixed height to normalize proportions */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    scroll-snap-align: start;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* keep logos intact while fitting into the same box */
}

/* hide arrow buttons for carousel (removed per request) */
.carousel-btn {
    display: none !important;
}

.carousel-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* responsive: smaller items on small screens */
@media (max-width: 768px) {
    /* make carousel images larger on mobile/tablet */
    .carousel-item { flex: 0 0 220px; height: 140px; }
    .carousel-btn { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
    /* slightly smaller but still larger than desktop small setting */
    .carousel-item { flex: 0 0 180px; height: 120px; }
}