/* ==========================================
   GLOBAL STYLES & RESET
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #333;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 50%, #f0f4f8 100%);
    min-height: 100vh;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #333;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 1rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 50;
}

.name {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.nav-link {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4A90E2;
}

.nav-link.active {
    color: #4A90E2;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4A90E2;
}

/* ==========================================
   LAYOUT
   ========================================== */

main {
    margin-top: 140px;
    padding-bottom: 4rem;
}

.section {
    padding: 4rem 1rem;
    min-height: 60vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #555;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 144, 226, 0.3);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.project-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #357ABD;
}

/* ==========================================
   RESUME SECTION
   ========================================== */

.resume-content {
    max-width: 600px;
    margin: 0 auto;
}

.resume-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.resume-highlights {
    list-style: none;
    margin: 2rem 0;
}

.resume-highlights li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.resume-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #4A90E2;
}

.resume-link {
    display: inline-block;
    margin-top: 1rem;
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.resume-link:hover {
    color: #357ABD;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    margin-bottom: 2rem;
    color: #555;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.contact-link:hover {
    color: #357ABD;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (min-width: 768px) {
    .header {
        padding: 2.5rem 2rem 1.5rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .nav {
        gap: 3rem;
    }

    .section {
        padding: 5rem 2rem;
    }

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

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    main {
        margin-top: 160px;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}