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

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

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

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

.section-1 { background-color: black; }
.section-2 { 
    background-color: white; 
    overflow: hidden; /* Prevent scrolling within the section */
}
.section-3 { 
    background-color: black; 
    overflow: hidden;
}
.section-4 { 
    background-color: white; 
    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 */
.left-s1 {
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
}

.name {
    font-family: 'Epilogue', sans-serif;
    font-weight: bold;
    font-size: 3vw;
}

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

/* Container and Button Styling */
.button-container {
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
    align-items: center;
    margin-top: 1.5rem;
}

.lp {
    background: #00B5FF;
    position: relative;
    width: 200px; /* Adjust as needed */
    height: 50px; /* Adjust as needed */
    border: 2px solid #000; /* Add a border to define the top line */
}

.lp:hover {
    background-color: #FF8000;
}

.lpText {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1; /* Ensure text stays on top */
}

/* Animation Container */
#animationContainer {
    position: absolute;
    top: -25px; /* Position the animation container above the button */
    left: 0;
    width: 100%;
    height: 50px; /* Height of the container matching the putter handle */
    overflow: visible; /* Allow elements to overflow */
    z-index: 1;
}

/* Golf Ball Styling */
#golfBall {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 0; /* Align with the top of the container */
    left: -30px; /* Start off the button */
    transition: all 0.5s ease;
    z-index: 0;
    opacity: 0; /* Initially hide the golf ball */
}

/* Putter Styling */
#putter {
    position: absolute;
    top: 0px; /* Adjust position to hit the ball */
    left: -70px; /* Start off the screen */
    transform-origin: right center;
    opacity: 0; /* Initially hide the putter */
    z-index: 1;
    display: flex;
    align-items: center;
}

/* Putter Handle */
#putterHandle {
    width: 40px;
    height: 4px;
    background-color: white; 
    transform: rotate(90deg);
    right: -15px;
    top: -20px;
    position: absolute;
}

/* Putter Head */
#putterHead {
    width: 20px;
    height: 6px;
    background-color: silver; /* Brown color for the putter head */
    transform: rotate(-10deg);
}

/* Flagpole Styling */
#flagPole {
    width: 4px;
    height: 30px;
    background-color: white;
    position: absolute;
    top: -8px; /* Adjust position to align with the ball */
    right: 20px; /* Adjust position based on flag */
    opacity: 0; /* Hide initially */
    transform: scale(0); /* Start small */
    transition: all 0.5s ease;
    z-index: 1;
}

/* Flag Styling */
#flag {
    width: 15px;
    height: 10px;
    background-color: red;
    position: absolute;
    top: -3px; /* Position next to the top of the pole */
    left: -10px; /* Position next to the pole */
    clip-path: polygon(100% 0, 0 50%, 100% 100%); /* Create a triangle flag shape */
    opacity: 0; /* Hide initially */
    transform: scale(0); /* Start small */
    transition: all 0.5s ease;
}

/* Putter Animation */
@keyframes swingPutter {
    0% { left: -70px; transform: rotate(0deg); opacity: 0; }
    50% { left: 10px; transform: rotate(15deg); opacity: 1; } /* Swing towards the ball */
    100% { left: 10px; transform: rotate(0deg); opacity: 0; } /* Retract the putter */
}

/* Golf Ball Animation */
@keyframes rollIn {
    0% { left: -30px; transform: rotate(0deg); }
    100% { left: calc(100% - 40px); transform: rotate(360deg); }
}

/* Combined Putter and Ball Animation */
@keyframes puttAndRoll {
    0% { left: -70px; transform: rotate(0deg); opacity: 0; }
    50% { left: 10px; transform: rotate(15deg); opacity: 1; } /* Putter hits the ball */
    60% { left: 30px; transform: rotate(15deg); opacity: 1; } /* Ball starts moving */
    100% { left: calc(100% - 40px); transform: rotate(360deg); opacity: 1; } /* Ball reaches the flag */
}

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

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

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

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

.homepagePhoto {
    width: 25%;
    border-radius: 16px;
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
}

/* 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-txt-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Center text inside the container */
    margin-top: 250px;
    margin-right: 20px;
    margin-left: 20px;
}

.s2-text{
    text-align: center;
    font-size: 1.2rem;
    color: black;
    font-family: 'Epilogue', sans-serif;
    font-weight: 300;
    line-height: 35px;
    width: 947px;
    height: 433px;
}

.s2-btn-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -150px;
}

