@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #f1f8e9);
    color: #333;
    line-height: 1.6;
}

/* Header Section */
.hero {
    background: linear-gradient(120deg, #00bcd4, #4caf50);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
}

/* Content Sections */
.section {
    max-width: 900px;
    margin: 3rem auto;
    background: white;
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.section h2 {
    color: #2e7d32;
    border-left: 5px solid #00bcd4;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

/* Image Cards Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: #fafafa;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.card img,
.card.single img {
    width: 100%;
    height: auto;               /* Keeps natural aspect ratio */
    display: block;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    object-fit: cover;          /* Crops slightly if needed, avoids distortion */
    max-height: 400px;          /* Prevents images from getting too tall */
}

.card p {
    margin: 0.8rem;
    font-weight: 500;
}

/* Centered Single Image Card */
.image-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.card.single {
    width: 70%;
    max-width: 600px;
    background: #fafafa;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.card.single img {
    width: 100%;
    height: auto;
    border-radius: 15px 15px 0 0;
}

.card.single p {
    margin: 1rem;
    font-weight: 500;
}

/* Future Work Highlight */
.future {
    border-left: 6px solid #4caf50;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #004d40;
    color: white;
    font-size: 0.9rem;
}

pre {
    background: #1e1e1e; /* dark theme like VSCode */
    color: #dcdcdc;
    padding: 1.2rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

code {
    font-family: 'Fira Code', 'Consolas', monospace;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 1rem;
}

.comparison-table th, .comparison-table td {
    padding: 0.8rem 1.2rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.comparison-table th {
    background: #00bcd4;
    color: white;
    font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f5f5f5;
}

.comparison-table tbody tr:hover {
    background: #e0f7fa;
}

.comparison-table td:last-child {
    font-weight: 600;
    color: #2e7d32;
}
