:root {
    --primary-color: #7c8cf5;
    --primary-light: #a5b0fa;
    --primary-dark: #6670d9;
    --secondary-color: #2d3142;
    --accent-color: #7ecbdb;
    --accent-gradient: linear-gradient(135deg, #7c8cf5, #7ecbdb);
    --light-color: #f5f6fa;
    --dark-color: #2d3142;
    --card-bg: #ffffff;
    --text-color: #3d3d5c;
    --text-light: #7a7a9e;
    --section-alt: #f0f1f8;
    --shadow-sm: 0 2px 8px rgba(124, 140, 245, 0.06);
    --shadow-md: 0 8px 24px rgba(124, 140, 245, 0.1);
    --shadow-lg: 0 16px 48px rgba(124, 140, 245, 0.12);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base Styles */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.btn {
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(124, 140, 245, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 140, 245, 0.4);
    background: linear-gradient(135deg, #6670d9, #6bb8c8);
}

.btn-outline-light {
    border-width: 2px;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Navigation */
.navbar {
    padding: 0.8rem 0;
    background: rgba(45, 49, 66, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(45, 49, 66, 0.97) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand .brand-name {
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1.1rem;
    margin: 0 0.15rem;
    border-radius: 50px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75) !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: white !important;
    background: rgba(124, 140, 245, 0.15);
}

.nav-link.active {
    color: white !important;
    background: rgba(124, 140, 245, 0.25);
    border-bottom: 2px solid var(--accent-color);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #2d3142, #4a4e69, #3d4160);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 140, 245, 0.2), transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(126, 203, 219, 0.15), transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    letter-spacing: 0.01em;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.85;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: white;
}

.about-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    border: 1px solid rgba(124, 140, 245, 0.1);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.about-card:hover {
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.about-text {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 1.8rem;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(124, 140, 245, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(124, 140, 245, 0.08);
}

.about-info-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.about-info-item div {
    display: flex;
    flex-direction: column;
}

.about-info-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.about-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.about-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.about-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .about-card {
        padding: 1.5rem;
    }
    .about-info-item {
        padding: 0.6rem 1rem;
    }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.8rem;
    position: relative;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Experience Section */
.experience-section {
    padding: 5rem 0;
    background: var(--section-alt);
}

/* Company Link */
.exp-company-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Project Link in Experience */
.exp-project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.exp-project-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Company Experience Cards */
.exp-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(124, 140, 245, 0.1);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.exp-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 140, 245, 0.18);
    border-top-color: var(--accent-color);
}

/* Card Header - Company Info */
.exp-card-header {
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(124, 140, 245, 0.08);
}

.exp-company-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-card-company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.exp-card-tenure {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 600;
    background: rgba(124, 140, 245, 0.08);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
}

/* Horizontal Timeline */
.exp-timeline {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0;
    overflow-x: auto;
    padding: 0.5rem 0;
    position: relative;
}

.exp-timeline-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    min-width: 20px;
    opacity: 0.3;
    position: relative;
}

.exp-timeline-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.exp-timeline-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 2px solid rgba(124, 140, 245, 0.15);
    background: rgba(124, 140, 245, 0.03);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.exp-timeline-item:hover {
    background: rgba(124, 140, 245, 0.08);
    border-color: rgba(124, 140, 245, 0.3);
    transform: translateY(-1px);
}

.exp-timeline-item.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(124, 140, 245, 0.3);
}

.exp-timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(124, 140, 245, 0.4);
    transition: var(--transition);
    flex-shrink: 0;
}

.exp-timeline-item.active .exp-timeline-dot {
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.exp-timeline-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.01em;
}

.exp-timeline-item.active .exp-timeline-label {
    color: white;
}

/* Role Content (switchable) */
.exp-role-content {
    display: none;
    animation: fadeInRole 0.4s ease;
}

.exp-role-content.active {
    display: block;
}

@keyframes fadeInRole {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Role Head - Title + Badge */
.exp-role-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.exp-role-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

/* Summary Info - Always visible */
.exp-role-summary-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.exp-role-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.exp-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    min-width: 55px;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.exp-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.exp-project-name {
    color: var(--primary-color);
    font-weight: 600;
}

.exp-project-name i {
    color: var(--primary-color);
    font-size: 0.82rem;
}

.role-type {
    font-size: 0.72rem;
    padding: 0.15rem 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 50px;
}

/* View Detail Button */
.btn-view-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1.2rem;
    background: rgba(124, 140, 245, 0.06);
    border: 1.5px solid rgba(124, 140, 245, 0.15);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0;
    font-family: inherit;
}

.btn-view-detail:hover {
    background: rgba(124, 140, 245, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-view-detail.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(124, 140, 245, 0.25);
}

.btn-view-detail.active i {
    transform: rotate(180deg);
}

.btn-view-detail i {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

/* Detail Content - Hidden by default */
.exp-detail-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(124, 140, 245, 0.12);
    animation: slideDown 0.4s ease;
}

.exp-detail-content.show {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.exp-role-summary {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.7;
    text-align: justify;
}

.exp-role-project-label {
    font-size: 0.88rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.exp-role-achievements {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.exp-role-achievements li {
    font-size: 0.84rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.exp-role-achievements li::marker {
    color: var(--primary-color);
}

.exp-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.exp-card-skills .tech-badge {
    font-size: 0.73rem;
    padding: 0.2rem 0.65rem;
}

@media (max-width: 768px) {
    .exp-card {
        padding: 1.5rem;
    }

    .exp-card-company-name {
        font-size: 1.05rem;
    }

    .exp-timeline {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .exp-timeline-line {
        display: none;
    }

    .exp-timeline-item {
        padding: 0.45rem 0.9rem;
    }

    .exp-timeline-label {
        font-size: 0.7rem;
    }

    .exp-label {
        min-width: 48px;
    }
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background-color: var(--section-alt);
}

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid rgba(124, 140, 245, 0.08);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 140, 245, 0.18);
}

.project-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.project-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.9), transparent);
    padding: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    color: white;
    background: var(--accent-gradient);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(124, 140, 245, 0.3);
}

.project-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 140, 245, 0.5);
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-align: justify;
}

.project-features ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.project-features li {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: linear-gradient(135deg, rgba(124, 140, 245, 0.1), rgba(126, 203, 219, 0.1));
    color: var(--primary-color);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(124, 140, 245, 0.12);
    transition: var(--transition);
}

.tech-badge:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Skills Section */
.skills-section {
    padding: 5rem 0;
    background: white;
}

.skill-category {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    height: 100%;
    border: 1px solid rgba(124, 140, 245, 0.1);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
    text-align: center;
}

.skill-category:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 140, 245, 0.18);
    border-top-color: var(--accent-color);
    transform: translateY(-4px);
}

