/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

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

/* Hero Section */
#hero {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 6rem 1rem;
}

.highlight {
    color: #3498db;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: bold;
}

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

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

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

/* The Grid for Javascript Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Generated Project Cards */
.project-card {
    background: white; /* This makes the card visible! */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid #3498db;
    
    /* These keep the buttons at the bottom */
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.project-card ul {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes the buttons to the bottom */
}

.project-card li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* New Button Styles for Cards */
.card-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap; 
}

/* ... keep the rest of your button styles the same below this ... */

.btn-card {
    text-decoration: none;
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    flex: 1; /* Makes all buttons the same width */
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: 1px solid #3498db;
}

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

.btn-outline {
    background-color: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: white;
}

/* Footer Section */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 3rem 1rem 1rem;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #3498db;
    margin: 0.5rem;
}

.btn-secondary:hover {
    background-color: #3498db;
    color: white;
}

.socials {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Project Detail Page Styles --- */

.project-header {
    text-align: center;
    padding: 4rem 1rem 2rem;
    background-color: #2c3e50;
    color: white;
}

.project-header h1 {
    margin: 0 0 0.5rem 0;
}

.project-details-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.media-section {
    margin-bottom: 4rem;
}

.media-section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Make YouTube videos responsive */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Image Grid */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}