@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
:root {
    /* --background_color: #f9f7f5; */
    --background_color: #ffffff;
    --main_color: #0e0e0e;
    --accent_color: #bb2649;
    --container-width: 1600px;
}

*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}

*::selection {
    background: var(--main_color);
    color: var(--background_color);
    opacity: .8;
    line-height: 1;
}

body {
    font-family: 'Libre Franklin', serif;
    background-color: var(--background_color);
}

.container {
    max-width: var(--container-width);
    margin: auto;
    padding: 70px 70px;
}

/* Nav bar */
header {
    position: fixed;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: var(--background_color);
    width: 100vw;
    padding-left: 40px;
}

header nav {
    width: var(--container-width);
    display: flex;
    justify-content: left;
    align-items: left;
    padding-left: 5px;
}

header ul {
    display: inline-flex;
    list-style: none;
    column-gap: 70px;
    text-wrap: wrap;
}

header ul a {
    text-decoration: none;
    color: var(--main_color);
    text-transform: uppercase;
    font-weight: 300;
    font-size: 28px;
    padding: 0px 10px;
}

/* Slideshow Container */
.slideshow-container {
    position: fixed;
    top: 100px; /* below the header */
    left: 0;
    width: 100%;
    height: calc(100vh - 100px); /* fills the rest of the viewport */
    z-index: 0;
    overflow: hidden;
    background-color: var(--background_color);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center; /* center the image */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 0.3;
}

/* Overlay Content (name and details) */
.overlay-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Center the name text */
.name-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.name-bold {
    font-size: 80px;
    z-index: 10;
    font-weight: 500;
    color: var(--main_color);
    pointer-events: auto;
    text-align: center;
    opacity: 1; /* ensures it starts visible */
    transition: opacity 0.3s ease; /* adds a smooth fade for opacity changes */
}

.titles {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 300;
    opacity: 1; /* ensures it starts visible */
    transition: opacity 0.3s ease; /* adds a smooth fade for opacity changes */
}

/* Details container at bottom right */
.details-container {
    position: fixed;
    bottom: 20px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: auto;
    z-index: 10000;
}

.image-description {
    background-color: rgba(255,255,255,0.85);
    color: var(--main_color);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 30px;
    max-width: 500px;
    text-align: left;
    margin-bottom: 10px;
    pointer-events: none; /* No interaction when hidden */

    /* Start off-screen below and invisible */
    transform: translateY(100%);
    opacity: 0;

    /* Smooth transition for both transform and opacity */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.details-button {
    color: var(--main_color);
    font-size: 40px;
    font-weight: 300;
    text-decoration: none;
    position: relative;
    pointer-events: auto;
    padding: 5px 0;
}

/* Line animation from center */
.details-button::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3px;
    height: 3px;
    width: 0%;
    background-color: var(--main_color);
    transition: width 0.3s ease, left 0.3s ease;
}

.details-button:hover {
    background-color: rgba(255,255,255,0.8);
    left: 5px;
    padding: 5px;
    border-radius: 5px;
}

.details-button:hover::after {
    width: 100%;
    left: 0;
}

/* When hovering over details button, show overlay and text (handled by JS class on body) */
body.hovering-details .slide.active {
    opacity: 1;
}

body.hovering-details .name-bold {
    opacity: 0; /* fade out */
}

body.hovering-details .titles {
    opacity: 0; /* fade out */
}

body.hovering-details .image-description {
    /* Slide into view by resetting transform */
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto; /* Allow interaction now that it's visible */
}

/* Navigation underline animation */
.pageNav ul li a {
    position: relative;
}

.pageNav ul li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3px;
    height: 3px;
    width: 0%;
    background-color: #000000;
    transition: width 0.3s ease, left 0.3s ease;
}

.pageNav ul li a:hover::after {
    width: 100%;
    left: 0;
}


/* Main Container */
.text-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px; /* Increased gap between About Me and Skills sections */
    margin: auto;
}

.each-section {
    flex: 1; /* Allow sections to grow and share available space equally */
    padding: 0px 80px 0px 0px;
}

.skills-categories {
    display: flex;
    flex-wrap: wrap; /* Ensure categories wrap on smaller screens */
    justify-content: space-evenly;
    gap: 10px; /* Space between categories */
}

.category {
    flex: 1;
}

.category-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--main_color); /* Darker color for emphasis */
}

.skills-list {
    list-style-type: disc; /* Dots for each item */
    font-size: 20px; /* Font size for items */
    line-height: 1; /* Space between list items */
    color: var(--main_color); /* Text color */
}

.skills-list li {
    margin-bottom: 8px; /* Space between list items */
}

