:root {
    --primary-color: #00f9ff;
    --primary-color-dark: #00d4d9;
    --primary-alpha-04: rgba(0, 249, 255, 0.04);
    --primary-alpha-05: rgba(0, 249, 255, 0.05);
    --primary-alpha-10: rgba(0, 249, 255, 0.1);
    --primary-alpha-20: rgba(0, 249, 255, 0.2);
    --primary-alpha-30: rgba(0, 249, 255, 0.3);
    --primary-alpha-40: rgba(0, 249, 255, 0.4);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-card {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--primary-alpha-20);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Rotating gradient border */
.loader-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
        from 0deg,
        var(--primary-color),
        var(--primary-alpha-20),
        transparent,
        transparent,
        var(--primary-alpha-20),
        var(--primary-color)
    );
    border-radius: 26px;
    z-index: -1;
    animation: rotateBorder 2s linear infinite;
}

.loader-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    border-radius: 24px;
    z-index: -1;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-initials {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary-alpha-30);
        opacity: 0.8;
    }
    50% {
        text-shadow:
            0 0 20px var(--primary-alpha-40),
            0 0 40px var(--primary-alpha-30),
            0 0 60px var(--primary-alpha-20);
        opacity: 1;
    }
}

.loader-dots {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}

.loader-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.9);
    background-clip: content-box;
}

/* Firefox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.1);
}
a:-webkit-any-link{
    color:black;
}

/* Floating Logos Background */
.floating-logos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.logo-item {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.4);
    animation: floatHover 6s ease-in-out infinite;
    opacity: 1;
    user-select: none;
    top: 36%;
    left: 8%;
    cursor: pointer;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.logo-item:nth-child(1) {
    left: 15%;
    top: 20%;
    animation-delay: 0s;
    font-size: 3rem;
}

.logo-item:nth-child(2) {
    left: 75%;
    top: 15%;
    animation-delay: -1s;
    font-size: 2.5rem;
}

.logo-item:nth-child(3) {
    left: 85%;
    top: 60%;
    animation-delay: -2s;
    font-size: 2rem;
}

.logo-item:nth-child(4) {
    left: 10%;
    top: 70%;
    animation-delay: -3s;
    font-size: 2.8rem;
}

.logo-item:nth-child(5) {
    left: 80%;
    top: 35%;
    animation-delay: -4s;
    font-size: 2.2rem;
}

.logo-item:nth-child(6) {
    left: 20%;
    top: 45%;
    animation-delay: -5s;
    font-size: 2.6rem;
}

/* Responsive positioning for smaller screens */
@media (max-width: 768px) {
    .logo-item {
        position: absolute;
        font-size: 2rem;
        color: rgba(255, 255, 255, 0.4);
        animation: floatHover 6s ease-in-out infinite;
        opacity: 1;
        user-select: none;
        top: 36%;
        left: 5%;
        cursor: pointer;
        transition: transform 0.3s ease;
        pointer-events: auto;
    }
    
    .logo-item:nth-child(1) {
        left: 15%;
        top: 14%;
        animation-delay: 0s;
        font-size: 3rem;
    }
    
    .logo-item:nth-child(3) {
        left: 82%;
        top: 73%;
        animation-delay: -2s;
        font-size: 2rem;
    }
    
    .logo-item:nth-child(6) {
        left: 2%;
        top: 49%;
        animation-delay: -5s;
        font-size: 2.0rem;
    }
}

.logo-item:nth-child(7) {
    left: 53%;
    top: 71%;
    animation-delay: -2.5s;
    font-size: 2.4rem;
}

.logo-item:nth-child(8) {
    left: 45%;
    top: 19%;
    animation-delay: -1.5s;
    font-size: 3.2rem;
}

