/* SONIC GENERATIONS INSPIRED PORTFOLIO */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;0,900;1,700&display=swap");

:root {
    --font-family: "Montserrat", sans-serif;
    --normal-font: 400;
    --bold-font: 700;
    --bolder-font: 900;

    /* SONIC COLORS */
    --sonic-blue: #0066CC;
    --sonic-dark: #004499;
    --sonic-light: #1E90FF;
    --gold: #FFD700;
    --ring-yellow: #FFCC00;
    --knuckles-red: #E60026;
    --tail-orange: #FFA500;
    --bg-color: #001a33;
    --primary-color: var(--sonic-blue);
    --secondary-color: #ffffff;
    --accent-shadow: rgba(255, 215, 0, 0.3);
    --bottom-margin: 0.5rem;
    --bottom-margin-2: 1rem;
    --line-height: 1.7rem;
    --transition: 0.3s;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

@keyframes hide_scrollup {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes show_scrollup {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.8) rotate(180deg);
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

@keyframes ring-spin {
    0% {
        transform: rotate(-10deg);
        animation-timing-function: ease-in;
    }
    25% {
        transform: rotate(0deg);
        animation-timing-function: ease-out;
    }

    50% {
        transform: rotate(10deg);
        
    }
    75% {
        transform: rotate(0deg);
    }


    100% {
        transform: rotate(-10deg);
        animation-timing-function: ease-out;
    }

}

@keyframes zigzag-scroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 40px;
    }
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: var(--gold);
    transition: var(--transition);
}

a:hover {
    color: var(--ring-yellow);
    text-shadow: 2px 2px 4px rgba(230, 0, 38, 0.5);
}

body {
    font-family: var(--font-family);
    background: var(--bg-color);
}

/* NAVBAR - SONIC STYLE WITH GOLD RING BORDER */
nav {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3.5rem;
    background: linear-gradient(135deg, var(--sonic-blue) 0%, var(--sonic-dark) 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    border-bottom: 4px solid var(--gold);
    position: relative;
}

nav::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg,
            transparent 0%, var(--knuckles-red) 10%,
            var(--gold) 20%, var(--tail-orange) 30%,
            var(--sonic-blue) 40%, var(--gold) 50%,
            var(--sonic-blue) 60%, var(--tail-orange) 70%,
            var(--gold) 80%, var(--knuckles-red) 90%, transparent 100%);
}

nav h1 {
    color: var(--secondary-color);
    font-weight: var(--bolder-font);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow:
        3px 3px 0 var(--knuckles-red),
        -1px -1px 0 var(--gold);
}

nav a {
    color: var(--secondary-color);
    font-weight: var(--bold-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 1rem;
}

nav a::before {
    content: '★';
    position: absolute;
    left: -5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    opacity: 0;
    transition: var(--transition);
}

nav a:hover {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    
}

nav a:hover::before {
    opacity: 1;
    left: -0.3rem;
}

nav ul {
    display: flex;
    gap: 1.9rem;
}

nav ul li {
    font-weight: var(--bold-font);
}

.burger-menu {
    color: var(--gold);
    font-size: 2rem;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    display: none;
}

/* HERO SECTION - SONIC CHECKERBOARD + STARS */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin: auto;
    background:
        url('') repeat,
        linear-gradient(135deg, var(--sonic-blue) 0%, var(--sonic-dark) 50%, var(--knuckles-red) 100%);
    background-size: 200px 200px, 100% 100%;
    position: relative;
    padding-bottom: 10%;
    padding-top: 5%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    animation: zigzag-scroll 2s linear infinite;
    
}

.hero img{
    width: 30%;
    padding: 1rem;
    opacity: 100%;
    z-index: 20;
}

.bio {
    width: 90rem;
    max-width: 600px;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(0, 26, 51, 0.95);
    border: 3px solid var(--gold);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.4),
        inset 0 0 50px rgba(0, 102, 204, 0.2);
    color: var(--secondary-color);
    z-index: 1;
    position: relative;
}

