/* Base Styles */
:root {
    --nasa-blue: #0B3D91;
    --nasa-red: #FC3D21;
    --space-black: #0F1C2E;
    --text-light: #E7E7E7;
    --text-dark: #333333;
    --accent: #44D9E6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-light);
    background-color: var(--space-black);
    line-height: 1.6;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Space Background */
.stars, .twinkling {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.stars {
    background: #000 url('https://i.imgur.com/YKY28eT.png') repeat top center;
}

.twinkling {
    background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--nasa-blue);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--nasa-red);
}

/* Navigation */
header {
    background-color: rgba(15, 28, 46, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--nasa-blue);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo .name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--nasa-red);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--nasa-blue);
    color: var(--text-light);
    border: 2px solid var(--nasa-blue);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--nasa-blue);
}

.resume-btn {
    background-color: var(--nasa-red);
    color: var(--text-light);
    border: none;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 61, 33, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
    padding-top: 70px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--space-black), transparent);
    pointer-events: none;
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

/* Section Styling */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.orbit-line {
    position: relative;
    height: 4px;
    width: 120px;
    background-color: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.orbit-line::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--nasa-red);
    border-radius: 50%;
    left: -6px;
    top: -4px;
    animation: orbit 8s linear infinite;
}

@keyframes orbit {
    0% {
        left: -6px;
    }
    50% {
        left: calc(100% + 6px);
    }
    100% {
        left: -6px;
    }
}

/* About Section */
.bio-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.profile-img {
    flex: 1;
    min-width: 300px;
}

.profile-img-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.03);
}

.profile-placeholder {
    background-color: var(--nasa-blue);
    height: 300px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--text-light);
}

.bio-content {
    flex: 2;
    min-width: 300px;
}

.expertise-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background-color: var(--nasa-blue);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Experience Section */
.timeline {
    position: relative;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--nasa-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 50px 0;
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding: 0 0 50px 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    top: 15px;
    border-radius: 50%;
    background-color: var(--nasa-red);
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-item .content {
    padding: 20px;
    background-color: rgba(11, 61, 145, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--nasa-red);
}

.timeline-item .date {
    position: absolute;
    top: 0;
    right: 45px;
    color: var(--accent);
    font-weight: 700;
}

.timeline-item:nth-child(even) .date {
    right: auto;
    left: 45px;
}

.timeline-item-list {
    display: flex;
    justify-content: space-around;
}
/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: rgba(15, 28, 46, 0.6);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 180px;
    background-position: center;
    background-size: cover;
}

.project-card h3, 
.project-card p {
    padding: 0 1.5rem;
}

.project-card h3 {
    margin-top: 1.5rem;
}

.project-card p {
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    color: var(--text-light);
    font-size: 1.8rem;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--nasa-red);
}

/* Footer */
footer {
    background-color: rgba(11, 61, 145, 0.2);
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
    border-top: 2px solid var(--nasa-blue);
}

.disclaimer {
    font-size: 0.9rem;
    color: rgba(231, 231, 231, 0.7);
}

/* Media Queries */
@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
    
    .timeline-item .date,
    .timeline-item:nth-child(even) .date {
        right: auto;
        left: 0;
        top: -30px;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-links li {
        margin: 0;
    }
}