/* @import url(fonts/googleFont.css); */
@import url("https://fonts.googleapis.com");
@import url("https://fonts.gstatic.com");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap");

:root {
    --bg-color: #ece8df;
    --other-bg-color: #ffffff;
    --text-color: #333;
    --accent-color: #69AB95;
    --accent-light: #8eb4a7;

    --max-width: 1500px;
    --max-height: 780px;

    --bodyBG: #ffeaed;
    --textClr: #1b2741;
    --starClr: #f67034;
    --seectionBG: #f7f6f9;
}

html {
    min-height: 600px;
    /* overflow-x: clip; */
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    max-width: var(--max-width);
    min-width: 380px;
    margin: 0 auto;
    /* overflow: hidden; */
}

header, section {
    padding: 0 5em;

}

section:not(#home) {
    
    background-color: var(--other-bg-color);
}

header {
    background-color: var(--bg-color);
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    height: 65px;
    top: 0;
    z-index: 1;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.7rem;
}

.logo img {
    padding-top: 5px;
    height: 50px;
    cursor: pointer;
}

.menu {
    display: flex;
    color: var(--text-color);
    list-style: none;
}

.menu li {
    margin: 10px;
}

.menu a {
    text-decoration: none;
    display: inline-block;
    color: var(--text-color);
    font-weight: bold;
    width: 100%;
    
    border-radius: 8px;
    padding: .7em;
}

.menu a:hover {
    background-color: #548f715c;
}

.btn {
    border: var(--accent-color) solid 2px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    text-wrap: nowrap;
}

header .btn {
    text-decoration: none;
    padding: .5em 1.3em;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);

}

.menu .active a {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.side-menu {
    display: none;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    position: relative;
}

.side-menu-btn {
    font-size: 1.2em;
    cursor: pointer;
    padding: .8em;
    border-radius: 8px;
}

.side-menu-btn:hover {
    background-color: #2835313a;
}

.side-menu .times {
    display: none;
}

.side-menu .menu {
    /* display: flex; */
    flex-direction: column;
    justify-content: space-evenly;
    padding: 0 1.5em;
    /* gap: 50px; */
    position: absolute;
    width: 100%;
    top: 50px;
    /* gap: 20px; */
    /* background-color: #333; */
}

.side-menu.open {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-color);
    height: 300px;
    width: 300px;
    border-radius: 8px;
    transition: all 0.4s ease;
}

.side-menu.open .fa-bars {
    display: none;
}

.side-menu.open .side-menu-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    /* color: #ffffff; */
}

.side-menu.open .menu,
.side-menu.open .times {
    display: flex;
}

header .menu-btn {
    display: none;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: var(--text-color);
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

/* Main Section */

.row {
    display: flex;
    width: 100%;
    padding: 2em 0;
    gap: 2em;
}

.col-1, .col-2 {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100%;
}

h2 {
    text-align: center;
    font-size: 3rem;
    padding: 1em 0;
}

.wrapper {
    background-color: var(--bg-color);
    position: relative;
    height: clamp(650px, 100vh, var(--max-height));
    z-index: -1;
}

.profile {
    position: fixed;
    height: clamp(650px, 100%, var(--max-height));
    width: 100%;
    max-width: var(--max-width);
    top: 0;
    background-image: url(images/Profile_.png);
    background-position: 89% bottom;
    background-size: clamp(220px, 35%, 400px);
    background-repeat: no-repeat;
    z-index: -2;
}


/* --------- HOME SECTION ----------- */

/* Hero Section Styling */

.hero-section {
    position: relative;
}

.hero-content {
    position: absolute; 
    top: 2.8rem; 
    justify-content: center;
    max-width: 90vw;
    /* min-width: 90vw; */
    /* margin: 0 auto; */
}

.hero-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    /* Bold */
    font-size: 3.2em;
    /* Large size for desktop */
    margin-bottom: 0.2em;
    /* Spacing below headline */
    line-height: 1.2;
}

.hero-subheadline {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    /* Regular weight */
    font-size: 1.5em;
    /* Smaller than headline, but still prominent */
    margin-top: 0;
    margin-bottom: 1.1em;
    /* Spacing below subheadline */
    max-width: 700px;
    /* margin-left: auto; */
    /* margin-right: auto; */
    line-height: 1.5;
}

/* Call to Action Button */
.hero-cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    /* Green for action */
    color: #fff;
    width: fit-content;
    padding: 8px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.hero-cta-button:hover {
    background-color: var(--accent-light);
    /* Darker green on hover */
}

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

    .hero-subheadline {
        font-size: 1.2em;
        /* Smaller for tablets */
        width: 60%;
    }

}

@media (max-width: 1000px) {
    .hero-headline {
        font-size: 2.5em;
        /* Smaller for tablets */
    }

    .hero-subheadline {
        font-size: 1.2em;
        /* Smaller for tablets */
        /* width: 60%;  */
    }

}

@media (max-width: 850px) {

    .hero-subheadline {
        width: 90%;
        
    }
    .hero-content {
        top: -3.5vh;

    }

}


