/* colors */
:root {
    /* Primary Colors */
    --deep-purple: #0b1956;
    --bright-purple: #dbd6fa;
    /* Secondary Colors */
    --cream-white: #fdf8f1;
    --muted-purple: #dadce8; 
    --light-purple: #f6f6f7; 
    /* Typography */
    --text-color: #00011e;
    --project-keywords: #666778;

    --secondary-color: #466ec3;
    --accent-shadow: #c5c1e1;
    --project-box-shadow-color: #c6c2bd;
  }
html{
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-purple);
    height: 100%;
    margin: 0;
    padding: 0;
}

h1 {
    color: var(--text-color);
    font-family: 'Quicksand';
    font-weight: bolder;
    font-size: clamp(48px, 9vw, 104px);
}

h2 {
    color: var(--text-color);
    font-family: 'Quicksand';
    font-weight: bold;
    font-size: clamp(30px, 5vw, 42px);
}
h3 {
    color: var(--text-color);
    font-family: 'Quicksand';
    font-size: clamp(22px, 3vw, 28px);
}

p {
    color: var(--text-color);
    font-family: 'Inter';
    font-size: clamp(18px, 2vw, 22px);
    font-weight: normal;
}
/* Nav Bar */
nav {
    height: 54px;
    width: 100%;
    background: rgb(70,110,195);
    background: linear-gradient(90deg, rgba(70,110,195,1) 0%, rgba(11,25,86,1) 100%);
    padding-top: 0%;
    position: fixed;
    top: 0;
    overflow: hidden;
    z-index: 1000;
}
.nav_bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
    padding: 0px 32px 0px 32px;
}


nav a{
    font-family: 'Inter';
    font-size: 16px;
    margin: 15px;
}

nav a:link, nav a:visited{
    color: var(--bright-purple);
    text-decoration: none;
}

nav a:hover, nav a:active{
    color: var(--accent-shadow);
}


/* Section: Landing Page */
.landing {
    align-items: center;
    background-color: var(--cream-white);
    
}
.intro{
    text-align: center;
    padding: 105px 260px;
}
.my-name{
    color: var(--bright-purple);
}
.my-title{
    color: var(--deep-purple);
}

.intro > h1{
    font-size: clamp(48px, 9vw, 140px);
}

/* Section: Projects */
.projects{
    height: auto;
    background-color: var(--cream-white);
    padding: 60px 0px;
}

.project_grid{
    max-width: 1500px; 
    margin: 0 auto;
    /*  */
    display: grid;
    column-gap: 25px;
    row-gap: 124px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    padding: 32px;
    justify-content: space-around;
}

.project_grid a:link, .project_grid a:visited{
    text-decoration: none;
}

.project_card{
    width: 100%;
    max-width: 450px;
    height: auto;
}

.project_photo{
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    height: auto;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    border-style: solid;
    border-width: 2px;
    border-color: var(--deep-purple);
}

.project_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project_card > p{
    margin-bottom: 16px;
}


.project_photo .star {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; 
    color: var(--deep-purple); 
}

/* Stars when hovering effect */
.project_photo .top-left { top: 5px; left: 5px; }
.project_photo .bottom-right { bottom: 5px; right: 5px; }

.project_card:hover .project_photo .star {
    opacity: 1;
    transform: scale(1);
}

.project_card:hover p{
    color: var(--secondary-color);
}

p.keywords{
    color: var(--project-keywords);
    font-family: 'Inter';
    font-size: 16px;
    font-weight: normal;
}



/* Section: About Me */
.about{
    height: auto;
    background-color: var(--cream-white);
     
}
.about > h2{
    margin-bottom: 55px;
}
.about > p{
    margin: 25px 0px
}

.about_row{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 60px 32px;
    min-height: 986px;
    height: auto;
    margin: 0 auto;
    position: relative;
}

.about_wrapper{
    position: relative;
}
.text{
    align-self: flex-start;
}
.image{
    align-self: flex-end;
}

/* Offset box */
.accent_box{
    position: absolute;
    background-color: var(--bright-purple);
    border-radius: 12px;
    border: 2px solid var(--deep-purple);
    z-index: 1;
    box-sizing: border-box;
}

.left{
    top: 15px; 
    left: -15px;
    width: 100%;
    height: 100%;
}
.right{
    top: 15px; 
    left: 15px;
    width: 100%;
    height: 100%;
}

.about_text{
    background-color: var(--muted-purple);
    border-radius: 12px;
    border: 2px solid var(--deep-purple);
    max-width: 801px;
    min-width: 200px;
    height: auto;
    padding: clamp(20px, 5vw, 47px);
    position: relative;
    box-sizing: border-box; 
    z-index: 2; 
}

.about_me_pic{
    position: relative;
    background-color: var(--bright-purple);
    border-radius: 12px;
    border: 2px solid var(--deep-purple);
    max-width: 558px;
    min-width: 200px;
    box-sizing: border-box;
    z-index: 2;
    height: auto;
    
    
}
.about_me_pic img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
}



.text_row {
    display: flex;
    align-items: baseline; 
    gap: 20px;
}

.text_row > p{
    font-size: clamp(14px, 1vw, 16px);
}
  
.text_col1 {
    font-weight: bold;
    min-width: 140px; 
    text-align: left;
}
  
.text_col2 {
    flex: 1;
    text-align: left;
}

