/* Retro Portfolio - CSS Stylesheet */

/* Color Palette - Retro inspired */
:root {
    --bg-color: #f5f5f0;
    --text-color: #1a1a1a;
    --accent-color: #2c3e50;
    --border-color: #333;
    --link-color: #0066cc;
    --link-hover: #004499;
    --card-bg: #ffffff;
    --code-bg: #e8e8e8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

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

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 3px solid var(--border-color);
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.1em;
    color: var(--accent-color);
    font-style: italic;
}

/* Navigation */
.nav {
    margin-bottom: 40px;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 15px 0;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid transparent;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: var(--link-color);
    border-bottom: 2px solid var(--link-color);
}

/* Main Content */
main {
    margin-bottom: 40px;
}

/* Sections */
.section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background-color: var(--code-bg);
    border: 2px solid var(--border-color);
    padding: 20px;
    transition: all 0.3s ease;
    width: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--link-color);
}

.project-card h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.tech-stack {
    font-size: 0.9em;
    color: var(--link-color);
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.project-card p {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Project Category Heading */
.project-category {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid var(--link-color);
    padding-left: 15px;
}

/* Project Link */
.project-link {
    color: var(--link-color);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95em;
    display: inline-block;
    margin-top: 10px;
}

.project-link:hover {
    text-decoration: underline;
}

/* Skills Container */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background-color: var(--code-bg);
    border: 2px solid var(--border-color);
    padding: 20px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--link-color);
}

.skill-category h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 0;
    padding-left: 15px;
    position: relative;
}

.skill-category li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--link-color);
    font-weight: bold;
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    border: 2px solid var(--border-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: var(--link-color);
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 3px solid var(--border-color);
    font-size: 0.9em;
    color: var(--accent-color);
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: underline;
}

a:hover {
    color: var(--link-hover);
}

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

    .nav ul {
        gap: 15px;
    }

    .nav a {
        font-size: 0.95em;
    }

    .section {
        padding: 20px;
    }

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

    .projects-grid {
        flex-direction: column;
    }

    .project-card {
        width: 100%;
    }

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

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

    .contact-link {
        width: 100%;
        text-align: center;
    }
}

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

    .header {
        padding: 20px 10px;
    }

    .header h1 {
        font-size: 1.5em;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 0.95em;
    }

    .nav ul {
        gap: 10px;
        flex-direction: column;
    }

    .nav a {
        font-size: 0.9em;
    }

    .section {
        padding: 15px;
        margin-bottom: 30px;
    }

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

    body {
        font-size: 14px;
    }
}
