/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a:hover {
    color: #3498db;
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(135deg, #f6f8f9 0%, #e5ebee 100%);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-small {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #2c3e50;
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-small:hover {
    background-color: #1a252f;
}

/* --- Projects Section --- */
.projects-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.project-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.project-image {
    height: 250px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}
#vmixer { background-image: url('assets/VMixerIcon.png'); }

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.project-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* --- Footer / Contact --- */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 4rem 20px;
}

footer h2 {
    margin-bottom: 1rem;
}

footer p {
    margin-bottom: 2rem;
    color: #bdc3c7;
}

.social-links {
    margin: 2rem 0;
}

.social-links a {
    margin: 0 10px;
    color: #3498db;
}

.social-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.copyright {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    nav ul {
        display: none; /* In a real project, you'd add a hamburger menu here */
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* Styling for the Project Page Heading */
.projects-section h1 {
    text-align: center;
    font-size: 3rem;
    margin-top: 2rem;
    color: #2c3e50;
}

/* Category Tags */
.category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3498db;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

/* Tech Stack Tags */
.tech-stack {
    margin: 1rem 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-stack span {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
    border: 1px solid #e0e0e0;
}

/* Specific Image Handling for different IDs */
#vmixer { 
    background-image: url('assets/VMixerIcon.png'); 
    background-size: 60%; /* Since it's 1024px, 60% of the card looks clean */
}

#project2 { background-color: #e5ebee; } /* Fallback colors */
#project3 { background-color: #f6f8f9; }

/* Ensure the Project Image container stays consistent */
.project-image {
    height: 250px;
    width: 100%;
    background-color: #ddd;
    background-position: center;
    background-repeat: no-repeat;
    /* This makes sure the 1024px image stays inside the box */
    background-size: contain; 
}