html, body {
    cursor: cell;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.navbar {
    display: flex; /* Align items horizontally */
    justify-content: right; /* Center the items */
    margin-right: 120px;
    background-color: transparent; /* Dark background */
    padding: 40px 0; /* Spacing for the navbar */
    position: static; /* Sticks to the top */
    top: 0;
}

.nav-item {
    color: rgb(5, 0, 52); /* Text color */
    font-family: Poly;
    text-decoration: none; /* Remove underline */
    margin: 0 20px; /* Spacing between items */
    font-size: 16px; /* Font size */
    padding: 10px 20px; /* Padding around items */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.nav-item:hover {
    color: black; /* Text color on hover */
    
}

.empty-space {
    height: 250px;
}

.info-container {
    display: flex;
    gap: 40px; /* Adjust this value to control space between items */
    align-items: center;
    margin: 20px 0;
}

.Location, .Resume {
    display: flex;
    align-items: center;
    gap: 10px;
}
.Location {
    background-color: rgb(255, 255, 213);
    font-family: Podkova;
    margin-left: 170px;
    display: flex;
    border: solid 1px;
    border-radius: 35px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 45px;
    width: 190px;
    box-shadow: 2px 2px 3px grey, -2px -2px 3px grey;
}

.Location-Pin {
    
    height: 26px;
    width: 26px;
}

.Resume{
    background-color: rgb(255, 255, 213);
    cursor: alias;
    font-family: Podkova;
    font-size: 14px;
    display: flex;
    border: solid 1px;
    border-radius: 35px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 45px;
    width: 150px;
    box-shadow: 2px 2px 3px grey, -2px -2px 3px grey;
}
.Location-Button{
    height: 26px;
    width: 26px;
}

.Head-Line {
    font-family: Averia Sans Libre;
    width: 80%;
    text-align: start;
    padding-left: 20px;
    white-space: wrap;
    font-size: 24px;
    gap: 2px;
    font-weight: bold;
    margin-left: 150px;
    color: rgb(0, 7, 107);
    
}

.direction{
    margin: 100px 180px 50px 180px ;
    height: 60px;
    background-color: white;
    border-radius: 50px;
    
}
.direction-text{
    font-family: Poly;
    font-weight: lighter;
    color: grey;
    font-size: 18px;
    text-align: center;
    padding-top: 20px;
    
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 100px;
    width: 100%;
    margin-top: 150px;
    margin-bottom: 120px;
}

.project-card {
    cursor: alias;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; /* Reduced from 0.3s */
    margin: 10px;
    width: calc(50% - 20px);
    position: relative;  /* Add this for absolute positioning of text */
    transform: translateY(30px); /* Initial state for fade-up */
    will-change: transform, opacity, box-shadow; /* Optimize animations */
}

/* Separate transform properties for different animations */
.project-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover {
    transform: translateY(0) scale(1.05) !important; /* Override fade-up transform */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    transition: filter 0.3s ease;  /* Add transition for smooth dimming */
}

.project-card p {
    margin: 0;
    font-size: 16px;
    color: #fff;
    bottom: 20px; /* Adjust spacing from the bottom */
    left: 20px;
    right: 20px;
    transform: none;  /* Remove previous transform */
    font-size: 16px;
    color: #fff; /* White text for visibility */
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent black background */
    padding: 15px;
    border-radius: 8px;
    opacity: 0; /* Hide the text initially */
    transition: opacity 0.3s ease; /* Smooth transition for appearance */
    pointer-events: none;
    position: absolute;  /* Position text over image */
    text-align: left;
}

.project-card:hover p {
    opacity: 1; /* Show the text on hover */
    pointer-events: auto; /* Enable interaction with the text */
}

.project-card:hover img {
    filter: brightness(0.7);  /* Dim the image on hover */
}

#Box1 {
    width: 740px;
    height: 500px;
}

#Box2 {
    width: 350px;
    height: 500px;
}

.footer {
    background-color: #0d1b2a; /* Footer background */
    color: white; /* Text color */
    display: flex; /* Flexbox for horizontal layout */
    justify-content: space-between; /* Space between left and right text */
    align-items: center; /* Vertically center the text */
    padding: 10px 0; /* Adjusted spacing inside the footer */
    position: relative; /* Positioned at the bottom */
    bottom: 0;
    width: 100%; /* Full width of the screen */
    height: 200px;
    box-sizing: border-box; /* Include padding in width calculation */
    margin: 0; /* Remove margin */
}

