/* 
* Main Stylesheet for Ankita Singh's Portfolio
* Author: Ankita Singh
*/

/*======= Base Styles =======*/
:root {
    --primary-color: #1e5f74;
    --secondary-color: #4c5c68;
    --accent-color: #ff6b6b;
    --light-color: #f4f9fc;
    --dark-color: #2a2a2a;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    
    /* Theme variables */
    --bg-color: #ffffff;
    --text-color: #4c5c68;
    --card-bg: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --border-color: #dee2e6;
    --hover-bg: #f8f9fa;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #4db6e6;
    --secondary-color: #a8b2bd;
    --accent-color: #ff8a8a;
    --light-color: #2d3748;
    --dark-color: #1a202c;
    --white: #1a202c;
    --gray-100: #2d3748;
    --gray-200: #4a5568;
    --gray-300: #718096;
    --gray-400: #a0aec0;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    
    /* Theme variables for dark mode */
    --bg-color: #1a202c;
    --text-color: #e2e8f0;
    --card-bg: #2d3748;
    --navbar-bg: rgba(45, 55, 72, 0.95);
    --border-color: #4a5568;
    --hover-bg: #4a5568;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.section {
    padding: 100px 0;
}

.section:not(.journey-timeline) + .cta-section {
    margin-top: 50px;
}

.journey-timeline {
    margin-bottom: 0;
    padding-bottom: 80px;
}

.cta-section {
    padding-top: 80px;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.centered-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

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

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

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

/*======= Navbar =======*/
.navbar {
    background-color: var(--navbar-bg);
    box-shadow: var(--shadow);
    padding: 15px 0;
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 10px 0;
}

/* Fix header overlap issue */
body {
    padding-top: 0;
}

.page-header {
    margin-top: 80px;
    padding-top: 40px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--light-color) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-bottom: 1px solid var(--gray-200);
}

/* Adjust hero section for fixed navbar */
.hero {
    margin-top: -80px;
    padding-top: 120px;
}

/* Desktop spacing for name from navbar */
@media (min-width: 768px) {
    .hero {
        padding-top: 140px;
    }
}

.page-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: var(--primary-color);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color);
    margin: 0 5px;
    padding: 8px 15px !important;
    position: relative;
}

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

.nav-link:hover:after,
.nav-link.active:after {
    width: calc(100% - 30px);
}

.nav-link.active {
    color: var(--primary-color);
}

.resume-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 8px 20px !important;
}

.resume-btn:hover {
    background-color: var(--accent-color);
}

.resume-btn:after {
    display: none;
}

/*======= Dark Mode Toggle =======*/
.theme-toggle-btn {
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
    margin-left: 10px;
}

.theme-toggle-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.theme-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 95, 116, 0.3);
}

/* Dark mode icon animation */
#theme-icon {
    transition: transform 0.3s ease;
}

.rotating {
    transform: rotate(180deg);
}