.s2-btn {
    position: relative;
    font-size: 1.2em;
    padding: 0.7em 1.4em;
    background-color: white;
    text-decoration: none;
    border: none;
    border-radius: 0.5em;
    color: black;
    box-shadow: 0.5em 0.5em 0.5em rgba(0, 0, 0, 0.3);
    border: 1.5px solid black;
}

.s2-btn-txt{
    font-family: 'Epilogue', sans-serif;
    font-weight: 300;
}

button.s2-btn::before {
    position: absolute;
    content: '';
    height: 0;
    width: 0;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(33,33,33,1) 0%, rgba(33,33,33,1) 50%, black 50%, black 60%);
    border-radius: 0 0 0.5em 0;
    box-shadow: 0.2em 0.2em 0.2em rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

button.s2-btn:hover::before {
    width: 1.6em;
    height: 1.6em;
}

button.s2-btn:active {
    box-shadow: 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.3);
    transform: translate(0.1em, 0.1em);
}

@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;
}

h4{
    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(5, 1fr);
    grid-auto-rows: minmax(150px, auto);
    grid-gap: 15px;
    max-width: 1000px;
}

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

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

.one {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    border-radius: 6px;
    background-image: url('Images/P1.png');
    background-size: cover;
    background-position: center;
    background-color: gray;
}

.tag-1, .tag-2 {
    height: 2em;
    width: 2.2em;
    border: none;
    border-radius: 10em;
    background-color: #00B5FF;
    position: relative;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    text-align: center;
}

.tag-3 {
    height: 2em;
    width: 4.5em;
    border: none;
    border-radius: 10em;
    background-color: #00B5FF;
    position: relative;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    text-align: center;
}

.tag-4 {
    height: 2em;
    width: 5.5em;
    border: none;
    border-radius: 10em;
    background-color: #00B5FF;
    position: relative;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    text-align: center;
}

.tag-text{
    font-family: 'Epilogue', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.two {
    background-image: url('Images/P2.png');
    background-size: cover;
    background-position: center;
    background-color: gray;
    padding: 0; /* Ensure no internal padding */
    margin: 0;
    grid-column: 3 / 6;
    grid-row: 1 / 3;
    border-radius: 6px;
}

.three {
    background-image: url('Images/P3.png');
    background-size: cover;
    background-position: center;
    background-color: gray;
    grid-column: 1 / 4;
    grid-row: 3 / 5;
    border-radius: 6px;
    padding: 0; /* Ensure no internal padding */
    margin: 0;
}

.four {
    background-image: url('Images/P4.png');
    background-size: cover;
    background-position: center;
    background-color: gray;
    grid-column: 4 / 6;
    grid-row: 3 / 5;
    border-radius: 6px;
}

.s3-btn-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -60px;
    margin-bottom: 100px;
}

.s3-btn {
    position: relative;
    font-size: 1.2em;
    padding: 0.7em 1.4em;
    background-color: white;
    text-decoration: none;
    border: none;
    border-radius: 0.5em;
    color: black;
    box-shadow: 0.5em 0.5em 0.5em rgba(0, 0, 0, 0.3);
    border: 1.5px solid black;
}

.s3-btn-txt{
    font-family: 'Epilogue', sans-serif;
    font-weight: 300;
}

button.s3-btn::before {
    position: absolute;
    content: '';
    height: 0;
    width: 0;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(33,33,33,1) 0%, rgba(33,33,33,1) 50%, black 50%, black 60%);
    border-radius: 0 0 0.5em 0;
    box-shadow: 0.2em 0.2em 0.2em rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

button.s3-btn:hover::before {
    width: 1.6em;
    height: 1.6em;
}

button.s3-btn:active {
    box-shadow: 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.3);
    transform: translate(0.1em, 0.1em);
}

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

.s4-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aligns items in the center vertically */
    gap: 20px;
    height: 100%; /* Ensure the height is set for proper vertical alignment */
}

.contact-form, .txt-socials {
    flex: 1;
    display: flex; /* Makes the div a flex container */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    text-align: center; /* Centers the text itself */
    padding-left: 50px;
    padding-right: 50px;
}

.txt-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px; 
    font-size: 1rem;
    color: black;
    font-family: 'Epilogue', sans-serif;
    font-weight: 300;
    line-height: 35px;
}

.mobileCard {
    display: none;
}


