* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(255, 0, 102, 0.05) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Navigation */
.top-nav {
    background: #0f0f0f;
    border-bottom: 2px solid #00ff88;
    box-shadow: 0 2px 20px rgba(0, 255, 136, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00ff88;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
}

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

.nav-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.nav-links a.active {
    color: #00ff88;
    border-bottom: 2px solid #00ff88;
    border-radius: 0;
}

header {
    background: linear-gradient(135deg, #00ff88 0%, #ff0066 50%, #00d4ff 100%);
    color: #0a0a0a;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
    position: relative;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 500;
}

main {
    padding: 40px 0;
}

#projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #ff0066;
    box-shadow: 0 0 40px rgba(255, 0, 102, 0.6),
                0 0 60px rgba(0, 255, 136, 0.3);
}

.project-media {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #000;
}

.project-media img,
.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.project-info p {
    color: #b0b0b0;
    margin-bottom: 15px;
}

.project-date {
    font-size: 0.9rem;
    color: #808080;
    font-style: italic;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: transparent;
    color: #00d4ff;
    border: 1px solid #00d4ff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: #00d4ff;
    color: #0a0a0a;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

footer {
    background: #0f0f0f;
    color: #808080;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    border-top: 1px solid #00ff88;
    box-shadow: 0 -5px 20px rgba(0, 255, 136, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a;
    border: 2px solid #00ff88;
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.5),
                0 0 80px rgba(255, 0, 102, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #00ff88;
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.close-button:hover {
    color: #ff0066;
    text-shadow: 0 0 20px rgba(255, 0, 102, 0.8);
    transform: rotate(90deg);
}

.writeup-content {
    color: #e0e0e0;
    line-height: 1.8;
}

.writeup-content h2 {
    color: #00d4ff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.writeup-content p {
    margin-bottom: 15px;
    color: #b0b0b0;
}

.writeup-content strong {
    color: #00ff88;
}

/* Modal scrollbar styling */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
}

/* Bio/About Page Styles */
.bio-section {
    padding: 40px 0;
}

.bio-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.bio-image-container {
    position: sticky;
    top: 80px;
}

.bio-image {
    width: 100%;
    border-radius: 12px;
    border: 2px solid #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.bio-text h2 {
    color: #00ff88;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.bio-text h3 {
    color: #00d4ff;
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.bio-text p {
    color: #b0b0b0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.skills-list li {
    background: #1a1a1a;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 15px;
    color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.skills-list li:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    transform: translateY(-3px);
}

.contact-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.contact-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #00ff88;
    color: #00ff88;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.contact-btn:hover {
    background: #00ff88;
    color: #0a0a0a;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    #projects {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .close-button {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }

    .writeup-content h2 {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .bio-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bio-image-container {
        position: static;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-btn {
        text-align: center;
    }
}
