/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: "Press Start 2P", cursive;
    background-color: #1e1e1e;
    color: #fff;
    line-height: 1.6;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Pixel Art Style */
.pixel-art {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Header */
header {
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #ffcc00;
    text-shadow: 4px 4px 0 #000;
}

header p {
    font-size: 1.2rem;
    color: #ccc;
    text-shadow: 2px 2px 0 #000;
}

/* Navigation */
nav {
    margin-bottom: 40px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ffcc00;
    font-size: 1rem;
    text-shadow: 2px 2px 0 #000;
    transition: all 0.3s ease;
    display: inline-block; /* Added to make transform work */
}

nav ul li a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* About Me Section */
.about {
    margin-bottom: 40px;
}

.about h2 {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #000;
}

.about p {
    font-size: 1rem;
    color: #ccc;
    text-shadow: 1px 1px 0 #000;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    margin-bottom: 40px;
}

.projects h2 {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #000;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.project-card {
    background-color: #333;
    padding: 20px;
    border: 4px solid #ffcc00;
    border-radius: 0;
    box-shadow: 4px 4px 0 #000;
    transition: all 0.3s ease;
}

.project-link:hover .project-card {
    transform: scale(1.05);
    background-color: #444;
    border-color: #fff;
    box-shadow: 8px 8px 0 #000;
}

.project-link:hover h3 {
    color: #ffcc00;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: 2px solid #000;
}

.project-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    text-shadow: 2px 2px 0 #000;
}

.project-card p {
    font-size: 0.9rem;
    color: #ccc;
    text-shadow: 1px 1px 0 #000;
}

/* Contact Section */
.contact {
    margin-bottom: 40px;
}

.contact h2 {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #000;
}

.contact p {
    font-size: 1rem;
    color: #ccc;
    text-shadow: 1px 1px 0 #000;
}

.contact a {
    color: #ffcc00;
    text-decoration: none;
    text-shadow: 1px 1px 0 #000;
}

.contact a:hover {
    color: #fff;
}

/* Social Links Styles */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.social-links a {
    color: #ffcc00;
    text-decoration: none;
    text-shadow: 2px 2px 0 #000;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    transform: scale(1.1);
}

.social-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Footer */
footer {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 40px;
    text-shadow: 1px 1px 0 #000;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 90%;
        padding: 15px;
    }
}

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

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 0.9rem;
    }

    nav {
        position: sticky;
        top: 0;
        background-color: #1e1e1e;
        padding: 10px 0;
        z-index: 1000;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 8px 12px;
        background-color: #333;
        border: 2px solid #ffcc00;
        display: block;
        transition: all 0.3s ease;
    }

    nav ul li a:hover {
        background-color: #ffcc00;
        color: #1e1e1e;
        transform: scale(1.05); /* Slightly smaller scale for mobile */
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .project-link:hover .project-card {
        transform: scale(1.03); /* Smaller scale on mobile */
    }

    .about h2,
    .projects h2,
    .contact h2 {
        font-size: 1.5rem;
    }
}

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

    header h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

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

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        font-size: 0.8rem;
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }

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

    .project-card {
        padding: 12px;
    }

    .about p,
    .contact p {
        font-size: 0.8rem;
        padding: 0 10px;
    }

    .about h2,
    .projects h2,
    .contact h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .social-links {
        gap: 15px;
        flex-direction: column;
    }
    
    .social-links a {
        font-size: 0.9rem;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }
}

/* Add support for larger screens */
@media (min-width: 1201px) {
    .container {
        max-width: 1100px;
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}