@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;700&display=swap');

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #fbf8ef;
    padding-top: 100px; /* Adjusted for new header height */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: #352a00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
    max-width: 100%;

    /* ✅ do NOT split long words */
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* Header */
header {
    background: #202529; /* Semi-transparent dark blue */
    padding : 1.5rem 0; /* Increased padding for taller header */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Needed for absolute positioning of menu-toggle */
}

header .logo img {
    height: 25px; /* Increased height */
}

header nav {
    display: block; /* Default for desktop */
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 20px;
}

header nav ul li a {
    font-weight: bold;
    color: #fff; /* White text for initial dark header */
}

.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the sliding menu */
    color: #fff; /* White icon for initial dark header */
}

header.scrolled .menu-toggle {
    color: #ffffff; /* Dark icon when scrolled */
}

/* Hero Section */
#hero {
    background-image: url('kep.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    position: relative; /* Added for overlay positioning */
    z-index: 1; /* Ensure hero content is above other elements if needed */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay with 50% transparency */
    z-index: -1; /* Place behind content */
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative; /* Ensure text is above overlay */
    z-index: 1;
}

#hero p {
    position: relative; /* Ensure text is above overlay */
    z-index: 1;
}

.main-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem auto;
}

.main-content > section {
    margin: 0;
}

.main-content > section.about {
    flex: 2;
}

.main-content > section.contact {
    flex: 1;
}

/* Sections */
section {
    background: #faf5e6;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 15px; /* Increased for more rounded edges */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;

    /* ✅ responsive sizing so it fits phones without splitting words */
    font-size: clamp(1.6rem, 5.2vw, 2.2rem);
    line-height: 1.12;

    color: #2c3e50; /* Restore original color */
}

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

.service {
    background: #e9dfd1;
    padding: 2rem;
    box-shadow: #d6d0c8 0px 4px 6px -1px, #b1b1b1 0px 2px 4px -1px;
    border-radius: 8px;
    text-align: center;
}

.service i {
    font-size: 3rem;
    color: #352a00;
    margin-bottom: 1rem;
}

.service h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service ul {
    padding-left: 0;
    list-style: none;
}

/* Contact Section */
#contact {
    text-align: center;
}

/* Footer */
footer {
    background: #202529;
    color: #ccc; /* Changed to light gray */
    padding: 0.5rem 0; /* Further reduced padding */
    font-size: 0.7rem; /* Further reduced font size */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 0.5rem; /* Further reduced margin */
}

.footer-about, .footer-links, .footer-contact {
    flex: 1;
}

.footer-about img {
    height: 15px; /* Increased image height */
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li a {
    color: #ccc; /* Changed to light gray */
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #f9f2da;
    padding-top: 0.2rem; /* Further reduced padding */
}

footer p {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

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

    header .container {
        flex-wrap: wrap;
        justify-content: space-between; /* Keep logo and toggle separated */
        align-items: center;
    }

    .main-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    body {
        padding-top: 80px;
    }

    section {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 12px;
    }

    /* ✅ keep alignment change, DO NOT override font-size (clamp handles it) */
    section h2 {
        text-align: left;
        margin-bottom: 1.2rem;
    }

    
    section {
    width: 88%;
    margin: 0 auto;
    margin-bottom: 15px;
    }

    header nav {
        width: 80%;
    }

    .menu-toggle{
        color:#f1f1f1;
    }

    header nav {
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen to the left */
        height: 100vh;
        width: 70%; /* Adjust width as needed */
        background-color: #fff;
        padding-top: 60px; /* Space for header content */
        transition: left 0.3s ease-in-out; /* Smooth slide animation */
        overflow-y: auto; /* Enable scrolling for long menus */
        z-index: 999;
        display: block; /* Override display: none for mobile menu */
        order: 1;
    }

    header nav.nav-active {
        left: 0; /* Slide into view */
    }

    header nav ul {
        display: block; /* Stack items vertically */
        padding: 0;
        margin-top: 20px;
    }

    header nav ul li {
        display: block;
        margin: 10px 0;
        text-align: left; /* Align text to the left in the sliding menu */
        padding: 10px 20px;
    }

    header nav ul li a {
        color: #000000;
        display: block;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon on mobile */
        order: 3;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

    /* ✅ REMOVED the duplicate "section h2 { font-size: 2.2rem; }" from your original */

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f0f0f0;
        padding-left: 15px;
    }

    .language-switcher {
        order: 2;
        margin-left: auto;
    }

    .language-switcher a {
        margin-left: 5px;
        border-color: #fff;
        color: #fff;
    }
   /* Center the gallery block and its images on mobile */
    .image-gallery{
        display: flex;
        flex-direction: column;
        align-items: center;   /* centers images horizontally */
        justify-content: center;
        gap: 16px;             /* space between images */

    }

/* Make images responsive + centered + not oversized */

    .image-gallery img {
        display: block;
        width: auto;
        max-width: 100%;
        height: 70vh;       /* controls visual height */
        object-fit: cover;  /* prevents distortion */
        border-radius: 12px;
        margin: 0 auto;
    }
    html, body {
        overflow-x: hidden;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffe694;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #202529;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #fff7db}

.dropdown-content.show {
    display: block;
}

/* Language Switcher */
.language-switcher {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.language-switcher a {
    padding: 5px 10px;
    border: 1px solid #fff;
    margin-left: 5px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.language-switcher a.active {
    background-color: #fcd088;
    color: #fff;
    border-color: #fcd088;
}

#main-image img {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 20px 0;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.image-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}
