:root {
    --pf-gradient: linear-gradient(90deg, rgb(0, 10, 27), white 90%);
    --pf2-gradient: linear-gradient(90deg, rgb(0, 10, 27), white 90%);
    --theme-color: rgba(209, 0, 98, 0.8);
    --theme2-color: rgb(10, 194, 185);
    --pf-plain: #011531;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    /* border: solid 1px red; */
}



/* main page style starts */

html {}

body {
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
    font-style: normal;
    cursor: none;
}

::-webkit-scrollbar {
    width: 0.2rem;
    transition: width 1s ease-in;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme2-color);
}

/* comms */

a {
    cursor: none;
}

section.page {
    height: 100vh;
    display: block;
    position: relative;
}

.line {
    padding-bottom: 1rem;
    border-bottom: 1px solid #011531;
}

/* custom cursor */

.cursor {
    z-index: 100000;
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    background-color: var(--theme-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.tail {
    z-index: 100000;
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--theme-color);
    pointer-events: none;
    transition: opacity 0.2s ease;
}


/* page content */

header {
    overflow: hidden;
    height: 100vh;
    background-image: var(--pf-gradient);
    background-size: 270%;
    animation: bg-animate 5s infinite alternate;
}

/* @keyframes bg-animate {
    from {
        background-image: var(--pf-gradient);
    }

    to {
        background-image: var(--pf2-gradient);
    }
} */

.hero-img {
    /* border: 2px peru solid; */
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    animation: dive-in 1s ease;
    z-index: 1;
    top: 0px;
}

#hanging-miles {
    z-index: 1;
    transform: scale(1.5);
    animation: hanging 2s infinite alternate ease-in;
}

@keyframes hanging {
    from {
        transform: translateY(0px) rotate(2def) scale(1.5);
    }

    to {
        transform: translateY(-30px) rotate(-1deg) scale(1.5);
    }
}

.navigation {
    position: fixed;
    height: 3rem;
    z-index: 1000;
    width: 100%;
    text-align: center;
    color: black;
    font-size: 2rem;
    overflow: hidden;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

nav {
    width: 70%;
    background-color: rgba(113, 113, 113, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 2px 2px rgba(0, 0, 0, 0.5);
    animation: dive-in 1s ease-out 2.4s forwards;
    transform: translateY(-80%);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.miles-logo {
    font-family: "Londrina Sketch", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

nav .nav-links {
    display: flex;
    justify-content: space-around;
    width: 50%;
}

.nav-links li {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.nav-links li a {
    text-transform: uppercase;
    font-size: 1.3rem;
    color: white;
    opacity: 0.7;
    transition: opacity 0.2s ease-in;
}

.nav-links li::after {
    content: "";
    width: 100%;
    height: 7px;
    background-color: var(--theme-color);
    position: relative;
    bottom: 0;
    left: 0;
    display: block;
    transform: translateX(-105%);
    transition: transform 0.3s ease-in;
}

.nav-links li:hover::after {
    transform: translateX(0);
}

.nav-links li a:hover {
    opacity: 1;
}

.hero {
    position: relative;
}



@keyframes dive-in {
    from {
        transform: translateY(-80%);
    }

    to {
        transform: translateY(0);
    }
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    font-size: 25rem;
    font-style: normal;
    text-align: center;
    color: white;
    background-image: linear-gradient(45deg, rgb(255, 255, 255), rgb(5, 99, 97) 170%);
    background-clip: text;
    background-size: 400%;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.miles {
    position: relative;
    font-family: "Londrina Sketch", sans-serif;
    font-weight: 400;
    z-index: 0;
    opacity: 0;
    animation: fade-in 1.2s ease-in 1s forwards;
    /* Added delay */
}

.hero-front-end {
    opacity: 1;
    font-family: monospace;
    font-size: 10rem;
    font-weight: 1000;
    z-index: 2;
    position: relative;
    color: white;
    opacity: 0;
    animation: fade-in 1.6s ease-in 1.5s forwards;
    /* Added delay */
}


#small-font {
    font-size: 1.5rem;
}

/* content */

@keyframes slide-in-animation {
    from {
        opacity: 0;
        transform: translateX(-100px) rotate(0deg);
    }

    to {
        opacity: 1;
        transform: translateX(0px) rotate(90deg);
    }
}

.slide-in {
    animation: slide-in-animation linear infinite;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
    min-width: 100px;
    min-height: 100px;
}

/* about me section */

.about-me {
    font-size: 3rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 100%;
    background: var(--pf2-gradient);
    background-size: 270%;
    color: white;
}

#about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 5rem;
    text-align: justify;
    width: 75%;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

#about p {
    white-space: wrap;
}

.custom-shape-divider-bottom-1730358962 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1730358962 svg {
    position: relative;
    display: block;
    width: calc(144% + 1.3px);
    height: 150px;
}

.custom-shape-divider-bottom-1730358962 .shape-fill {
    fill: #edf1f7;
}

/* skill section */

.pg-2 {
    position: relative;
    display: flex;
    /* Use flexbox */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    height: 100vh;
    /* Ensure full height */
}


@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#svg {
    position: absolute;
    /* Allow it to be positioned correctly */
    width: 1000px;
    /* Set a larger width */
    height: 800px;
    /* Set a larger height */
    animation: rotate 200s linear infinite;
}

#visual {
    position: relative;
    width: 100%;
    z-index: -1;
    border: 2px green solid;
    bottom: -15%;
}

#centerImage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    /* Adjust size as needed */
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 50%;
}

.pg-2 .border-50 {
    clip-path: circle(50%);
}

/* projects */

/* #projects * {
    border: 1px red solid;
} */

#projects {
    display: flex;
    flex-direction: column;
    margin: 2rem 0;
}

