/* Theme Variables 
    Default is Light Mode (White & Blue)
*/
:root {
    --primary-color: #2563eb; /* Strong Blue */
    --secondary-color: #1e40af; /* Darker Blue */
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #1e293b;
    --text-light: #64748b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #60a5fa; /* Lighter Blue for dark mode */
    --secondary-color: #3b82f6;
    --bg-color: #0f172a; /* Deep Navy/Dark */
    --bg-alt: #1e293b;
    --text-main: #f1f5f9;
    --text-light: #94a3b8;
    --card-bg: #1e293b;
    --border-color: #334155;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.4s ease, color 0.4s ease;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.8);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    padding-top: 80px;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.secondary-btn {
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Sections General */
.section {
    padding: 5rem 5%;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: flex;
    gap: 3rem;
}

.skills-wrapper {
    margin-top: 2rem;
}

.skills-wrapper h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tags span {
    background-color: var(--bg-alt);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: var(--transition);
}

.tags span:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Timeline (Experience) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    margin-bottom: 3rem;
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-color);
}

.timeline-content .date {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.tech-stack {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.project-link {
    font-weight: 600;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 5rem 5% 2rem;
    background-color: var(--bg-alt);
}

.email-btn {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0;
    color: var(--primary-color);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.email-btn:hover {
    border-bottom-color: var(--primary-color);
}

.footer-bottom {
    margin-top: 3rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none; /* Add JS toggle for real implementation */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .about-grid {
        flex-direction: column;
    }
}