@media (max-width: 480px) {
    .hero-content {
        top: -15vh;
        /* Adjust position for smaller screens */
        max-width: 80%;
        /* Allow more width on mobile */
    }
    .hero-headline {
        font-size: 2em;
        /* Even smaller for mobile */
    }

    .hero-subheadline {
        font-size: 1em;
        
    }

    .hero-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

}

/* iPad screen sizes */
@media (min-width: 600px) and (min-height: 1000px) {
    .hero-content {
        top: -16vh;
    }
}


#home {
    
    display: flex;
    z-index: 0;
    height: clamp(650px, 100vh, var(--max-height));
}

#home .col-1 {
    justify-content: center;
    z-index: 2;
    padding-left: 3em;
    width: 100%;
}

#home .col-2 {
    width: 34%;
}

/* h1 {
    margin-bottom: .5em;
    font-size: 2.5em;
    line-height: 1.3em;
} */

/* h1 span {
    color: var(--accent-color);
    font-size: 3rem;
     
}
h1 .abbrev {
    color: var(--text-color);
    font-size: .8em;
    line-height: 0;
    padding: 0;
}

#home p {
    font-size: .7em;
    font-weight: bold;
    position: relative;
    margin-top: .5em;
} */


section img {
    height: 100%;
    /* max-height: 700px; */
    border-radius: 10px;
}

h3 {
    padding-bottom: 1em;
    font-size: 1.5em;
}
/* ------- ABOUT SECTION -------- */

#about {
    font-size: 1.1em;

}

#about p {
    padding: .4em 0;
    color: var(--text-color);
}

#about h3 {
    padding-top: 1.2em;
}

#about ul {
    list-style: none;
    display: grid;
    grid-gap: .4em;
    padding: 1em;
    color: var(--text-color);
}

#about ul.tools {
    grid-template-columns: repeat(auto-fit, minmax(109px, 1fr));
}

#about ul li {
    text-wrap: nowrap;
}


#projects {
    font-size: 1.2em;
}

#projects p{
    color: var(--text-color);
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-gap: 2em;
    /* margin-top: 50px; */
}

.project-grid .col-1, .project-grid .col-2 {
    width: 100%;
}

#projects .row {
    flex-direction: column;
}

.heading {
    text-align: center;
    /* font-size: 2.5rem; */
    /* padding: 1em 0; */


}

/* .content {
    width: 100%;
    /* height: 80vh; 
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.header {
    width: 100%;
    text-align: center;
}

.header h1 {
    font-size: 4em;
    text-transform: uppercase;
    color: var(--textClr);
} 
.products {
    width: 100%;
    height: 70%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
} */

.product {
    /* background-color: var(--seectionBG); */
    /* width: 500px; */
    /* height: 80vh; */
    position: relative;
    height:40rem;
    margin: 0 auto;
    max-width: 35rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column;
    gap: 4rem;
    /* justify-content: space-between; */
    
    border-radius: 10px;
    transition: .4s ease-in-out;
    /* min-width: 600px; */
    /* padding: 1rem; */
}

.image {
    position: relative;
    border-radius: 10px;
    display: flex;
    margin: 0 auto;
    width: 100%;
    height: 60%;
    /* padding: 2rem; */
}

.image img {
    position: absolute;
    
    width: clamp(12rem, 70%, 28rem);
    height: auto;
    object-fit: contain;
    /* margin: 1rem; */
    /* aspect-ratio: 16 / 9; */
}

.image:hover img:not(.img) {
    /* transform: scale(-15px); */
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
}

.img {
    width: 10% !important;
    height: auto !important;
    z-index: 99999;
}

.image img.img1{
    top: 50%;
    left: 5%;
    /* transform: translateX(-50%); */
    transition: all .3s cubic-bezier(0.075, 0.82, 0.165, 1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .3);
}

.image img.img2{
    top: 30%;
    left: 15%;
    transition: all .8s cubic-bezier(0.075, 0.82, 0.165, 1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .3);
    
}
.image img.img3{
    top: 10%;
    left: 25%;
    transition: all 1.6s cubic-bezier(0.075, 0.82, 0.165, 1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .3);
}

.description {
    height: 60%;
    padding: 1rem;
}

.namePrice {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}

.namePrice h3 {
    font-size: 1.5em;
    color: var(--text-color);
    height: 4rem;
}

.namePrice span {
    font-size: 1.15em;
    color: var(--accent-color);
}

.product p {
    font-size: 1.15rem;
    line-height: 25px;
}

.product:hover {
    /* transform: scale(-15px); */
    transform: scale(1.009);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
}

.stars svg {
    font-size: 1.3em;
    color: var(--starClr);
}

.buy {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.buy button {
    padding: 10px 20px;
    border-radius: 7px;
    border: none;
    background-color: var(--textClr);
    color: var(--seectionBG);
    font-size: 18px;
    cursor: pointer;
    transition: .3s;
}

.buy button:hover {
    transform: scale(1.1);
}





#contact p {
    margin-bottom: 1em;
    font-size: 1.3rem;
    /* font-size: calc(.85rem + 1vw); */
    /* font-size: clamp(.2rem, calc(10rem + 10vw), 1.4rem); */
    text-wrap: nowrap;
    color: var(--text-color);
}