/* Spacer */
.spacer {
    height: 50px; /* Add spacing at the top */
}

/* Section Title */
.section-title {
    font-size: 40px;
    padding: 0 0 30px;
}

.message {
    display: flex;
    flex-wrap: wrap;
}

.message p {
    font-size: 20px;
    padding-bottom: 40px;
    max-width: max-content;
}

.link.hoverAnimation {
    color: var(--accent_color);
    text-decoration: none;
    font-weight: 300;
    position: relative;
    transition: color 0.3s ease;
}

.link.hoverAnimation::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    height: 2px;
    width: 0;
    background-color: var(--accent_color);
    transition: width 0.3s ease, left 0.3s ease;
}

.link.hoverAnimation:hover::after {
    width: 100%;
    left: 0;
}



.project-gallery {
    display: flex;
    gap: 30px;
    max-width: var(--container-width);
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.project-column {
    display: flex;
    flex-direction: column;
    flex: 1; /* Ensures equal column widths */
    gap: 30px;
}

.project-img {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.project-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease; /* Smooth magnification */
}

.project-img:hover img {
    transform: scale(1.02); /* Slightly magnify the image */
}

.project-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Fully covers the image width */
    height: 100%; /* Fully covers the image height */
    background-color: rgba(0, 0, 0, 0.85); /* Black overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    border-top: 2px solid var(--background_color);
    color: var(--background_color);
    opacity: 0; /* Hidden by default */
    transform: scale(1); /* Normal size */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth fade-in and scaling */
}

.project-img:hover .project-text {
    opacity: 1; /* Make the text visible */
    transform: scale(1.02); /* Slightly magnify the entire text box */
}

.title {
    font-size: 32px;
}

.project-info {
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
    padding-bottom: 10px; /* Add spacing below the text */
    border-bottom: 1px solid rgba(255, 255, 255, 1); /* Add a light separator line */
    width: 80%; /* Make the line span the full width of the text block */
}

.project-img .intro {
    font-size: 18px;
    text-align: center;
    padding: 1rem 0;
}

.intro {
    max-width: 600px;
}

.image-box {
    width: 100%;  /* Full width of the screen */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: fixed;
}

/* Image Inside Box */
.image-box img {
    max-width: 120%;  /* Ensure image does not overflow width */
    max-height: 1500px;
    height: auto;
    object-fit: contain;
    object-position: center;
}


.content {
    background-color: var(--background_color);
    z-index: 1;
    transform: translateY(700px);
}

.header {
    font-size: 42px;
    font-weight: 300;
    color: var(--main_color);
    text-wrap: wrap;
    line-height: 2.8rem;
}

.text p:not(.header) {
    font-size: 20px;
}

.text p {
    padding: 12px 0px;
    line-height: 150%;
}

.section {
    margin: auto;
    max-width: 1350px;
    padding: 30px
}

.grid {
    display: block;
    margin: auto;
}

.text-breaker {
    width: 100%;  /* Line takes up 80% of the container width */
    height: 2px;  /* Thin horizontal line */
    background-color: var(--main_color);  /* Line color */
    margin: 40px auto;  /* Center horizontally with spacing above/below */
}

.bottom-spacer {
    padding-top: 100px;
}

.info p {
    font-size: large;
    padding: 1px 0px;
}

.caption {
    font-style: italic;
    color: var(--main_color);
    padding-top: 5px;
    text-align: center;
} 

.quote {
    font-size: 30px;
    border-left: 2px solid #999999;
    padding: 0px 10px;
    width: 70%;
    font-weight: 300;
    color: #474747;
    margin: 0px 20px;
}

.quote b {
    color: var(--background_color);
}

.text ol, .text ul {
    transform: translateX(40px);
}

.image-reg img {
    max-width: 90%;
    max-height: 70vh;
    padding: 0px 40px;
    margin: 60px auto 0px;
    display: block;
}

.image-reg {
    margin: 0px 0px 60px;
}

.intro-quote {
    margin: 300px auto;
    font-size: 40px;
    font-style: italic;
    text-align: center;
}

.image-small img {
    max-width: 100%;
    display: block;
    margin: 20px 30px;
}

.image-med img {
    width: 80%;
    display: block;
    margin: 60px auto;
}

video {
    max-width: 80%;
    display: block;
    margin: 100px auto 0px;
}

.grid {
    display: block;
    margin: auto;
}

.pic-grid {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    justify-content: space-evenly;
    row-gap: 50px;
}

.pic-grid .image-grid  {
    max-width: 45%;
    min-width: 300px;
}

.image-grid img {
    width: 100%;
}

.link {
    text-decoration: none;
    color: var(--accent_color);
}

