@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400..700&family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400..700&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Fascinate&family=Ibarra+Real+Nova:ital,wght@0,400..700;1,400..700&family=Quicksand:wght@300..700&display=swap');

:root{
    --text-color: #1F1811;
    --base-color1: #FCFCF0;
    --base-color2: #F2F2D8;
    --primary-color: #9DBDA0;
    --secondary-color: #9B74B8;

    --heading-font: Domine, 'Times New Roman', Times, serif;
    --body-font: Quicksand, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --special-font: fascinate, Domine, 'Times New Roman', Times, serif;
}

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

html {
    font-family: var(--body-font);
    color: var(--text-color);
    font-size: 18px;
}

body{
    background-color: var(--base-color1);
}

h1, h2, h3{
    font-family:  var(--heading-font);
    font-weight: normal;
}


#logo{
    width: 20px;
    height: auto;
    margin: 15px 10px 15px 50px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand h1{
    font-size: 20px;
}


/* Navigation */
header{
    display: flex;

    align-items: center;
    color: var(--text-color);
    font-size: 18px; 
    position: sticky; 
    z-index: 1000; 
    top: 0; 
    justify-content: space-between;
    background-color: rgb(from var(--base-color1) r g b / 0.8); 
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border-bottom: solid 1.5px var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: left;
    padding: 0px 50px;
}

nav a,
h1 a {
    color:var(--text-color);
    text-decoration: none;
    padding: 5px;
    margin-right: 20px;
}

nav a:visited,
h1 a:visited {
    color: var(--text-color)
}

nav a:hover,
h1 a:hover {
    color: var(--secondary-color);
}

/* Hamburger */

.hamburger{
    display: none;
    background: none;
    border: none;
    padding: 10px;
    margin-right: 25px;
    cursor: pointer;
}

.hamburger span{
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: var(--text-color);
}

.hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    background: var(--base-color1);
}

.hero-background {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 0;
}

.hero-left {
    width: 390px;
    height: 500px;
    flex-shrink: 0;

    background: url("../portfolioImg/hero-left.png") no-repeat left top;
    background-size: 390px 500px;
}

.hero-middle {
    flex: 1;
    min-width: 0;
    height: 500px;
    background: url("../portfolioImg/hero-middle.png") no-repeat;
    background-size: 100% 500px;
}

.hero-right {
    width: 319px;
    height: 500px;
    flex-shrink: 0;
    background: url("../portfolioImg/hero-right.png") no-repeat right top;
    background-size: 319px 500px;
}

.hero-content {
    position: relative;
    z-index: 1;

    min-height: 500px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 3rem;
}

.hero h1{
    font-size: 90px;
    font-family: var(--special-font);
    color: var(--primary-color);
    line-height: 1.15em; 
    text-shadow: 0px 0px 40px rgba(252,252,240,1);
}

.hero p{
    padding-top:1rem;
    color: var(--text-color);
    /* text-shadow: 0px 0px 10px rgba(0,0,0,0.7); */
}

.hero-buttons{
    display: flex;
    flex-direction: row;
    gap: 1rem;
}



/* CTA Buttons */
.cta-button{
    display: inline-block;
    text-decoration: none;
    color: var(--base-color1);
    background-color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    margin: 1rem 0.25rem 1rem 0.25rem;
}

.secondary{
    background-color: var(--base-color1);
    border: 2px solid var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color);
}

.cta-button:hover{
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    filter: brightness(0.97); 
}


/* Featured Projects */
.featured{
    padding:1rem 2rem;
    width: 100vw;
    background-color: var(--base-color1);
}

.featured-project-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1rem;
    align-items: stretch;
}

.featured-project-grid img{
    width: 100%;
    aspect-ratio: 14 / 9;
    object-fit: cover; 
    display: block; 
    border-radius: 1rem;
}

