/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic page layout setup */
body {
    font-family: Arial, sans-serif;
    min-height: 100 vh;
    position: relative !important;
}

/* Main content area with hidden scrollbar */
.main-content {
    flex-grow: 1;
    min-height: 100vh !important;
    overflow-y: auto;
    -ms-overflow-style: none; 
    scrollbar-width: none;  
    position: relative !important;
}

.main-content::-webkit-scrollbar {
    display: none;
}

/* Theme variations for background */
.white-background .main-content {
    background-color: #f0f0f0;
    color: #000000;
}

.black-background .main-content {
    background-color: #000000;
    color: #ffffff;
}

.project-item {
    cursor: pointer;
    text-decoration: none;
    color: #000000;
}

.header {
    display: flex;
    flex-direction: column;
    gap: 10px;  


}

.bottom-buttons {
    padding-left: 20px;
    padding-top: 120px;
    display: flex;
    justify-content: left;
    gap: 10px;  
}
section{
    overflow:hidden;
}
.top-buttons {
    position: fixed;
    display: flex;
    gap: 10px;
    padding: 20px;
    padding-left: 20px;
    margin-left: 20px;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 40px;
    backdrop-filter: blur(5px);
    
} 
.btn {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    text-decoration: none;
    color: #000000;
}

.btn:hover {
    background-color: #ddd;
}

.btn-dark {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    color: #fff;  
}

.btn-dark:hover {
    background-color: #333;
}


.content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-left: 130px; 
    margin-top: 120px;
    font-size: 30px;
}

.content h1 {
    margin-bottom: 50px;
}

.projects-section {
    margin-top: 100px;
    font-size: 21px;
}

.projects-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; 
    margin-top: 20px;
    gap: 20px; 
}

.project-item {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    width: 150px;
    text-align: center;
}

.split-page {
    display: flex;
    min-height: 100 vh;
    overflow: hidden;
}

.left-side {
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.large-header {
    font-size: 3.75rem;
}

.right-side {
    flex: 1; 
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.white-section .column {
    margin-top: 200px;
}

.column {
    flex: 1;
    padding: 10px;
    border: none;
    margin-top: 200px;
    margin-right: 0px;
    margin-left: 70px;
    overflow: hidden;
}

.column-title {
    margin-bottom: 30px;
    font-size: 2rem;
}

.column-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 650px;
    overflow: hidden;
}

.goal-label {
    font-weight: bold;
    font-size: 1.2rem;
}

.goal-text {
    font-size: 1.2rem;
    line-height: 1.6;
}


.additional-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px;
    margin-top: 40px;
}

.text-image {
    flex-basis: calc(33.33% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px;
}

.text-image p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 400px;
}

.text-image img {
    width: 120px;
    height: auto;
    margin-top: 20px;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-box {
    width: 200px;
    height: 200px;
    background-color: #e0e0e0;
    border: 2px solid #000;
    animation: slideIn 1s ease-out;
}

.white-section {
    background-color: white;
    color: black;
}

.white-section .large-header,
.white-section .column-title,
.white-section .goal-label,
.white-section .goal-text {
    color: black;
}

.svg-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.stacked-svg {
    width: 100%;
    height: auto;
    display: block;
}

.picture-container {
    flex: 1;  
    display: grid;
    grid-template-columns: repeat(2, 1fr);  
    gap: 20px;  
    padding: 100px;
}

.picture {
    cursor: pointer;
    width: 100%;
    object-fit: cover;  
    border-radius: 8px; 
}

.picture-container .overlay-image:hover {
    opacity: 0.7 !important;
}

.picture:first-child {
    grid-column: 1 / -1;  
}

.button-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.cool-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #ffffff, #000000);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #000000, #ffffff);
}

.cool-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.scale-in {
    opacity: 0;
    animation: scaleIn 1s ease forwards;
}

.slide-from-bottom {
    opacity: 0;
    animation: slideFromBottom 1s ease forwards;
}

.slide-from-left {
    opacity: 0;
    animation: slideFromLeft 1s ease forwards;
}

.slide-from-right {
    opacity: 0;
    animation: slideFromRight 1s ease forwards;
}

.hidden {
    opacity: 0;
}

.about-content {
    max-width: 800px;
    padding: 40px;
    margin: 0 auto;
}

