/* General Reset */
* {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css?family=Raleway|Open+Sans');

html, body {
    margin: 0;
    height: 100%;
    font-family: 'Open Sans', sans-serif;
}

/* Top Navigation Bar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    color: #FFF;
    padding: 1em;
    gap: 12px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo {
    width: 80px;
    height: auto;
}

.company-name {
    font-size: 1.6rem;
    font-weight: bold;
    color: black;
}

.menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    margin: 0 1.5rem;
}

.menu > li > a {
    text-decoration: none;
    color: black;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.menu > li > a:hover {
    color: #FF6347;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #FF6347;
}

/* Hide nav links on tablet/mobile — but nav-right (switcher + social) stays visible */
@media (max-width: 1024px) {
    .menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .logo { width: 60px; }
    .company-name { font-size: 1.1rem; }
    .menu > li > a { font-size: 1rem; }
}

@media (max-width: 480px) {
    .company-name { font-size: 0.85rem; }
    .logo { width: 45px; }
}

/* ============================================================
   NAV RIGHT — always visible wrapper (language + social)
   ============================================================ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;  /* never gets squished or hidden */
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.language-switch {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 3px 5px;
}

.lang-divider {
    color: #bbb;
    font-size: 0.75rem;
    user-select: none;
    line-height: 1;
    padding: 0 1px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #888;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    font-family: 'Raleway', sans-serif;
}

.lang-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.06);
}

.lang-btn.active {
    background: #222;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lang-btn.active:hover {
    background: #444;
}

.flag-icon {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

/* On mobile: hide EN/ES text labels — flags only */
@media (max-width: 480px) {
    .lang-btn span  { display: none; }
    .lang-btn       { padding: 4px 5px; }
    .lang-divider   { display: none; }
    .flag-icon      { width: 22px; height: 16px; }
}

/* ============================================================
   END LANGUAGE SWITCHER
   ============================================================ */


/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 10%;
    background-color: #f7f7f7;
    height: 100vh;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    max-width: 50%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-text {
    flex: 1;
    max-width: 50%;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: 1px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 20px;
    }
    .hero-content {
        flex-direction: column-reverse;
        gap: 20px;
    }
    .hero-text, .hero-image { max-width: 100%; }
    .hero-text h1 { font-size: 2rem; }
    .hero-text p { font-size: 1rem; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text p { font-size: 0.9rem; }
}

/* Inspiration */
.inspiration {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.inspiration h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    line-height: 1.2;
}

.content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.text {
    flex: 1;
    text-align: left;
}

.text h2 {
    font-size: 1.8rem;
    color: #555;
    margin-bottom: 10px;
}

.text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.image {
    flex: 1;
    text-align: center;
    opacity: 0;
}

.image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    transition: transform 0.5s ease-in-out;
}

.image-slide-right {
    animation: slide-in-right 1.5s ease-in-out forwards;
}

.image-slide-left {
    animation: slide-in-left 1.5s ease-in-out forwards;
}

