* {
    box-sizing: border-box;
}

:root {
    --bg-color: #eee9e3;
    --card-bg: #ffffff;
    --text-color: #222;
    --border-color: #ccc;
    --input-bg: #ffffff;
}

body.dark {
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-color: #eee;
    --border-color: #444;
    --input-bg: #333333; /* duller than pure card-bg, sits between bg and card */
}

body.dark img {
    filter: brightness(0.8);
}

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

@media (max-width: 600px) {
    header img {
        max-height: 300px;

    }
}

.top_section {
    background-color: var(--card-bg);
    width: 100%;
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: center;
    position: relative; /* anchor for the underline */
}



.nav_underline {
    position: absolute;
    bottom: 0;
    left: 0; /* fixed baseline — now translateX is measured from nav's left edge */
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s ease, width 0.3s ease;
}

nav ul{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;   /* ← removes the browser default 40px */
}


@media(max-width: 600px){
    nav ul{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;   /* ← removes the browser default 40px */
}
}


nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.2s ease; /* smooth the color change */
}

nav a:hover {
    color: #666; /* lighter grey — subtle "I'm interactive" cue */
}

main {
    max-width: 900px;
    width: 100%;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

main.fade-out {
    opacity: 0;
}

main h2, main h3, main h1 {
    text-align: center;
}

.contact_info {
    font-size: 1.1rem;
}
.contact_info h1 {
   
    font-size: 2rem;
    margin-top: 0;
}

.process_flow {
    text-align: center;
    background-color: var(--card-bg);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.contact_layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

@media(max-width: 600px){
    .contact_layout{
         flex-direction: column;
         align-items: center;
         text-align: center;
    }
}

.contact_info,
.contact_layout form {
    flex: 1;
}

.service_block {
    background-color: var(--card-bg);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.project_block {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.projects_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.project_item img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    display: block; /* removes small inline-image gap at the bottom, bonus fix */
}


.service_block h3 {
    font-size: 1.2rem;
    font-weight: bold;
}

.service_block h3 {
    text-align: left;
}


header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.top_right_controls {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.top_right_controls button {
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1.3rem;
    padding: 10px 15px;
    width: 60px; /* pick a value that fits your emoji + text comfortably */
}

body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            margin: 0;
            background-color: var(--bg-color);
            color: var(--text-color);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
            transition: background-color 0.3s ease, color 0.3s ease;

}

footer{
    display: flex;
    flex-direction: column;
    align-items: center; 
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

footer form {
    width: 380px;
}

@media(max-width: 600px){
    footer form{
        width: 100%;
    }
}


footer small {
    padding-top: 20px;
    padding-bottom: 20px;
    display: block;
}

form input,
form textarea {
    background-color: var(--input-bg);
    color: var(--text-color);
    width: 100%;
    font-size: 1.1rem;
    padding: 10px;
    border: 1px solid var(--border-color);      /* replace default border with something softer */
    border-radius: 6px;           /* rounded corners, matches your card radius elsewhere */
    font-family: inherit;         /* inherit the system font stack, not browser default */
    transition: border-color 0.2s ease;
}

form input:focus,
form textarea:focus {
    outline: none;                /* remove default blue browser outline */
    border-color: #666;           /* darker border signals "focused" instead */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1); /* soft ring, keyboard-nav friendly */
}

form textarea {
    resize: vertical;
    min-width: 250px;
    min-height: 80px;
}

form button {
    font-size: 1.1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: var(--text-color);       /* dark neutral, matches nav link color */
    color: var(--bg-color);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease; /* transition color too */
}

form button:hover {
    background-color: #444;
}

.lang_selector {
    position: relative;
}

.lang_option {
    display: none;
    position: absolute;
    top: 100%; /* right below the EN button */
    left: 0;
   
}

.lang_selector.open [data-lang] {
    display: block;
}

.lang_selector.open .lang_option:nth-child(2) {
    top: calc(100% + 5px);
}

.lang_selector.open .lang_option:nth-child(3) {
    top: calc(100% + 5px + 48px + 5px);
}

.contact_layout + iframe {
    margin-top: 20px;
    display: block;
}

.hero_layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    background-color: var(--card-bg);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.hero_text {
    flex: 1;
}

.hero_image {
    flex: 1;
    max-width: 30%;
    height: auto;
    width: auto;
    border-radius: 8px;
}

.process_images {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.process_images img {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.services_list li {
    margin-bottom: 10px;
}


.about_images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about_images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
}