.skill-category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: rgba(124, 140, 245, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.skill-category:hover .skill-category-icon {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(124, 140, 245, 0.3);
}

.skill-category-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0.7rem;
}

.skill-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(124, 140, 245, 0.1), rgba(126, 203, 219, 0.1));
    color: var(--primary-color);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(124, 140, 245, 0.12);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 140, 245, 0.25);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--section-alt);
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(124, 140, 245, 0.3);
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-details a {
    color: var(--text-color);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form .form-control {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 2px solid rgba(124, 140, 245, 0.1);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 140, 245, 0.1);
}

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

/* Footer */
.footer {
    padding: 3rem 0 1rem;
    background: linear-gradient(135deg, #2d3142, #4a4e69) !important;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 140, 245, 0.4);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Modal */
.modal-content {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-section {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
        text-align: center;
        min-height: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .footer-social {
        justify-content: flex-start;
        margin-top: 1.5rem;
    }

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

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

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

    .project-links {
        opacity: 1;
    }
}

/* Language Toggle Styles */
.language-toggle {
    display: flex;
    align-items: center;
}

.language-toggle .form-switch {
    padding-left: 3.5rem;
    margin: 0 0.5rem;
}

.language-toggle .form-check-input {
    width: 3rem;
    height: 1.5rem;
    margin-left: -3.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.language-toggle .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.language-toggle .form-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-toggle-mobile {
    padding: 0.5rem 1rem;
}

.language-toggle-mobile .form-switch {
    padding-left: 3rem;
}

.language-toggle-mobile .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    margin-left: -3rem;
}

.language-label {
    font-weight: 600;
}

/* Download Button Styles */
.download-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    background: var(--accent-gradient);
    border: none;
    box-shadow: 0 6px 20px rgba(124, 140, 245, 0.25);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 140, 245, 0.35);
}

/* Contact Method Centering */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-method {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .download-btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* Contact Horizontal Styles */
.contact-horizontal {
    /* max-width: 1000px; */
    margin: 0 auto;
}

.contact-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(124, 140, 245, 0.08);
    border-top: 4px solid var(--primary-color);
    cursor: pointer;
    display: block;
    color: inherit;
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 140, 245, 0.18);
    border-top-color: var(--accent-color);
    color: inherit;
    text-decoration: none;
}

.contact-card .contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(124, 140, 245, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(124, 140, 245, 0.25);
}

.contact-card .contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-card .contact-details a {
    color: var(--text-color);
    word-break: break-all;
}

.contact-card .contact-details a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-card {
        padding: 1rem;
    }

    .contact-card .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .contact-horizontal .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Download Button in Header */
.download-btn-header {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    border-width: 2px;
    font-weight: 600;
}

.download-btn-header:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 140, 245, 0.3);
}

/* Adjust navbar items spacing */
.navbar-nav {
    align-items: center;
}

