/* Import a clean Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

/* Navbar */
.navbar {
    background-color: #5e2a9b;
    color: white;
    padding: 20px 0;
}

.navbar .logo {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.navbar nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.navbar nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.navbar nav ul li a:hover {
    text-decoration: underline;
}

/* Hero */
.hero-section {
    text-align: center;
    padding: 80px 20px;
}

.hero-section h2 {
    font-size: 36px;
    color: #5e2a9b;
    margin-bottom: 20px;
}

/* About, Projects, Publications */
h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #5e2a9b;
}

h3 {
    margin-top: 20px;
    color: #333;
}

ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

a {
    color: #5e2a9b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Cards */
.card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 30px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f5ff;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


.card-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.card-column .card + .card {
    margin-top: 20px;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

/* Buttons */
button,
.cv-download a {
    background-color: #5e2a9b;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
}

button:hover,
.cv-download a:hover {
    background-color: #4b2083;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar nav ul {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .hero-section h2 {
        font-size: 28px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
}
