@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary: #8e44ad;
    --secondary: #9b59b6;
    --dark: #121212;
    --dark-grey: #1e1e1e;
    --light: #f4f4f4;
    --text-grey: #b0b0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden; 
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(18, 18, 18, 0.95);

    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(45deg, var(--primary), #deaaf1, var(--secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s linear infinite;
    letter-spacing: 2px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-size: 0.9rem;
    transition: 0.3s;
}

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

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 10%;
    min-height: 100vh;
    position: relative; 
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}
.hero-content, .hero-img {
    position: relative;
    z-index: 1; 
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.highlight {
    color: var(--primary);
}

.hero-btns {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--text-grey);
    margin-bottom: 20px;
    font-weight: 400;
}

#tsparticles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    margin-right: 0;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

.social-links {
    margin-top: 25px;
}

.social-links a {
    color: var(--light);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: 0.3s;
}

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

.hero-img img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(142, 68, 173, 0.2);
}

.section {
    padding: 80px 10%;
}

.bg-dark {
    background-color: var(--dark-grey);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--primary);
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(141, 68, 173, 0.459);
}

.timeline-item .date {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-item h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-item .company {
    font-style: italic;
    color: var(--text-grey);
    display: block;
    margin-bottom: 10px;
}

.link-small {
    font-size: 0.8rem;
    color: var(--text-grey);
    text-decoration: underline;
    margin-top: 5px;
    display: inline-block;
}

#contact{
    position: relative;
    z-index: 10;
}
.contact-note {
    font-size: 0.9rem;
    color: var(--text-grey);
    background: rgba(142, 68, 173, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    border-left: 3px solid var(--primary);
}

.contact-note a {
    color: var(--primary);
    text-decoration: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background: #252525;
    border-radius: 10px;
    overflow: hidden;
    border-top: 3px solid var(--primary);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.card-content {
    padding: 25px;
}

.project-date {
    font-size: 0.75rem;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.tech-stack {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 10px 0;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    color: var(--light);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-small.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #555;
}

.btn-small:hover:not(.disabled) {
    color: var(--primary);
}

.footer {
    text-align: center;
    background: #000;
    padding: 60px 0;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-link {
    color: var(--light);
    text-decoration: none;
    font-size: 1.2rem;
    margin: 10px 0;
    display: block;
    transition: 0.3s;
}

.contact-link:hover {
    color: var(--primary);
}

.contact-link i {
    color: var(--primary);
    margin-right: 10px;
}

.footer-socials a {
    font-size: 1.5rem;
    color: var(--light);
    margin: 0 15px;
    transition: 0.3s;
}

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

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #555;
}

.header-with-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.institution-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background-color: white;
    border-radius: 50%;
    padding: 2px;
}

.header-with-logo h3 {
    margin-bottom: 0;
}

#education, #experience, #volunteer {
    background-color: var(--dark);
    position: relative;
    z-index: 10;
}
#experience {
    background-color: var(--dark-grey);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 5px;
    transition: all 0.3s ease;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-links a i {
    display: none;
}

@media (max-width: 768px) {
    .hero { 
        flex-direction: column-reverse; 
        text-align: center; 
        padding-top: 120px;
    }
    .hero-img img { width: 250px; height: 250px; margin-bottom: 30px; }
    .hero-content h1 { font-size: 2.5rem; }
    .timeline { border-left: none; padding-left: 0; }
    .timeline-item::before { display: none; }
    .hero-btns { justify-content: center; }

    .burger {
        display: block;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--dark-grey);
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        
        width: 100%;
        transform: translateX(100%); 
        transition: transform 0.5s ease-in;
        z-index: 999;
    }
    
    .nav-links li {
        opacity: 0; 
        margin: 0; 
    }

    .nav-active {
        transform: translateX(0%);
    }


    .nav-links a {
        display: flex;
        flex-direction: column; 
        align-items: center;
        font-size: 1.1rem;
        gap: 8px;
        color: var(--light);
    }

    .nav-links a i {
        display: block;
        font-size: 1.8rem;
        color: var(--primary);
        margin-bottom: 5px;
        transition: 0.3s;
    }

    .nav-links a:hover i {
        transform: scale(1.2);
        text-shadow: 0 0 10px var(--primary);
    }
    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0px); }
    }
}