:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #1a252f;
    --gray: #7f8c8d;
    --light-gray: #ecf0f1;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

.dark-mode {
    --primary: #ecf0f1;
    --secondary: #bdc3c7;
    --accent: #3498db;
    --light: #2c3e50;
    --dark: #f8f9fa;
    --gray: #95a5a6;
    --light-gray: #34495e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--light);
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.dark-mode header {
    background-color: rgba(44, 62, 80, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.name-title {
    display: flex;
    flex-direction: column;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.dark-mode .name {
    color: var(--primary);
}

.title {
    font-size: 1rem;
    color: var(--gray);
    margin-top: 5px;
    transition: var(--transition);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icons a {
    color: var(--secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: -2px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode .theme-toggle {
    color: var(--primary);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.dark-mode .mobile-menu-btn {
    color: var(--primary);
}

/* Main Content */
main {
    flex: 1;
    padding-top: 100px; /* Offset for fixed header */
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.dark-mode .section-title {
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 0;
}

/* About Me */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.profile-img-container {
    position: relative;
}

.profile-img {
    width: 100%;
    max-width: 350px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.profile-img:hover {
    transform: scale(1.02);
}

.profile-img-placeholder {
    width: 100%;
    max-width: 350px;
    height: 350px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 3rem;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.dark-mode .profile-img-placeholder {
    background-color: #34495e;
    color: #7f8c8d;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.dark-mode .about-text h3 {
    color: var(--primary);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--secondary);
}

.dark-mode .about-text p {
    color: var(--secondary);
}

.highlight-box {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
    margin-top: 30px;
    transition: var(--transition);
}

.dark-mode .highlight-box {
    background-color: var(--dark);
}

.highlight-box h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.dark-mode .highlight-box h4 {
    color: var(--primary);
}

.highlight-list {
    list-style: none;
}

.highlight-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.highlight-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.skills-overview {
    margin-top: 30px;
}

.skills-overview h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.dark-mode .skills-overview h4 {
    color: var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Education & Experience */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 25px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dark-mode .timeline-content {
    background-color: var(--dark);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.dark-mode .timeline-content h3 {
    color: var(--primary);
}

.timeline-content .date {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.timeline-content p {
    color: var(--secondary);
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style-position: inside;
    color: var(--secondary);
    padding-left: 0;
}

.timeline-content li {
    margin-bottom: 8px;
    padding-left: 5px;
}

/* Portfolio */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark-mode .project-card {
    background-color: var(--dark);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.dark-mode .project-title {
    color: var(--primary);
}

.project-description {
    color: var(--secondary);
    margin-bottom: 20px;
    flex: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background-color: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.project-links a {
    color: var(--accent);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--secondary);
    transform: scale(1.2);
}

/* Publications & Awards */
.publications-list, .awards-list {
    max-width: 900px;
    margin: 0 auto;
}

.publication-item, .award-item {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: var(--transition);
}

.dark-mode .publication-item, .dark-mode .award-item {
    background-color: var(--dark);
}

.publication-item:hover, .award-item:hover {
    transform: translateX(10px);
}

.publication-authors {
    color: var(--secondary);
    margin-bottom: 8px;
    font-style: italic;
}

.publication-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
}

.dark-mode .publication-title {
    color: var(--primary);
}

.publication-venue {
    color: var(--gray);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.publication-links a {
    color: var(--accent);
    margin-right: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.publication-links a:hover {
    text-decoration: underline;
}

.award-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
}

.dark-mode .award-item h3 {
    color: var(--primary);
}

.award-year {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.award-item p {
    color: var(--secondary);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark-mode .blog-card {
    background-color: var(--dark);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-badge {
    background-color: var(--accent);
    color: white;
    padding: 5px 15px;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    border-radius: 4px;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.dark-mode .blog-title {
    color: var(--primary);
}

.blog-summary {
    color: var(--secondary);
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    margin-top: auto;
}

.read-more:hover {
    gap: 10px;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.dark-mode .contact-info h3 {
    color: var(--primary);
}

.contact-info p {
    color: var(--secondary);
    margin-bottom: 30px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--secondary);
}

.contact-details i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 25px;
}

.contact-form {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.dark-mode .contact-form {
    background-color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
}

.dark-mode .form-group label {
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: white;
    color: var(--dark);
    transition: var(--transition);
}

.dark-mode .form-control {
    background-color: #2c3e50;
    border-color: #4a6572;
    color: var(--primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

.dark-mode footer {
    background-color: #1a252f;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

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

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-img, .profile-img-placeholder {
        margin: 0 auto;
        max-width: 300px;
        height: 300px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .timeline-icon {
        left: 30px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .social-icons {
        margin-top: 15px;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    nav {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        display: none;
    }

    .nav-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 20px;
    }

    .theme-toggle {
        margin-top: 20px;
    }

    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .projects-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: 20px;
    }

    .timeline-icon {
        left: 20px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Add this single rule to fix all pages */
section:first-of-type {
    scroll-margin-top: 140px; /* Prevents anchor links from hiding under header */
}

/* Fix for header overlap */
.about-section,
.education-section,
.experience-section,
.projects-section,
.publications-section,
.awards-section,
.blog-section,
.contact-section {
    padding-top: 140px;
    padding-bottom: 100px;
    scroll-margin-top: 140px; /* For anchor links */
}

@media (max-width: 768px) {
    .about-section,
    .education-section,
    .experience-section,
    .projects-section,
    .publications-section,
    .awards-section,
    .blog-section,
    .contact-section {
        padding-top: 160px;
        scroll-margin-top: 160px;
    }
}


/* ===== NEW ABOUT ME DESIGN ===== */

/* Animation Classes */
.animate-fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animation-delay-200 {
    transition-delay: 200ms;
}

.animation-delay-300 {
    transition-delay: 300ms;
}

.animation-delay-400 {
    transition-delay: 400ms;
}

.animation-delay-500 {
    transition-delay: 500ms;
}

.animation-delay-600 {
    transition-delay: 600ms;
}

.animate-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* About Hero Section */
.about-hero {
    margin-bottom: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 80px;
    }
}

/* Profile Image Container */
.profile-column {
    position: relative;
}

.profile-image-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.02);
}

.profile-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--accent), #3498db);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.gradient-bg {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    z-index: 1;
}

.gradient-1 {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(155, 89, 182, 0.2));
    transform: rotate(3deg);
}

.gradient-2 {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(52, 152, 219, 0.1));
    transform: rotate(-3deg);
}

.gradient-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

.gradient-blur-1 {
    width: 120px;
    height: 120px;
    background: rgba(52, 152, 219, 0.2);
    bottom: -20px;
    right: -20px;
}

.gradient-blur-2 {
    width: 160px;
    height: 160px;
    background: rgba(155, 89, 182, 0.15);
    top: -40px;
    left: -40px;
}

/* Content Column */
.content-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-header {
    margin-bottom: 20px;
}

.section-title-main {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
    background: linear-gradient(135deg, var(--accent), #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .section-title-main {
    background: linear-gradient(135deg, var(--accent), #8e44ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    font-weight: 400;
    line-height: 1.5;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--secondary);
    margin: 0;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

.expertise-card {
    background: var(--light-gray);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.dark-mode .expertise-card {
    background: var(--dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark-mode .card-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.dark-mode .card-icon {
    background: rgba(52, 152, 219, 0.2);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.dark-mode .card-title {
    color: var(--primary);
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Skills Overview Container */
.skills-container {
    background: linear-gradient(135deg, var(--light-gray) 0%, rgba(236, 240, 241, 0.8) 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 60px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dark-mode .skills-container {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.6) 0%, rgba(52, 73, 94, 0.4) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.skills-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.skills-icon {
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.dark-mode .skills-icon {
    background: rgba(52, 152, 219, 0.2);
}

.skills-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.dark-mode .skills-title {
    color: var(--primary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

@media (min-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-category {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.dark-mode .category-title {
    color: var(--primary);
}

.category-title i {
    color: var(--accent);
    font-size: 1.1rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    background: var(--light);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.dark-mode .category-tag {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

.category-tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Interpersonal Skills */
.interpersonal-skills {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    transition: all 0.3s ease;
}

.dark-mode .interpersonal-skills {
    background: var(--dark);
}

.soft-skills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.soft-skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dark-mode .soft-skill-item {
    background: rgba(255, 255, 255, 0.05);
}

.soft-skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode .soft-skill-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.soft-skill-item i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 30px;
}

.soft-skill-item span {
    font-weight: 500;
    color: var(--dark);
}

.dark-mode .soft-skill-item span {
    color: var(--primary);
}

/* Update existing section spacing */
.about-section {
    padding: 160px 0 100px; /* Increased top padding for header */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title-main {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .skills-container,
    .interpersonal-skills,
    .expertise-card {
        padding: 25px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .soft-skills {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .about-section {
        padding: 180px 0 80px;
    }
}

@media (max-width: 480px) {
    .section-title-main {
        font-size: 2rem;
    }
    
    .soft-skills {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* Add these styles to your CSS file */

/* Ensure profile image container has proper sizing */
.profile-image-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    aspect-ratio: 0.8;
}

/* Make sure the image takes full container */
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    display: block; /* Ensure it's displayed as block */
}

/* Style for placeholder */
.profile-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), #3498db);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: bold;
    z-index: 1;
}

/* Hide placeholder when image is loaded */
.profile-image-container:has(.profile-image[src]) .profile-placeholder {
    display: none;
}

/* Show placeholder when no image */
.profile-image-container:not(:has(.profile-image[src])) .profile-placeholder {
    display: flex;
}

/* ===== EXPERIENCE PAGE STYLES ===== */

/* Experience Section */
.experience-section {
    padding: 160px 0 100px;
}

/* Experience Header */
.experience-header {
    text-align: center;
    margin-bottom: 60px;
}

.experience-header .section-title-main {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent), #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .experience-header .section-title-main {
    background: linear-gradient(135deg, var(--accent), #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-header .section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

/* Timeline Line */
.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        var(--accent) 0%, 
        rgba(52, 152, 219, 0.3) 30%, 
        rgba(52, 152, 219, 0.3) 70%, 
        var(--accent) 100%);
}

/* Experience Items */
.experience-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.experience-item {
    position: relative;
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    left: -45px;
    top: 25px;
    width: 16px;
    height: 16px;
    background-color: var(--accent);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--light);
}

.dark-mode .timeline-dot {
    box-shadow: 0 0 0 4px var(--dark);
}

/* Experience Card */
.experience-card {
    background: var(--light-gray);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.dark-mode .experience-card {
    background: var(--dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark-mode .experience-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Experience Header Row */
.experience-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.experience-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.dark-mode .experience-title {
    color: var(--primary);
}

.experience-org {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 500;
    font-size: 1rem;
}

.experience-org i {
    font-size: 0.9rem;
}

.experience-period {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    background: var(--light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.dark-mode .experience-period {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary);
}

/* Experience Description */
.experience-description {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experience-description li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--secondary);
    line-height: 1.6;
}

.bullet-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-top: 9px;
}

/* Animation Classes for Experience Items */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .experience-section {
        padding: 180px 0 80px;
    }
    
    .experience-header .section-title-main {
        font-size: 2.2rem;
    }
    
    .timeline-container {
        padding-left: 30px;
    }
    
    .timeline-dot {
        left: -35px;
        width: 14px;
        height: 14px;
    }
    
    .experience-card {
        padding: 25px;
    }
    
    .experience-header-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .experience-title {
        font-size: 1.2rem;
    }
    
    .experience-period {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .timeline-container {
        padding-left: 25px;
    }
    
    .timeline-dot {
        left: -30px;
        width: 12px;
        height: 12px;
    }
    
    .experience-card {
        padding: 20px;
    }
    
    .experience-title {
        font-size: 1.1rem;
    }
    
    .experience-org {
        font-size: 0.9rem;
    }
    
    .experience-period {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Mobile: Hide timeline line on very small screens */
@media (max-width: 360px) {
    .timeline-line {
        display: none;
    }
    
    .timeline-container {
        padding-left: 0;
    }
    
    .timeline-dot {
        display: none;
    }
}

/* ===== EVENTS PAGE STYLES ===== */

/* Events Section */
.events-section {
    padding: 160px 0 100px;
}

/* Events Header */
.events-header {
    text-align: center;
    margin-bottom: 60px;
}

.events-header .section-title-main {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent), #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .events-header .section-title-main {
    background: linear-gradient(135deg, var(--accent), #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.events-header .section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Events Filter */
.events-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 16px;
    justify-content: center;
}

.dark-mode .events-filter {
    background: var(--dark);
}

.filter-btn {
    padding: 10px 20px;
    background: var(--light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    color: var(--secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode .filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

.filter-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Event Category */
.event-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
}

.dark-mode .category-title {
    color: var(--primary);
}

.category-title i {
    color: var(--accent);
    font-size: 1.5rem;
}

/* Event Items */
.event-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Event Item */
.event-item {
    display: flex;
    gap: 20px;
    background: var(--light-gray);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.dark-mode .event-item {
    background: var(--dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .event-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.event-item.conference:hover {
    border-left: 4px solid #3498db;
}

.event-item.workshop:hover {
    border-left: 4px solid #2ecc71;
}

.event-item.school:hover {
    border-left: 4px solid #9b59b6;
}

.event-item.hackathon:hover {
    border-left: 4px solid #e74c3c;
}

/* Event Icon */
.event-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
}

.event-item.conference .event-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.event-item.workshop .event-icon {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.event-item.school .event-icon {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.event-item.hackathon .event-icon {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Event Content */
.event-content {
    flex: 1;
}

.event-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    flex: 1;
    min-width: 300px;
}

.dark-mode .event-title {
    color: var(--primary);
}

.event-date {
    background: var(--light);
    color: var(--gray);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.dark-mode .event-date {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary);
}

/* Event Details */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-org, .event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-size: 0.95rem;
}

.event-org i, .event-location i {
    color: var(--accent);
    font-size: 0.9rem;
    width: 16px;
}

.event-description {
    color: var(--secondary);
    line-height: 1.6;
    margin: 10px 0;
}

/* Event Tags */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.event-tag {
    background: var(--light);
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .event-tag {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

.event-item.conference .event-tag:hover {
    background: #3498db;
    color: white;
}

.event-item.workshop .event-tag:hover {
    background: #2ecc71;
    color: white;
}

.event-item.school .event-tag:hover {
    background: #9b59b6;
    color: white;
}

.event-item.hackathon .event-tag:hover {
    background: #e74c3c;
    color: white;
}

/* Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-section {
        padding: 180px 0 80px;
    }
    
    .events-header .section-title-main {
        font-size: 2.2rem;
    }
    
    .event-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .event-title {
        min-width: unset;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .events-filter {
        padding: 15px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .event-item {
        padding: 20px;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Filtering Classes */
.event-item.hidden {
    display: none;
}

/* Add to your styles.css */
.event-item.hidden {
    display: none !important;
}

.event-category.hidden {
    display: none !important;
}

/* Remove existing conflicting styles if any */
.event-item {
    display: flex !important;
    /* Other styles */
}

.event-category {
    display: block !important;
    /* Other styles */
}

/* ===== EVENTS FILTER FIXES ===== */

/* Make sure hidden class works properly */
.event-item.hidden,
.event-category.hidden {
    display: none !important;
}

/* Ensure event items are visible by default */
.event-item {
    display: flex !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-left 0.3s ease;
}

/* Active state for filter buttons */
.filter-btn.active {
    background: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Hover effect for filter buttons */
.filter-btn:hover:not(.active) {
    background: rgba(52, 152, 219, 0.1) !important;
    color: var(--accent) !important;
    border-color: rgba(52, 152, 219, 0.3) !important;
}

/* Animation for showing items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-item:not(.hidden) {
    animation: fadeInUp 0.6s ease forwards;
}

/* Category styling when hidden */
.event-category:not(.hidden) {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- QUANTUM THEME OVERRIDES --- */
:root, .dark-mode {
    --primary: #e0e5ff !important;
    --primary: #ffffff !important;
    --secondary: #e2e8f0 !important;
    --accent: #b052ff !important;
    --light: #07051a !important;
    --dark: #ffffff !important;
    --gray: #8a94c5 !important;
    --light-gray: rgba(20, 15, 40, 0.4) !important;
    --shadow: 0 8px 32px 0 rgba(176, 82, 255, 0.2) !important;
    --border-radius: 16px !important;
}

@keyframes floatCosmic {
    0% { transform: translateY(0px); box-shadow: 0 0 15px rgba(176, 82, 255, 0.2); }
    50% { transform: translateY(-8px); box-shadow: 0 15px 25px rgba(176, 82, 255, 0.3); }
    100% { transform: translateY(0px); box-shadow: 0 0 15px rgba(176, 82, 255, 0.2); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(176, 82, 255, 0.2); }
    50% { box-shadow: 0 0 15px rgba(176, 82, 255, 0.5), inset 0 0 10px rgba(176, 82, 255, 0.3); }
    100% { box-shadow: 0 0 5px rgba(176, 82, 255, 0.2); }
}

body {
    background-color: #05050f !important;
    color: var(--primary) !important;
}

header, footer {
    background-color: rgba(5, 5, 15, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(176, 82, 255, 0.1) !important;
}

footer {
    border-bottom: none !important;
    border-top: 1px solid rgba(176, 82, 255, 0.1) !important;
    color: var(--secondary) !important;
}

.timeline-content, .project-card, .publication-item, .award-item, .blog-card, .contact-form, .expertise-card, .highlight-box, .event-item {
    background: var(--light-gray) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(176, 82, 255, 0.2) !important;
    box-shadow: var(--shadow) !important;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.timeline-content:hover, .project-card:hover, .publication-item:hover, .award-item:hover, .blog-card:hover, .expertise-card:hover, .event-item:hover {
    background: rgba(30, 20, 60, 0.7) !important;
    border-color: rgba(176, 82, 255, 0.5) !important;
    animation: floatCosmic 3s ease-in-out infinite !important;
}

.timeline-icon {
    box-shadow: 0 0 15px var(--accent) !important;
}

/* Tag classes merged below */

/* --- PURPLE SPACE THEME FOR SKILLS & PROFICIENCIES --- */
.skills-container {
    background: rgba(15, 10, 40, 0.6) !important;
    border: 1px solid rgba(176, 82, 255, 0.3) !important;
    box-shadow: 0 0 30px rgba(176, 82, 255, 0.1) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 16px !important;
    padding: 30px !important;
}

.skill-category {
    background: rgba(20, 15, 50, 0.4) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid rgba(176, 82, 255, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.skill-category:hover {
    transform: translateY(-5px) scale(1.02) !important;
    background: rgba(30, 20, 70, 0.7) !important;
    border-color: rgba(176, 82, 255, 0.6) !important;
    box-shadow: 0 10px 25px rgba(176, 82, 255, 0.3), inset 0 0 15px rgba(176, 82, 255, 0.1) !important;
}

.category-tag, .skill-tag, .tech-tag, .blog-badge, .event-tag {
    background: linear-gradient(135deg, rgba(176, 82, 255, 0.1), rgba(176, 82, 255, 0.05)) !important;
    color: #ffffff !important;
    border: 1px solid rgba(176, 82, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    animation: pulseGlow 3s infinite alternate !important;
    display: inline-block !important;
}

.category-tag:hover, .skill-tag:hover, .tech-tag:hover, .blog-badge:hover, .event-tag:hover {
    background: linear-gradient(135deg, rgba(176, 82, 255, 0.8), rgba(176, 82, 255, 0.6)) !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(176, 82, 255, 0.6), 0 0 10px rgba(176, 82, 255, 0.5) !important;
    border-color: rgba(176, 82, 255, 0.8) !important;
}

.category-title {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(176, 82, 255, 0.4) !important;
    margin-bottom: 20px !important;
}

.profile-image-container::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #b052ff, #b052ff);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
}

/* Make names and titles pop */
.name, .section-title, .project-title, .publication-title, .award-item h3, .blog-title, .card-title, .category-title, .event-title {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(176, 82, 255, 0.3) !important;
}

/* Fix input fields for contact */
.form-control {
    background: rgba(15, 20, 35, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
.form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(176, 82, 255, 0.2) !important;
}

/* ========================================== */
/* PROJECT FILTERS                            */
/* ========================================== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    background: rgba(176,82,255,0.1);
    border: 1px solid rgba(176,82,255,0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background: rgba(176,82,255,0.8);
    box-shadow: 0 0 15px rgba(176,82,255,0.6);
}


/* ========================================== */
/* LIGHT THEME OVERRIDES                      */
/* ========================================== */
body.light-theme {
    background-color: #f8f9fa !important;
    --primary: #1f2937 !important;
    --secondary: #4b5563 !important;
    --light: #ffffff !important;
    --dark: #111827 !important;
    --light-gray: rgba(255, 255, 255, 0.8) !important;
    --shadow: 0 8px 32px 0 rgba(176, 82, 255, 0.15) !important;
}

body.light-theme header, body.light-theme footer {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(176, 82, 255, 0.2) !important;
}

body.light-theme .name, body.light-theme .section-title, body.light-theme .project-title, 
body.light-theme .publication-title, body.light-theme .award-item h3, 
body.light-theme .blog-title, body.light-theme .card-title, 
body.light-theme .category-title, body.light-theme .event-title {
    color: #111827 !important;
    text-shadow: none !important;
}

body.light-theme .timeline-content, body.light-theme .project-card, 
body.light-theme .publication-item, body.light-theme .award-item, 
body.light-theme .blog-card, body.light-theme .contact-form, 
body.light-theme .expertise-card, body.light-theme .highlight-box, 
body.light-theme .event-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(176, 82, 255, 0.2) !important;
}

body.light-theme .timeline-content:hover, body.light-theme .project-card:hover, 
body.light-theme .publication-item:hover, body.light-theme .award-item:hover, 
body.light-theme .blog-card:hover, body.light-theme .expertise-card:hover, 
body.light-theme .event-item:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(176, 82, 255, 0.6) !important;
}

body.light-theme .form-control {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1f2937 !important;
}

/* Theme Toggle Button Style */
.theme-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    color: var(--accent);
    transform: rotate(30deg);
}
@media (max-width: 768px) {
    .theme-toggle { margin-right: 10px; }
}


/* Fixes for Light Theme Bubbles/Tags */
body.light-theme .category-tag, 
body.light-theme .skill-tag, 
body.light-theme .tech-tag, 
body.light-theme .blog-badge, 
body.light-theme .event-tag,
body.light-theme .date,
body.light-theme .publication-venue,
body.light-theme p {
    color: #111827 !important;
}

body.light-theme .category-tag, 
body.light-theme .skill-tag, 
body.light-theme .tech-tag, 
body.light-theme .blog-badge, 
body.light-theme .event-tag {
    background: linear-gradient(135deg, rgba(176, 82, 255, 0.2), rgba(176, 82, 255, 0.1)) !important;
    border-color: rgba(176, 82, 255, 0.4) !important;
}

body.light-theme .category-tag:hover, 
body.light-theme .skill-tag:hover, 
body.light-theme .tech-tag:hover, 
body.light-theme .blog-badge:hover, 
body.light-theme .event-tag:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(176, 82, 255, 0.9), rgba(176, 82, 255, 0.7)) !important;
}

/* Also ensure all normal text and icons are dark in light theme */
body.light-theme i.fas, body.light-theme i.fab, body.light-theme .social-icons a {
    color: #111827 !important;
}

/* Except the toggle icon when hovered */
body.light-theme .theme-toggle:hover {
    color: var(--accent) !important;
}

/* Fix for Skills & Proficiencies containers in Light Theme */
body.light-theme .skills-container {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(176, 82, 255, 0.3) !important;
    box-shadow: 0 0 30px rgba(176, 82, 255, 0.1) !important;
}

body.light-theme .skill-category {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(176, 82, 255, 0.2) !important;
}

body.light-theme .skill-category:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(176, 82, 255, 0.6) !important;
    box-shadow: 0 10px 25px rgba(176, 82, 255, 0.2) !important;
}


/* Fix Interpersonal Skills colors in Dark Theme */
.interpersonal-skills {
    background: rgba(20, 15, 50, 0.4) !important;
    border: 1px solid rgba(176, 82, 255, 0.2) !important;
    backdrop-filter: blur(12px) !important;
}
.soft-skill-item {
    background: rgba(30, 20, 60, 0.5) !important;
    border: 1px solid rgba(176, 82, 255, 0.3) !important;
    backdrop-filter: blur(8px) !important;
}
.soft-skill-item span {
    color: #ffffff !important;
}

/* Fix Interpersonal Skills colors in Light Theme */
body.light-theme .interpersonal-skills {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(176, 82, 255, 0.2) !important;
}
body.light-theme .soft-skill-item {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(176, 82, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(176, 82, 255, 0.1) !important;
}
body.light-theme .soft-skill-item span {
    color: #111827 !important;
}

/* Fix Icons color for ALL sections */
body.light-theme .category-title i, 
body.light-theme .soft-skill-item i,
body.light-theme .skills-icon i,
body.light-theme .card-icon i,
body.light-theme .timeline-icon i,
body.light-theme .skill-tag i,
body.light-theme .category-tag i {
    color: #111827 !important;
}

.category-title i, 
.soft-skill-item i,
.skills-icon i,
.card-icon i,
.timeline-icon i,
.skill-tag i,
.category-tag i {
    color: #ffffff !important;
}

/* Invert them to white ONLY when the tag itself is hovered in Light Theme (since the tag turns dark purple) */
body.light-theme .category-tag:hover i, 
body.light-theme .skill-tag:hover i {
    color: #ffffff !important;
}

/* Except social links in footer/header */
body.light-theme .social-icons a i {
    color: #111827 !important;
}
body.light-theme .social-icons a:hover i {
    color: var(--accent) !important;
}


/* Fix icon box background colors (remove cyan background) */
.card-icon, .skills-icon {
    background: rgba(176, 82, 255, 0.1) !important;
}
.dark-mode .card-icon, .dark-mode .skills-icon {
    background: rgba(176, 82, 255, 0.2) !important;
}
body.light-theme .card-icon, body.light-theme .skills-icon {
    background: rgba(176, 82, 255, 0.15) !important;
    border: 1px solid rgba(176, 82, 255, 0.3) !important;
}


/* Fix Experience Cards (adding glassmorphism and theme support) */
.experience-card {
    background: var(--light-gray) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(176, 82, 255, 0.2) !important;
    box-shadow: var(--shadow) !important;
}
.experience-card:hover {
    background: rgba(30, 20, 60, 0.7) !important;
    border-color: rgba(176, 82, 255, 0.5) !important;
    animation: floatCosmic 3s ease-in-out infinite !important;
}

body.light-theme .experience-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(176, 82, 255, 0.2) !important;
}

body.light-theme .experience-card:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(176, 82, 255, 0.6) !important;
}

body.light-theme .experience-card h3 {
    color: #111827 !important;
}

/* Fix Events Filter Container (make it transparent to match Projects filter) */
.events-filter {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
.dark-mode .events-filter {
    background: transparent !important;
}
body.light-theme .events-filter {
    background: transparent !important;
}
