@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

body{
    margin: 0;
    padding: 0;
    background-color: #f7f9fc;
    text-align: center;
    font-size: 18px;
    color: #2c3e50; 
}

h1{
    margin: 10px 0px;
    padding: 0;
    font-size: 40px;
}

header{
    padding: 0 2% 0 2%;
    display: flex;
    align-items: center;
    color: #7c6a0a;
}

header p{
    flex: 1;
    padding-left: 3%;
    font-size: larger;
    color: inherit;
    text-align: left;
}

nav{
    flex: 2;
}

a{
    text-decoration: none;
    color: inherit;
}

nav a:hover{
    background-color: inherit;
    color: #721121;
}

.navlinks{
    display: flex;
    transition: all 2s ease-in-out;
}

.navlinks ul{
    list-style-type: none;
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: 4em;
}

nav li{
    white-space: nowrap;
}

.toggle-btn{
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.toggle-btn .bar{
    height: 3px;
    width: 100%;
    border-radius: 10px;
    background-color: #7c6a0a;
}

main{
    padding: 2%;
}

.intro{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
}

.intro h3{
    color: #b8a59a;
}

.pic{
    flex: 2;
    justify-content: center;
}

.pic img{
    border-radius: 100%;
    max-width: 80%;
    min-width: 200px;
}

.about_text{
    flex: 3;
    height: auto;
    min-width: 250px;
    text-align: left;
}

button {
    margin-bottom: 5px;
    padding: 1rem 2rem; /* Balanced padding */
    border: 2px solid #b8a59a;
    background-color: #f7f4ef; /* Light cream background to match page */
    color: #4f4a45; /* Dark brown-gray text for readability */
    font-size: 16px;
    border-radius: 25px; /* Rounded button for a modern, friendly look */
    transition: all 0.3s ease; /* Smooth hover effect */
    cursor: pointer;
}

button:hover {
    background-color: #b8a582;
    border-color: #b8a59a;  
    color: #fff;
}

hr{
    width: 96%;
    text-align: center;
    color: #DBC2CF;
    background-color: #DBC2CF;
    margin-bottom: 0;
    margin-top: auto;
}

footer{
    text-align: center;
}

.foot_container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.foot_col{
    flex: 1;
    gap: 2rem;
    min-width: fit-content;
    max-width: 33%;
}

.social_logos{
    height: 30px;
    width: 30px;
    margin: 0.5%;
}

/* about */
#about_main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.download-cv {
    text-align: right;
    margin-bottom: 20px;
}

.download-cv button {
    background-color: #4A6572 ;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.download-cv button:hover {
    background-color: #3A5562;
}

.card {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    color: #4A6572;
}

.details {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.details div {
    flex: 1;
}

.details h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.details p:last-child {
    margin: 5px 0 0;
}

/*projects*/
/* General Section Styling */
#projects {
    padding: 50px;
    background-color: #f9f9f9;
    text-align: center;
  }
  
  #projects h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  /* Container for Project Cards */
  .projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  /* Individual Project Card Styling */
  .project-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  .project-card h3 {
    font-size: 1.5rem;
    margin: 15px;
    color: #333;
  }
  
  .project-card p {
    font-size: 1rem;
    color: #555;
    margin: 0 15px 15px;
  }
  
  .project-card .project-link {
    display: inline-block;
    margin: 10px 15px 15px;
    padding: 10px 20px;
    background-color: #6b8e94    ;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .project-card .project-link:hover {
    background-color: #4f707a    ;
  }

/*contact*/
/* Contact Section Layout */
.contact-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f4f3f2;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 60%;
    margin: 30px auto;
    height: auto;
}

/* Left Section */
.contact-left {
    flex: 1;
    padding: 20px;
    min-width: 100px;
    color: #6c4f3d; /* Warm brown for text */
}

.contact-left h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #4b3c28; /* Darker brown for emphasis */
}

.contact-left p {
    font-size: 16px;
    line-height: 1.5;
    color: #7a6a56; /* Softer brown-gray for body text */
}

/* Right Section (Form) */
.contact-right {
    flex: 1.5;
    padding: 20px;
    background-color: #ffffff; /* White background for the form */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: fit-content; /* Prevent overflow */
    min-width: 150px;
}

/* Form Elements */
.contact-form input,
.contact-form textarea {
    width: 100%; /* Ensure they do not exceed the parent container */
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #d0c7b7; /* Soft taupe border */
    border-radius: 8px; /* Rounded edges */
    background-color: #fff; /* White input background */
    color: #4f4a45; /* Dark text for readability */
    font-size: 16px;
    box-sizing: border-box; /* Include padding and border in the width */
}

/* Textarea resize and fixed height */
.contact-form textarea {
    resize: none;
    height: 120px;
}

/* Button Style */
.submit-btn {
    padding: 12px 25px;
    border: none;
    background-color: #d6c9a1; /* Soft beige with a hint of yellow */
    color: #4f4a45; /* Dark brown-gray text */
    border-radius: 25px; /* Rounded button shape */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #b8a582; /* Darker beige for hover */
    color: #fff; /* White text on hover */
}

/*-----------------------------------------------------------------------------------------*/

@media (max-width: 610px) {
    .toggle-btn{
        display: flex;
    }

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

    nav{
        padding: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-end;
    }

    .navlinks{
        display: none;
        flex-direction: column;
    }

    .navlinks ul{
        flex-direction: column;
        gap: 1vh;
        padding: 0;
        margin: 0;
    }

    .navlinks.active{
        display: flex;
    }

    .foot_container{
        flex-direction: column;
        align-items: center;
    }
    .contact-container {
        flex-direction: column; /* Stack elements vertically */
        min-width: fit-content;
        align-items: center;
    }

    .contact-left,
    .contact-right {
        flex: unset; /* Reset flex growth */
        width: 80%; /* Full width for both sections */
        align-items: center;
        justify-content: center;
    }
}