/* Mobile download link styling */
.nav-item .nav-link[download] {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .download-btn-header {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .language-toggle {
        margin-right: 0.5rem;
    }
}

/* Projects Section Override */
.projects-section {
    padding: 5rem 0;
    background-color: var(--section-alt);
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.project-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.carousel {
    position: static;
}

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: unset;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: unset;
    margin-right: 15%;
    margin-bottom: 1rem;
    margin-left: 15%;
}

.carousel-indicators [data-bs-target] {
    padding: 0.1rem;
    border: 2px solid rgba(124, 140, 245, 0.6);
    margin: 10px 3px;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators .active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.project-carousel {
    height: 100%;
}

.project-carousel .carousel-inner,
.project-carousel .carousel-item,
.project-carousel img {
    height: 100%;
    object-fit: cover;
}

.project-carousel .carousel-control-prev,
.project-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.project-carousel .carousel-control-prev {
    left: 15px;
}

.project-carousel .carousel-control-next {
    right: 15px;
}

.project-carousel .carousel-control-prev-icon,
.project-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.project-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.85), transparent);
    padding: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.project-link {
    color: white;
    background: var(--accent-gradient);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(124, 140, 245, 0.3);
}

.project-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 140, 245, 0.5);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: linear-gradient(135deg, rgba(124, 140, 245, 0.1), rgba(126, 203, 219, 0.1));
    color: var(--primary-color);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(124, 140, 245, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-image-container {
        height: 200px;
    }

    .project-links {
        padding: 0.8rem;
    }

    .project-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Lightbox Styles */
#lightboxModal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

#lightboxModal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
}

#lightboxModal .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

#lightboxModal .carousel-inner {
    max-width: 100%;
    max-height: 100%;
    text-align: center;
}

#lightboxModal .carousel-item img {
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

/* Lightbox Styles Update */
#lightboxModal .carousel-control-prev,
#lightboxModal .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: auto;
    bottom: 20px;
    transform: none;
    margin: 0 10px;
}

#lightboxModal .carousel-control-prev {
    left: 50%;
    transform: translateX(-100px);
}

#lightboxModal .carousel-control-next {
    right: 50%;
    transform: translateX(100px);
}

#lightboxModal .modal-body {
    position: relative;
    padding-bottom: 80px;
    /* Space for controls */
}

/* Indicator for active image */
.lightbox-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #lightboxModal .carousel-control-prev {
        transform: translateX(-80px);
    }

    #lightboxModal .carousel-control-next {
        transform: translateX(80px);
    }

    #lightboxModal .carousel-control-prev,
    #lightboxModal .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    #lightboxModal .carousel-control-prev {
        transform: translateX(-60px);
    }

    #lightboxModal .carousel-control-next {
        transform: translateX(60px);
    }

    #lightboxModal .carousel-control-prev,
    #lightboxModal .carousel-control-next {
        width: 36px;
        height: 36px;
    }
}

/* Enhanced Lightbox Styles */
#lightboxModal .modal-content {
    background-color: rgba(0, 0, 0, 0.85);
}

#lightboxModal .btn-close {
    z-index: 1051;
    filter: invert(1) drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    opacity: 0.9;
    width: 30px;
    height: 30px;
    background-size: 1.25rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    transition: all 0.2s ease;
}

#lightboxModal .btn-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#lightboxModal .carousel-control-prev,
#lightboxModal .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    margin: 0;
    opacity: 0.9;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#lightboxModal .carousel-control-prev {
    left: 25px;
    right: auto;
}

#lightboxModal .carousel-control-next {
    right: 25px;
    left: auto;
}


#lightboxModal .carousel-control-prev:hover,
#lightboxModal .carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

#lightboxModal .carousel-control-prev-icon,
#lightboxModal .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* Clickable modal background */
#lightboxModal .modal-dialog {
    pointer-events: none;
    /* Allows clicks to pass through to backdrop */
}

#lightboxModal .modal-content {
    pointer-events: auto;
    /* Re-enable pointer events for content */
}

#lightboxModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Indicator style */
.lightbox-indicator {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
    backdrop-filter: blur(2px);
    z-index: 1051;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    #lightboxModal .carousel-control-prev,
    #lightboxModal .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    #lightboxModal .btn-close {
        width: 25px;
        height: 25px;
        background-size: 1rem;
    }
}

@media (max-width: 576px) {
    #lightboxModal .carousel-control-prev {
        left: 10px;
    }

    #lightboxModal .carousel-control-next {
        right: 10px;
    }

    .lightbox-indicator {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* View All Button */
.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    padding: 0.7rem 1.8rem;
}

.btn-outline-primary:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 140, 245, 0.4);
}

/* Typing cursor animation */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--accent-color);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Smooth section scroll padding */
section {
    scroll-margin-top: 70px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(124, 140, 245, 0.4);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(124, 140, 245, 0.6);
}