/*======= Hero Section =======*/
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--light-color);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: rgba(30, 95, 116, 0.05);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(255, 107, 107, 0.05);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Mobile hero title adjustments */
@media (max-width: 767px) {
    .hero {
        padding-top: 180px;
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-top: 0;
        padding-top: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    /* Ensure page headers don't overlap with navbar on mobile */
    .page-header {
        margin-top: 110px;
        padding-top: 50px;
    }
    
    /* Fix navbar brand visibility on mobile */
    .navbar-brand {
        margin-top: 10px;
        z-index: 1001;
        position: relative;
    }
    
    /* Ensure proper spacing from fixed navbar */
    body {
        padding-top: 0;
    }
    
    .hero-content {
        margin-top: 20px;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.hero-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.hero-img {
    position: relative;
    z-index: 1;
}

.hero-img img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero-btns .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero-social {
    margin-top: 30px;
}

.hero-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/*======= About Section =======*/
.about-img img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-content h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 20px;
}

/*======= Experience Section =======*/
.experience {
    background-color: var(--light-color);
}

.experience-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

/* Mobile spacing for tiles */
@media (max-width: 767px) {
    .experience-card,
    .project-card,
    .competency-card,
    .skill-item {
        margin-bottom: 20px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > [class*='col-'] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

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

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

.experience-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.experience-company {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    font-size: 1.1rem;
}

.experience-date {
    display: inline-block;
    background-color: var(--light-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.experience-list {
    padding-left: 20px;
    flex-grow: 1;
}

.experience-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/*======= Projects Section =======*/
.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

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

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 95, 116, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay a {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay a {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay a:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.project-overlay a:first-child {
    transition-delay: 0.1s;
}

.project-overlay a:last-child {
    transition-delay: 0.2s;
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-category {
    display: inline-block;
    background-color: var(--light-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/*======= Skills Section =======*/
.skills {
    background-color: var(--light-color);
}

.skill-category {
    margin-bottom: 40px;
}

.skill-category h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.5rem;
}

.skill-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    height: 100%;
    border: 1px solid var(--border-color);
}

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

/* Ensure equal height columns */
.row-equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row-equal-height > [class*='col-'] {
    display: flex;
}

/* Timeline filter styling */
.timeline-filter .nav-pills {
    background-color: var(--card-bg);
    border-radius: 50px;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.timeline-nav-item {
    color: var(--secondary-color);
    border-radius: 25px;
    padding: 8px 20px;
    margin: 0 5px;
    transition: var(--transition);
    border: none;
    background: none;
}

.timeline-nav-item.active,
.timeline-nav-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Competency cards alignment */
.competency-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

/* Desktop spacing for competency cards */
@media (min-width: 768px) {
    .competencies .row {
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .competencies .row > [class*='col-'] {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .competency-card {
        margin-bottom: 40px;
    }
}

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

.competency-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.competency-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.competency-card:hover .competency-icon {
    background-color: var(--primary-color);
}

.competency-card:hover .competency-icon i {
    color: var(--white);
}

.competency-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.competency-card p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 0;
}

.skill-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
}

.skill-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.skill-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.progress-bar {
    background-color: var(--primary-color);
}

/*======= Education Section =======*/
.education-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--accent-color);
}

.education-degree {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.education-school {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.education-date {
    display: inline-block;
    background-color: var(--light-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/*======= Achievements Section =======*/
.achievements {
    background-color: var(--light-color);
}

.achievement-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.achievement-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.achievement-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/*======= Certification Cards =======*/
.certification-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

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

.certification-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.certification-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.certification-card p {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.certification-date {
    display: inline-block;
    background-color: var(--light-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/*======= Contact Section =======*/
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 20px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-info-content p, 
.contact-info-content a {
    margin-bottom: 0;
    color: var(--secondary-color);
}

.contact-form .form-control {
    height: auto;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 5px;
    background-color: var(--light-color);
    border: 1px solid transparent;
    margin-bottom: 20px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.form-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/*======= Footer =======*/
.footer {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer h5 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    margin-left: 5px;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

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

.footer-divider {
    background-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

/*======= Mobile Responsive Fixes =======*/
@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-btns .btn {
        width: 100%;
        margin: 10px 0;
    }
    
    .hero-social {
        text-align: center;
        margin-top: 25px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .competency-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .about-info {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .about-info i {
        margin-right: 10px;
    }
    
    /* Fix mobile button spacing */
    .download-resume .btn {
        margin-top: 20px;
    }
    
    .cta-section .btn {
        margin-bottom: 15px;
    }
    
    /* Fix certification and achievements spacing */
    .achievement-card,
    .certification-item,
    .education-item,
    .certification-card {
        margin-bottom: 20px;
    }
    
    /* Section title spacing */
    .section-title {
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .centered-title {
        text-align: center;
    }
    
    /* Certification section specific */
    .certifications {
        padding: 60px 0;
    }
    
    .certifications .section-title {
        margin-bottom: 40px;
    }
    
    .certifications .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .certifications .row > [class*='col-'] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/*======= Dark Mode Enhancements =======*/
/* Contact form dark mode */
[data-theme="dark"] .contact-form .form-control {
    background-color: var(--light-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .contact-form .form-control:focus {
    border-color: var(--primary-color);
    background-color: var(--hover-bg);
}

[data-theme="dark"] .contact-form .form-control::placeholder {
    color: var(--secondary-color);
}

/* Form messages dark mode */
[data-theme="dark"] .form-message.success {
    background-color: rgba(77, 182, 230, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-message.error {
    background-color: rgba(255, 138, 138, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Hero social links dark mode */
[data-theme="dark"] .hero-social a {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Breadcrumb dark mode */
[data-theme="dark"] .breadcrumb-item a {
    color: var(--primary-color);
}

[data-theme="dark"] .breadcrumb-item.active {
    color: var(--text-color);
}

/* Button dark mode adjustments */
[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Smooth transitions for theme switching */
body, .navbar, .card, .project-card, .experience-card, .competency-card, .certification-card, .skill-item, .contact-form .form-control {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Section backgrounds dark mode */
[data-theme="dark"] .experience,
[data-theme="dark"] .certifications,
[data-theme="dark"] .skills,
[data-theme="dark"] .bg-light {
    background-color: var(--light-color) !important;
}

/* Ensure proper contrast for headings */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-color) !important;
}

/* Text color fixes */
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li {
    color: var(--text-color);
}

/* Section title dark mode */
[data-theme="dark"] .section-title h2 {
    color: var(--text-color) !important;
}

[data-theme="dark"] .section-title p {
    color: var(--secondary-color);
}

/* Timeline dark mode fixes */
[data-theme="dark"] .timeline-title {
    color: var(--text-color) !important;
}

[data-theme="dark"] .timeline-subtitle {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .timeline-date {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Card content dark mode */
[data-theme="dark"] .project-content h3,
[data-theme="dark"] .experience-title,
[data-theme="dark"] .competency-card h3,
[data-theme="dark"] .certification-card h3 {
    color: var(--text-color) !important;
}

[data-theme="dark"] .project-content p,
[data-theme="dark"] .competency-card p,
[data-theme="dark"] .certification-card p {
    color: var(--secondary-color) !important;
}

/* Additional mobile navbar fixes */
@media (max-width: 767px) {
    .navbar-toggler {
        border: none;
        font-size: 1.5rem;
        padding: 8px 10px;
    }
    
    .navbar-collapse {
        background-color: var(--card-bg);
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        border: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        padding: 12px 0;
        color: var(--text-color);
    }
}

/* Fix remaining white backgrounds in dark mode */
[data-theme="dark"] .modal-content {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .modal-title {
    color: var(--text-color);
}

[data-theme="dark"] .modal-body {
    color: var(--text-color);
}

[data-theme="dark"] .close {
    color: var(--text-color);
}

/* Project filter buttons dark mode */
[data-theme="dark"] .project-filter-buttons .nav-link {
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .project-filter-buttons .nav-link.active,
[data-theme="dark"] .project-filter-buttons .nav-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Breadcrumb dark mode */
[data-theme="dark"] .breadcrumb {
    background-color: transparent;
}

/* Overlay dark mode */
[data-theme="dark"] .project-overlay a {
    background-color: var(--card-bg);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

/* Dropdown menus dark mode */
[data-theme="dark"] .dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--hover-bg);
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .experience-title,
    .project-title {
        font-size: 1.2rem;
    }
}

/*======= Responsive =======*/
@media (max-width: 991.98px) {
    .section {
        padding: 70px 0;
    }
    
    .hero {
        height: auto;
        padding: 120px 0 70px;
    }
    
    .hero-img {
        margin-top: 50px;
        text-align: center;
    }
    
    .about-img {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-btns .btn {
        margin-bottom: 10px;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .experience-title,
    .project-title,
    .education-degree {
        font-size: 1.2rem;
    }
}
