body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: black;
    color: #CCD7FF;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #0a192f;
}

body::-webkit-scrollbar-thumb {
    background-color: #5AFFDC;
    border-radius: 10px;
    border: 3px solid #0a192f;
}

main {
    text-align: center;
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(95vh - 20px);
    padding: 0 20px;
    text-align: center;
}

.intro .greeting {
    color: #5AFFDC;
    font-size: 28px;
    margin-bottom: 10px;
}

.intro .name {
    font-size: 72px;
    color: #CCD7FF;
    margin: 0;
}

.intro .tagline {
    font-size: 36px;
    color: #CCD7FF;
    margin: 10px 0;
}

body.loading {
    overflow: hidden; 
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.outer-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
}

.progress-ring {
    transform: rotate(-90deg);
    overflow: visible;
}

.progress-ring-circle {
    fill: none;
    stroke: #5AFFDC;
    stroke-width: 5;
    stroke-dasharray: 565.48; /* 2πr; r = 90 */
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 0.2s ease;
}

.middle-circle {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 170px;
    height: 170px;
    border: 5px solid #8892b0;
    border-radius: 50%;
    box-sizing: border-box;
}

.inner-circle {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spin-parent 3s linear infinite;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background-color: #0a192f;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading-text {
    font-size: 14px;
    color: #8892b0;
    margin: 0;
}

.percentage-text {
    font-size: 20px;
    color: #5AFFDC;
    margin: 5px 0 0;
}

#content-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center; 
    background: transparent;
    z-index: 20;
    transition: transform 1s ease, opacity 1s ease;
    transform: translateY(100vh);
    opacity: 0;
    padding-top: 25px;
    padding-bottom: 25px;
}

#content-container.visible {
    transform: translateY(0);
    opacity: 1;
}

#raft {
    width: 70%;
    max-width: 900px;
    background: rgba(10, 25, 47, 0.95);
    border: 3px solid #5AFFDC;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 10px 50px rgba(100, 255, 218, 0.3), /* mod to reduce/increase glow */
                0px -2px 8px rgba(100, 255, 218, 0.2); /* soft glow on top */
    transition: box-shadow 0.3s ease;

}

@keyframes spin-parent {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

body.loaded {
    overflow: auto;
}

.divider {
    height: 2px;
    background: #00b4d8;
    box-shadow: 0 0 5px #00b4d8, 0 0 10px #00e5ff;
    margin: 20px 0;
}

#contact {
    text-align: center;
    padding: 0px 20px; /* mod spacing */
    background-color: #0a192f;
    color: #CCD7FF;
}

#contact p {
    font-size: 18px;
    color: #8892b0;
    margin-top: 10px;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 50px; /* Space btwn icon mod this val */
    margin-top: 20px;
}

.contact-links ion-icon {
    font-size: 60px; /* icon size */
    color: #5AFFDC;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-links ion-icon:hover {
    transform: scale(1.2);
    color: #00e5ff;
}

#about {
    text-align: center;
    padding: 0px 20px;
}

#about p {
    margin-bottom: 30px;
    color: #c3cbd9;
    line-height: 1.3;
}

h2 {
    font-size: 1.8 rem;
    font-weight: 600;
}

#projects {
    text-align: center;
    padding: 0px 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.project-tile {
    background-color: #112240;
    border: 2px solid #5AFFDC;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 10px 50px rgba(100, 255, 218, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-tile h3 {
    font-size: 1.5rem;
    color: #CCD7FF;
    margin-bottom: 10px;
}

.project-tile p {
    color: #8892b0;
    font-size: 1rem;
    margin-bottom: 20px;
}

.project-tile a {
    display: inline-block;
    color: #5AFFDC;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #5AFFDC;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.project-tile a:hover {
    background-color: #5AFFDC;
    color: #0a192f;
}

.project-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 50px rgba(100, 255, 218, 0.3);
}


@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .project-tile {
        padding: 15px;
        font-size: 0.9rem;
    }

    .project-tile h3 {
        font-size: 1.2rem;
    }

    .project-tile a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .contact-links {
        display: flex;
        justify-content: center;
        gap: 30px; /* Space btwn icon mod this val */
        margin-top: 20px;
    }
}
  