.bio::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 25px;
    border: 2px dashed var(--ring-yellow);
    animation: ring-spin 20s linear infinite;
}

.bio h2 {
    color: var(--gold);
    font-weight: var(--bolder-font);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0 var(--knuckles-red);
}

.showcase h2 {
    color: var(--gold);
    font-weight: var(--bolder-font);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 3px 3px 0 var(--knuckles-red);
}

.showcase {
    height: auto;
    overflow-y: auto;
    background-color: #fff;
    background-image:
        linear-gradient(transparent 31px, #e0e0e0 31px, #e0e0e0 32px, transparent 32px),
        linear-gradient(#f5d5d5 1px, transparent 1px);
    background-size: 100% 32px, 100% 32px;
    background-position: 0 0, 66px 0;
    border-left: 2px solid #e0a0a0;
    padding-left: 70px;
    padding: 2rem;
}

.bio p {
    line-height: var(--line-height);
    padding: 0.3rem 0;
}

.bio b {
    color: var(--ring-yellow);
}

/* MORE ABOUT - ZIGZAG BORDERS */
.more-about {
    background: var(--secondary-color);
    padding: 4rem 6rem;
    color: var(--bg-color);
    position: relative;
    margin-top: -3rem;
}

.more-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(45deg,
            var(--sonic-blue),
            var(--sonic-blue) 20px,
            var(--gold) 20px,
            var(--gold) 40px,
            var(--knuckles-red) 40px,
            var(--knuckles-red) 60px);
}

.more-about h2 {
    margin-bottom: var(--bottom-margin-2);
    text-align: center;
    color: var(--sonic-blue);
    font-weight: var(--bolder-font);
    font-size: 2.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 var(--ring-yellow);
}

.more-about h2 i {
    color: var(--knuckles-red);
    font-style: normal;
}

.more-about p {
    line-height: var(--line-height);
    padding: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* SKILLS SECTION - SONIC RING CARDS */
.skills {
    max-width: 100%;
    margin: auto;
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--sonic-blue) 100%);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--secondary-color);
    clip-path: polygon(0 100%, 5% 0, 10% 100%, 15% 0, 20% 100%, 25% 0, 30% 100%, 35% 0, 40% 100%, 45% 0, 50% 100%, 55% 0, 60% 100%, 65% 0, 70% 100%, 75% 0, 80% 100%, 85% 0, 90% 100%, 95% 0, 100% 100%);
}

.skill-header {
    margin-bottom: 5rem;
    color: var(--secondary-color);
    font-weight: var(--bolder-font);
    font-size: 2rem;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 var(--knuckles-red);
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.skill-icon-text {
    display: flex;
    padding-bottom: 0.1rem;
    box-shadow:
        0 0 0 5px var(--gold),
        0 0 0 10px var(--sonic-blue),
        0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 10%;
    background: var(--secondary-color);
    transition: var(--transition);
    animation: float 4s ease-in-out infinite;
    color: var(--gold);
    -webkit-text-stroke: 3px black;
    paint-order: stroke fill;
    font-size: 3vmin;
    padding: 2vmin;
    width: 30vmin;
    justify-content: center;
}

.first-set,
.second-set {
    display: flex;
    justify-content: center;
    gap: 6rem;

    flex-wrap: wrap;
}

.icon-card {
    background: var(--secondary-color);
    border-radius: 50%;
    padding: 1rem;
    box-shadow:
        0 0 0 5px var(--gold),
        0 0 0 10px var(--sonic-blue),
        0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    animation: float 4s ease-in-out infinite;
}

.first-set .icon-card:nth-child(2) {
    animation-delay: 0.5s;
}

.first-set .icon-card:nth-child(3) {
    animation-delay: 1s;
}

.second-set .icon-card:nth-child(2) {
    animation-delay: 0.7s;
}

.second-set .icon-card:nth-child(3) {
    animation-delay: 1.2s;
}

.icon-card:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow:
        0 0 0 8px var(--ring-yellow),
        0 0 0 15px var(--knuckles-red),
        0 15px 40px rgba(255, 215, 0, 0.5);
}