@keyframes floatHover {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Add subtle glow effect on hover (even though pointer-events is none) */
.logo-item[data-tech="html"] {
    color: rgba(227, 79, 38, 0.7);
}

.logo-item[data-tech="css"] {
    color: rgba(21, 114, 182, 0.7);
}

.logo-item[data-tech="js"] {
    color: rgba(247, 223, 30, 0.7);
}

.logo-item[data-tech="java"] {
    color: rgba(237, 117, 39, 0.7);
}

.logo-item[data-tech="cpp"] {
    color: rgba(0, 89, 156, 0.7);
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.logo-item[data-tech="sql"] {
    color: rgba(0, 123, 255, 0.7);
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.logo-item[data-tech="git"] {
    color: rgba(240, 80, 50, 0.7);
}

.logo-item[data-tech="react"] {
    color: rgba(97, 218, 251, 0.7);
}

.logo-item[data-tech="claude"] {
    color: rgba(255, 165, 0, 0.7);
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

/* Project title container and GitHub hint styling */
.project-title-container {
    position: relative;
    display: flex;
    align-items: center;
}

.github-icon {
    margin-left: 10px;
    color: var(--primary-color) !important;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: gentle-bounce 2s ease-in-out infinite;
    transform: translateY(3px);
    margin-top: 10px;
}

.github-icon:hover {
    color: white !important;
    transform: scale(1.2);
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}


#landing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 95vh;


    position: relative;
    font-size: 300%;

}




body {
    display: block;
    font-family: 'Poppins','Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    margin: 0;
    box-sizing: border-box;
    /* background-image: url(images/preffered.jpeg);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; */
    background: black;
    overflow-x: hidden;
}

.split {
    display: flex;
    justify-content: center;
    padding: 4% 0 2% 0;
    position: relative;
}

.split h2 {
    position: relative;
    margin: 0;
    padding: 0;
}

.split-inner {
    position: relative;
    color: var(--primary-color);
    font-size: 160%;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: none;
    padding: 10px 0;
    background: none;
    border: none;
    transition: all 0.4s ease;
    text-shadow: none;
}

.split-inner::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    transition: all 0.4s ease;
}

.split-inner.visible::before {
    width: 200px;
    background: var(--primary-color);
}

.split-inner.visible {
    color: white;
    letter-spacing: 1.2px;
}

/* #00f9ff; */
#outer-nav {
    display: inline-flex;
    justify-content: space-around;
    width: 100%;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 249, 255, 0.2);
    color: white;
    margin: 0;
    position: fixed;
    top: 0.01rem;
    right: 0;
    font-size: 50%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: none;
    align-items: center;
    justify-content: space-around;
    text-align: center;
}

.nav.active {
    display: flex;

}

@keyframes slideIn {
    0% {
        transform: translateY(-100px);

    }

    100% {
        transform: translateY(0px);

    }
}

/* Slide-out animation */
@keyframes slideOut {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 1;
        filter: blur(0px);
    }
    
    30% {
        transform: translateY(-20px) scale(0.98);
        opacity: 0.9;
        filter: blur(0px);
    }
    
    60% {
        transform: translateY(-50px) scale(0.95);
        opacity: 0.6;
        filter: blur(1px);
    }
    
    90% {
        transform: translateY(-80px) scale(0.9);
        opacity: 0.2;
        filter: blur(2px);
    }

    100% {
        transform: translateY(-100px) scale(0.85);
        opacity: 0;
        filter: blur(3px);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

.slide-out {
    animation: slideOut 0.3s ease-in-out;
}












/**/

.fade {
    animation: fade 1.5s ease-in-out 1;

}

@keyframes fade {

    0% {
        transform: translateY(-100px);

    }

    100% {
        transform: translateY(0px);

    }

}


.nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;


}