.view-window {
    width: 100%; /* Full width of the screen */
    height: 700px; /* Desired height */
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: hidden; /* Prevent vertical scrolling */
    white-space: nowrap; /* Prevent wrapping of content */
    border: 2px solid #ddd; /* Optional styling */
    cursor: grab; /* Indicate draggable area */
}

/* Large image */
.view-window img {
    height: 100%; /* Fit the image to the height of the container */
}

/* Prevent selection during drag */
.view-window:active {
    cursor: grabbing;
}

.swiper {
    width: 100%;
    max-width: 1000px; /* Adjust as needed */
    height: 700px;   /* Fixed height for the container */
    margin: auto;    /* Center on the page */
    align-items: center;
}

/* Swiper slides should fill the container */
.swiper-slide {
    display: flex;            /* Center content inside the slide */
    flex-direction: column;    /* Stack image and caption vertically */
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Images inside the slides */
.swiper-slide img {
    max-width: 100%;          /* Fit within the slide's width */
    max-height: 90%;         /* Fit within the slide's height */
    object-fit: contain;      /* Maintain aspect ratio, prevent cropping */
    padding: 0px 40px 0px 40px;
    align-items: center;
}

.circles {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: var(--main_color);
    z-index: -1;
    display: flex
;
    align-items: center;
    justify-content: center;
    animation: loading 4000ms ease-in-out;
    opacity: 0;
}

/* 
.text ol, .text ul{
    transform: translateX(50px);
}

.logo {
    width: 150px;
    position: absolute;
    margin: 20px 20px;
    color: #FF8066;
}

.message {
    width: 800px;
}

.message p {
    padding: 15px;

}

.header {
    font-size: 42px;
    font-weight: 400;
    color: var(--main_color);
    text-wrap: wrap;
    line-height: 2.8rem;
   
}

.slantedStyle {
    font-style: italic;
}

.subheader {
    font-size: 35px;
    font-weight: 400;
    color: var(--main_color);
    width: 800px;
    padding: 15px;
}


.picturegrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    max-width: var(--container-width);
}

.picturegrid * {
    max-width: 700px;
    min-width: 300px;
    padding: 10px;
    text-align: center;
}

.large {
    max-width: 85vw;

}

iframe {
    width: 90%;
    height: 900px;
    margin: 60px auto;
    display: block;
}

.picturegrid div {
    margin: 0px 40px 60px;
}


.picturesection {
    width: 750px; 
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    flex-direction: column;
    margin-right: 50px;
}



.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }


.container {
    max-width: var(--container-width);
    margin: auto;
    display: flex;
    overflow: hidden;
    justify-items: space-evenly;
}

.active {
    color: #FF8066;
    text-align: left;
} */

/* Responsive Design for Phones */
@media (max-width: 700px) {
    :root {
        --container-width: 95vw;
    }

    .container {
        padding-top: 160px;
    }

    /* Header and Navigation */
    header {
        padding: 10px;
    }

    header nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header ul {
        flex-direction: column;
        gap: 15px;
    }

    header ul a {
        font-size: 20px;
    }

    header p {
        font-size: 16px;
    }

    /* Slideshow Adjustments */
    .slideshow-container {
        top: 80px;
        height: calc(100vh - 80px);
    }

    .name-bold {
        font-size: 40px;
    }

    .titles {
        font-size: 18px;
    }

    /* Overlay Content */
    .details-container {
        bottom: 10px;
        right: 10px;
        font-size: 14px;
    }

    .image-description {
        font-size: 14px;
        max-width: 90%;
    }

    .details-button {
        font-size: 18px;
    }

    /* Text Container Adjustments */
    .text-container {
        flex-direction: column;
        gap: 20px;
    }

    .each-section {
        padding: 0;
    }

    .section-title {
        font-size: 28px;
        text-align: center;
    }

    .message p {
        font-size: 16px;
    }

    /* Skills Section */
    .skills-categories {
        flex-direction: column;
    }

    .category-title {
        font-size: 16px;
    }

    .skills-list {
        font-size: 14px;
    }

    /* Project Gallery */
    .project-gallery {
        flex-direction: column;
        gap: 15px;
    }

    .project-column {
        gap: 15px;
    }

    .project-img img {
        border-radius: 5px;
    }

    /* Footer and Miscellaneous */
    .spacer {
        height: 30px;
    }

    .link.hoverAnimation {
        font-size: 14px;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 480px) {
    .name-bold {
        font-size: 30px;
    }

    .header {
        font-size: 30px;
    }

    .titles {
        font-size: 14px;
    }

    .details-button {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .message p {
        font-size: 14px;
    }

    .skills-list {
        font-size: 12px;
    }
}