/* Global Styles */
* {
    margin: 0;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Section Styles */
.section-1, .section-2, .section-3{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
}

.section-1 { 
    background-color: black; 
    overflow: hidden;
}
.section-2 { 
    background-color: white; 
    overflow: hidden; /* Prevent scrolling within the section */
    height: 100%;
}
.section-3 { 
    background-color: black; 
    overflow: hidden;
    height: 100%;
}


/* Navigation Bar */
.nav-bar ul {
    list-style-type: none;
    text-align: center;
}

.mobileNavBar{
    display: none;
}

.nav-bar li {
    display: inline-block;
    margin: 2.5rem 3rem;
    color: white;
    font-family: 'Epilogue', sans-serif;
    font-weight: 200;
    font-size: 1rem;
} 

.nav-bar a:link, a:visited {
    color: white;
    background-color: transparent;
    text-decoration: none;
}

.nav-bar a:active {
    color: #FF8000;
    background-color: transparent;
    text-decoration: none;
}

.nav-bar a:hover {
    color: #FF8000;
    background-color: transparent;
    text-decoration: none;
}

/* Section 1 Content */
.top-s1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 50px;
}

.name {
    font-family: 'Epilogue', sans-serif;
    font-weight: bold;
    font-size: 2.7vw;
    letter-spacing: 2px;
}

.firstname { color: white; }
.lastname { color: #00B5FF; }

.button-container {
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
    align-items: center;
    margin-top: 1.5rem;
}

.cv{
    background-color: #393E46;
    opacity: 75%;
}

.cvText{
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

button {
    height: 2.2em;
    width: 9em;
    border: none;
    border-radius: 10em;
    font-family: 'Epilogue', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
}

.text-s1-desktop {
    margin-top: 125px;
    color: white;
    font-size: 16px;
    font-family: 'Epilogue', sans-serif;
    font-weight: normal;
    font-weight: 200;
    line-height: 35px;
    padding-left: 100px;
    padding-right: 100px;
}

.text-s1-mobile {
    display: none;
}

.cv:hover {
    background-color: #FF8000;
    opacity: 100%;
}

/* Section 2 Content */
.s2-title{
    text-align: center;
    padding-top: 40px;
    font-size: 1rem;
    color: #FF8000;
    font-family: 'Epilogue', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
}

.s2-center-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
}

.s2-main-content {
    display: flex;
    align-items: center;
}

.info-container {
    display: flex;
    align-items: center;
    margin-right: 4vw;
}

.circle {
    width: 70px;
    height: 70px;
    background-color: #FF8000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
    margin-top: 30px;
}

.icon svg {
    color: white;
    width: 35px;
    height: 35px;
}

.s2-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers the text vertically */
    margin-left: 10px;
    padding-top: 30px;
}

.s2-text-bold {
    font-size: 28px;
    font-family: 'Epilogue', sans-serif;
    font-weight: bold;
    font-weight: 800;
}

.s2-text-sub {
    font-size: 12px;
    font-family: 'Epilogue', sans-serif;
    font-weight: normal;
    font-weight: 400;
    color: #391400;
    padding-top: 10px;
}

.s2-section2 {
    display: flex;
    align-items: center;
    margin-left: 4vw;
}

.card-big {
    width: 300px;
    height: 370px;
    border: 1px solid #F3D1BF;
    border-radius: 1px;
    padding: 20px;
    box-sizing: border-box; /* Ensures padding doesn't affect the overall width/height */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);  */
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns content to the top left */
}

.card-circle {
    width: 50px;
    height: 50px;
    background-color: #FF8000; /* Adjust as needed */
    border-radius: 50%;
    margin-bottom: 10px; /* Space between circle and title */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
    margin-left: 20px;
    margin-top: 20px;
}

.card-icon {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    color: white;
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: 18px;
    font-family: 'Epilogue', sans-serif;
    font-weight: bold;
    font-weight: 600;
    margin: 0 0 20px 0; /* Space between title and text */
    margin-left: 20px;
    margin-top: 50px;
}

.card-text {
    line-height: 1.5;
    font-size: 14px;
    font-family: 'Epilogue', sans-serif;
    font-weight: normal;
    font-weight: 400;
    margin-left: 20px;
}