.nav li {
    list-style: none;
    padding: 6% 8%;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav li:hover {
    background: linear-gradient(135deg, rgba(0, 249, 255, 0.1), rgba(0, 249, 255, 0.05));
    border: 1px solid rgba(0, 249, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav li a {
    text-decoration: none;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav li a i {
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.nav li:hover a {
    color: white;
    text-shadow: 0 0 8px rgba(0, 249, 255, 0.6);
}

.nav li:hover a i {
    color: var(--primary-color);
    filter: brightness(1.2);
}

.toggle-button {
    position: fixed;
    top: 2.75rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
    transition: all 0.3s ease;
    cursor: pointer;
}

.toggle-button::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 8px;
    background: var(--primary-alpha-20);
    opacity: 0;
    animation: menuHint 4s ease-in-out infinite;
    animation-delay: 2s;
}

.toggle-button:hover {
    transform: scale(1.1);
    cursor: pointer;
}

@keyframes move {

    25% {
        transform: rotateZ(90deg);
    }

    50% {
        transform: rotateZ(90deg);

    }

    75% {
        transform: rotateY(90deg);
    }



}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.toggle-button:active {

    transform: scale(1.5);
}

@keyframes clicked {
    from {
        border-radius: 100;
    }

    to {
        border-radius: 100%;
    }

}



.rotate {
    animation: move 4s ease-in-out infinite;
}

.toggle-button.rotate .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.toggle-button.rotate .bar:nth-child(2) {
    opacity: 0;
}

.toggle-button.rotate .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

#name {


    color: #fff;
    padding: 2px;
    text-align: center;




}

#name h1 {
    margin: 15px;
}

.typer-container {
    align-items: center;
    text-align: center;
    padding-top: 4px;
}

.typer-container p {
    margin: 10px;
}

.typer {
    color: #fdfdfdbf;



}

.landing-contact {
    padding: 5%;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-around;
    height: 9vh;
    position: relative;
    z-index: 10;
}

.landing-contact a {
    align-items: center;
    text-align: center;
}

.link-container {
    text-align: center;
    margin: 0 15px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.link-container a {
    display: block;
    padding: 15px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.link-container a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary-alpha-30) 0%, var(--primary-alpha-10) 70%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
}

.link-container:hover a::before {
    width: 100px;
    height: 100px;
}

.link-container:hover a {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-alpha-30);
    box-shadow: 0 10px 30px var(--primary-alpha-20);
}

#icon {
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

#icon:hover {
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.landing-contact .hover-message {
    display: block;
    opacity: 0;
    font-size: 28%;
    padding-top: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.link-container:hover .hover-message {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: mouseFloat 3s ease-in-out infinite;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes mouseFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes wheelScroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(8px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes menuHint {
    0%, 85%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    5% {
        opacity: 0.3;
        transform: scale(1.1);
    }
    15% {
        opacity: 0.6;
        transform: scale(1.2);
    }
    25% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}



#picture {


    padding-top: 4%;

    padding-right: 5%;


    text-align: end;


}

#about {
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    width: 47%;
    
    padding-top: 4%;
    padding-right: 4%;
    padding-left: 20px;
    background: rgb(252, 249, 249, 0);

    line-height: 160%;


}

#intro-container {

    display: flex;
    flex-direction: column;

    padding: 40px;
    padding-bottom: 20%;
    padding-left: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%);
    border-radius: 20px;
    margin: 2% 5%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    animation: rotatingLight 4s linear infinite;
}

#intro-container .split {
    padding: 2% 0 1% 0;
}

.about-content {
    display: flex;
     margin-top: 2%;
}



section {
    padding: 20px;
    text-align: center;
}

#project-outerContainer {
    display: flex;
    text-align: center;
    padding: 2%;
    justify-content: center;



}

#Projects {
    background: linear-gradient(145deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%);
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    justify-content: center;
    width: 90%;
    color: white;
    border: 1px solid var(--primary-alpha-20);
    border-radius: 20px;
    font-size: 130%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    animation: rotatingLight 4s linear infinite;
}

#project-x {

    align-items: center;
    display: flex;
    padding-left: 6%;
    margin-top: 2%;
    margin-bottom: 2%;
    width: 90%;

    justify-content: space-around;

    padding-bottom: 50px;



}
.project-display{
     transform: scale(1);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     border-radius: 12px;
     position: relative;
     flex: 0 1 auto;
     width: 100%;
     max-width: 500px;
}

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

.project-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-alpha-10), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.project-display:hover::before {
    opacity: 1;
}

.project-display:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px var(--primary-alpha-30);
}

h2 {
    color: #e8a0a0;

}

.left-line {
    border-left: rgb(0, 0, 0) solid 2px;
    padding-left: 20px;


}

.project-info {
    text-align: left;
    margin-bottom: 20px;
    padding-right: 12%;
    padding-left: 7%;
    width: 100%;
}

.project-info h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.project-info h3:hover {
    color: white;
    text-shadow: 0 0 10px var(--primary-alpha-40);
}

.project-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 12px;
}


#technology {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    font-weight: bold;
    margin-top: 15px;
}

#technology h4 {
    background: linear-gradient(45deg, var(--primary-alpha-20), var(--primary-alpha-10));
    color: var(--primary-color);
    padding: 8px 16px;
    margin: 0;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--primary-alpha-30);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#technology h4:hover {
    background: var(--primary-alpha-30);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-alpha-20);
}




h4 {


    padding: 5px;
    margin: 5px;


}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-alpha-40), transparent);
    margin: 30px 0;
}