.featured-project-grid .featured-card{
    height: 100%;
    box-sizing: border-box;
    background-color: var(--primary-color);
    padding: 0.75rem 0.75rem 1rem 0.7rem;
    border-radius: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.featured h1{
    padding: 0.5rem 0rem;
}

.featured h2{
    padding: 0.3rem 0rem;
}

.featured-project-grid .featured-card:hover{
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    filter: brightness(1.05); 
    background-color: var(--secondary-color);
}

.view-more{
    display: inline-block;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    font-size: 18px;
}

.view-more:hover{
    color:var(--secondary-color);
}


/* Footer */
#footer{
    background-color: var(--primary-color);
    align-items: center;
    text-align: center;
    padding: 5rem 0rem;
}

#footer img{
    height: 4rem;
}

#footer h1{
    padding: 0.5rem 0rem;
}

#footer p a{
    text-decoration: none;
    color: inherit;
    display: block;
    padding-top: 1rem;
}

.footer-links{
    display: flex;
    justify-content: center;
    gap: 2rem;
    width:28rem;
    margin:0 auto;
    border-bottom: 1px solid var(--text-color);
    border-top: 1px solid var(--text-color);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}

.footer-links a:hover,
#footer p a:hover{
    color: var(--secondary-color);
}

.footer-links a{
    text-decoration: none;
    color: inherit;
}

/* About me */
.fullSection{
    padding:1rem 1.5rem;
    width: 100vw;
    background-color: var(--base-color1);
}

.fullSection h1{
    padding:0.5rem 0rem;
}
.aboutMe p{
    padding: 0.5rem 0rem;
}


/* Projects Page */
.projects-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:0.75rem;
    align-items: stretch;
}

.projects-grid img{
    width: 100%;
    aspect-ratio: 14 / 9;
    object-fit: cover; 
    display: block; 
    border-radius: 1rem 1rem 0rem 0rem;
}

.projects-grid .projects-card{
    height: 100%;
    box-sizing: border-box;
    background-color: var(--primary-color);
    /* padding: 0.25rem 0.25rem 1rem 0.25rem; */
    border-radius: 1.25rem;
    text-decoration: none;
    color: inherit;
    border: 3px solid var(--base-color2);
    text-align: center;
}

.projects h1{
    padding: 0.75rem 0rem;
}

.projects h2{
    padding: 1.5rem 0.75rem 0.5rem 0.75rem;
}

.projects h3{
    padding: 0.25rem 0.75rem 1.5rem 0.75rem;
    font-size: 16px;
    font-family: var(--body-font);
    /* font-weight: bold; */
}

/* .projects p{
    padding: 0.5rem 0.75rem;
} */

.projects-grid .projects-card:hover{
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    filter: brightness(1.05); 
    /* background-color: var(--secondary-color); */
}



/* Media Screen */

/* home page project grid */
@media screen and (max-width:850px) {
    
    .featured-project-grid{
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
    }

    .projects-grid{
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
    }

    .hero h1{
        font-size: 75px;
    }

    .hero p{
        padding-top:0.5rem;
    }

}

/* Hamburger Menu */
@media screen and (max-width:700px) {
    #logo{
        margin-left: 20px;
    }

    nav{
        display: none;
    }

    .hamburger{
        display: block;
    }

    nav.open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        /* background-color: var(--base-color1); */
        border-bottom: 1.5px solid var(--primary-color);
        background-color: rgb(from var(--base-color1) r g b / 0.9); 
        backdrop-filter: blur(8px) saturate(120%);
        -webkit-backdrop-filter: blur(8px) saturate(120%);
    }

    nav.open ul {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        margin: 0;
        gap: 1rem;
        border-top: 1px solid var(--primary-color);
        border-bottom: 1px solid var(--primary-color);
    }

    nav.open li{
        width: 100%;
        text-align: center;
    }

    nav.open li + li {
        border-top: 1px solid var(--base-color2);
        padding-top: 1rem;
    }

    nav.open li a {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

}

@media screen and (max-width:700px){
    /* Footer Lines */
    .footer-links{
        width: 20rem;
    }

    /* CTA Buttons */
    .cta-button{
        padding: 0.5rem 1rem;
    }

}