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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Decorative Corner Borders */
body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* Top-left corner */
body::before {
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-top: 2px solid #e5e5e5;
    border-left: 2px solid #e5e5e5;
}

/* Bottom-right corner */
body::after {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-bottom: 2px solid #e5e5e5;
    border-right: 2px solid #e5e5e5;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Additional corner decorations */
.hero::before,
.hero::after,
section::before,
section::after {
    content: '';
    position: absolute;
    pointer-events: none;
    opacity: 0.3;
}

/* Top-right corner decorations for sections */
.hero::before,
section::before {
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-top: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
}

/* Bottom-left corner decorations for sections */
.hero::after,
section::after {
    bottom: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    border-bottom: 1px solid #d0d0d0;
    border-left: 1px solid #d0d0d0;
}

/* Navigation */
.nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #666666;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #1a1a1a;
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    position: relative;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.125rem;
    color: #666666;
    margin-bottom: 1.5rem;
}

.hero .description {
    font-size: 1rem;
    color: #666666;
    line-height: 1.7;
}

/* Sections */
section {
    padding: 3rem 0;
    border-top: 1px solid #e5e5e5;
    position: relative;
}

section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

section p {
    font-size: 1rem;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Projects Section */
.project {
    margin-bottom: 2rem;
}

.project:last-child {
    margin-bottom: 0;
}

.project h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.project h3 a:hover {
    color: #0066cc;
}

.project p {
    margin-bottom: 0.5rem;
}

.project .tech {
    font-size: 0.875rem;
    color: #999999;
    margin-bottom: 0;
}

.more-link {
    margin-top: 2rem;
    font-size: 0.9375rem;
}

.more-link a {
    color: #0066cc;
    text-decoration: none;
}

.more-link a:hover {
    text-decoration: underline;
}

/* Skills Section */
.skills-list {
    display: grid;
    gap: 1.5rem;
}

.skill-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.skill-group p {
    font-size: 0.9375rem;
    color: #666666;
    margin-bottom: 0;
}

/* About Section */
.about p {
    margin-bottom: 1rem;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-links {
    margin-top: 1.5rem;
}

.contact-links p {
    margin-bottom: 0.5rem;
}

.contact-links a {
    color: #0066cc;
    text-decoration: none;
}

.contact-links a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    border-top: 1px solid #e5e5e5;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    font-size: 0.875rem;
    color: #999999;
    text-align: center;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    section {
        padding: 2rem 0;
    }

    section h2 {
        font-size: 1.375rem;
    }

    /* Adjust corner borders for mobile */
    body::before,
    body::after {
        width: 40px;
        height: 40px;
    }

    body::before {
        top: 10px;
        left: 10px;
    }

    body::after {
        bottom: 10px;
        right: 10px;
    }

    .hero::before,
    .hero::after,
    section::before,
    section::after {
        width: 20px;
        height: 20px;
    }

    .hero::before,
    section::before {
        top: 10px;
        right: 10px;
    }

    .hero::after,
    section::after {
        bottom: 10px;
        left: 10px;
    }
}

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

    .nav .container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.25rem;
    }

    /* Further adjust corner borders for small mobile */
    body::before,
    body::after {
        width: 30px;
        height: 30px;
    }

    .hero::before,
    .hero::after,
    section::before,
    section::after {
        display: none; /* Hide section corners on very small screens */
    }
}