#course-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  
    align-items: flex-start;
   
    gap: 20px;
}

#course-outer {
    padding: 1% 3%;
    margin-top: 2%;
}

#course {
    
    background: linear-gradient(145deg, rgb(7 14 22 / 92%) 0%, rgb(70 70 70 / 88%) 100%), linear-gradient(45deg, rgb(0 249 255 / 74%) 0%, rgba(74, 140, 163, 0.02) 100%);

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    justify-content: center;
    width: 20vw;
    color: #ffffff;
    border: 1px solid var(--primary-alpha-20);
    border-radius: 16px;
    text-align: left;
    height: 280px;
    margin-bottom: 10px;
    line-height: 1.6;
    padding: 30px;
    transition: all 0.3s ease;
    transform: scale(1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

#course::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-alpha-05) 0%, transparent 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#course:hover::before {
    opacity: 1;
}

#course:hover {
    transform: translateY(-4px) scale(1);
    border-color: var(--primary-alpha-40);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.18),
        0 8px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

#course h3 {
    margin-bottom: 26px;
    color: #1a202c;
    font-weight: 700;
    font-size: 1.18em;
    position: relative;
    padding-bottom: 14px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--primary-alpha-30), transparent) 1;
    transition: all 0.4s ease;
}

#course h3 span {
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

#course h3 span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-dark));
    transition: width 0.4s ease;
}

#course:hover h3 span::after {
    width: 100%;
}

#course ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

#course ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 0.94em;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
}

#course:hover ul li {
    opacity: 1;
    transform: translateX(6px);
}

#course ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 12px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-dark));
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scaleX(0.5);
    transform-origin: left;
}

#course:hover ul li::before {
    transform: scaleX(1);
    width: 16px;
    box-shadow: 0 2px 8px var(--primary-alpha-30);
}

#course ul li:nth-child(even)::before {
    background: linear-gradient(90deg, var(--primary-color-dark), var(--primary-color));
}

#course ul li p {
    margin: 0;
}


#contact {
    /* width: 100vw; */
    height: 75vh;
    text-align: center;
    padding: 2% 3%;
    padding-top: 5%;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%);
    border-radius: 20px;
    margin: 2% 5%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    animation: rotatingLight 4s linear infinite;

}

#contact p {
    /* display: flex; */
    margin-top: 2%;
    justify-content: center;
    align-items: center;
    font-size: 120%;
    color: white;
    margin-left: 2%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 300;
    letter-spacing: 1px;
}

#contact #contact-list {
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    color: white;
    margin-top: 8%;

}

#contact-list ul {
    display: flex;
    padding: 3%;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    width: 80vw;
    line-height: 3vh;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 0 auto;
}

#contact-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    flex: 1;
}

#contact-list li a {
    color: white;
    text-decoration: none;
    font-size: 50%;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

#contact-list li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color-dark));
    transition: left 0.4s ease;
    z-index: -1;
}

#contact-list li a:hover::before {
    left: 0;
}

#contact-list li a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px var(--primary-alpha-40);
    color: white;
}

#contact-list li a i {
    color: white;
    text-decoration: none;
    font-size: 3vw;

}


footer {
    background-color: #000000;
    color: #fff;
    text-align: center;
    padding: 1.5em;
    position: relative;
    bottom: 0;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media only screen and (max-width: 500px) {
    body {

        /* background-image: url(images/SmallerBg.png); */
        margin-left: 0;

    }
    #name h1 {
    margin: 0;
}
.link-container{
    margin: 2px;
}
#contact-list ul{
    font-size: 35px;
}
.about-content{
    flex-direction: column;
    align-items: center;
}

    #project-x {
        gap: 10px;
        padding-bottom: 15px;
    }

    .project-display {
        flex: none;
        max-width: 95%;
        min-width: auto;
        width: auto;
        height: auto;
    }

    .project-info {
        margin-top: 0;
        margin-bottom: 5px;
    }
}



