@font-face {
    font-family: 'Curive';
    src: url('misc/curive.ttf') format('truetype');
}

@font-face {
    font-family: 'lemonmilk';
    src: url(misc/LEMONMILK-MediumItalic.otf) format('truetype');
}

:root {
    --font-primary: 'lemonmilk', sans-serif;
    --font-secondary: 'lemonmilk', sans-serif;
    --transition-speed: 0.3s;
    --primary-color: #1a1a1a;
    --primary-color2: #1a1a1ac9;
    --text-color: #ffffff;
    --accent-color: #a259ff;
    --section-padding: 4rem 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-secondary);
}

body {
    background: #000000;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-color);
    line-height: 1.6;
    font-family: var(--font-secondary);
    cursor: none; /* Hide default cursor */
    overflow-x: hidden;
    position: relative;
}

/* Matrix light streaks */
.matrix-streak {
    position: fixed;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    height: 1px;
    width: 100px;
    z-index: -1;
    animation: matrixFlow 3s linear infinite;
}

.matrix-streak.vertical {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    width: 1px;
    height: 100px;
    animation: matrixFlowVertical 3s linear infinite;
}

@keyframes matrixFlow {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px));
        opacity: 0;
    }
}

@keyframes matrixFlowVertical {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

/* Click ripple effect */
.ripple {
    position: fixed;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: rippleExpand 1s ease-out forwards;
    transform-origin: center;
    width: 0;
    height: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 2px;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(162, 89, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor.hover {
    transform: scale(2);
    background: radial-gradient(circle, rgba(162, 89, 255, 0.8) 0%, rgba(162, 89, 255, 0.4) 30%, rgba(162, 89, 255, 0.2) 65%, transparent 100%);
    box-shadow: 0 0 10px rgba(162, 89, 255, 0.6), 0 0 20px rgba(162, 89, 255, 0.4), 0 0 30px rgba(162, 89, 255, 0.2);
}

.me p, .me ul {
    font-family: var(--font-secondary);
}

/* Animation classes */
.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

/* Navbar styling */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(51, 51, 51, 0.95);
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.exp {
    background-color: var(--primary-color2);
    width: 60%;
    border-radius: 25px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    padding-top: 0rem;
    
    
}


.education {
    background-color: var(--primary-color2);
    width: 60%;
    border-radius: 25px;
    margin: 0 auto;
    padding-left: 2rem;
}


#navbar a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color var(--transition-speed);
}

#navbar a:hover {
    color: var(--accent-color);
}

/* Welcome section */
#welcome-section {
    margin-top: 2%;
    margin-bottom: 2%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--section-padding);
}

#spacer {
    height: 100px;
    width: 100%;
}

.links {
    margin-top: 2%;
    margin-bottom: 2%;
}

.selfie {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 2rem;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(213, 216, 213, 0.3);
    transition: transform var(--transition-speed);
}

.selfie:hover {
    transform: scale(1.05);
}

.welcome {
    margin-bottom: 2rem;
}

.welcome-text1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Times New Roman';
    font-style: italic;
    font-weight: bold;
    color: var(--accent-color);
}

.welcome-text2 {
    font-family: 'Times New Roman';
    font-style: italic;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.459);
    

}
.span1 {
    color: goldenrod;
    font-size: 1.6rem;
 }


.DevSpan {
    color: rgba(255, 255, 255, 0.459);
    font-style: italic;
    font-weight: bold;
    font-size: 1.8rem;
}



/* Social links */
.links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    transition: all var(--transition-speed);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* About Me section */
.me {
    padding: var(--section-padding);
    width: 65%;
    margin: 0 auto;
    
}

.about {
    color: var(--accent-color);
    text-align: center;
    display: block;
    margin-bottom: 5rem;
}

.about:hover, .experience:hover, .education-header:hover, .skill-header:hover {
    font-size: 3rem;
}

.about-par {
    
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    
}

.about-text {
    font-size: 1.2rem;
    margin-bottom: 5rem;
    font-family: 'Times New Roman';
   
}

#welcome-section {
    background-color: var(--primary-color2);
    width:50%;
    border-radius: 25px;
    height: 1rem;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    justify-content: center;

}

.me {
   background-color: var(--primary-color2);
   width: 80%;
   border-radius: 25px;
   ;

}


.me h {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

.me p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skill-header {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--accent-color);
}

.me ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-left: 0;
    background: var(--primary-color2);
}

.skill-row1, .skill-row2, .skill-row3 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    width: 100%;
    background: transparent;
}

li.skill:hover {
    background: var(--accent-color);
}

.skill-row1 {
    margin-right: auto;
    margin-left: auto;
}

.skill-row2 {
    margin-right: auto;
    margin-left: auto;
}

.skill-row3 {
    margin-right: auto;
    margin-left: auto;
    background-color: transparent;
}

li.skill {
    width: 15rem;
    height: auto;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    background: none;
    color: var(--text-color);
    transition: all var(--transition-speed);
    display: inline-block;
    font-size: .85rem;
}

.experience, .education-header {
    font-size: 2.5rem;
    color: var(--accent-color);
    padding: var(--section-padding);
    display: block;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    align-items: center;
}

.jobs li, .education-list li {
    display: block;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    align-items: center;
    text-wrap: wrap;
    padding-top: 2px;
    padding-bottom: 2px;
}

.education {
    padding-bottom: 2%;
    margin-bottom: 3%;
}

li {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
}



.under-construction {
    background-color: var(--primary-color2);
    
}






/* Media queries */
@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
    }

    #navbar a {
        padding: 0.5rem 0;
    }

    .welcome-text {
        font-size: 2rem;
    }

    #welcome-section, .me {
        margin-top: 25%;
        padding: 2rem 1rem;
    }

    .links {
        flex-direction: column;
        gap: 1rem;
    }

    .me h {
        font-size: 2rem;
    }

    .me p {
        font-size: 1rem;
    }

    .me ul {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .selfie {
        width: 250px;
        height: 250px;
    }

    .jobs li, .education-list li {
        display: block;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
        align-items: center;
        text-wrap: wrap;
        padding-top: 1%;
        padding-bottom: 1%;
    }
}

.with-top-margin {
    margin-top: 6rem; /* Adjust as needed for desired spacing */
}

.skill-row + .skill-row {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(162, 89, 255, 0.3);
}