@keyframes slide-in-right {
    0%   { opacity: 0; transform: translateX(200px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-left {
    0%   { opacity: 0; transform: translateX(-200px); }
    100% { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .inspiration h1 { font-size: 2rem; margin-bottom: 15px; }
    .content-row { flex-direction: column; gap: 30px; }
    .content-row.row-reverse { flex-direction: column; }
    .text { text-align: center; }
    .image img { width: 90%; margin: 0 auto; }
}

@media (max-width: 480px) {
    .inspiration h1 { font-size: 1.8rem; }
    .text h2 { font-size: 1.5rem; }
    .text p { font-size: 0.9rem; }
    .image img { width: 100%; }
}

/* Services */
.our-services {
    text-align: center;
    padding: 50px 20px;
    background-color: #f7f7f7;
    font-family: 'Raleway', sans-serif;
}

.our-services h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    overflow: hidden;
}

@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.service-item {
    display: flex;
    flex: 1 1 calc(50% - 40px);
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-play-state: paused;
}

.service-item.visible {
    animation-play-state: running;
}

@media (max-width: 1024px) {
    .service-item { flex: 1 1 calc(100% - 40px); }
    .service-item .icon img { width: 60px; }
}

@media (max-width: 768px) {
    .our-services h1 { font-size: 2rem; }
    .services-grid { gap: 20px; }
    .service-item { flex: 1 1 calc(100% - 20px); padding: 15px; }
    .service-item .icon img { width: 50px; height: auto; }
}

@media (max-width: 480px) {
    .service-item .icon img { width: 40px; }
}

@media (min-width: 1200px) {
    .service-item .icon img { width: 60px; }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .service-item .icon img { width: 50px; }
}

/* Gallery */
.gallery-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.gallery-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.gallery-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.see-more { margin-top: 30px; }

.see-more .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    border: 2px solid black;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.see-more .btn:hover {
    background-color: black;
    color: white;
}

@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .gallery-title { font-size: 2rem; }
    .gallery-subtitle { font-size: 1rem; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
    .gallery-title { font-size: 1.8rem; }
    .gallery-subtitle { font-size: 0.9rem; }
}

/* ============================================================
   OUR CLIENTS SECTION
   ============================================================ */

@keyframes marquee-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.our-clients {
    text-align: center;
    padding: 50px 20px;
    background-color: #f7f7f7;
    font-family: 'Raleway', sans-serif;
    overflow: hidden;
}

.clients-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.clients-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
}

.clients-header {
    text-align: center;
    padding: 0 24px 48px;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.marquee-fade-left,
.marquee-fade-right {
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee-fade-left  { left: 0;  background: linear-gradient(to right, hwb(0 85% 15%), transparent); }
.marquee-fade-right { right: 0; background: linear-gradient(to left,  #d3d3d369, transparent); }

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 10px 0;
    animation: marquee-left 35s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 90px;
    background: rgba(112, 112, 112, 0.04);
    border: 1px solid rgba(167, 62, 62, 0.08);
    border-radius: 12px;
    padding: 0 28px;
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    cursor: default;
}

.logo-card:hover {
    background: rgba(183, 184, 124, 0.884);
    border-color: rgba(181,147,90,0.4);
    transform: translateY(-3px);
}

.logo-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: normal;
    color: #333;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.4;
    transition: color 0.3s;
}

.logo-text small {
    font-family: 'Raleway', sans-serif;
    display: block;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: #555;
    font-weight: 400;
    margin-top: 3px;
}

.logo-card:hover .logo-text { color: #b5935a; }

@media (max-width: 768px) {
    .marquee-fade-left, .marquee-fade-right { width: 60px; }
    .logo-card { min-width: 140px; height: 76px; }
}

/* ============================================================
   OUR CLIENTS REVIEW SECTION
   ============================================================ */
#client-reviews {
    padding: 100px 8%;
    background: #f9f9f9;
}

.reviews-wrapper {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.reviews-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.reviews-subtitle {
    font-size: 18px;
    color: #777;
    margin-bottom: 60px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-align: left;
    transition: 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.review-stars {
    color: #f4b400;
    margin-bottom: 15px;
    font-size: 18px;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
}

.review-author {
    font-weight: 600;
}

.review-date {
    font-size: 14px;
    color: #888;
}

/* Products */
.our-products {
    text-align: center;
    padding: 50px 20px;
    background-color: #f7f7f7;
    font-family: 'Raleway', sans-serif;
}

.our-products h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.our-products p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
}

.products-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
}

.product-item {
    flex: 1 1 calc(20% - 20px);
    max-width: 150px;
    text-align: center;
    padding: 10px;
}

.product-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
}

.product-item img:hover {
    transform: scale(1.1);
    filter: grayscale(100%);
}

@media (max-width: 768px) {
    .product-item { flex: 1 1 calc(50% - 20px); }
}

@media (max-width: 480px) {
    .product-item { flex: 1 1 100%; }
}

/* Countries / Map */
.countries-worked {
    text-align: center;
    padding: 60px 20px;
    background-color: #f7f7f7;
    font-family: 'Raleway', sans-serif;
}

.countries-worked h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.countries-worked p {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 40px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.country-marker {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #FF6347;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    padding: 5px;
}

.country-name {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.country-marker:hover .country-name {
    opacity: 1;
    visibility: visible;
}

.country-marker:hover {
    background-color: #FF4500;
}

@media (max-width: 768px) {
    .map-container { height: 300px; }
    .country-marker { width: 12px; height: 12px; }
    .country-name { font-size: 0.9rem; }
}

/* Contact */
.contact-us {
    background-color: #f7f7f7;
    padding: 60px 20px;
    font-family: 'Raleway', sans-serif;
    text-align: center;
}

.contact-us h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.contact-us p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.contact-detail {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 30%;
    max-width: 350px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-detail h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.contact-detail p, .contact-detail ul {
    font-size: 1rem;
    color: #666;
}

.contact-detail ul {
    list-style-type: none;
    padding: 0;
}

.contact-detail li { margin: 10px 0; }

.contact-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.languages { margin-top: 10px; }

.languages .flag {
    width: 30px;
    height: auto;
    margin: 0 5px;
    display: inline-block;
}

.social-media {
    margin-top: 40px;
    text-align: center;
}

.social-media h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.social-media ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-media li { display: inline-block; }

.social-icon {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icon:hover { color: #000; }
.social-icon.facebook:hover  { color: #3b5998; }
.social-icon.twitter:hover   { color: #1DA1F2; }
.social-icon.instagram:hover { color: #E4405F; }
.social-icon.linkedin:hover  { color: #0077b5; }

.footer {
    margin-top: 40px;
    font-size: 1rem;
    color: #777;
}

.footer p { margin-top: 20px; }

@media (max-width: 768px) {
    .contact-detail { width: 45%; }
    .social-media ul { gap: 15px; }
    .social-media h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .contact-detail { width: 100%; padding: 20px; }
    .contact-us h1 { font-size: 2rem; }
    .contact-us p { font-size: 1rem; }
    .languages .flag { width: 25px; }
    .social-media ul { gap: 10px; }
    .social-media h3 { font-size: 1.2rem; }
    .social-icon { font-size: 1.2rem; }
}

/* Back to top */
.totop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
}

.totop:hover {
    background-color: #444;
    transform: scale(1.1);
}

.show-button { display: block; }

@media (max-width: 768px) {
    .totop { width: 40px; height: 40px; font-size: 18px; }
}

@media (max-width: 480px) {
    .totop { width: 35px; height: 35px; font-size: 16px; }
}