/*Global*/
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #111116;
    color: #e0e0e0;
    font-family: 'Space Mono', monospace; 
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/*Stars*/
#star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    animation: float ease-in-out infinite;
}

/*Floating star animation and fade in/out*/
@keyframes float {
    0% {
        transform: translateY(0px);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: translateY(0px);
        opacity: 0;
    }
}

/*Hero Section*/
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 15vh; 
    padding-bottom: 5vh;
    z-index: 1; 
    position: relative;
}

.profile-img-container {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    /*Glow effect behind profile pic*/
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
    color: #fff;
}

.hero-headline {
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 0.5rem;
    color: #a0a0b0; 
}

/*Hero Buttons*/
.hero-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-btn {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid;
}

.github-btn {
    color: #e0e0e0;
    border-color: #e0e0e0;
}

.github-btn:hover {
    background-color: #e0e0e0;
    color: #111116; 
    transform: translateY(-3px);
}

.linkedin-btn {
    color: #e8e9ab;
    border-color: #e8e9ab;
}

.linkedin-btn:hover {
    background-color: #e8e9ab;
    color: #111116; 
    transform: translateY(-3px);
}

/*Navbar*/
.navbar {
    position: sticky; 
    top: 0;
    background-color: #111116; 
    border-bottom: 2px solid #3a3b48; 
    border-top: 2px solid #3a3b48;
    padding: 1rem 0;
    z-index: 100;
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #a0a0b0;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #fff;
}

/*Section Containers*/
.section-container {
    max-width: 800px; 
    margin: 0 auto; 
    padding: 100px 20px; 
    color: #e0e0e0;
    position: relative; 
    z-index: 10; 
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background-color: #3a3b48;
    margin-left: 20px;
}

/*About*/
.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #a0a0b0;
}

.about-content strong {
    color: #fff;
    font-weight: 700;
}

/*Experience Grid*/
.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem; 
    margin-top: 2rem;
}

.job-card {
    background-color: #1a1b22; 
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #e8e9ab; 
    transition: transform 0.2s ease;
}

.job-card:hover {
    transform: translateX(10px); 
    background-color: #23242e;
}

.job-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.job-role {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #e0e0e0;
}

.job-company {
    color: #e8e9ab; 
    font-size: 1.1rem;
    font-weight: 500;
}

.job-date {
    font-size: 0.9rem;
    color: #a0a0b0;
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: 'Space Mono', monospace;
}

.job-list {
    margin: 0;
    padding-left: 1.2rem;
}

.job-list li {
    margin-bottom: 0.8rem;
    color: #a0a0b0;
    font-size: 1rem;
    line-height: 1.6;
}

.job-list li::marker {
    color: #e8e9ab; 
}

/*Projects Grid*/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #1a1b22; 
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 1px solid #3a3b48;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #e8e9ab; 
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-title {
    color: #e0e0e0;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
}

.project-links a {
    color: #e8e9ab;
    text-decoration: none;
    font-size: 0.9rem;
}

.project-desc {
    font-size: 0.95rem;
    color: #a0a0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: #a0a0b0;
}

/*Contact Button*/
.contact-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid #e8e9ab;
    color: #e8e9ab;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: rgba(232, 233, 171, 0.1); 
    transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 768px) {
    
    .hero-name {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-headline {
        font-size: 0.9rem;
        padding: 0 1rem;
        margin-top: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-links {
        gap: 0.8rem;
        padding: 0 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links li a {
        font-size: 0.85rem;
    }

    .section-container {
        padding: 60px 15px;
    }

    .section-title::after {
        width: 50px;
    }

    .projects-grid, 
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}