/* =========================
   GENERAL STYLES
========================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    text-align: center;
    font-size: 16px;
}

/* =========================
   LOGO AND SITE TITLE
========================= */
.logo-and-title img {
    width: 190px;
    height: auto;
}


/* =========================
   HEADER
========================= */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;

    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.5rem;
    align-items: center;
}

.header-left img {
    width: 190px;
    height: auto;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

header {
    font-size: 1.5rem;
    letter-spacing: 1px;
    background-color: #3b3737;
    color: #EEEEEE;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;  /* allow full width */
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;   /* reduced from 10px */
    color: #8eaece;
    margin-left: 1rem;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.5);
    white-space: normal;   /* allow wrapping */
    max-width: 100%;       /* prevent overflow */
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2.5rem); /* scales from 1.5rem to 3rem depending on screen */
    margin-top: 0.75rem;
    justify-content: flex-start;   /* left aligned on desktop */
}


/* =========================
   NAV LINKS
========================= */
nav a {
    color: #fcfcfc;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1.25rem, 1.5vw, 1.4rem);/* slightly smaller text */
    letter-spacing: 0.5px;
    padding: 0.6rem 1rem;   /* slightly tighter */
    border-radius: 6px;

    min-width: 100px;       /* shorter buttons */
    text-align: center;

    transition: background-color 0.3s ease, transform 0.2s ease;
}


nav a:hover {
    text-decoration: underline;
    color: #c91111;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* =========================
   HERO SECTION
========================= */
.hero h2 {
    background: linear-gradient(to right, #222, #444);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4rem;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    background-color: #E63946;
    color: white;
    padding: 18px 25px; /* bigger padding */
    font-size: 1.4rem;  /* bigger letters */
    text-decoration: none;
    border-radius: 10.5px;
    margin-bottom: 60px;
    font-weight: 700;   /* optional: make text bold */
}

.btn:hover {
    background-color: #c62828;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* =========================
   CONTENT BOXES
========================= */
.content {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(142, 174, 206, 0.75);
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    line-height: 1.6;
    font-size: 1.4rem;
}

.content p {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* =========================
   FEATURES
========================= */
.features {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 2rem 5rem;
    background-color: rgba(142, 174, 206, 0.75);
}

.features div {
    max-width: 250px;
    color: #1a1a1a;
    font-size: 2rem;
}

.features h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.features p {
    font-size: 1.5rem;
    line-height: 1.2;
}

/* =========================
   GLOBAL IMAGE STYLE
========================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* =========================
   FOOTER
========================= */
footer {
    font-size: 1.2rem;
    background-color: #666;
    color: #EEEEEE;
    text-align: center;
    padding: 1.4rem;
    margin-top: 2rem;
}

/* =========================
   GALLERY SLIDER (FIXED)
========================= */
.gallery {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
    width: max-content;
}

.gallery-track img {
    width: 300px;
    flex-shrink: 0;
    display: inline-block !important;
    margin: 0 !important;
}

/* NAV ARROWS */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.nav-arrow.left {
    left: 5px;
}

.nav-arrow.right {
    right: 5px;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent image from overflowing viewport */
}

.zoom-pan-container {
    overflow: hidden;
    cursor: grab;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    user-select: none;
     display: flex;               /* add */
    justify-content: center;     /* add */
    align-items: center;         /* add */
}

.lightbox img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    transform: center center; /* Start normal size, centered */
    cursor: grab;
    transition: transform 0.2s ease;
    user-select: none;
}
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    nav {
        justify-content: center;
        gap: 1rem;
    }

    nav a {
        font-size: 1.05rem;
        padding: 0.6rem 1rem;
        min-width: 100px;
    }

    .features {
        flex-direction: column;
        padding: 2rem;
    }

    .gallery-track img {
        width: 250px;
    }
    .btn {
        padding: 14px 20px;   /* slightly smaller on mobile */
        font-size: 1.2rem;    /* smaller letters so it fits */
    }
}

/* =========================
   CONTACT FORM STYLING
========================= */
form label {
    font-weight: bold;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #222;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.2rem;
    font-family: Arial, sans-serif;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    border-color: #688bad;
    box-shadow: 0 0 8px rgba(64, 80, 124, 0.5);
    outline: none;
}

form textarea {
    resize: vertical; /* allow vertical resizing only */
}

form .btn {
    font-size: 1.6rem; /* make text larger */
    padding: 18px 25px; /* bigger button */
    font-weight: bold;
}
/* =========================
   BACK TO TOP BUTTON
========================= */
#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    background-color: #E63946;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 15px 20px;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: #c62828;
    transform: scale(1.1);
}

/* ============================================
   MOBILE FIXES
   ============================================ */
@media (max-width: 768px) {

    /* Make header centered + stacked */
    .header-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
}


    /* Logo smaller */
    .logo-and-title img {
        width: 120px;
    }

    /* Title smaller & wrap text */
    .site-title {
        font-size: 1.2rem;
        letter-spacing: 3px;
        white-space: normal;   /* THIS FIXES THE overflow */
        margin-left: 0;
        max-width: 90%;
    }

    /* Navigation becomes compact */
    nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    nav a {
        margin: 0;
        font-size: 1rem;
    }

    /* Features stack vertically */
    .features {
        flex-direction: column;
        padding: 1rem;
    }

    .features div {
        max-width: 100%;
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
    }

    /* Gallery images smaller */
    .gallery-track img {
        width: 200px;
    }

    /* Reduce hero section spacing */
    .hero h2 {
        font-size: 1.4rem;
        padding: 1rem;
        margin-bottom: 2rem;
    }
}
/* =========================
   LANGUAGE BUTTONS STYLES
========================= */
.language-buttons {
    margin-bottom: 0.5rem;
    text-align: right; /* aligns buttons to the right in header */
}

.lang-btn {
    background-color: #007BFF; /* blue button */
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.lang-btn:hover {
    background-color: #0056b3; /* darker blue on hover */
}