.about-title {
    font-size: 4rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.about-text {
    opacity: 0;
    animation: slideFromBottom 1s ease 0.3s forwards;
}

.about-text p {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #333;
}

.profile-container {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    animation: scaleIn 1s ease 0.6s forwards;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Image */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    margin: auto;
    display: block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Responsive design adjustments */
@media (max-width: 1536px) {
    .large-header {
        font-size: 4rem;
    }

    .column {
        margin-top: 200px;
        margin-right: 100px;
        margin-left: 40px;
        
    }

    .picture-container {
        padding: 60px;
    }

    .about-content {
        max-width: 700px;
    }

    .profile-container {
        width: 350px;
        height: 350px;
    }

    .text-image {
        flex-basis: calc(33.33% - 20px);
        margin: 10px;
    }
}

@media (max-width: 430px) {
    .split-page {
        flex-direction: column;
        height: auto;
    }

    .large-header {
        font-size: 2.5rem;
    }

    .column {
        margin: 40px 20px;
    }

    .picture-container {
        padding: 20px;
        grid-template-columns: 1fr;  
    }

    .text-image {
        flex-basis: 100%;
    }

    .additional-content {
        padding: 20px;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
    }

    .cool-btn {
        width: 100%;
        text-align: center;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .profile-container {
        width: 250px;
        height: 250px;
    }

    .next-lo {
        top: 10px;
        right: 10px;
        mix-blend-mode:difference
    }

    .next-lo-link {
        font-size: 1rem;
        mix-blend-mode:difference
        
    }
}

/* Navigation elements */
.next-lo {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 20px;
    mix-blend-mode: difference;
}

.next-lo-link {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    mix-blend-mode:difference;
}

.next-lo-link:hover {
    color: #ddd;
    mix-blend-mode:difference
}

.arrow {
    font-size: 2rem;
    mix-blend-mode:difference;
}

@media (max-width: 800px) {
    .split-page {
        flex-direction: column;
        height: auto;
    }

    .large-header {
        font-size: 3.5rem;
        text-align: center;
    }

    .column {
        margin: 100px 40px;
    }

    .picture-container {
        padding: 40px;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .text-image {
        flex-basis: calc(50% - 20px);
    }

    .additional-content {
        padding: 30px;
    }

    .about-content {
        padding: 30px;
    }

    .about-title {
        font-size: 3.5rem;
    }

    .about-text p {
        font-size: 1.2rem;
    }

    .profile-container {
        width: 300px;
        height: 300px;
    }

    .button-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cool-btn {
        min-width: 200px;
    }
}

/*responsive design adjustments */
@media screen and (min-width: 768px) {
    .whylo2-text {
        font-size: 1.75rem ;
    }
    .whylo2-title {
        font-size: 1.75rem ;
    }
    .goal-label {
        font-weight: bold;
        font-size: 1.75rem;
    }
    .goal-text {
        font-size: 1.6rem;
        line-height: 1.6;
    }
    .column-title{
        font-weight: bold;
        font-size: 1.75rem;
    }

    .btn {
        background-color: #fff;
        border: 1px solid #ccc;
        padding: 10px 20px;
        border-radius: 40px;
        cursor: pointer;
        transform: scale(1.5);
        margin: 0 35px;
    }
    
    .btn:hover {
        background-color: #ddd;
    }
    
    .btn-dark {
        background-color: #1a1a1a;
        border: 1px solid #333;
        padding: 10px 20px;
        border-radius: 40px;
        cursor: pointer;
        color: #fff;  
        transform: scale(1.5);
        margin: 0 35px;
    }
    
    .btn-dark:hover {
        background-color: #333;
    }
}
@media screen and (max-width: 600px) {
.next-lo-link {

        font-size: 1.2rem;
        mix-blend-mode:difference
    }
.next-lo {
        flex-direction: column;
        gap: 5px;  /* Adds space between stacked nav buttons */
        align-items: flex-start;
        mix-blend-mode:difference
    }
    
}

#modalImage.image-modal-content[src*="StylescapeHIFinal"] {
    max-width: 100vw !important;   /* Makes it exactly screen width */
    max-height: 100vh !important;
    width: 100vw !important;
    height: auto !important;
    cursor: move;
    transform-origin: top left;
    position: absolute;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;  /* adds space between images */
    width: 100%;
}

.btn:focus, .project-item:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}
.project-item:hover {
    background-color: #f0f0f0;
    cursor: pointer;
    transform: scale(1.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

@media (max-width: 768px) {
    .projects-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

body.white-background {
    --bg-color: #ffffff;
    --text-color: #000000;
}
body.dark-background {
    --bg-color: #000000;
    --text-color: #ffffff;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

@media (max-width: 1024px) {
    .content {
        margin-left: 50px; /* Reduce left margin */
        margin-top: 60px; /* Reduce top margin */
        font-size: 24px; /* Reduce font size */
    }

    .projects-section {
        margin-top: 80px;
        font-size: 18px; /* Reduce font size */
    }

    .projects-grid {
        justify-content: center; /* Center align items for smaller screens */
    }

    .project-item {
        width: 120px; /* Reduce item width */
    }
}

@media (max-width: 768px) {
    .content {
        margin-left: 20px;
        margin-top: 40px;
        font-size: 20px;
    }

    .projects-section {
        margin-top: 60px;
        font-size: 16px;
    }

    .project-item {
        width: 100px; /* Further reduce item width */
        font-size: 14px; /* Adjust text size */
    }
}

@media (max-width: 480px) {
    .content {
        margin-left: 10px;
        margin-top: 20px;
        font-size: 16px;
    }

    .projects-grid {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center align items */
    }

    .project-item {
        width: 90%; /* Make items take most of the screen width */
    }
}


#scrollToTop {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    width: auto !important;
    height: auto !important;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    padding: 10px 20px !important;
    border-radius: 15px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: #000000 !important;
    transform: none !important; /* Prevent any transform issues */
    margin: 0 !important; /* Reset margins */
    box-sizing: content-box !important;
    display: block !important;
}

#scrollToTop:hover {
    background-color: #ddd;
}

@media screen and (min-width: 768px) {
    #scrollToTop {
        transform: scale(1.5);
        margin: 0 35px;
    }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .next-lo {
        top: 80px; /* Move it lower on mobile */
        right: 10px; /* Adjust right spacing for mobile */
        flex-direction: column; /* Stack links vertically */
        gap: 10px; /* Reduce gap between links */
    }

    .next-lo-link {
        font-size: 1.5rem; /* Smaller font size for mobile */
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    .next-lo {
        top: 100px; /* Move even lower on smaller screens */
    }
}