.card-small {
    width: 300px;
    height: 300px;
    border: 1px solid #F3D1BF;
    border-radius: 1px;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 70px;
    margin-left: -1px;
}

.card-small .card-title {
    font-size: 18px;
    font-family: 'Epilogue', sans-serif;
    font-weight: bold;
    font-weight: 600;
    margin: 0 0 20px 0; /* Space between title and text */
    margin-top: 70px;
    margin-left: 20px;
}

.card-small .card-text {
    line-height: 1.5;
    font-size: 14px;
    font-family: 'Epilogue', sans-serif;
    font-weight: normal;
    font-weight: 400;
}

@keyframes banner{
    from {
        transform: translateX(0);
    }
    to{
        transform: translateX(-100%);
    }
}

.languages{
    overflow: hidden;
    white-space: nowrap; 
    padding: 200px 0;
}

.languages-slide{
    animation: 20s banner linear infinite;
    display: inline-block;
}

.languages:hover .languages-slide{
    animation-play-state: paused;
}

h7{
    color: #C8C6C4;
    word-spacing: 150px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 2px;
    font-size: 30px;
}

/* Section 3 Content */
.s3-title{
    text-align: center;
    padding-top: 40px;
    font-size: 1rem;
    color: #FF8000;
    font-family: 'Epilogue', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
}


.content {
    display: grid;
    margin: 0 auto;
    padding: 100px;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(150px, auto);
    grid-gap: 20px;
    max-width: 1000px;
    translate: -7%;
}

.details {
    width: 250px;
    height: 250px;
    padding-top: 10px;
    padding-left: 15px;
}

.details-4 {
    padding-top: 175px;
    padding-left: 15px;
}

.one {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #515151;
}

.text {
    padding-top: 15px;
    font-family: 'Epilogue', sans-serif;
    font-weight: bold;
    font-weight: 700;
    color: white;
    font-size: 30px;
}

p {
    padding-top: 15px;
    padding-right: 5px;
    font-family: 'Epilogue', sans-serif;
    font-weight: normal;
    font-weight: 200;
    color: white;
    font-size: 15px;
    line-height: 25px;
}

.two {
    background-size: cover;
    background-position: center;
    background-color:  #515151;
    padding: 0; /* Ensure no internal padding */
    margin: 0;
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    border-radius: 6px;
}

.three {
    background-size: cover;
    background-position: center;
    background-color:  #515151;
    grid-column: 4 / 5;
    grid-row: 1 / 2;
    border-radius: 6px;
    padding: 0; /* Ensure no internal padding */
    margin: 0;
}

.four {
    background-size: cover;
    background-position: center;
    background-color:  #515151;
    grid-column: 5 / 7;
    grid-row: 1 / 2;
    border-radius: 6px;
}

.five {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color:  #515151;
}

.six {
    background-size: cover;
    background-position: center;
    background-color:  #515151;
    padding: 0; /* Ensure no internal padding */
    margin: 0;
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    border-radius: 6px;
}

.seven {
    background-size: cover;
    background-position: center;
    background-color:  #515151;
    grid-column: 4 / 6;
    grid-row: 2 / 3;
    border-radius: 6px;
    padding: 0; /* Ensure no internal padding */
    margin: 0;
}

.eight {
    background-size: cover;
    background-position: center;
    background-color: #515151;
    grid-column: 6 / 7;
    grid-row: 2 / 3;
    border-radius: 6px;
}

.footer {
    text-align: center;
    margin-bottom: 50px;
}

.mobile-content {
    display: none;
}