.left-text {
    font-family: poly;
    font-size: 22px;
    margin-left: 120px;
}

.right-text {
    font-family: Podkova;
    font-size: 14px;
    margin-right: 200px;
}
.links-div{
    display: flex;
    justify-content: start;
    gap: 40px;
}
.footer-links{
    font-size: 16px;
    text-align: center;
    color: rgb(185, 179, 255);
    text-decoration: none;
    
    
}

#ankle {
    font-weight: bold;
}

.navbar2 {
    font-family: Aclonica;
    margin-bottom: -10px;
    font-size: 32px;
}

.subhead {
    font-family: Poly;
    font-size: 22px;
}

.Ex-Bar {
    gap: 100px;
    margin-left: 120px;
    margin-top: 80px;
}

.experi {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 80px;
}

.ex1 {
    cursor: alias;
    height: 225px;
    width: 225px;
    background-color: antiquewhite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ex1:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.exfooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer2 {
    font-family: Aclonica;
    font-weight: lighter;
    font-size: 22px;
    margin-bottom: -15px;
}

.Ex-Foot {
    gap: 100px;
    margin-left: 120px;
    margin-top: 200px;
    margin-bottom: 100px;
}

.subfoot {
    font-family: Pokova;
    font-size: 22px;
}

.mailto {
    text-decoration: none;
}

.out {
    font-family: Podkova;
    margin-right: 150px;
}

.in {
    margin-top: 100px;
}

.links {
    display: flex;
    justify-content: start;
    gap: 20px;
    align-items: center; 
}

.social {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: grey;
}

.name {
    font-family: Aclonica;
    margin-left: 120px;
    margin-top: 50px;
    font-size: 26px;
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
    gap: 50px;
}

.meimage {
    height: 450px;
    width: 350px;
    object-fit: cover;
}

.head {
    font-family: Aclonica;
    font-size: 42px;
    margin-bottom: -10px;
}

.sub {
    font-family: Poly;
    font-size: 24px;
    width: 450px;
    color: #797979;
}

.details {
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-left: 20px;
}

.mypara {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 120px;
    font-family: Poly;
    font-size: 22px;
    color: black;
    margin-left: 300px;
    margin-right: 300px;
    white-space: pre-line;
    line-height: 1.5;
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 150px 0;
    font-family: Podkova;
}

.box {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 250px;
    height: 40px;
    text-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    align-items: center;
}

.box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.box h3 {
    color: #b0762c;
    font-size: 18px;
    margin: 0 0 -5px 0;
    text-transform: uppercase;
}

.box p {
    margin: 0;
    line-height: 1.2;
}

.mefoot {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 50px;
}

.downfoot {
    white-space: pre-line;
    line-height: 1.5;
    margin-right: 100px;
}

.upfoot {
    margin-left: 50px;
}

.author-link {
    text-decoration: none;
    color: black;
}

.author-name {
    font-family: Aclonica;
    margin-left: 120px;
    margin-top: 50px;
    font-size: 26px;
}

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
    gap: 50px;
}

.profile-image {
    height: 450px;
    width: 350px;
    object-fit: cover;
}

.profile-heading {
    font-family: Aclonica;
    font-size: 42px;
    margin-bottom: -10px;
}

.profile-info {
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-left: 20px;
}

.profile-tagline {
    font-family: Poly;
    font-size: 24px;
    width: 450px;
    color: #797979;
}

.accent-dot {
    color: #0554FF;
}

.bio-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 120px 300px;
    font-family: Poly;
    font-size: 22px;
    color: black;
    white-space: pre-line;
    line-height: 1.5;
}

.status-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 150px 0;
    font-family: Podkova;
}

.status-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 250px;
    height: 40px;
    text-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    align-items: center;
}

.status-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.status-card h3 {
    color: #b0762c;
    font-size: 18px;
    margin: 0 0 10px 0;  /* Changed from -5px to 10px to add space */
    text-transform: uppercase;
}

.status-card p {
    margin: 0;
    line-height: 1.2;
}

.emphasis-text {
    font-family: Aclonica;
    font-weight: 300;
    display: inline-block;
}

.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 50px;
}

.contact-primary {
    white-space: pre-line;
    line-height: 1.5;
    margin-right: 100px;
}

.contact-text {
    margin-top: -10px;
    font-family: Podkova;
    font-size: 18px;
}

.resume-link {
    color: #3265FF;
}

.contact-secondary {
    margin-left: 50px;
}

