/* style.css - Complete Updated Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Light Mode Variables (Default) */
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #2c3e50; /* Dark Blue for Light Mode */
    --footer-text: #ffffff;
    --border-color: #ddd;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --timeline-line: #3498db;
    --skill-tag-bg: rgba(52, 152, 219, 0.1);
    --skill-tag-text: #3498db;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    /* Dark Mode Variables */
    --primary-color: #5dade2; 
    --secondary-color: #ecf0f1; 
    --accent-color: #e74c3c;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --header-bg: #1e1e1e;
    --footer-bg: #0f0f0f; /* Very Dark for Dark Mode */
    --footer-text: #b0b0b0;
    --border-color: #333;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    --timeline-line: #5dade2;
    --skill-tag-bg: rgba(52, 152, 219, 0.2);
    --skill-tag-text: #85c1e9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--bg-color); transition: var(--transition); }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; margin-bottom: 15px; color: var(--secondary-color); }
p { margin-bottom: 15px; color: var(--text-color); }
a { text-decoration: none; color: var(--primary-color); transition: var(--transition); }
a:hover { color: var(--accent-color); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
section { padding: 80px 0; }

.btn { display: inline-block; padding: 12px 28px; border-radius: 30px; font-weight: 500; text-align: center; cursor: pointer; transition: var(--transition); border: none; }
.primary-btn { background-color: var(--primary-color); color: white; }
.primary-btn:hover { background-color: #2980b9; color: white; }
[data-theme="dark"] .primary-btn:hover { background-color: #3498db; }

.secondary-btn { background-color: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.secondary-btn:hover { background-color: var(--primary-color); color: white; }

.page-title { font-size: 2.5rem; text-align: center; margin-bottom: 40px; position: relative; padding-bottom: 10px; }
.page-title::after { content: ''; position: absolute; width: 80px; height: 4px; background-color: var(--primary-color); bottom: 0; left: 50%; transform: translateX(-50%); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; background-color: var(--header-bg); box-shadow: var(--box-shadow); z-index: 1000; padding: 15px 0; transition: background-color 0.3s ease; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

/* Logo Styles Updated for Favicon Alignment */
.logo { font-size: 1.5rem; font-weight: 700; color: var(--secondary-color); display: flex; align-items: center; }
.logo a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo img { height: 35px; width: auto; border-radius: 50%; }

.nav-menu { display: flex; align-items: center; }
.nav-menu li { margin-left: 25px; }
.nav-menu a { color: var(--secondary-color); font-weight: 500; position: relative; }
.nav-menu a.active, .nav-menu a:hover { color: var(--primary-color); }
.nav-toggle { display: none; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2px; background-color: var(--secondary-color); margin: 5px 0; transition: var(--transition); }
.theme-toggle-btn { background: none; border: none; color: var(--secondary-color); cursor: pointer; font-size: 1.2rem; margin-left: 20px; padding: 5px; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.theme-toggle-btn:hover { color: var(--primary-color); transform: rotate(15deg); }

/* Hero */
.hero { height: 100vh; background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg'); background-size: cover; background-position: center; color: white; display: flex; align-items: center; text-align: center; margin-top: 0; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; color: white; }
.hero h2 { font-size: 1.8rem; margin-bottom: 20px; color: var(--primary-color); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; color: #ddd; }
.hero-buttons .btn { margin: 0 10px; }

/* Cards & Grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background-color: var(--card-bg); border-radius: 10px; padding: 30px; box-shadow: var(--box-shadow); transition: var(--transition); text-align: center; }
.card:hover { transform: translateY(-10px); }
.card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card p { color: var(--text-color); }

/* About & Timeline */
.about-content { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center; }
.experience-section .about-content { grid-template-columns: 1fr 1fr; }
.about-image img { border-radius: 10px; box-shadow: var(--box-shadow); }
.section-divider { width: 100%; height: 1px; background-color: var(--border-color); margin: 60px 0; }
.timeline-container { max-width: 800px; margin: 0 auto; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 40px 0; }
.timeline::before { content: ''; position: absolute; width: 2px; background-color: var(--timeline-line); top: 0; bottom: 0; left: 50px; }
.timeline-item { padding: 10px 50px 20px 80px; position: relative; width: 100%; margin-bottom: 30px; }
.timeline-dot { position: absolute; width: 16px; height: 16px; background-color: var(--primary-color); border-radius: 50%; left: 43px; top: 15px; z-index: 1; }
.timeline-date { font-weight: 600; color: var(--primary-color); margin-bottom: 10px; }
.timeline-content { background-color: var(--card-bg); border-radius: 10px; padding: 20px; box-shadow: var(--box-shadow); }
.timeline-content p { color: var(--text-color); }

/* Experience Item */
.experience-item { background-color: var(--card-bg); border-radius: 10px; padding: 25px; box-shadow: var(--box-shadow); margin-bottom: 30px; }
.experience-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.skills-tags { display: flex; flex-wrap: wrap; margin-top: 15px; gap: 8px; }
.skills-tags span { background-color: var(--skill-tag-bg); color: var(--skill-tag-text); padding: 5px 12px; border-radius: 30px; font-size: 0.85rem; font-weight: 500; }

/* Publications Grid (Vertical Stack) */
.projects-grid { display: flex; flex-direction: column; gap: 30px; max-width: 1000px; margin: 0 auto; }
.project-card { display: flex; flex-direction: row; background-color: var(--card-bg); border-radius: 10px; overflow: hidden; box-shadow: var(--box-shadow); transition: var(--transition); }
.project-card:hover { transform: translateY(-5px); }
.project-image { flex: 0 0 35%; position: relative; }
.project-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.project-content { flex: 1; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.project-period { color: var(--primary-color); font-size: 0.9rem; font-weight: 500; margin-bottom: 10px; }

/* Contact Styles */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 40px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-item i { font-size: 1.5rem; color: var(--primary-color); margin-top: 5px; }
.contact-item h3 { margin-bottom: 5px; font-size: 1.1rem; }

/* Footer */
footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 60px 0 20px; transition: background-color 0.3s ease; }
.footer-section h3, footer p { color: var(--footer-text); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-bottom: 40px; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; background-color: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: var(--transition); }
.social-links a:hover { background-color: var(--primary-color); }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
    .about-content, .contact-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { position: absolute; top: 70px; left: 0; right: 0; background-color: var(--header-bg); flex-direction: column; align-items: center; padding: 20px 0; box-shadow: var(--box-shadow); display: none; }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.5rem; }
    .about-content, .footer-content, .contact-content { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 50px; }
    .timeline-dot { left: 13px; }
    .project-card { flex-direction: column; }
    .project-image { flex: none; height: 220px; width: 100%; }
    .project-image img { position: relative; }
    .theme-toggle-btn { margin-left: 0; margin-top: 15px; }
}