body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    background-color: #1a1a1a;
    color: white;
    font-family: 'Roboto Mono', monospace;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

#gameOfLifeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Put it behind everything */
    display: block;
}

body {
    background-color: transparent; /* Ensure body doesn't hide canvas */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    box-sizing: border-box;
    z-index: 100; /* Increased to ensure it's above everything */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(26, 26, 26, 0.2); /* Subtle dark background for readability */
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.home-link {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.home-link:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

main {
    position: relative;
    width: 100vw;
    z-index: 5;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.about-content {
    max-width: 600px;
    text-align: center;
    background: rgba(26, 26, 26, 0.4);
    padding: 60px 40px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 300;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.content {
    text-align: center;
    background: rgba(26, 26, 26, 0.4);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.portrait-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%; /* Rounded portrait */
    border: 4px solid rgba(255, 255, 255, 0.2);
}

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

.name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 20px;
}

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

.social-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.7;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.experience-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.timeline {
    position: relative;
    max-width: 900px;
    width: 100%;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.timeline-milestone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    z-index: 2;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.timeline-date {
    font-weight: 700;
    font-size: 1.2rem;
    background: #1a1a1a;
    padding: 5px 15px;
    border-radius: 20px;
}

.timeline-entry {
    position: relative;
    width: 50%;
    margin: 20px 0;
    padding: 0 40px;
    box-sizing: border-box;
}

.timeline-entry.left {
    left: 0;
    text-align: right;
}

.timeline-entry.right {
    left: 50%;
    text-align: left;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    margin-top: 0;
    color: white;
    font-size: 1.4rem;
}

.tech-stack {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

.skills-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-content {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 60px 40px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.skills-grid {
    display: grid;
    gap: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 400;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    .timeline-milestone {
        align-items: flex-start;
        padding-left: 22px;
    }
    .timeline-entry {
        width: 100%;
        padding-left: 70px;
        text-align: left !important;
    }
    .timeline-entry.left {
        left: 0;
    }
}