.contact-info {
    padding-top: 200px;
}

.contact-heading {
    font-family: Podkova;
    font-size: 18px;
}

.contact-email {
    font-family: Podkova;
    font-size: 18px;
    margin-top: -10px;
}

.email-link {
    text-decoration: none;
}

.social-section {
    margin-top: 100px;
}

.social-text {
    font-family: Podkova;
    margin-right: 150px;
}

.social-links {
    display: flex;
    justify-content: start;
    gap: 20px;
    align-items: center;
}

.social-icon {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: grey;
}

.copyright-text {
    font-family: Podkova;
    margin-right: 150px;
}

@media (max-width: 480px) {
    /* Styles for small phones */
    .navbar{
        display: flex; /* Align items horizontally */
        justify-content: right; 
        margin-right: 20px;
    }
    .Location{
        margin-left: 50px;
    }
    .Head-Line{
        margin-left: 30px;
        font-size: 18px;
    }
    #Box1 {
        width: 350px;
        height: 500px;
    }
    .project-grid{
        padding: 0;
    }
    
    .left-text{
        margin-left: 50px;
        font-size: 16px;
    }
    .right-text{
        margin-right: 20px;
        font-size: 12px;
    }
    .Ex-Bar{
        margin-left: 40px;
    }
    .subhead{
        font-size: 16px;
        margin-right: 30px;
    }
    .experi{
        margin-left: 40px;
        margin-right: 40px;
        display: grid;
        align-items: center;
        justify-content: center; 
    }
    .ex1{
        height: 200px;
        width: 200px;
    }
    .exfooter{
        display: grid;
        justify-content: center;
        align-items: center;
    }
    .Ex-Foot{
        margin-left: 40px;
        margin-top: 80px;
        margin-bottom: 20px;
        margin-right: 40px;
    }
    .footer2{
        font-size: 18px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .subfoot{
        font-size: 16px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .in{
        margin-top: 20px;
        margin-left: 40px;
        margin-right: 40px;
        margin-bottom: 40px;
    }
    .out{
       
       text-align: center;
       margin-right: 0px;
    }
    .links{
        justify-content: center;
        align-items: center;
    }
    .name{
        margin-left: 80px;
    }
    .about{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 50px;
        gap: 50px;
    }
    .details{
        height: 100px;
    }
    .head{
        font-size: 32px;
    }
    .sub{
        font-size: 18px;
        width: 400px;
    }
    .mypara{
        margin-left: 60px;
        margin-right: 50px;
        font-size: 18px
    }
    .center-container{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
        margin-top: 50px;
        margin-bottom: 50px;
    }
    .mefoot{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    .downfoot{
        margin-left: 40px;
        margin-right: 20px;
    }
    .upfoot{
        margin-top: -150px;
        margin-left: 20px;
    }
    .in{
        margin-left: 0;
        margin-top: 50px;
    }

    /* About page responsive styles */
    .author-name { 
        margin-left: 80px; 
    }
    .profile-section {
        flex-direction: column;
        margin-top: 50px;
    }
    .profile-info { 
        height: 100px; 
    }
    .profile-heading { 
        font-size: 32px; 
    }
    .profile-tagline {
        font-size: 18px;
        width: 400px;
    }
    .bio-text {
        margin: 60px 50px;
        font-size: 18px;
    }
    .status-grid {
        flex-direction: column;
        margin: 50px 0;
    }
    .contact-section {
        flex-direction: column;
        text-align: center;
    }
    .contact-primary {
        margin-right: 0;
        margin-bottom: 50px;
    }
    .contact-secondary {
        margin-left: 0;
    }
    .contact-info {
        padding-top: 50px;
    }
    .social-text, .copyright-text {
        margin-right: 0;
    }
    .social-links{
        justify-content: center;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    /* Styles for large phones */
    .navbar{
        display: flex; /* Align items horizontally */
        justify-content: right; 
        margin-right: 60px;
    }
    .Location{
        margin-left: 80px;
    }
    .Head-Line{
        margin-left: 60px;
        font-size: 20px;
    }
    .project-grid{
        padding: 0;
    }
    #Box1 {
        width: 450px;
        height: 500px;
    }
    #Box2{
        width: 450px;
        height: 500px;
    }
    .left-text{
        margin-left: 50px;
        font-size: 18px;
    }
    .right-text{
        margin-right: 50px;
        font-size: 14px;
    }
    .Ex-Bar{
        margin-left: 100px;
    }
    .subhead{
        font-size: 16px;
        margin-right: 30px;
    }
    .experi{
        margin-left: 40px;
        margin-right: 40px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center; 
    }
    .ex1{
        height: 200px;
        width: 200px;
    }
    .Ex-Foot{
        margin-left: 50px;
    }
    .footer2{
        font-size: 18px;
    }
    .subfoot{
        font-size: 16px; 
    }
    .in{
        margin-left: 80px;
    }
    .out{
        margin-right: 40px;
    }
    .about{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 50px;
        gap: 50px;
    }
    .details{
        height: 100px;
    }
    .head{
        font-size: 32px;
    }
    .sub{
        font-size: 18px;
        width: 400px;
    }
    .mypara{
        margin-top: 50px;
        margin-left: 100px;
        margin-right: 100px;
        font-size: 16px;
        white-space: initial;
        line-height: 1.5;
    }
    .center-container{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
        margin-top: 50px;
        margin-bottom: 50px;
    }
    .downfoot{
        margin-left: 40px;
    }
    .upfoot{
        margin-left: 0;
        margin-right: 20px;
    }
    .in{
        margin-left: 0;
        margin-top: 60px;
    }

    /* About page responsive styles */
    .profile-section {
        flex-direction: column;
        margin-top: 50px;
    }
    .profile-info {
        height: 150px;
        margin-left: 80px;
    }
    .profile-tagline {
        width: 90%;
        font-size: 20px;
    }
    .bio-text {
        margin: 80px 50px;
        font-size: 20px;
        white-space: initial;
    }
    .status-grid {
        flex-wrap: wrap;
        gap: 30px;
    }
    .contact-section {
        flex-direction: column;
        align-items: center;
    }
    .contact-primary {
        margin-right: 0;
        text-align: center
    }
    .contact-info{
        text-align: center;
    }
    .social-text{
        text-align: center;
        margin-right: 0;
    }
    .social-links{
        justify-content: center;
    }
    .copyright-text{
        text-align: center;
        margin-right: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* Styles for tablets */
    .navbar{
        margin-right: 80px;
    }
    .Location{
        margin-left: 120px;
    }
    .Head-Line{
        margin-left: 90px;
        font-size: 22px;
    }
    .project-grid{
        padding: 0%;
    }
    #Box2{
        width: 740px;
        height: 500px;
    }
    .Ex-Bar{
        margin-left: 100px;
    }
    .experi{
        margin-left: 0;
    }
    .Ex-Foot{
        margin-left: 60px;
    }
    .in{
        margin-left: 80px;
    }
    .mypara{
        margin-left: 150px;
        margin-right: 150px;
        font-size: 18px;
    }
    .center-container{
        margin-left: 20px;
        margin-right: 20px;
    }
    .downfoot{
        margin-right: 0;
        margin-left: 60px;
    }
    .in{
        margin-left: 0;
        margin-top: 60px;
    }
    .bio-text{
        margin: 80px 50px;
        font-size: 20px;
    }
    .status-grid{
        flex-wrap: wrap;
        gap: 30px;
    }
    .contact-primary{
        margin-right: 0;
        margin-left: 80px;
        text-align: start;
    }
    .contact-secondary{
        margin-left: 80px;
    }
}
@media (min-width: 1025px) and (max-width: 1229px) {
    /* Styles for desktops */
    .bio-text{
        margin-left: 150px;
        margin-right: 150px;
    }
    #Box2{
        width: 740px;
        height: 500px;
    }
    .Head-Line{
        align-items: center;
        margin: 110px;
    }
    .Location{
        margin-left: 140px;
    }

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Custom cursor styling */
.custom-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    background-color: black;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    mix-blend-mode: difference;
}

/* Animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* Reduced from 0.6s to 0.3s */
    will-change: transform, opacity;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add different delays for elements */
.delay-1 { transition-delay: 0.2s; } /* Reduced from 0.2s */
.delay-2 { transition-delay: 0.6s; } /* Reduced from 0.4s */
.delay-3 { transition-delay: 0.8s; } /* Reduced from 0.6s */
.delay-4 { transition-delay: 0.10s; } /* Reduced from 0.8s */

/* Update fade-up animation to not conflict with hover */
.fade-up {
    opacity: 0;
    pointer-events: none; /* Prevent interaction during animation */
}

.fade-up.visible {
    opacity: 1;
    pointer-events: auto; /* Re-enable interaction after animation */
}

}