#contact p .i {
    color: var(--text-color);
    margin-right: 1em;
    font-size: 1.5rem;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: var(--bg-color);
    padding: .6em;
    margin-bottom: 1em;
    color: var(--text-color);
    font-size: 1.2rem;
    border-radius: 6px;
}

form .btn2 {
    padding: .4em 1.5em;
    margin: 1.5em 0;
    font-size: 1.3rem;
}


footer {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    height: 65px;
    font-size: 1.3rem;

}

@media (max-width: 400px) {
   .container {
    font-size: .85rem;
   }

   #contact p{
    font-size: 1.2rem;
   }

   h2 {
    font-size: 2.5rem;
   }
   p {
    font-size: 1rem;
   }

}

@media (max-width: 850px) {
    header,
        section {
            padding: 0 2.4em;
    }
    

}

@media (max-width: 720px) {
    header,
        section {
            padding: 0 1.2em;
        }

    header .menu-btn {
        display: block;
    }

    .side-menu {
        display: flex;
    }

    .row {
        flex-direction: column;
    }

    .col-1, .col-2 {
        width: 100%;
    }

    #home .col-2 {
        height: 25%;
    }

    .menu {
        display: none;
    }
    header .btn {
        display: none;
    }

}




/* --- Project Detail Page Styles --- */
#project-page .wrapper {
    height: 30vh;

}
#project-page .wrapper .heading {
    font-size: clamp(2rem + 3vw, 3rem);
    margin-top: 4rem;

}

#project-detail {
    padding-top: 65px;
    /* Offset for fixed header */
    min-height: 100vh;
    /* Ensure it takes full height */
    /* background-color: var(--other-bg-color); */
}

#project-detail #hero {
    height: 30vh;
    background-color: #6e3939;
}

#project-detail .heading {
    text-align: left;
    /* Align project title to left */
    font-size: 2.8rem;
    padding-bottom: 0.5em;
    padding-top: 1em;
    /* Adjust spacing */
}

.project-content {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    gap: 2em;
    padding-top: 1em;
}

.project-images {
    flex: 1;
    /* Allow flex item to grow */
    min-width: 300px;
    /* Minimum width before wrapping */
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.project-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-info {
    flex: 2;
    /* Allow flex item to grow more */
    min-width: 300px;
    /* Minimum width before wrapping */
}

.project-info h3 {
    font-size: 1.8em;
    color: var(--accent-color);
    margin-top: 1em;
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--bg-color);
}

.project-info p {
    margin-bottom: 1em;
    line-height: 1.8;
}

.project-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5em;
}

.project-info ul li {
    margin-bottom: 0.5em;
    color: var(--text-color);
}

.project-info ul.tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
}

.project-info ul.tools li {
    background-color: var(--bg-color);
    padding: 0.4em 0.8em;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: nowrap;
}

.project-links {
    margin-top: 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.project-links .btn {
    padding: 0.8em 1.5em;
    font-size: 1em;
    text-decoration: none;
}

.back-to-projects {
    display: inline-block;
    margin-top: 3em;
    margin-bottom: 2em;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.back-to-projects:hover {
    color: var(--text-color);
}

/* Responsive adjustments for project detail page */
@media (max-width: 768px) {
    .project-content {
        flex-direction: column;
    }

    .project-images,
    .project-info {
        min-width: unset;
        /* Remove min-width on small screens */
        width: 100%;
    }

    #project-detail .heading {
        text-align: center;
        font-size: 2.2rem;
    }

    .project-info h3 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    #project-detail .heading {
        font-size: 1.8rem;
    }

    .project-info h3 {
        font-size: 1.5em;
    }

    .project-links {
        flex-direction: column;
    }
}


/* Styles for technology logos in lists */
#about ul.tools li,
.project-info ul.tools li {
    display: flex;
    /* Use flexbox to align logo and text horizontally */
    align-items: center;
    /* Vertically align items in the middle */
    gap: 0.5em;
    /* Space between logo and text */
    padding: 0.4em 0.8em;
    /* Keep existing padding */
    border-radius: 5px;
    /* Keep existing border-radius */
    /* background-color: var(--bg-color); */
    /* Keep existing background */
    font-size: 0.9em;
    /* Keep existing font-size */
    white-space: nowrap;
    /* Prevent wrapping for each tech item */
}

#about ul.tools li img,
.project-info ul.tools li img {
    height: 2.5em;
    /* Adjust based on your preferred icon size relative to text */
    width: auto;
    /* Maintain aspect ratio */
    vertical-align: middle;
    /* Ensures image aligns with text */
    margin-right: 0.2em;
    /* Small space between icon and text */
}

/* Specific adjustment for the about section's tools grid if needed for alignment */
#about ul.tools {
    /* Ensure the grid still works nicely with the flex items */
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    transition: all 1.6s cubic-bezier(0.075, 0.82, 0.165, 1);
    /* Adjusted min-width slightly */
}
#about ul.tools li:hover {
    transform: scale(1.1);
}

#form-status {
    font-weight: bold;
    transition: all 0.3s ease;
}