#projects .projects-title {
    height: fit-content;
    margin: 2rem;
    font-size: 10rem;
}

#projects .projects-display {
    height: 90%;
    display: flex;
    flex-wrap: wrap;
    margin: 1rem 3rem;
}

#projects .project-item {
    width: 40%;
    min-height: 18rem;
    margin: 5rem 5% 5rem 5%;
    position: relative;
    border: 1px #011531 solid;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-item{
    transition: transform .3s;
}

.project-item:hover {
    transform: translateY(-10px);
}

.proj-banner .banner-title {
    font-size: 2.5rem;
    padding-left: 10%;
    letter-spacing: 1rem;
    z-index: 4;
}

.project-item .proj-banner {
    position: relative;
    height: 40%;
    width: 100%;
    border-bottom: 1px #011531 solid;
    overflow: hidden;
}

/* .proj-banner .proj-icon {
    position: relative;
    bottom: 0;
    right: 0;
    z-index: 1;
} */

.project-item .proj-desc {
    height: 60%;
    width: 100%;
    
    padding: 1.5rem;
}

.project-item .proj-banner .proj-img {
    position: absolute;
    width: 40%;
    right: 0;
    top: 3rem;
}

.project-item .proj-visit {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.project-item .proj-visit a{
    background-color: black;
    text-align: center;
    padding: 1rem 1rem;
    color: white;
    font-size: 1.3rem;
    letter-spacing: 2px;
    height: 5rem;
    border-radius: 0.5rem;
    transform: translateY(3rem);
    transition: transform .3s;
}

.project-item .proj-visit a:hover {
    color: white;
    background-color: rgba(0, 0, 0, 0.8);
}

/* projects specific styles */

#proj-spacetour {
    .proj-banner {
        background: black;
        border-top-left-radius: 1.5rem;
        /* Radius for the bottom left corner */
        border-top-right-radius: 1.5rem;
    }
}

#proj-spacetour .banner-title {
    color: white;

}

/* hire me section */

#visual {
    border: none;
    position: relative;
    left: -20%;
    animation: float 50s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-10vw, -10vh);
    }

    20% {
        transform: translate(-15vw, -15vh);
    }

    30% {
        transform: translate(-20vw, -20vh);
    }

    40% {
        transform: translate(60vw, 5vh);
    }

    50% {
        transform: translate(70vw, 10vh);
    }

    60% {
        transform: translate(50vw, 25vh);
    }

    70% {
        transform: translate(30vw, 20vh);
    }

    80% {
        transform: translate(40vw, 30vh);
    }

    90% {
        transform: translate(10vw, 15vh);
    }

    100% {
        transform: translate(0, 0);
    }
}


#hire-me {
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    overflow: hidden;
}

.hire-me-content-container {
    display: flex;
    height: 100%;
    width: 100%;
    position: absolute;
    justify-content: center;
    align-items: center;
}

.hire-me-content-container .container {
    height: 90%;
    width: 50%;
    background-color: rgba(240, 248, 255, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid #011531;
    padding: 2rem;
    animation: drive-iin 1s ease-out;
}

@keyframes drive-iin {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

#hire-me-pfp {
    height: 10rem;
    border-radius: 50%;
}

.r1 {
    display: flex;
    justify-content: center;
    align-content: center;
    width: 100%;
}

.r1-sub1 {
    width: 70%;
}

.r1-sub1 p {
    font-size: 6rem;
}

.connect-with-me {
    padding: 2rem 4rem;
    font-size: 2rem;

}

#socials svg {
    margin: 1rem;
}

.custom-shape-divider-bottom-1730463590 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1730463590 svg {
    position: relative;
    display: block;
    width: calc(127% + 1.3px);
    height: 210px;
}

.custom-shape-divider-bottom-1730463590 .shape-fill {
    fill: #011531;
}

/* footer */

footer {
    text-align: center;
    font-size: 1.4rem;
    background-color: var(--pf-plain);
    width: 100%;
    color: aliceblue;
    font-weight: 200;
    padding: 3rem 1rem;
}

footer span {
    font-size: 2.5rem;
    font-weight: 400;
}