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


/* scroll */
html {
    scroll-behavior: smooth;
}


/* body styling */
body {
    background-color: #040616;
    color: white;
}




/* header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    background-color: transparent;
    z-index: 1000;
}


/* header pt.2 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* logo name */
.logo a {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
}



/* navigation */
.nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
}


/* navigation links */
.nav-list a {
    font-size: 16px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}


/* navigation hover effect */
.nav-list a:hover {
    opacity: 0.6;
}

.home {
    padding-top: 120px;
}





/* home section */
.home {
    height: 90vh;
    display: flex;
    align-items: center;      
    justify-content: center;  
    padding: 0 40px;
}


/* home pt.2 */
.home-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* home title placer */
.home-title {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;   
}

/* letter c. */
.home-c {
    font-size: clamp(400px, 45vw, 1000px);
    font-weight: 500;
    line-height: 0.20;
    font-family: "Playfair", serif;
    transform: translate(-3vw, -2%);
}


/* letters hr */
.home-hr {
    font-size: clamp(400px, 47vw, 1000px);
    font-weight: 500;
    line-height: 0.20;
    font-family: "Playfair", serif;
    transform: translateY(40px);
}


/* right text block */
.home-text-block {
    position: relative;
}


/* subtitle */
.home-subtitle {
    position: absolute;
    left: -23vw;
    top: 100px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #e6e6e6;
    width: 160px;
}


@keyframes homeFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.home-main {
    opacity: 0;
    transform: translateY(60px);
    animation: homeFadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-sub {
    position: absolute;
    opacity: 0;
    animation: homeFadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.6s;
}






/* about section */
.about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 40px;
}

/* about section pt.2 */
.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* profile pic */
.about-image img {
    width: 600px;
    height: auto;
    display: block;
}


/* right side bio */
.about-content {
    max-width: 520px;
}


/* title */
.about-title {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 24px;
    font-family: "Cormorant Garamond", serif;
}

/* body text */
.about-text {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #dcdcdc;
    margin-bottom: 20px;

    text-align: justify;
    text-align-last: left;
}

/* link */
.about-link a {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #ffffff;
    text-decoration: underline;
}

/* about resume */
.about-link a {
    text-decoration: none;
    color: white;

    border-bottom: 1px solid white;
    padding-bottom: 3px;

    transition: opacity 0.3s ease;
}

.about-link a:hover {
    opacity: 0.6;
}






/* portfolio section */
.portfolio {
    padding: 120px 40px;
    background: radial-gradient(
    circle at center,
    #0D133D 0%,
    #040616 70%
  );
}

/* portfolio pt.2 */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
    gap: 40px;
}

/* project blocks */
.project {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project:visited {
    color: inherited;
}

.project-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 4;
}

.project-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
}

.project-3 {
    grid-column: 5 / 7;
    grid-row: 1 / 4;
}

.project-4 {
    grid-column: 3 / 5;
    grid-row: 3 / 6;
}

.project-5 {
    grid-column: 1 / 3;
    grid-row: 4 / 6;
}

.project-6 {
    grid-column: 5 / 7;
    grid-row: 4 / 6;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;  
    transition: transform 0.5s ease, filter 0.5s ease;
}

.project {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: #1a1d3a;
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(4, 6, 22, 0.4);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-overlay h3 {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
    color: white;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.project:hover img {
    transform: scale(1.08);
    filter: blur(4px);
}

.project:hover .project-overlay {
    opacity: 1;
}

.project:hover .project-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

.placeholder {
    color: white;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}





/* footer */
.footer {
    padding: 60px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* footer pt.2 */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* left side (contact info) */
.footer-left p {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.footer-email {
    font-size: 14px;
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-email:hover {
    opacity: 0.5;
}


/* right side (social links) */
.footer-right {
    display: flex;
    gap: 20px;
}

/* social links */
.footer-link {
    font-size: 14px;
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* hover effect */
.footer-link:hover {
    opacity: 0.5;
}


/* PAGE TRANSITIONS */

body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.page-loaded {
    opacity: 1;
}

body.page-exit {
    opacity: 0;
}



