/* General Styles */
:root {
    --primary-color: #007BFF;
    --secondary-color: #333;
    --background-color: #f4f4f4;
    --text-color: #333;
    --card-bg: #fff;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-align: center;
}

p {
    margin-bottom: 1rem;
    text-align: center;
}

/* Header & Nav */
header {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Main Content */
.section {
    padding: 4rem 2rem;
    text-align: center;
}

/* Hero Section */
.hero {
    background: url('hero-bg.jpg') no-repeat center center/cover; /* Replace with a relevant image */
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 0;
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: #fff;
    font-size: 2rem;
    margin: 0 10px;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.btn-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* Contact Form */
#contact {
    max-width: 600px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#contact-form label {
    margin-top: 1rem;
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
}

.form-status {
    margin-top: 1rem;
    font-weight: bold;
    text-align: center;
}

/* Blog Page Styles */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.blog-post {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: left;
}

.post-date {
    color: #777;
    font-size: 0.9rem;
    margin-top: -0.5rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}


/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    background: var(--secondary-color);
    color: #fff;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}


/* Add this new style to your style.css file */
.btn-email {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1.5rem;
    transition: background 0.3s;
}

.btn-email:hover {
    background: #0056b3;
}

/* Add these new styles to your style.css file */

.publication-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.publication-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.publication-item:hover {
    transform: translateY(-5px);
}

.pub-info {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.pub-info h3 {
    text-align: left;
}