.icon {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
}

/* PROJECTS SECTION - DARK WITH GOLD ACCENTS */
.projects {
    background: var(--bg-color);
    padding: 4rem 2rem;
    position: relative;
}

.projects::before {
    content: '★ ★ ★ ★ ★';
    position: absolute;
    top: 1rem;
    width: 100%;
    text-align: center;
    color: var(--gold);
    font-size: 1.5rem;
    letter-spacing: 2rem;
}

.projects-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gold);
    font-weight: var(--bolder-font);
    font-size: 2.5rem;
    text-transform: uppercase;
    text-shadow:
        3px 3px 0 var(--knuckles-red),
        -2px -2px 0 var(--sonic-blue);
}

.projects-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    z-index: 2;
}

.project-card {
    background: linear-gradient(145deg, #fff 0%, #f0f0f0 100%);
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(0, 102, 204, 0.3),
        inset 0 -5px 0 var(--sonic-blue);
    padding: 1.5rem;
    width: 30%;
    min-width: 300px;
    max-width: 400px;
    transition: var(--transition);
    border: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--ring-yellow) 0%, transparent 70%);
    opacity: 0.1;
    animation: ring-spin 10s linear infinite;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(255, 215, 0, 0.3),
        inset 0 -5px 0 var(--knuckles-red);
}

.project-pic {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 3px solid var(--sonic-blue);
}

.project-title {
    color: var(--sonic-dark);
    font-weight: var(--bolder-font);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.project-card ul {
    margin: 1rem 0;
}

.project-card li {
    font-size: 0.85rem;
    color: var(--sonic-blue);
    font-weight: var(--bold-font);
    margin-bottom: 0.3rem;
}

.project-details {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* SONIC STYLE BUTTON */
.project-more-button {
    padding: 1rem 3rem;
    border-radius: 50px;
    font-family: "Montserrat";
    font-weight: var(--bold-font);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    background: linear-gradient(90deg, var(--sonic-blue), var(--sonic-light));
    color: var(--secondary-color);
    box-shadow:
        0 5px 0 var(--sonic-dark),
        0 10px 20px rgba(0, 102, 204, 0.4);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-more-button::before {
    content: '★';
    position: absolute;
    left: 10%;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-more-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 0 var(--sonic-dark),
        0 15px 30px rgba(0, 102, 204, 0.5);
    background: linear-gradient(90deg, var(--sonic-light), var(--sonic-blue));
}

.project-more-button:hover::before {
    opacity: 1;
}

.project-more-button:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--sonic-dark);
}

/* CONTACT SECTION */
.contact {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--sonic-dark) 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--bg-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.contact h2 {
    text-align: center;
    padding: 1rem;
    color: var(--gold);
    font-weight: var(--bolder-font);
    font-size: 2rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 var(--knuckles-red);
}

.contact-form-container {
    max-width: 40.75rem;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid var(--gold);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 0 50px rgba(0, 102, 204, 0.1);
}

.contact-form-container label {
    line-height: 2.7em;
    font-weight: var(--bold-font);
    color: var(--sonic-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form-container textarea {
    min-height: 6.25rem;
    font-size: 14px;
    resize: vertical;
}

.contact-form-container .input-field {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: 3px solid var(--sonic-blue);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: rgba(0, 102, 204, 0.05);
}

.contact-form-container .input-field:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    background: white;
}

.input-field::placeholder {
    color: #888;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(90deg, var(--knuckles-red), #ff3355);
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: var(--bold-font);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 0 #aa0018;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #aa0018, 0 10px 20px rgba(230, 0, 38, 0.3);
}

.submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #aa0018;
}

.socials {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0.8rem;
    background: white;
    border-radius: 20px 0 0 20px;
    border: 3px solid var(--golden-ring);
    border-right: none;
    box-shadow: -5px 0 25px rgba(0,0,0,0.4);
    z-index: 999;
    transition: transform 0.3s;
}

.socials:hover {
    transform: translate(0, -50%) scale(1.05);
}

.socicon {
    width: 2.5rem;
    height: 2.5rem;
    transition: all 0.3s;
}

.socicon:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 10px var(--gold));
}