/* Media Query for Mobile Screens */
@media (max-width: 900px) {
    /* Section 1 Content */
    .nav-bar {
        display: none;
    }

    .mobileNavBar {
        display: block;
        position: fixed; 
        right: 5%;
        top: 5%;
        z-index: 1000; 
    }

    .popup {
        --burger-line-width: 1.125em;
        --burger-line-height: 0.125em;
        --burger-offset: 0.625em;
        --burger-bg: black;
        --burger-color: white;
        --burger-line-border-radius: 0.1875em;
        --burger-diameter: 2.125em;
        --burger-btn-border-radius: calc(var(--burger-diameter) / 2);
        --burger-line-transition: .3s;
        --burger-transition: all .1s ease-in-out;
        --burger-hover-scale: 1.1;
        --burger-active-scale: .95;
        --burger-enable-outline-color: var(--burger-bg);
        --burger-enable-outline-width: 0.125em;
        --burger-enable-outline-offset: var(--burger-enable-outline-width);
        /* nav */
        --nav-padding-x: 0.25em;
        --nav-padding-y: 0.625em;
        --nav-border-radius: 0.375em;
        --nav-border-color: white;
        --nav-border-width: 0.0625em;
        --nav-shadow-color: rgba(0, 0, 0, .2);
        --nav-shadow-width: 0 1px 5px;
        --nav-bg: gray;
        --nav-font-family: Menlo, Roboto Mono, monospace;
        --nav-default-scale: .8;
        --nav-active-scale: 1;
        --nav-position-left: unset;
        --nav-position-right: 0;
        /* if you want to change sides just switch one property */
        /* from properties to "unset" and the other to 0 */
        /* title */
        --nav-title-size: 0.625em;
        --nav-title-color: white;
        --nav-title-padding-x: 1rem;
        --nav-title-padding-y: 0.25em;
        /* nav button */
        --nav-button-padding-x: 1rem;
        --nav-button-padding-y: 0.375em;
        --nav-button-border-radius: 0.375em;
        --nav-button-font-size: 12px;
        --nav-button-hover-bg: #00B5FF;
        --nav-button-hover-text-color: white;
        --nav-button-distance: 0.875em;
        /* underline */
        --underline-border-width: 0.0625em;
        --underline-border-color: white;
        --underline-margin-y: 0.3125em;
    }
    
    /* popup settings 👆 */
    
    .popup {
        display: inline-block;
        text-rendering: optimizeLegibility;
        position: relative;
    }
    
    .popup input {
        display: none;
    }
    
    .burger {
        display: flex;
        position: relative;
        align-items: center;
        justify-content: center;
        background: var(--burger-bg);
        width: var(--burger-diameter);
        height: var(--burger-diameter);
        border-radius: var(--burger-btn-border-radius);
        border: none;
        cursor: pointer;
        overflow: hidden;
        transition: var(--burger-transition);
        outline: var(--burger-enable-outline-width) solid transparent;
        outline-offset: 0;
    }
    
    .burger span {
        height: var(--burger-line-height);
        width: var(--burger-line-width);
        background: var(--burger-color);
        border-radius: var(--burger-line-border-radius);
        position: absolute;
        transition: var(--burger-line-transition);
    }
    
    .burger span:nth-child(1) {
        top: var(--burger-offset);
    }
    
    .burger span:nth-child(2) {
        bottom: var(--burger-offset);
    }
    
    .burger span:nth-child(3) {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .popup-window {
        transform: scale(var(--nav-default-scale));
        visibility: hidden;
        opacity: 0;
        position: absolute;
        padding: var(--nav-padding-y) var(--nav-padding-x);
        background: var(--nav-bg);
        font-family: var(--nav-font-family);
        color: var(--nav-text-color);
        border-radius: var(--nav-border-radius);
        box-shadow: var(--nav-shadow-width) var(--nav-shadow-color);
        border: var(--nav-border-width) solid var(--nav-border-color);
        top: calc(var(--burger-diameter) + var(--burger-enable-outline-width) + var(--burger-enable-outline-offset));
        left: var(--nav-position-left);
        right: var(--nav-position-right);
        transition: var(--burger-transition);
    }
    
    .popup-window legend {
        padding: var(--nav-title-padding-y) var(--nav-title-padding-x);
        margin: 0;
        color: var(--nav-title-color);
        font-size: var(--nav-title-size);
        text-transform: uppercase;
    }
    
    .popup-window ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }
    
    .popup-window ul button {
        outline: none;
        width: 100%;
        border: none;
        background: none;
        display: flex;
        align-items: center;
        color: var(--burger-color);
        font-size: var(--nav-button-font-size);
        padding: var(--nav-button-padding-y) var(--nav-button-padding-x);
        white-space: nowrap;
        border-radius: var(--nav-button-border-radius);
        cursor: pointer;
        column-gap: var(--nav-button-distance);
        padding: 15px;
        
    }
    
    .popup-window ul li:nth-child(1) svg,
    .popup-window ul li:nth-child(2) svg {
        color: white;
    }
    
    .popup-window ul li:nth-child(4) svg,
    .popup-window ul li:nth-child(5) svg {
        color: white;
    }
    
    .popup-window ul li:nth-child(7) svg {
        color: white;
    }
    
    .popup-window hr {
        margin: var(--underline-margin-y) 0;
        border: none;
        border-bottom: var(--underline-border-width) solid var(--underline-border-color);
    }
    
    /* actions */
    
    .popup-window ul button:hover,
    .popup-window ul button:focus-visible,
    .popup-window ul button:hover svg,
    .popup-window ul button:focus-visible svg {
        color: var(--nav-button-hover-text-color);
        background: var(--nav-button-hover-bg);
    }
    
    .burger:hover {
        transform: scale(var(--burger-hover-scale));
    }
    
    .burger:active {
        transform: scale(var(--burger-active-scale));
    }
    
    .burger:focus:not(:hover) {
        outline-color: var(--burger-enable-outline-color);
        outline-offset: var(--burger-enable-outline-offset);
    }
    
    .popup input:checked+.burger span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    
    .popup input:checked+.burger span:nth-child(2) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
    
    .popup input:checked+.burger span:nth-child(3) {
        transform: translateX(calc(var(--burger-diameter) * -1 - var(--burger-line-width)));
    }
    
    .popup input:checked~nav {
        transform: scale(var(--nav-active-scale));
        visibility: visible;
        opacity: 1;
    }

    .section-1, .section-2, .section-3{
        width: 100%;
        height: 100%;
        overflow-x: hidden;
    }

    .topContainer {
        margin-top: 100px;
    }

    .name {
        font-family: 'Epilogue', sans-serif;
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 2px;
    }

    .text-s1-desktop {
        display: none;
    }
    
    .text-s1-mobile {
        display: block;
        margin-top: 75px;
        color: white;
        font-size: 16px;
        font-family: 'Epilogue', sans-serif;
        font-weight: normal;
        font-weight: 200;
        line-height: 35px;
        padding-left: 60px;
        padding-right: 60px;
        margin-bottom: 75px;
    }

    /* Section 2 Styles */

    .section-2 { 
        height: 160vh;
    }

    .s2-main-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: -15px;
    }

    .s2-section2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .card-big {
        order: 1;
        width: 300px;
        height: 300px;
        margin-top: -60px;
    }

    .card-small {
        order: 2;
        width: 300px;
        height: 300px;
        margin-top: 10px;
    }

    .s2-section1 {
        order: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .circle-container {
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .banner-container {
        order: 4;
        width: 100%;
        margin-top: -60px;
    }

    .s2-center-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 100px;
    }

    .info-container {
        width: 200px; /* Fixed width */
        height: auto; /* Adjust as necessary */
        display: flex; /* Ensure it's not affected by flex or grid */
    }
    
    .circle {
        width: 70px;
        height: 70px;
        background-color: #FF8000;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1px;
        margin-top: 30px;
    }
    
    .icon svg {
        color: white;
        width: 35px;
        height: 35px;
    }
    
    .s2-text {
        display: block; /* Ensure it's not affected by flex */
        margin-left: 10px;
        padding-top: 30px;
    }

    /* Section 3 Styles */
    .section-3 {
        height: 100%;
    }

    .content {
        display: none;
    }

    .mobile-content {
        display: block;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-container {
        position: relative;
        max-width: 600px;
        overflow: hidden;
        touch-action: pan-y;
        align-items: center;
        margin-top: 50px;
    }
    
    .carousel {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: calc(100% * 8);
        align-items: center;
        margin-left: 50px;
        margin-right: 50px;
    }
    
    .carousel-item {
        min-width: 100%;
        box-sizing: border-box;
        align-items: center;
    }

    .scroll-panel {
        width: 275px;
        height: 275px;
        background-color: #515151;
        border-radius: 6px;
    }
    
    .carousel-dots {
        text-align: center;
        padding: 20px;
    }
    
    .dot {
        height: 15px;
        width: 15px;
        margin: 0 5px;
        background-color: #bbb;
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.6s ease;
    }
    
    .active {
        background-color: #FF8000;
    }

    .footer {
        margin-bottom: 50px;
    }

}