:root {
    --main-color: rgb(250, 247, 239);   /* Soft Cream */
    --secondary-color: #393D24; /* Dark Green */
    --secondary-color-hover: #4a4f2f;
    --accent-pink: #FFB3B3;    /* Soft Pastel Pink */
    --accent-yellow: #FFD166;  /* Pastel Yellow */
    --accent-blue: #A2D2FF;    /* Pastel Light Blue */
    --text-color: #333333;      /* Dark Gray */
    --subtle-text-color: #555555; /* Medium Gray */
}   
html, body {
    overflow-x: hidden; 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Istok Web", Helvetica, Arial, sans-serif;
    background-color: var(--main-color);
}



main {
    position: relative;
    margin-top: 182px;
    background-color: var(--secondary-color);
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header {
    width: 100vw;
    background-color: var(--main-color);
}

.logo {
    height: 80px; /* Static height instead of max-height */
    width: auto;
    display: block;
    margin: 1vw;
    margin-left: 2vw;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo-container {
    position: relative;
    text-decoration: none;
    min-width: fit-content;
    flex-shrink: 0;
    width: 250px; /* Fixed width for logo area */
    z-index: 101;
}

.banner {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    height: 150px;
    padding: 1rem;
    background-color: var(--main-color);
    z-index: 100;
    align-items: center;
    box-shadow: 0 4px 10px rgba(57, 61, 36, 0.2)
}

.navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-left: 20px; /* Space after logo */
}

/* For larger screens, allow true center */
@media (min-width: 1560px) {
    .navigation {
        position: absolute;
        /* left: 50%;
        transform: translateX(-50%);
        width: auto; */
    }
    

}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    row-gap: 0.5rem;    
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;   
    align-items: center;   
    text-align: center;
    font-size: 20px;
    padding-right: 20px;
}

nav a {
    color: black;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
    text-decoration: underline;
}

.log-in {
    justify-self: end;
}


/* emptypage */


.empty-page {
    background-color: var(--secondary-color);
    height: 800px;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 0.75rem;
}


.footer-content {
    background-color: var(--main-color);
    width: 100%;
    padding: 2rem;
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    gap: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.icon-link {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.footer-divider {
    width: 80%;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--secondary-color);
    opacity: 0.2;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.footer-column {
    text-align: center;
}

.footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--subtle-text-color);
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    color: var(--subtle-text-color);
    font-size: 0.9rem;
}

/* Add this to check for any elements inside main that might be causing spacing */
main > *:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Hide mobile elements by default */
.mobile-header {
    display: none !important;
}

.close-btn {
    display: none !important;
}

