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

/* Container for responsive design */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sticky Navbar */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    position: sticky; /* Keep navbar at top when scrolling */
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db; /* Hover effect */
}

/* Hero Section */
.hero {
    background-color: #3498db;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.3rem;
    font-style: italic;
}

/* Sections */
.section {
    padding: 60px 0;
    margin: 20px 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s; /* Hover animation */
}

.project-card:hover {
    transform: translateY(-5px); /* Lift card on hover */
}

/* Talk Section */
.talk-item {
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 5px solid #3498db;
    border-radius: 8px;
}


/* Visitor Stats Section */
.visitor-stats {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.stat-number {
    font-size: 3rem;
    color: #3498db;
    font-weight: bold;
    margin-bottom: 20px;
}

#recent-visitors {
    list-style: none;
    margin-top: 15px;
}

#recent-visitors li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}


/* Responsive Design (mobile-friendly) */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 15px;
    }
    .nav-links li {
        margin: 0 15px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}