.card {
    width: fit-content;
    height: fit-content;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 25px;
    gap: 20px;
  }
  
  /* for all social containers*/
  .socialContainer {
    width: 52px;
    height: 52px;
    background-color: #00B5FF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition-duration: .3s;
    border-radius: 50%;
  }
  /* instagram*/
  .containerOne:hover {
    background-color: #d62976;
    transition-duration: .3s;
  }
  /* twitter*/
  .containerTwo:hover {
    background-color: #00acee;
    transition-duration: .3s;
  }
  /* linkdin*/
  .containerThree:hover {
    background-color: #0072b1;
    transition-duration: .3s;
  }
  /* Whatsapp*/
  .containerFour:hover {
    background-color: #128C7E;
    transition-duration: .3s;
  }
  
  .socialContainer:active {
    transform: scale(0.9);
    transition-duration: .3s;
  }
  
  .socialSvg {
    width: 17px;
  }
  
  .socialSvg path {
    fill: rgb(255, 255, 255);
  }
  
  .socialContainer:hover .socialSvg {
    animation: slide-in-top 0.3s both;
  }
  
  @keyframes slide-in-top {
    0% {
      transform: translateY(-50px);
      opacity: 0;
    }
  
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }  

.login-box {
    position: relative;
    width: 400px;
    padding: 40px;
    margin: 100px auto;
    background: white;
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0,0,0,.6);
    border-radius: 10px;
}

.login-box p:first-child {
    margin: 0 0 30px;
    padding: 0;
    color: black;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Epilogue', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
}

.login-box .user-box {
    position: relative;
}

.login-box .user-box input,
.login-box .user-box textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: black;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid black;
    outline: none;
    background: transparent;
    resize: none; /* Prevent resizing of the textarea */
}

.login-box .user-box textarea {
    height: 50px; /* Increase the height for the message box */
}

.login-box .user-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: black;
    pointer-events: none;
    transition: .5s;
    font-family: 'Epilogue', sans-serif;
    font-weight: 300;
}

.login-box .user-box input:focus ~ label,
.login-box .user-box input:valid ~ label,
.login-box .user-box textarea:focus ~ label,
.login-box .user-box textarea:valid ~ label {
    top: -20px;
    left: 0;
    color: black;
    font-size: 12px;
}

.login-box form a {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: black;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: .5s;
    margin-top: 40px;
    letter-spacing: 3px;
    font-family: 'Epilogue', sans-serif;
    font-weight: 800;
}

.login-box a:hover {
    background: black;
    color: white;
    border-radius: 5px;
}

.login-box a span {
    position: absolute;
    display: block;
}

.login-box a span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, black);
    animation: btn-anim1 1.5s linear infinite;
}

@keyframes btn-anim1 {
    0% {
        left: -100%;
    }

    50%,100% {
        left: 100%;
    }
}

.login-box a span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, black);
    animation: btn-anim2 1.5s linear infinite;
    animation-delay: .375s;
}

@keyframes btn-anim2 {
    0% {
        top: -100%;
    }

    50%,100% {
        top: 100%;
    }
}

.login-box a span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, black);
    animation: btn-anim3 1.5s linear infinite;
    animation-delay: .75s;
}

@keyframes btn-anim3 {
    0% {
        right: -100%;
    }

    50%,100% {
        right: 100%;
    }
}

.login-box a span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, black);
    animation: btn-anim4 1.5s linear infinite;
    animation-delay: 1.125s;
}

@keyframes btn-anim4 {
    0% {
        bottom: -100%;
    }

    50%,100% {
        bottom: 100%;
    }
}

.login-box p:last-child {
    color: #aaa;
    font-size: 14px;
}

.login-box a.a2 {
    color: black;
    text-decoration: none;
}

.login-box a.a2:hover {
    background: transparent;
    color: #aaa;
    border-radius: 5px;
}

.validation {
    display: none;
}

.submit{
    background: transparent;
    color: black;
}

.submit:hover{
    color: gray;
}

.footer {
    text-align: center; 
    color: black;
    font-size: 1rem;
    font-family: 'Epilogue', sans-serif;
    font-weight: 300;
    padding-top: 150px;
    margin-bottom: 20px;
}

