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

body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

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

/* Header */
header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: #000;
}

header nav {
    margin-top: 1rem;
}

header nav a {
    color: #333;
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

header nav a:hover {
    color: #000;
    text-decoration: underline;
}

.back-link {
    font-size: 1rem !important;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Main Content */
main {
    margin-bottom: 3rem;
}

section {
    margin-bottom: 3rem;
}

section h1, section h2 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: #000;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

section h3 {
    font-size: 1.3rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    color: #000;
}

section p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

section a {
    color: #333;
    text-decoration: underline;
}

section a:hover {
    color: #000;
}

/* Homepage Styles */
.home-content {
    text-align: center;
    padding: 4rem 0;
}

.home-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
}

.nav-menu {
    margin-bottom: 3rem;
}

.nav-menu .nav-link {
    display: inline-block;
    margin: 0.5rem 1rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid #333;
    border-radius: 2rem;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.3s ease;
}

.nav-menu .nav-link:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
}

.nav-menu .nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.nav-menu .nav-link.disabled:hover {
    background-color: transparent;
    color: #333;
    transform: none;
}

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

.social-links a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #333;
    color: #fff;
}

/* About Page */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.9;
}

.profile-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 1rem 0;
}

.card-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.card-content p {
    margin-bottom: 0.5rem;
}

.story-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: #333;
    color: #fff;
}

.project-description {
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 0.2rem;
    font-size: 0.8rem;
    border: 1px solid #ddd;
}

/* Skills Page */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    padding: 2rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.skill-level {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-weight: normal;
    color: #000;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #333 0%, #666 100%);
    border-radius: 4px;
    transition: width 1.5s ease-out;
}

.special-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.special-skill {
    text-align: center;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    border: 1px solid #eee;
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.special-skill h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.additional-skills h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #f9f9f9;
    border-radius: 0.3rem;
    text-align: center;
}

.interest-icon {
    font-size: 1.2rem;
}

/* Contact Page */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.social-icons-only {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-icon-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 50%;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.social-icon-link:hover .social-icon {
    background-color: #333;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Resume Page */
.resume-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.download-card {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 0.5rem;
}

.download-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 0.3rem;
    font-family: Georgia, serif;
    transition: all 0.3s ease;
}

.download-btn.primary {
    background-color: #333;
    color: #fff;
}

.download-btn.primary:hover {
    background-color: #555;
}

.download-btn.secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.download-btn.secondary:hover {
    background-color: #e0e0e0;
}

.resume-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    padding: 3rem;
    line-height: 1.6;
}

.resume-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.resume-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    border: none;
}

.resume-header .title {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.contact-info {
    font-size: 0.9rem;
    color: #666;
}

.resume-section {
    margin-bottom: 2rem;
}

.resume-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #000;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.education-item,
.experience-item {
    margin-bottom: 1.5rem;
}

.education-item h4,
.experience-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.institution,
.company {
    color: #666;
    font-style: italic;
}

.date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.achievements,
.experience-item ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.achievements li,
.experience-item li {
    margin-bottom: 0.3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-group h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.skill-group ul {
    margin-left: 1.5rem;
}

.project-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

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

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

footer p {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

footer a {
    color: #333;
    text-decoration: underline;
}

footer a:hover {
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    header h1 {
        font-size: 2rem;
    }

    header nav a {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    section h1, section h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .resume-card {
        padding: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 2rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    section h1, section h2 {
        font-size: 1.3rem;
    }

    body {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .resume-card {
        padding: 1rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }
}