/* Global Styles */
:root {
    --beige: #e8e3d9;
    --cream: #f5f2eb;
    --dark-text: #242424;
    --medium-text: #555555;
    --light-text: #888888;
    --wood-brown: #6d5843;
    --accent: #c9bcaa;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.language-selector select {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--dark-text);
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.9rem;
    padding: 5px 25px 5px 10px;
    border-radius: 4px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.language-selector select:hover {
    border-color: var(--wood-brown);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--wood-brown);
    box-shadow: 0 0 0 2px rgba(109, 88, 67, 0.2);
}

/* Header */
header {
    padding: 40px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 200px; /* Adjust based on your logo size needs */
    padding-left: 0;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Tenor Sans', sans-serif;
    background-color: var(--beige);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 90%;
    margin: 0 auto; /* Center the body with equal margins on left and right */
    padding: 0;
    letter-spacing: -0.5px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    padding: 10px 0;
    padding-left: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.logo h1 {
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 40px;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--light-text);
}

/* Hero Section */
.hero {
    margin: 5px 0 60px;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1rem;
    color: var(--medium-text);
    max-width: 600px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--wood-brown);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--dark-text);
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
}

.portfolio h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-item {
    margin-bottom: 30px;
    position: relative;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 3/2; /* Standard landscape ratio */
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    transition: all 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: blur(3px) brightness(0.9);
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: white;
    font-size: 1rem;
    max-width: 90%;
    line-height: 1.4;
    font-weight: 400;
    text-align: center;
    padding: 0 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Update mobile styles for portfolio overlay */
@media (max-width: 768px) {
    .portfolio-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.4);
    }
    
    .portfolio-image img {
        filter: blur(1px) brightness(0.9);
    }
    
    .portfolio-overlay h3 {
        font-size: 1.4rem;
    }
      .portfolio-overlay p {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .portfolio-image.placeholder {
        background-color: var(--accent);
    }
}

/* About Section */
.about {
    padding: 10px 0;
    background-color: var(--cream);
}

.about h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.about-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 30px;
    line-height: 1.4;
  
    max-width: 1200px;

}

.about-content {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    grid-template-areas: 
        "image text"
        "fulltext fulltext";
    gap: 20px;
}

.about-image {
    grid-area: image;
    max-width: 99.3%;
    overflow: hidden;
}

.about-image img {
    width: 99.3%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-text {
    grid-area: text;
    display: flex;
    flex-direction: column;
}

.about-fulltext {
    grid-area: fulltext;
    margin-top: 10px;
}

.about-section-item {
    margin-bottom: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
}

.about-text p, 
.about-fulltext p {
    font-size: 1rem;
    color: var(--medium-text);
    margin-bottom: 10px;
}

.about-section-item h4 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--dark-text);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: white;
}

.services h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 40px;
    text-align: center;
}

.services-content {
    max-width: 1000px;
    margin: 0 auto;
}

.services-intro {
    text-align: center;
    margin-bottom: 60px;
}

.services-intro p {
    font-size: 1.3rem;
    color: var(--medium-text);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: var(--cream);
    padding: 30px;
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-number {
    position: absolute;
    top: -15px;
    left: 30px;
    background-color: var(--wood-brown);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 15px;
    margin-top: 10px;
    color: var(--dark-text);
    line-height: 1.4;
}

.service-item p {
    font-size: 1rem;
    color: var(--medium-text);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--cream);
}

.contact h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.contact-content {
    max-width: 800px;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--medium-text);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.social-link {
    font-size: 1.1rem;
    color: var(--wood-brown);
    position: relative;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--dark-text);
}

.social-link:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--wood-brown);
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

.social-link:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Language Loader */
.language-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(232, 227, 217, 0.8); /* Semi-transparent beige */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.language-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent);
    border-top: 3px solid var(--wood-brown);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loader-text {
    color: var(--dark-text);
    font-size: 1rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery Overlay */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.gallery-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gallery-image-container {
    position: relative;
    width: 80%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-title {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 400;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-image-container {
        width: 90%;
        height: 70vh;
    }
    
    .gallery-title {
        font-size: 1.5rem;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }      .about-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "image"
            "text"
            "fulltext";
        gap: 15px;
    }
    
    .about-image {
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .services-intro p {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .logo {
        max-width: 160px; /* keeping consistent with the 20% reduction */
    }
    
    nav ul li {
        margin-left: 15px;
    }
    
    nav ul li a {
        font-size: 0.9rem; /* Reduced font size to prevent wrapping */
        white-space: nowrap; /* Prevent text from wrapping */
    }
    
    .language-selector {
        margin-left: 10px;
    }
      .about-content {
        gap: 15px;    }      .about-text p,
    .about-fulltext p {
        font-size: 1.1rem;
    }
    
    .about-subtitle {
        font-size: 1.3rem;
    }
    
    .about-section-item h4 {
        font-size: 1.3rem;
    }
    
    .language-selector select {
        padding: 5px 20px 5px 5px;
        font-size: 0.8rem;
    }    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-image {
        aspect-ratio: 4/3; /* Slightly more square ratio for mobile */
    }
    
    .container {
        width: 100%;
        padding: 0 2px;
        max-width: 95%;
    }
    
    .hero-image {
        max-height: 350px;
        margin-bottom: 10px;
    }
    
    .hero-image img {
        max-height: 350px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero {
        margin: 0 0 20px;
    }
    
    body {
        padding: 0;
        margin: 0;
    }    .about h2,
    .portfolio h2,
    .contact h2,
    .services h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .about-text p {
        font-size: 1.1rem;
    }
      .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-item {
        padding: 25px;
    }
    
    .about-section-item {
        padding: 25px;
    }
    
    .services-intro p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 160px; /* Keeping consistent with the 20% reduction */
    }
    
    nav ul li {
        margin-left: 10px; /* Further reduce margins between nav items */
    }
    
    nav ul li a {
        font-size: 0.7rem; /* Even smaller font size for extra small screens */
        white-space: nowrap; /* Prevent text from wrapping */
    }
    
    nav ul li {
        margin-left: 10px;
    }
 
    .portfolio-image {
        height: 180px; /* Further reduced height for extra small screens */
    }
    
    .hero-image {
        max-height: 250px;
        margin-bottom: 8px;
        width: 100%;
    }
    
    .hero_image img {
        max-height: 250px;
        width: 100%;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .container {
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }
    
    header {
        padding: 5px 0;
    }
    
    body, html {
        overflow-x: hidden;
        width: 95%;
        margin: 0 auto;
        padding: 0;
    }
    
    main, section {
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }
      .about {
        padding: 60px 0;    }      .about-text p,
    .about-fulltext p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .about-subtitle {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .about-section-item h4 {
        font-size: 1.2rem;
    }
    
    .about-content {
        gap: 15px;
    }
}

/* Footer */
footer {
    padding: 40px 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
    
    .logo {
        max-width: 160px; /* 20% smaller than the default 200px */
    }
    
    nav ul li {
        margin-left: 20px;
        margin-right: 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-image {
        max-height: 450px;
        margin-bottom: 15px;
    }
    
    .hero-image img {
        max-height: 450px;
    }
      .hero {
        margin: 5px 0 40px;
    }
    
    .portfolio-image {
        aspect-ratio: 3/2; /* Standard landscape ratio for tablet screens */
    }
    
    .about-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "image"
            "text"
            "fulltext";
    }
}

/* Placeholder styling for portfolio image */
.portfolio-image.placeholder {
    background-color: var(--accent);
    position: relative;
}

.portfolio-image.placeholder .portfolio-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
}