/* Section: ToolKit */
.toolkit {
    background-color: var(--cream-white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 42px;
}

.toolkit_row {
    width: 100%;
    max-width: 1500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.toolkit .title {
    align-self: flex-start;
    width: 100%;
}

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

/* Animation */
@keyframes scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(calc(-250px * 7))}
}

/* Carousel */
.carousel {
    background-color: var(--cream-white);
    border-radius: 12px;
    border: 2px solid #0b1956;
    max-width: 1500px;
    min-width: 200px;
    height: auto;
    margin: auto;
	overflow: hidden;
    position: relative;
    z-index: 2;
    padding: 60px 42px;
}
	
.carousel::before,
.carousel::after {
	background: linear-gradient(to right, rgba(253, 248, 241, 1) 0%, rgba(255,255,255,0) 100%);
	content: "";
	height: 302px;
	position: absolute;
	width: 200px;
	z-index: 2;
}

.carousel::after {
	right: 0;
	top: 0;
	transform: rotateZ(180deg);
}

.carousel::before {
	left: 0;
	top: 0;
}

.carousel .carousel-track {
	animation: scroll 40s linear infinite;
	display: flex;
	width: calc(250px * 14);
}

.carousel .logo {
	height: 100px;
	width: 300px;
}
/*  */

.accent_box {
    position: absolute;
    background-color: #dbd6fa;
    border-radius: 12px;
    border: 2px solid #0b1956;
    z-index: 1;
    box-sizing: border-box;
}

.bottom {
    top: 15px; 
    left: 15px;
    width: 100%;
    height: 100%;
}

/* Section: Personal Adventures */
.personal_adventures{
    height: auto;
    border-bottom-right-radius: 5vw;
    border-bottom-left-radius: 5vw;
    background-color: var(--cream-white);
    padding: 90px 42px; 
    
    
    
}
.pa_row{
    justify-content: center;
    align-items: center;
}

.pa_imgGrid{
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    height: auto;
    max-width: 1500px;
}

.personal_adventures {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--cream-white);
    padding: 90px 42px; 
    border-bottom-right-radius: 5vw;
    border-bottom-left-radius: 5vw;
}

.pa_row {
    width: 100%;
    max-width: 1500px;
    display: flex;
    flex-direction: column;
}

.pa_row > h3 {
    align-self: flex-start;
    margin-bottom: 24px;
    font-weight: bold;
}

.pa_imgGrid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pa_images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    grid-template-rows: 1fr 1fr; 
    gap: 24px;
    max-width: 1500px;
    width: 100%;
    max-height: 870px;
    grid-template-areas: 
        "img1 img2 img2"
        "img3 img3 img4";
}

.pa_images > div {
    border-radius: 12px;
    border: 2px solid var(--deep-purple);
    overflow: hidden;
}

.pa_img1 { grid-area: img1; }
.pa_img2 { grid-area: img2; }
.pa_img3 { grid-area: img3; }
.pa_img4 { grid-area: img4; }

.pa_img1 img,
.pa_img2 img,
.pa_img3 img,
.pa_img4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Section: Footer */
footer {
    padding-top: 0%;
    margin-top: 32px;
}

footer p{
    color: var(--cream-white);
    font-family: 'Inter';
    font-size: 20px;
    font-weight: normal;
}

footer h2{
    color: var(--cream-white);
    font-family: 'Quicksand';
    font-weight: bold;
    font-size: 42px;
    margin: 0;
}

.footer_row{
    display: flex;
    justify-content: space-between;
    padding: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;   
}


.contact_me {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 75%;
}

.copyright {
    text-align: flex-start;
    width: 75%;
}
.resume{
    align-items: flex-end;
    margin-top: 25px;
}
.footer_icons{
    font-size: 40px;
    display: flex;
    justify-content: space-between;
    margin: 20px 0px 20px 0px;
}
.resume_text{
    font-size: 20px;
}


footer a:link, footer a:visited{
    text-decoration: none;
    color:var(--cream-white);
    font-family: 'Inter';
}

footer a:hover, footer a:active{
    color: var(--secondary-color);
}

.send_email_button {
    border: none;
    border-radius: 29px;
    background-color: var(--bright-purple);
    color: var(--text-color);
    font-size: 22px;
    padding: 15px 16px;
    text-align: center;
    margin-top: 32px;
    margin-bottom: 32px;
    transition-duration: 0.5s;
}

.send_email_button:hover{
    background-color: var(--secondary-color);
    color:var(--bright-purple);

}

/* Mobile/Tablet Responsive */
/* Projects */
@media (max-width: 1024px) {
    .project_grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .project_photo {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .intro{
        padding: 80px 32px 80px 32px;
    }
    .project_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about_row {
        flex-direction: column;
        min-height: auto;
        gap: 64px;
    }
    .about h2{
        margin: 25px 0px;
    }
    .about p{
        margin: 10px 0px;
    }
    .text_col2 p{
        margin: 5px 0px;
    }

    .accent_box {
        position: absolute;
        width: 100%;
        height: 100%;
    }
    .about_text,
    .about_me_pic {
        width: 100%;
        max-width: 100%;
    }

    .text_row{
        gap: 0;
    }

    .footer_row {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact_me {
        order: 1;
    }

    .resume {
        order: 2;
    }

    .copyright {
        order: 3;
    }
}

@media (max-width: 480px) {
    .project_grid {
        grid-template-columns: 1fr;
    }
    .project_photo {
        max-width: 100%;
    }
    .text_row {
        flex-direction: column;
        gap: 5px;
      }
    
      .text_col1 {
        min-width: unset;
      }
}


