* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', monospace;
}

body {
    background: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

/* Header - Expanding Banner */
.header-container {
    background: #2d2d2d;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 3rem 0;
}

.header-container h1 {
    font-size: 2.5rem;
    color: #ff004d;
    margin: 0;
}

.header-container a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

/* Navigation Tabs */
.tabs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0;
    text-align: center;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.tab-btn.active {
    background: #ff004d;
    color: #1a1a1a;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Hide non-active sections */
.project-section {
    display: none;
}

.project-section.active {
    display: block;
}

/* Project Cards */
.project-card {
    cursor: pointer;
    background: #2d2d2d;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    height: 480px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Card Image Container (16:9 Ratio) */
.card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Details Area */
.details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 0 0 1rem;
}

.details h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #ffffff;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    background: #1a1a1a;
    color: #ff004d;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background 0.3s;
}

.tag:hover {
    background: #333;
}

/* Link Buttons Inside Card */
.links {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.links span {
    background: #1a1a1a;
    color: #ff004d;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1;
    transition: background 0.3s;
}

.links a {
    background: #1a1a1a;
    color: #ff004d;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1;
    text-decoration: none;
    transition: background 0.3s;
}

.links a:hover {
    background: #333;
}

.links span:hover {
    background: #333;
}

/* Description Spacing Fix */
.details p {
    margin-bottom: 1rem;
    flex: 1;
}

/* Bio Section */
.bio {
    background: #2d2d2d;
    padding: 4rem 0;
    margin-top: 2rem;
    text-align: center;
}

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

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

.social-links a {
    color: #ff004d;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background: #2d2d2d;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact input,
.contact textarea {
    padding: 0.8rem;
    background: #1a1a1a;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
}

.contact input[type="submit"] {
    background: #ff004d;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: bold;
}

/* Contact Form Styles */
.contact-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #2d2d2d;
    border-radius: 8px;
}

.contact-container h2 {
    color: #ff004d;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    background: #1a1a1a;
    border: none;
    border-radius: 4px;
    width: 100%;
    font-family: inherit;
}

.contact-form input[type="submit"] {
    background: #ff004d;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: bold;
    border: none;
    transition: background 0.3s;
}

.contact-form input[type="submit"]:hover {
    background: #ff004d80;
}