/* FOOTER */
footer {
    background: linear-gradient(180deg, var(--sonic-dark) 0%, var(--bg-color) 100%);
    padding: 2rem;
    text-align: center;
    border-top: 4px solid var(--gold);
}

footer p {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--gold);
    font-weight: var(--bold-font);
}

footer a:hover {
    color: var(--ring-yellow);
}

/* SCROLL TO TOP - SONIC SPIN DASH */
.scroll-up {
    position: fixed;
    right: -10%;
    bottom: 5%;
    cursor: pointer;
    z-index: 998;
    transition: all 0.5s;
}

.up-arrow {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--sonic-blue), var(--sonic-light));
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s;
}

.up-arrow:hover {
    animation: ring-spin 0.5s cubic-bezier(0.075, 0.82, 0.165, 1) infinite;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.up-arrow-hide {
    right: -10%;
    transform: rotate(270deg);
}

.up-arrow-show {
    right: 1%;
    transform: rotate(0deg);
}

/* PROJECT PAGE MODAL - SONIC STYLE */
.project-page {
    position: fixed;
    overflow-y: auto;
    top: 125%;
    left: 49.5%;
    border-radius: 20px;
    padding: 3%;
    align-self: center;
    animation: prj-page-slidein 1s ease forwards;
    z-index: 1001;
    max-height: 80vh;
    width: 50%;
}

.project-page-background {
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    background-color: rgba(0, 26, 51, 0.95);
    backdrop-filter: blur(5px);
    animation: bg-fadein 0.5s ease forwards;
    z-index: 1000;
}

.project-page-close {
    position: relative;
    padding: 0.7rem;
    text-align: center;
    cursor: pointer;
    left: 40%;
    top: 4%;
    background: var(--knuckles-red);
    color: white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: var(--bold-font);
    transition: var(--transition);
}

.project-page-close:hover {
    background: #ff3355;
    transform: scale(1.05);
}

.project-page-close img {
    width: 1.5rem;
    height: 1.5rem;
}

.project-page-img {
    width: 30%;
    float: left;
    margin-right: 1rem;
    border-radius: 15px;
    border: 3px solid var(--gold);
}

.project-page-bio-text {
    text-align: justify;
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    min-height: 90%;
}

.project-page-youtube {
    width: 100%;
    margin-top: 1rem;
    border-radius: 15px;
    border: 3px solid var(--sonic-blue);
}

/* ANIMATIONS */
@keyframes prj-page-slidein {
    0% {
        top: 120%;
        width: 1%;
        max-height: 1%;
        left: 49.5%;
        border-radius: 100px;
    }

    50% {
        top: 50%;
        width: 1%;
        max-height: 1%;
        left: 49.5%;
        border-radius: 100px;
    }

    70% {
        top: 0%;
        width: 50%;
        max-height: 50%;
        left: 25%;
        border-radius: 20px;
    }

    100% {
        top: 10%;
        width: 50%;
        max-height: 75%;
        left: 25%;
        border-radius: 20px;
    }
}

@media (max-width: 767px) {
    .hide-on-mobile {
        display: none;
    }
}

@keyframes prj-page-slidein-mobile {
    0% {
        top: 125%;
        width: 1%;
        max-height: 1%;
        left: 49.5%;
        border-radius: 100px;
    }

    50% {
        top: 50%;
        width: 1%;
        max-height: 1%;
        left: 49.5%;
        border-radius: 100px;
    }

    100% {
        top: 18%;
        width: 90%;
        max-height: 70%;
        left: 5%;
        border-radius: 20px;
    }
}

@keyframes prj-page-slideout {
    0% {
        top: 10%;
        width: 50%;
        max-height: 75%;
        left: 25%;
        border-radius: 20px;
    }

    30% {
        top: 10%;
        width: 50%;
        max-height: 50%;
        left: 25%;
        border-radius: 20px;
    }

    50% {
        top: 50%;
        width: 1%;
        max-height: 1%;
        left: 49.5%;
        border-radius: 100px;
    }

    100% {
        top: 120%;
        width: 1%;
        max-height: 1%;
        left: 49.5%;
        border-radius: 100px;
    }
}

@keyframes prj-page-items-fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes prj-page-items-fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes bg-fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bg-fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* MOBILE RESPONSIVE */
@media screen and (max-width: 900px) {
    .project-card {
        width: 45%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero img {
        width: 60%;
    }

    .bio {
        width: 90%;
    }

    .more-about {
        padding: 3rem 2rem;
    }
}

@media screen and (max-width: 720px) {
    nav {
        padding: 1.5rem 1rem;
    }

    nav h1 {
        font-size: 1.2rem;
    }

    nav ul {
        position: fixed;
        background: var(--sonic-dark);
        flex-direction: column;
        top: 5.9rem;
        left: 0%;
        width: 100%;
        text-align: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-bottom: 4px solid var(--gold);
    }

    nav ul li {
        margin: 8px;
    }

    .burger-menu {
        display: block;
        color: var(--gold);
    }

    nav ul.show {
        transform: translateX(0%);
    }

    .hero {
        margin-top: 0;
        flex-direction: column;
        gap: 1rem;
        padding-top: 4rem;
    }

    .hero img {
        height: auto;
        width: 70%;
    }

    .bio {
        margin-top: 0;
        width: 95%;
        padding: 1.5rem;
    }

    .bio h2 {
        font-size: 1.5rem;
    }

    .up-arrow-show {
        right: 5%;
    }

    .socials {
        display: none;
    }

    .more-about {
        margin-top: 0;
        padding: 3rem 1.5rem;
    }

    .icon {
        width: 5rem;
        height: 5rem;
    }

    .icon-card {
        padding: 0.5rem;
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
        max-width: 400px;
    }

    .contact-form-container {
        max-width: 95%;
        padding: 1.5rem;
    }

    .github-stats {
        display: none;
    }

    .project-page-bio-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .project-page {
        width: 90%;
    }

    .project-page-img {
        width: 100%;
        float: none;
        margin: 0 0 1rem 0;
    }
}

@media screen and (max-width: 420px) {
    nav h1 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .bio {
        width: 95%;
        padding: 1rem;
    }

    .bio h2 {
        font-size: 1.3rem;
    }

    .project-card {
        width: 95%;
        min-width: auto;
    }

    .project-page-bio-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .project-more-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 3D EXTRUDING ROTATING STARS - Sonic Generations Style */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    perspective: 1000px;
}

.star-3d {
    position: absolute;
    color: white;
    font-size: 20px;
    text-shadow: 0 0 10px white, 0 0 20px var(--gold);
    animation: star-extrude linear infinite;
    transform-style: preserve-3d;
}

/* Different star sizes and positions */
.star-3d:nth-child(1) {
    left: 10%;
    top: 20%;
    font-size: 15px;
    animation-duration: 4s;
    animation-delay: 0s;
}

.star-3d:nth-child(2) {
    left: 20%;
    top: 60%;
    font-size: 25px;
    animation-duration: 5s;
    animation-delay: 0.5s;
}

.star-3d:nth-child(3) {
    left: 30%;
    top: 30%;
    font-size: 18px;
    animation-duration: 4.5s;
    animation-delay: 1s;
}

.star-3d:nth-child(4) {
    left: 40%;
    top: 70%;
    font-size: 30px;
    animation-duration: 6s;
    animation-delay: 1.5s;
}

.star-3d:nth-child(5) {
    left: 50%;
    top: 10%;
    font-size: 22px;
    animation-duration: 3.5s;
    animation-delay: 2s;
}

.star-3d:nth-child(6) {
    left: 60%;
    top: 50%;
    font-size: 16px;
    animation-duration: 4.2s;
    animation-delay: 0.3s;
}

.star-3d:nth-child(7) {
    left: 70%;
    top: 80%;
    font-size: 28px;
    animation-duration: 5.5s;
    animation-delay: 1.2s;
}

.star-3d:nth-child(8) {
    left: 80%;
    top: 25%;
    font-size: 20px;
    animation-duration: 4.8s;
    animation-delay: 2.5s;
}

.star-3d:nth-child(9) {
    left: 90%;
    top: 55%;
    font-size: 24px;
    animation-duration: 5s;
    animation-delay: 0.8s;
}

.star-3d:nth-child(10) {
    left: 15%;
    top: 85%;
    font-size: 32px;
    animation-duration: 3.8s;
    animation-delay: 1.8s;
}

.star-3d:nth-child(11) {
    left: 25%;
    top: 45%;
    font-size: 14px;
    animation-duration: 4.3s;
    animation-delay: 2.2s;
}

.star-3d:nth-child(12) {
    left: 35%;
    top: 15%;
    font-size: 26px;
    animation-duration: 5.2s;
    animation-delay: 0.2s;
}

.star-3d:nth-child(13) {
    left: 45%;
    top: 90%;
    font-size: 18px;
    animation-duration: 4.6s;
    animation-delay: 1.6s;
}

.star-3d:nth-child(14) {
    left: 55%;
    top: 35%;
    font-size: 22px;
    animation-duration: 3.9s;
    animation-delay: 2.8s;
}

.star-3d:nth-child(15) {
    left: 65%;
    top: 65%;
    font-size: 16px;
    animation-duration: 4.7s;
    animation-delay: 0.6s;
}

.star-3d:nth-child(16) {
    left: 75%;
    top: 5%;
    font-size: 28px;
    animation-duration: 5.3s;
    animation-delay: 2.3s;
}

.star-3d:nth-child(17) {
    left: 85%;
    top: 40%;
    font-size: 20px;
    animation-duration: 4.1s;
    animation-delay: 1.1s;
}

.star-3d:nth-child(18) {
    left: 5%;
    top: 75%;
    font-size: 24px;
    animation-duration: 5.8s;
    animation-delay: 3s;
}

.star-3d:nth-child(19) {
    left: 95%;
    top: 20%;
    font-size: 15px;
    animation-duration: 4.4s;
    animation-delay: 2.7s;
}

.star-3d:nth-child(20) {
    left: 50%;
    top: 50%;
    font-size: 35px;
    animation-duration: 6s;
    animation-delay: 0s;
}

@keyframes star-extrude {
    0% {
        transform: translateZ(-500px) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateZ(500px) rotate(360deg) scale(2);
        opacity: 0;
    }
}


.github_div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
}

.github_div2 {
    display: relative;
    justify-content: center;
    align-items: center;
}

.calendar a,
.calendar .contrib-column {
    display: none !important;
}

.calendar_parent {
    width: 100%;
    padding-bottom: 4rem;
}

.calendar {
    background-color: #004499 !important;
    width: 50% !important;
    direction: rtl;
}

.calendar_title {
    padding-bottom: 2rem;
    text-align: center;
    color: var(--secondary-color);
    -webkit-text-stroke: 0.5rem black;
    paint-order: stroke fill;
}

.contact-root-div {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.github_div::after,
.github_div::before {
    content: '';
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(45deg,
            var(--sonic-blue),
            var(--sonic-blue) 20px,
            var(--gold) 20px,
            var(--gold) 40px,
            var(--knuckles-red) 40px,
            var(--knuckles-red) 60px);
}

.line::before {
    content: '';
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(45deg,
            var(--sonic-blue),
            var(--sonic-blue) 20px,
            var(--gold) 20px,
            var(--gold) 40px,
            var(--knuckles-red) 40px,
            var(--knuckles-red) 60px);
}