/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #ffffff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* About section */
.about {
    padding: 2rem 0;
    text-align: center;
}

.about h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.about p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: #666;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    color: #666;
    transition: all 0.2s;
}

.icon-button:hover {
    background-color: #f8fafc;
}

/* Projects section */
.projects {
    padding: 2rem 0;
}

.projects h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.project-image img:hover {
    transform: scale(1.05);
}

.project-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
}

.button:hover {
    background-color: #f8fafc;
}

.button svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}

/* Footer */
footer {
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

footer p {
    color: #666;
    font-size: 0.75rem;
}

footer nav {
    display: flex;
    gap: 1rem;
}

footer a {
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Project page specific styles */
.project-header {
    text-align: center;
    padding: 2rem 0;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-details {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.project-image-full {
    width: 50%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    color: #666;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Gallery Layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* This crops the image perfectly to fit the box */
}

.card-content {
    padding: 15px;
}