/* General Reset and Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background: #f4f4f9;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

h1, h2 {
    font-weight: 600;
}

a {
    text-decoration: none;
}

/* Dark Mode */
body[data-theme='dark'] {
    background: #121212;
    color: #e0e0e0;
}

body[data-theme='dark'] .header {
    background-color: #1a1a1a;
}

/* Header */
.header {
    background-color: #fff;
    color: #333;
    padding: 30px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.header .logo {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.nav {
    text-align: center;
    margin-top: 20px;
}

.nav a {
    color: #333;
    margin: 0 20px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #FFD700;
}

/* Main Content */
.container {
    width: 90%;
    margin: 0 auto;
    flex: 1;
}

.intro {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1.5s ease-out;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

/* Blog Cards with Neumorphism */
.blog-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 -10px 20px rgba(255, 255, 255, 0.3);
}

.blog-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}

.blog-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.blog-card p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
}

.blog-card .btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #FFD700, #FF6347);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.blog-card .btn:hover {
    background-color: #ff4500;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    flex-shrink: 0;
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    body[data-theme="dark"] {
        background-color: #121212;
        color: #e0e0e0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-list {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
