* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: #111;
    color: white;
}

header h1 {
    font-size: 2.5rem;
}

.container {
    max-width: 1200px;
    margin: 40px auto 100px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.carousel {
    display: flex;
    overflow: hidden; /* hide scrollbar for auto mode */
    scroll-snap-type: x mandatory;
}

.carousel img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.project-content {
    padding: 20px;
}

.project-content h2 {
    margin-bottom: 10px;
}

.project-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-content a {
    text-decoration: none;
    color: white;
    background: #007bff;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    transition: 0.3s;
}

.project-content a:hover {
    background: #0056b3;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.footer a {
    color: white;
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer a:hover {
    color: #1da1f2;
}