@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #343a40;
    --text-color: #343a40;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --gray: #6c757d;
    --success: #28a745;
    --gradient: linear-gradient(120deg, #007bff, #0056b3);
    --header-text-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary: #00aaff;
    --primary-dark: #0077cc;
    --secondary: #a0aec0;
    --light: #2d3748;
    --dark: #f7fafc;
    --text-color: #f7fafc;
    --bg-color: #1a202c;
    --card-bg: #2d3748;
    --border-color: #4a5568;
    --gradient: linear-gradient(120deg, #00aaff, #0077cc);
    --header-text-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    background: var(--gradient);
    color: var(--header-text-color);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background: url("/api/placeholder/800/600") no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.header-title h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.header-title p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    opacity: 0.9;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    min-width: 150px;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

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

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--header-text-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-outline:hover {
    background: var(--header-text-color);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    color: var(--text-color);
}

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

/* About Section */
.about-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-text {
    flex: 3;
}

.about-image {
    flex: 2;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.skill-tag {
    background: var(--light);
    color: var(--primary-dark);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Experience Section */
#experience {
    background-color: var(--bg-color);
}

.timeline {
    position: relative;
    margin-top: 3rem;
}

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.company {
    font-weight: 600;
    font-size: 1.2rem;
}

.position {
    color: var(--primary);
    font-weight: 500;
}

.duration {
    color: var(--gray);
    font-size: 0.9rem;
}

.achievements {
    margin-top: 1rem;
}

.achievement-item {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.achievement-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.project-image {
    height: 180px;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-text-color);
    font-size: 1.5rem;
    background: var(--gradient);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tag {
    background: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary);
    border: 1px solid var(--border-color);
}

/* Education Section */
.education-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.degree {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.university {
    color: var(--primary);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: var(--dark);
    color: var(--text-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-info-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--secondary);
    text-decoration: none;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: var(--header-text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-title h1 {
        font-size: 2.5rem;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .contact-links {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Navigation Bar Styles */
.navbar {
    background: var(--bg-color);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s;
}

.navbar:hover {
    box-shadow: 0 4px 20px var(--shadow-color);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0; /* Reset default margin */
    padding: 0; /* Reset default padding */
}
.nav-menu li {
    margin: 0; /* Reset default margin */
    padding: 0; /* Reset default padding */
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0; /* Add some padding for better click area */
}
.nav-menu a:hover {
    color: var(--primary);
}
.nav-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
}

/* Navigation Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide on mobile initially */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on navbar height */
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 1rem 0;
        box-shadow: 0 2px 5px var(--shadow-color);
        gap: 0; /* Reset gap for column layout */
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.active {
        display: flex; /* Show when active */
    }
    .nav-menu li {
        text-align: center;
        width: 100%;
    }
     .nav-menu a {
        display: block; /* Make links take full width */
        padding: 1rem 0; /* Adjust padding for mobile */
        border-bottom: 1px solid var(--border-color); /* Optional separator */
    }
     .nav-menu li:last-child a {
        border-bottom: none;
    }
    .nav-toggle {
        display: block; /* Show hamburger icon */
    }
}

/* Blog Page Specific Styles */
.blog-content {
    padding: 8rem 0;
    text-align: center;
    min-height: 70vh;
}

.blog-content .section-title {
    margin-bottom: 2rem;
}

.blog-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 4rem;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-content h2 + p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 0;
}

.blog-preview {
    background-color: var(--light);
}

.read-more-btn {
    margin-top: 1.5rem;
    background: var(--primary);
    color: var(--header-text-color);
}

.view-all-posts-container {
    text-align: center;
    margin-top: 3rem;
}

.view-all-posts-btn {
    border-color: var(--primary);
    color: var(--primary);
}

.blog-grid {
    margin-top: 4rem;
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