@media (max-width: 599px) {
    
    .footer-content {
        padding:0;
    }
    
    main {
        margin-top: 132px;
    }

    .banner {
        grid-template-columns: auto 1fr auto;
        height: 100px;
        padding: 1rem;
    }

    .logo {
        max-height: 60px;

    }

    .logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        grid-column: 2;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 200;
        cursor: pointer;
        width: 30px;
        height: 25px;
    }

    .menu-toggle.active {
        display: none !important;
    }

    .navigation {
        position: fixed;
        top: 0;
        left: -110%;
        width: 100%;
        height: 100vh;
        transform: none;
        background-color: var(--secondary-color);
        transition: left 0.3s ease;
        padding-top: 160px;
        z-index: 150;
    }

    .navigation.active {
        left: -5%;
    }
    
    .navigation.active nav ul li {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    

    .navigation.active .mobile-header {
        display: flex !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        background-color: var(--secondary-color);
        justify-content: center;
        align-items: center;
        z-index: 900;
    }

    .navigation .mobile-header .logo {
        height: 60px;
        margin: 1rem auto;
    }

    .navigation.active .close-btn {
        display: block !important;
        position: absolute;
        top: 2rem;
        left: 2rem;
        color: white;
        font-size: 3rem;
        cursor: pointer;
        z-index: 1000;
        background: none;
        border: none;
        padding: 0;
        line-height: 1;
    }

    nav ul {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
        text-align: center;
    }

    nav a {
        color: white;
        font-size: 1.8rem;
        font-weight: 300;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 1.5px;
        background-color: var(--secondary-color);
        position: absolute;
        transition: all 0.3s ease;
    }

    .menu-toggle span:first-child {
        top: 2px;
    }

    .menu-toggle span:nth-child(2) {
        top: 11px;
    }

    .menu-toggle span:last-child {
        top: 20px;
    }

    .leader_description h2 {
        text-align: center !important;
    }
    
    .leader_description h3 {
        text-align: center !important;
    }
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 85%;
    margin-top: 2%;
    margin-bottom: 2%;
    padding: 2rem;
    background-color: white;
    position: relative;
    min-height: calc(100vh - 100px - 2rem);
    background-color: var(--main-color);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-container {
        width: 85%;
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .contact-info {
        padding-left: 0;
        padding-right: 0;
    }
    
    .contact-form {
        padding: 1rem !important;
    }

    .form-group input,
    .form-group textarea,
    .name-group .name-fields .input-group input {
        width: 85% !important;  /* Force the width */
        display: block !important;
    }

    .name-group .name-fields {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.contact-info {
    padding-right: 2rem;
    padding-left: 2rem;
    text-align: left;
    max-width: 500px;
}

.contact-info h1 {
    color: var(--text-color);
    font-size: clamp(2.5rem, 5vw, 4.3rem);  /* Min size, preferred size, max size */
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.2;
    text-align: left;
}
.contact-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: left;
}

.company-details {
    margin-top: 3rem;
    text-align: left;
}

.company-details p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-align: left;
}

.contact-form {
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.name-group .name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.input-group {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
}

.sublabel {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: normal;
    font-size: 1.1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: normal;
    font-size: 1.1rem;
}

.required {
    color: var(--subtle-text-color);
    font-weight: normal;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E6E3DB;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    outline: 1px solid transparent;
    outline-offset: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 1px solid #E6E3DB;
    outline-offset: 2px;
    border: 1px solid #E6E3DB;
    box-shadow: none;
    background-color: white;  /* Change to white when focused */
}

.form-group input:hover,
.form-group textarea:hover {
    outline: 1px solid #E6E3DB;
    outline-offset: 2px;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(57, 61, 36, 0.2);
}

.submit-btn:hover {
    background-color: var(--secondary-color-hover);
    box-shadow: 0 4px 12px rgba(57, 61, 36, 0.3);
}

@media (max-width: 768px) {
   
    .contact-info {
        padding: 1rem;
    }
    
    .contact-info h1 {
        font-size: 2.75rem;
    }
    
    .name-group .name-fields {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.form-group textarea {
    resize: none;
}


/* Remove any mobile-specific styles from desktop view */
@media (min-width: 600px) {
    .menu-toggle {
        display: none;
    }

    .navigation {
        /* position: static; */
        background-color: transparent;
        padding: 0;
        width: 100%;
    }

    nav ul {
        flex-direction: row;
    }

    nav a {
        color: var(--text-color);
    }
}

.navigation.active + .menu-toggle span {
    display: none !important;  /* Hide menu toggle spans when nav is active */
}

/* Or alternatively, we can target the active menu toggle directly */
.menu-toggle.active span {
    display: none !important;  /* Hide spans when menu toggle is active */
}



.body_team {
    background-color: var(--secondary-color);

}

.team_container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.individual_container {
    display: flex;
    align-items: flex-start;
    background-color: var(--main-color);
    margin-bottom: 40px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(57, 61, 36, 0.1);
    transition: transform 0.3s ease;
    gap: 40px;
}

/* Alternate layout for even containers */
.individual_container:nth-child(even) {
    flex-direction: row-reverse;
}

.leader_picture {
    width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    /* box-shadow: 0 4px 12px rgba(57, 61, 36, 0.1); */
    flex-shrink: 0; /* Prevents image from shrinking */
}

.leader_description {
    flex: 1; /* Takes up 3/4 of the remaining space */
    padding: 0 20px;
}

/* Rest of the styles remain the same */
.leader_description h3 {
    color: var(--subtle-text-color);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: normal;
}

.leader_description h2 {
    color: var(--secondary-color);
    font-size: 32px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
}

.leader_description h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

.leader_description p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

.individual_container:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 8px 28px rgba(57, 61, 36, 0.15);
}

/* Updated responsive design */
@media (max-width: 1024px) {
    .individual_container,
    .individual_container:nth-child(even) {
        flex-direction: column;
        align-items: center;
        padding: 30px;
        gap: 30px;
    }

    .leader_description {
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .team_container {
        margin: auto;
        padding: 15px;
    }

    .leader_picture {
        width: 75%; /* Even larger image on small screens */
    }

    .leader_description h2 {
        font-size: 28px;
    }

    .leader_description p {
        font-size: 15px;
    }
}

/* TODO find the correct size for pictures with 
the ratio that resize correctly when vw is changed
 */




/* index page */

/* Main container styling */
.main_index {
    max-width: 800px;
    margin: 0 auto 0;
    padding: 40px;
    background-color: var(--main-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(57, 61, 36, 0.08); /* Subtle shadow using secondary color */
    position: relative;
}



/* Heading styling */
.main_index h2 {
    color: var(--secondary-color);
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.main_index h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;  /* Changed from 80px to full width */
    height: 2px;
    background: var(--secondary-color);  /* Changed from accent-yellow to secondary-color */
}

/* Paragraph styling */
.main_index p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 16px;
    position: relative;
    padding-left: 20px;
}

/* First paragraph special styling */
.main_index p:first-of-type {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
    padding-left: 0;
    border-left: none;
}

/* Last paragraph styling */
.main_index p:last-child {
    font-style: italic;
    margin-top: 35px;
    padding: 20px;
    background-color: rgba(162, 210, 255, 0.1); /* Very subtle blue background */
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
    display: none;
}



/* Adding a highlight section for key achievements */
.achievements {
    margin: 40px 0;
    padding: 25px;
    background-color: rgba(255, 209, 102, 0.1); /* Very subtle yellow background */
    border-radius: 8px;
    border-left: 3px solid var(--accent-yellow);
}

/* Media query for responsive design */
@media (max-width: 768px) {
    .main_index {
        margin: 80px 20px 0;
        padding: 25px;
    }
    
    .main_index h2 {
        font-size: 28px;
    }
    
    .main_index p {
        font-size: 15px;
    }
}

.main_index img {
    float: right;
    width: 300px;  /* adjust based on your image */
    margin: 0 0 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(57, 61, 36, 0.1);
}

/* contact page */

.spinner {
    border: 4px solid #f3f3f394; /* Light gray background */
    border-top: 4px solid var(--secondary-color); /* Blue spinner */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite; /* Spin animation */
}

/* Create the spinning effect */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.main_body {
    background-color: var(--secondary-color);
}



/* Service page */


.service_container h2 {
    color: var(--secondary-color);
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
}

.service_container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

.service_container p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

@media (max-width: 768px) {
    .service_container {
        margin: auto;
        padding: 15px;
    }
    .service_container h2 {
        font-size: 26px;
    }

    .service_container p {
        font-size: 15px;
    }
}


/* Dev durable page */

.single_objective_container {
  background-color: var(--main-color);
  margin-bottom: 40px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(57, 61, 36, 0.1);
  transition: transform 0.3s ease;
}

.list_style {
    line-height: 200%;
}