@media only screen and (max-width: 1280px) {

    #outer-nav {
        flex-direction: column;

    }

    .nav ul {
        width: 100%;
        flex-direction: column;
    }

    .nav li {
        text-align: center;
    }

    .nav li a {
        padding: .5rem 1rem;
    }

    #course-outer {
        flex-direction: column;
        padding: 1%;
        margin-bottom: 20px;
    }

    #course {
        width: 70vw;
        max-width: 400px;
        height: auto;
        min-height: 250px;
        margin: 0 auto 20px auto;
    }
  


    #about p {
        font-size: smaller;

       
        border-radius: 50px;

    }


    #picture,
    #about {
        width: 50%;
        padding: 20px;
        margin: 0;
        text-align: center;
        line-height: 15px;
        font-size: small;

    }


    #about {
        padding-top: 0;

        padding-bottom: 20px;
        width: 79%;
        text-align: left;

    }

    #intro-container {
        flex-direction: column;

        align-items: center;
        text-align: center;
        padding: 10px;
        margin-top: 8%;

    }



    .project-display {
        flex: none;
        max-width: 90%;
        min-width: auto;
        width: auto;
        height: auto;
    }

    .project-display img {
        width: 80vw;
    }

    #project-x {
        flex-direction: column;
        align-items: center;
        padding-left: 2%;
        gap: 15px;
        padding-bottom: 20px;
    }

    #Projects {
        margin: 5% 2%;
        width: 95%;
    }

    #technology {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    #technology h4 {
        font-size: 0.8em;
        padding: 6px 12px;
    }

    .project-info {
        padding-right: 5%;
        padding-left: 5%;
        text-align: center;
        margin-top: 0;
        margin-bottom: 10px;
    }

    h2 span {
        font-size: smaller;

    }

    #contact {
        padding-bottom: 7%;
        margin: 5% 2%;
        height: auto;
        min-height: 60vh;
    }

    #contact p {

        padding-top: 8%;

    }



    #contact-list ul {
        flex-direction: column;
        width: 95%;
        max-width: 350px;
        flex-wrap: wrap;
        gap: 15px;
        font-size: 4vw;
        line-height: 1.5;
        margin: 0 auto;
    }

    #contact #contact-list ul li {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    #contact #contact-list ul li i {
        /* display: none; */
        justify-content: center;
        font-size: 6vw;

        /* height: 1vh; */
    }

    #contact #contactlist a:hover {
        transform: scale(1.5);
        cursor: pointer;

    }



}

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
}


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

@keyframes jiggle {

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

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

.jiggle {
    animation: jiggle 0.5s ease-in-out;
}

@keyframes rotatingLight {
    0% { background: linear-gradient(0deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    2.5% { background: linear-gradient(9deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    5% { background: linear-gradient(18deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    7.5% { background: linear-gradient(27deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    10% { background: linear-gradient(36deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    12.5% { background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    15% { background: linear-gradient(54deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    17.5% { background: linear-gradient(63deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    20% { background: linear-gradient(72deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    22.5% { background: linear-gradient(81deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    25% { background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    27.5% { background: linear-gradient(99deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    30% { background: linear-gradient(108deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    32.5% { background: linear-gradient(117deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    35% { background: linear-gradient(126deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    37.5% { background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    40% { background: linear-gradient(144deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    42.5% { background: linear-gradient(153deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    45% { background: linear-gradient(162deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    47.5% { background: linear-gradient(171deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    50% { background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    52.5% { background: linear-gradient(189deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    55% { background: linear-gradient(198deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    57.5% { background: linear-gradient(207deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    60% { background: linear-gradient(216deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    62.5% { background: linear-gradient(225deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    65% { background: linear-gradient(234deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    67.5% { background: linear-gradient(243deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    70% { background: linear-gradient(252deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    72.5% { background: linear-gradient(261deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    75% { background: linear-gradient(270deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    77.5% { background: linear-gradient(279deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    80% { background: linear-gradient(288deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    82.5% { background: linear-gradient(297deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    85% { background: linear-gradient(306deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    87.5% { background: linear-gradient(315deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    90% { background: linear-gradient(324deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    92.5% { background: linear-gradient(333deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    95% { background: linear-gradient(342deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    97.5% { background: linear-gradient(351deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
    100% { background: linear-gradient(360deg, rgba(0,0,0,0.1) 0%, var(--primary-alpha-10) 100%); }
}

/* Mobile small screen fixes - must be at end to override */
@media only screen and (max-width: 500px) {
    #project-x {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-bottom: 15px;
        padding-left: 2%;
    }

    .project-display {
        flex: none;
        max-width: 90%;
        min-width: auto;
        width: auto;
        height: auto;
    }

    .project-info {
        margin-top: 0;
        margin-bottom: 5px;
        padding-top: 0;
    }
}