/* 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);
        
    }
    
    .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;
    }

    .homepagePhoto {
        visibility: hidden;
    }
    
    .topContainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .left-s1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        translate: 10%;
    }
    
    .name {
        font-size: 5vw;
    }
    
    .button-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
    
    button {
        padding: 10px 20px;
        border: none;
        cursor: pointer;
        margin-top: 10px;
    }
    
    button:hover {
        background-color: #ddd;
    }

    /* Section 2 Content */
    .s2-txt-container {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center; /* Center text inside the container */
        margin-top: 50px;
        margin-right: 20px;
        margin-left: 20px;
    }
    
    .s2-text{
        text-align: center;
        font-size: 0.9rem;
        color: black;
        font-family: 'Epilogue', sans-serif;
        font-weight: 300;
        line-height: 35px;
        width: 947px;
        height: 433px;
    }

    .s2-btn-container{
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
    }
    
    .s2-btn {
        position: relative;
        font-size: 1.2em;
        padding: 0.7em 1.4em;
        background-color: white;
        text-decoration: none;
        border: none;
        border-radius: 0.5em;
        color: black;
        box-shadow: 0.5em 0.5em 0.5em rgba(0, 0, 0, 0.3);
        border: 1.5px solid black;
      }
    
      .s2-btn-txt{
        font-family: 'Epilogue', sans-serif;
        font-weight: 300;
      }

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

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

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

      /* Section 3 Content */

        .content {
            display: grid;
            margin: 1000 auto;
            padding: 90px;
            grid-template-columns: repeat(1, 1fr);
            grid-auto-rows: minmax(150px, auto);
            grid-gap: 15px;
            max-width: 1000px;
        }

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

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

        .one {
            background-color: gray;
            grid-column: 1 / 3;
            grid-row: 1 / 2;
            border-radius: 6px;
        }

        .tag-1, .tag-2 {
            height: 2em;
            width: 2.2em;
            border: none;
            border-radius: 10em;
            background-color: #00B5FF;
            position: relative;
            padding: 5px 15px;
            display: flex;
            align-items: center;
            text-align: center;
        }

        .tag-3 {
            height: 2em;
            width: 4.5em;
            border: none;
            border-radius: 10em;
            background-color: #00B5FF;
            position: relative;
            padding: 5px 15px;
            display: flex;
            align-items: center;
            text-align: center;
            display: none;
        }

        .tag-4 {
            height: 2em;
            width: 5.5em;
            border: none;
            border-radius: 10em;
            background-color: #00B5FF;
            position: relative;
            padding: 5px 15px;
            display: flex;
            align-items: center;
            text-align: center;
            display: none;
        }

        .tag-text{
            font-family: 'Epilogue', sans-serif;
            font-weight: bold;
            font-size: 1rem;
            color: #ffffff;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

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

        .two {
            background-color: gray;
            grid-column: 1 / 3;
            grid-row: 2 / 3;
            border-radius: 6px;
        }

        .three {
            background-color: gray;
            grid-column: 1 / 4;
            grid-row: 3 / 5;
            border-radius: 6px;
            display: none;
        }

        .four {
            background-color: gray;
            grid-column: 4 / 6;
            grid-row: 3 / 5;
            border-radius: 6px;
            display: none;
        }

        .s3-btn-container{
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: -80px;
        }

        .s3-btn {
            position: relative;
            font-size: 1.2em;
            padding: 0.7em 1.4em;
            background-color: white;
            text-decoration: none;
            border: none;
            border-radius: 0.5em;
            color: black;
            box-shadow: 0.5em 0.5em 0.5em rgba(0, 0, 0, 0.3);
            border: 1.5px solid black;
        }

        .s3-btn-txt{
            font-family: 'Epilogue', sans-serif;
            font-weight: 300;
        }

        button.s3-btn::before {
            position: absolute;
            content: '';
            height: 0;
            width: 0;
            top: 0;
            left: 0;
            background: linear-gradient(135deg, rgba(33,33,33,1) 0%, rgba(33,33,33,1) 50%, black 50%, black 60%);
            border-radius: 0 0 0.5em 0;
            box-shadow: 0.2em 0.2em 0.2em rgba(0, 0, 0, 0.3);
            transition: 0.3s;
        }

        button.s3-btn:hover::before {
            width: 1.6em;
            height: 1.6em;
        }

        button.s3-btn:active {
            box-shadow: 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.3);
            transform: translate(0.1em, 0.1em);
        }

        /* Section 4 Content */

        .section-4 { 
            background-color: white; 
            overflow: hidden;
        }

        .s4-content {
            flex-direction: column;
            align-items: center;
          }
        
          .txt-socials {
            order: 1; /* Ensures txt-socials appear first */
            padding-top: 50px;
          }

          .mobileCard {
            display: block;
          }

          .desktopCard{
            display: none;
          }
        
          .contact-form {
            order: 2; /* Ensures contact-form appears second */
            width: 100%;
            padding: 20px 20px; /* Adjust padding for better spacing on mobile */
            margin-bottom: 100px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
          }
        
          .login-box {
            width: 100%;
            max-width: 400px; /* Limits the width on mobile */
            margin: 0 auto; /* Centers the login box on the screen */
          }

          .footer {
            margin-top: -150px;
          }
}

@media (max-height: 780px) {
    .details {
        padding-top: 80px;
        padding-left: 15px;
    }
}

@media (max-width: 350px) {
    .details {
        padding-top: 150px;
        padding-left: 15px;
    }

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