/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #020408;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 40% 90%, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 200px 200px, 350px 350px, 180px 180px, 240px 240px, 300px 300px, 220px 220px, 280px 280px, 190px 190px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 200px 150px, 300px 250px, 150px 180px, 250px 50px;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(2, 4, 8, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

nav a:hover {
    background-color: rgba(66, 153, 225, 0.2);
    border-color: rgba(66, 153, 225, 0.5);
    color: #ffffff;
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-alt {
    background-color: rgba(255, 255, 255, 0.02);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    border-bottom: 3px solid #4299e1;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.section h3:first-of-type {
    margin-top: 0;
}

.section p {
    margin-bottom: 1rem;
    color: #e0e0e0;
}

/* CV Section */
.cv-content {
    margin-top: 1.5rem;
}

.cv-item {
    margin-bottom: 2rem;
}

.cv-item h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.cv-meta {
    font-size: 0.95rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

.cv-download {
    margin-top: 2.5rem;
    text-align: center;
}

.button {
    display: inline-block;
    background-color: #4299e1;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 1px solid #4299e1;
}

.button:hover {
    background-color: #3182ce;
    border-color: #3182ce;
}

/* Projects Section */
.project-list {
    margin-top: 1.5rem;
}

.project-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.project-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.project-item:last-child {
    border-bottom: none;
}

.project-date {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 0.3rem;
}

.project-item h3 {
    font-size: 1.2rem;
    margin: 0.3rem 0;
}

.project-item a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-item a:hover {
    color: #63b3ed;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: rgba(2, 4, 8, 0.9);
    backdrop-filter: blur(10px);
    color: #cbd5e0;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4299e1;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.95rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .section h3 {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content p {
        order: 2;
    }

    .social-links {
        order: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section h2 {
        font-size: 1.3rem;
    }
}
