/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #bdc3c7;
}

/* Main Portfolio Container (CSS Grid) */
.portfolio-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Image Container */
.project-image {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the box nicely */
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Project Info Section */
.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.project-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-info h2 i {
    color: #3498db; /* Blue accent for icons */
}

.project-info p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Button */
.view-project-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.view-project-btn:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: #bdc3c7;
    margin-top: 2rem;
}

/* Add this to your style.css */
.project-icon-header {
    height: 200px; /* Adjust this height as needed to fit your cards */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem; /* Makes the Font Awesome icon nice and large */
    border-top-left-radius: 8px; /* Optional: rounds top corners if your cards are rounded */
    border-top-right-radius: 8px;
    transition: transform 0.3s ease; /* Optional: adds a nice hover effect foundation */
}

/* Optional: Slight zoom effect on hover */
.project-card:hover .project-icon-header i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Header Social Icon */
.social-links {
    margin-top: 15px;
    font-size: 2rem;
}
.social-links a {
    color: #333; /* Or white if your header is dark */
    text-decoration: none;
    transition: opacity 0.3s;
}
.social-links a:hover {
    opacity: 0.7;
}

/* Project Button Layout */
.project-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1; /* Makes buttons equal width */
    transition: background 0.3s;
}

.btn-github {
    background-color: #24292e;
    color: white;
}
.btn-github:hover {
    background-color: #444;
}

.btn-live {
    background-color: #007bff;
    color: white;
}
.btn-live:hover {
    background-color: #0056b3;
}

/* If there is only one button, make it full width */
.btn-full {
    flex: none;
    width: 100%;
}
/* Container for the Grid */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Status Badge for Edvana */
.status-badge {
    background: #f1c40f;
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* Button Styling */
.project-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-github { background: #24292e; color: white; }
.btn-live { background: #007bff; color: white; }
.btn-disabled { background: #eee; color: #999; cursor: not-allowed; }

/* Forces single buttons to span the whole card */
.btn-full {
    flex: 0 0 100%;
}

/* Responsive Font Sizes */
h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.subtitle { font-size: 1.2rem; color: #666; }