@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Tangerine:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    user-select: none;
}

html, body {
    height: 100%;
    width: 100%;
    background: #111;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.loader {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 999;
    background-color: #111;
}

.loaderImg {
    width: 8vw;
    height: 8vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.navbar {
    width: 100%;
    height: 100px;
    padding: 3vw 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-mobile, .sidebar {
    display: none;
}

.navbar-brand img {
    width: 5vw;
    height: auto;
    cursor: pointer;
}

.navbar-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4vw;
}

.navbar-links a {
    text-decoration: none;
    color: #F2F2F2;
    font-size: 1.2vw;
}

.hero-section {
    width: 100%;
    height: calc(75vh - 100px); /* Subtract the navbar height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
    background-color: #111;
    color: #F2F2F2;
}

.hero-content {
    width: 60%;
}

.hero-title {
    font-size: 3vw;
    font-weight: 700;
    line-height: 1.5;
}

.name-overlay {
    width: max-content;
    height: max-content;
    background-color: transparent;
}

.name {
    font-size: 10vw;
    font-family: "Tangerine", cursive;
    font-weight: 700;
    display: block;
}

.name:hover {
    color: bisque;
}

.surname {
    display: block;
}

.hero-subtitle {
    font-size: 1.5vw;
    font-weight: 700;
    letter-spacing: 0.5vw;
    text-transform: uppercase;
    margin-top: 2vh;
}

.hero-image {
    width: 40%;
    display: flex;
    justify-content: flex-end;
}

.hero-illustration {
    width: 100%;
    height: auto;
}

.hero-section-bottom {
    width: 100%;
    height: calc(100vh - (85vh - 100px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5vw;
}

.follow h4, .msg h4, .scroll h4 {
    color: #F2F2F2;
    font-weight: 300;
}

.follow a {
    text-decoration: none;
    color: #F2F2F2;
    font-size: 1.2vw;
}

.scroll i {
    font-size: 2vw;
    color: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-section {
    width: 100%;
    height: 100vh;
}

.heading {
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
}

.about-section .heading h1, .education-section .heading h1, .experience-section .heading h1, .skills-section .heading h1 {
    padding: 2vw;
    font-size: 6vw;
    color: #111;
    font-weight: 900;
    letter-spacing: 0.5vw;
    text-shadow: -1px -1px 0 #F2F2F2, 1px -1px 0 #F2F2F2, -1px 1px 0 #F2F2F2, 1px 1px 0 #F2F2F2;
}

.about-section .heading h4 {
    font-size: 2vw;
    letter-spacing: none;
    color: #F2F2F2;
}

.about-body p {
    padding: 5vw;
    font-size: 2.5vw;
    font-weight: 300;
    color: #F2F2F2;
    letter-spacing: 0.1vw;
    text-align: center;
}

.brand-name {
    font-family: "Tangerine", cursive;
    font-size: 4.5vw;
}

.highlight {
    font-family: "Montserrat", sans-serif;
    color: beige;
    font-size: 2vw;
    font-weight: 600;
    position: relative;
    display: inline-block;
    z-index: 1;
    padding: 0 5px;
}

.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="20" viewBox="0 0 100 20"><path d="M0 10 Q10 5 20 10 T40 10 T60 10 T80 10 T100 10" stroke="rgba(144, 238, 144, 0.6)" stroke-width="20" fill="none" /></svg>') no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left; /* Ensuring animation starts from the left */
}

.highlight.animate::before {
    animation: highlightAnim 1s forwards;
}

@keyframes highlightAnim {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.education-section {
    width: 100%;
    height: max-content; /* Adjusted to auto for responsiveness */
    background-image: url(/assets/education-bg.svg);
}

.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 100%; /* Adjusted max-width for responsiveness */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.checkpoint {
    width: 70%;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2.5vh; /* Adjusted margin for responsiveness */
}

.content {
    background-color: #f8f9fa; /* Change color as needed */
    padding: 3vw; /* Adjusted padding for responsiveness */
    border-radius: 2vw; /* Adjusted border-radius for responsiveness */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.content h2 {
    font-size: 2vw; /* Adjusted font-size for responsiveness */
    font-weight: 600;
    margin-bottom: 2vh; /* Adjusted margin for responsiveness */
}

.content p {
    font-size: 1.2vw; /* Adjusted font-size for responsiveness */
    margin-bottom: 1vh; /* Adjusted margin for responsiveness */
}

.exp-timeline {
    position: relative;
    margin: 0 auto;
    max-width: 60%;
}

.exp-checkpoint {
    position: relative;
    margin-bottom: 2vw;
}

.exp-checkpoint.left .exp-content {
    margin-right: 2vw;
    text-align: left;
}

.exp-checkpoint.right .exp-content {
    margin-left: 2vw;
    text-align: left;
}

.exp-marker {
    width: 1.5vw;
    height: 1.5vw;
    border-radius: 50%;
    background-color: #007bff;
    position: absolute;
    top: 20px;
    z-index: 1;
}

.exp-checkpoint.left .exp-marker {
    right: -10px;
}

.exp-checkpoint.right .exp-marker {
    left: -10px;
}

.exp-content {
    background-color: #f8f9fa;
    color: #111;
    padding: 2vw;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.exp-content h2 {
    font-size: 2vw;
    font-weight: bold;
    margin-bottom: 10px;
}

.exp-content h3 {
    font-size: 1.5vw;
    font-weight: 600;
    margin-bottom: 10px;
}

.exp-content .exp-date {
    font-size: 1.2vw;
    font-weight: 300;
    margin-bottom: 10px;
    color: #555;
}

.exp-content p {
    font-size: 1.2vw;
    line-height: 1.5;
}

.exp-description {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.6s ease, height 3s ease;
}

.exp-checkpoint:hover .exp-description {
    opacity: 1;
    height: auto;
    transition: opacity 0.6s ease, height 3s ease;
}

.skills-section {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.skills-content {
    width: 70%;
    height: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.skill-card {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card .skill-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-content {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
}

.view-project {
    width: 50%;
}

.view-project h1 {
    font-size: 5vw;
    font-weight: 600;
    color: #F2F2F2;
}

.view-project button, .contact-content button{
    margin-top: 3vw;
    padding: 1.5vw 2.5vw;
    background-color: transparent;
    border-radius: 100px;
    border: 1px solid #F2F2F2;
    cursor: pointer;
}

.contact-content button {
    margin: 3vw;
}

.view-project button a, .contact-content button a {
    text-decoration: none;
    color: #F2F2F2;
    font-size: 1.2vw;
    font-weight: 600;
}

.view-project button i, .contact-content button i {
    transition: 0.6s ease;
}

.view-project button:hover i, .contact-content button:hover i {
    padding-left: 2vw;
    transition: 0.6s ease;
}

.project-illustration {
    width: 50%;
    height: auto;
}

.project-illustration img {
    width: 100%;
    height: auto;
}

.contact-section {
    width: 100%;
    height: 40vh;
}

.contact-content {
    padding: 0vw 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.contact-content h1 {
    font-size: 12vw;
    font-family: "Tangerine", cursive;
    color: #F2F2F2;
}

.footer-section {
    width: 100%;
    height: max-content;
    background: #F2F2F2;
}

.footer-content h1 {
    padding: 3vw 0vw;
    font-size: 18vw;
    font-family: "Tangerine", cursive;
    text-align: center;
}

.copyright-band {
    width: 100%;
    height: auto;
    background-color: #555;
}

.copyright-band p {
    color: #F2F2F2;
    font-size: 1.5vw;
    text-align: center;
    padding: 1vw 0vw;
}

.divider-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3vw 0vw;
}

.divider {
    width: 80%;
    height: 0.1vw;
    background-color: #F2F2F2;
}

@media (max-width: 768px) {

    .loader {
        overflow-y: hidden;
    }

    .navbar {
        display: none;
    }

    .navbar-mobile {
        display: block;
        padding: 0vw 5vw;
        width: 100%;
        height: 80px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-brand-mobile img {
        width: 10vw;
        height: auto;
    }

    .toggle-btn {
        font-size: 6vw;
        color: #F2F2F2;
    }

    .sidebar {
       width: 50%;
       height: 100vh;
       background-color: #DADADA;
       position: fixed; /* Use fixed positioning to remove it from the document flow */
       top: 0;
       right: -50%; /* Start off-screen */
       display: block;
       transition: right 0.3s ease-in-out; /* Add transition for smooth opening */
       z-index: 100;
    }

    .sidebar.open {
        right: 0; /* Move sidebar into view when open */
    }

    .navbar-links-mobile {
        padding: 20vw 5vw;
    }

    .nav-link-mobile a {
        text-decoration: none;
        font-size: 8vw;
        color: #111;
        line-height: 15vw;
    }

    .toggle-close-btn {
        font-size: 8vw;
        position: absolute;
        top: 3%;
        right: 5%;
    }

    .hero-section {
        flex-direction: column;
        height: auto;
        padding: 5vw;
        margin-top: 25vw;
    }

    .hero-content {
        width: 100%;
        text-align: center;

    }

    .hero-title {
        font-size: 5vw;
        font-weight: 400;
    }

    .name {
        font-size: 17vw;
    }
    .hero-subtitle {
        font-size: 4vw;
        font-weight: 400;
    }

    .hero-image {
        width: 100%;
        justify-content: center;
        margin-top: 5vh;
    }

    .hero-illustration {
        width: 80%;
    }

    .hero-section-bottom {
        margin-top: 30vw;
        width: 100%;
        height: max-content;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 3vw;
    }

    .follow a {
        text-decoration: none;
        color: #F2F2F2;
        font-size: 5vw;
    }
    
    .scroll i {
        font-size: 5vw;
        color: #F2F2F2;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .about-section {
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .about-section .heading h1, .skills-section .heading h1 {
        padding: 5vw;
        font-size: 15vw;
        color: #111;
        font-weight: 900;
        letter-spacing: 0.5vw;
        text-shadow: -1px -1px 0 #F2F2F2, 1px -1px 0 #F2F2F2, -1px 1px 0 #F2F2F2, 1px 1px 0 #F2F2F2;
    }
    
    .about-section .heading h4 {
        font-size: 6vw;
        letter-spacing: none;
        color: #F2F2F2;
    }

    .about-body p {
        padding: 5vw;
        font-size: 5vw;
        font-weight: 300;
        color: #F2F2F2;
        letter-spacing: none;
        text-align: center;
    }
    
    .brand-name {
        font-family: "Tangerine", cursive;
        font-size: 8vw;
    }
    
    .highlight {
        font-family: "Montserrat", sans-serif;
        color: beige;
        font-size: 3.5vw;
        font-weight: 600;
        position: relative;
        display: inline-block;
        z-index: 1;
        padding: 0 5px;
    }

    .education-section {
        width: 100%;
        height: max-content;
    }

    .education-section .heading h1, .experience-section .heading h1 {
        padding: 5vw;
        font-size: 12vw;
        color: #111;
        font-weight: 900;
        letter-spacing: 0.5vw;
        text-shadow: -1px -1px 0 #F2F2F2, 1px -1px 0 #F2F2F2, -1px 1px 0 #F2F2F2, 1px 1px 0 #F2F2F2;
    }
    
    .timeline {
        padding: 0vw 5vw;
        position: relative;
        margin: 0 auto;
        max-width: 100%; /* Adjusted max-width for responsiveness */
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    
    .checkpoint {
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
        margin-bottom: 3vw; /* Adjusted margin for responsiveness */
    }
    
    .content {
        background-color: #f8f9fa; /* Change color as needed */
        padding: 2vw; /* Adjusted padding for responsiveness */
        border-radius: 2vw; /* Adjusted border-radius for responsiveness */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        width: 100%;
    }
    
    .content h2 {
        font-size: 4vw; /* Adjusted font-size for responsiveness */
        font-weight: 600;
        margin-bottom: 1vh; /* Adjusted margin for responsiveness */
    }
    
    .content p {
        font-size: 2.5vw; /* Adjusted font-size for responsiveness */
        margin-bottom: 1vw; /* Adjusted margin for responsiveness */
    }

    .experience-section {
        width: 100%;
        height: 60vh;
    }
    .exp-timeline {
        position: relative;
        margin: 0 auto;
        max-width: 80%;
        max-height: max-content;
    }
    
    .exp-checkpoint {
        position: relative;
        margin-bottom: 2vw;
    }
    
    .exp-checkpoint.left .exp-content {
        margin-right: 2vw;
        text-align: left;
    }
    
    .exp-checkpoint.right .exp-content {
        margin-left: 2vw;
        text-align: left;
    }
    
    .exp-marker {
        width: 3vw;
        height: 3vw;
        border-radius: 50%;
        background-color: #007bff;
        position: absolute;
        top: 5vw;
        z-index: 1;
    }
    
    .exp-checkpoint.left .exp-marker {
        right: -10px;
    }
    
    .exp-checkpoint.right .exp-marker {
        left: -10px;
    }
    
    .exp-content {
        background-color: #f8f9fa;
        color: #111;
        padding: 2vw;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
        z-index: 2;
    }
    
    .exp-content h2 {
        font-size: 3vw;
        font-weight: bold;
        margin-bottom: 10px;
    }
    
    .exp-content h3 {
        font-size: 2.5vw;
        font-weight: 600;
        margin-bottom: 10px;
    }
    
    .exp-content .exp-date {
        font-size: 2vw;
        font-weight: 300;
        margin-bottom: 10px;
        color: #555;
    }
    
    .exp-content p {
        font-size: 2vw;
        line-height: 1.5;
    }
    
    .exp-description {
        opacity: 0;
        height: 0;
        overflow: hidden;
        transition: opacity 0.6s ease, height 3s ease;
    }
    
    .exp-checkpoint:hover .exp-description {
        opacity: 1;
        height: auto;
        transition: opacity 0.6s ease, height 3s ease;
    }

    .skills-section {
        width: 100%;
        height: max-content;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-direction: column;
    }

    .skills-content {
        width: 100%;
        height: max-content;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .skill-card {
        width: 35%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .project-content {
        width: 100%;
        height: max-content;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column-reverse;
    }
    
    .view-project {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    
    .view-project h1 {
        font-size: 14vw;
        font-weight: 500;
        color: #F2F2F2;
    }
    
    .view-project button, .contact-content button {
        margin-top: 5vw;
        padding: 2.5vw 4.5vw;
        background-color: transparent;
        border-radius: 100px;
        border: 1px solid #F2F2F2;
        cursor: pointer;
    }
    
    .view-project button a, .contact-content button a {
        text-decoration: none;
        color: #F2F2F2;
        font-size: 5vw;
        font-weight: 500;
    }

    .project-illustration {
        width: 100%;
        height: auto;
    }
    
    .project-illustration img {
        width: 100%;
        height: auto;
    }

    .contact-section {
        height: 30vh;
    }

    .contact-content h1 {
        font-size: 18vw;
        font-family: "Tangerine", cursive;
        color: #F2F2F2;
        text-align: center;
    }

    .footer-section {
        width: 100%;
        height: max-content;
        background: #F2F2F2;
    }
    
    .footer-content h1 {
        padding: 3vw 0vw;
        font-size: 16vw;
        font-family: "Tangerine", cursive;
        text-align: center;
    }
    
    .copyright-band {
        width: 100%;
        height: auto;
        background-color: #555;
    }
    
    .copyright-band p {
        color: #F2F2F2;
        font-size: 3vw;
        text-align: center;
        padding: 1.5vw 0vw;
    }

    .divider-section {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5vw 0vw;
    }
}
