/* Global Styles */
:root {
    --primary-color: #007BFF;
    --accent-color: #5CDB95;
    --background-color: #FAFAFA;
    --text-color: #444444;
    --heading-color: #212121;
    --card-bg: #fff;
    --modal-bg: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.5s;
    --border-color: #eee;
}

body.dark-mode {
    --primary-color: #4F8CFF;
    --accent-color: #3ECF8E;
    --background-color: #181A1B;
    --text-color: #E0E0E0;
    --heading-color: #FFFFFF;
    --card-bg: #23272A;
    --modal-bg: #23272A;
    --shadow: 0 8px 32px rgba(0,0,0,0.45);
    --border-color: #2D3235;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary-color);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Navigation */
.navbar {
    width: 100%;
    padding: 12px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex: 1;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-center;
    justify-content: center;
    padding: 120px 2rem 2rem;
    background: var(--background-color);
}

.hero-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 2rem;
    text-align: left;
    line-height: 1.1;
    display: inline-block;
    position: relative;
}

.intro-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    gap: 3rem;
}

.profile-container {
    flex: 0 0 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
    text-align: left;
}

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

.value-prop {
    margin-bottom: 1.5rem;
}

.value-prop p {
    font-size: 1.4rem;
    color: var(--heading-color);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.experience p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.belief p {
    font-size: 1.2rem;
    color: var(--text-color);
    font-style: italic;
    line-height: 1.6;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-title {
        font-size: 3.5rem;
    }
    
    .intro-card {
        padding: 2rem;
        gap: 2rem;
    }

    .profile-container {
        flex: 0 0 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 1rem 1rem;
    }

    .main-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .intro-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .profile-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .card-content {
        text-align: center;
    }

    .greeting {
        font-size: 1.8rem;
    }

    .value-prop p {
        font-size: 1.2rem;
    }

    .experience p, .belief p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .profile-container {
        width: 200px;
        height: 200px;
    }

    .hero h1,
    .typing-text {
        font-size: 2rem;
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.bullet-points {
    list-style: none;
}

.bullet-point {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bullet-point.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Impact & Achievements Section */
.impact {
    padding: 3rem 1rem;
    background: var(--background-color);
}

.impact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    font-weight: 800;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
    margin-top: 2rem;
}

.impact-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, var(--card-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.4rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
    will-change: transform;
    transform-style: preserve-3d;
}

.impact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.impact-card.highlight {
    border: 2px solid var(--primary-color);
}

.impact-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    background: rgba(0, 123, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.impact-card:hover .impact-icon {
    transform: scale(1.1);
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin: 0.8rem 0;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.impact-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.impact-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
}

.impact-card.expanded .impact-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

/* Ensure the card grows smoothly */
.impact-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.impact-card.expanded {
    transform: scale(1.02);
    z-index: 1;
}

/* Add a subtle indicator that cards are clickable */
.impact-card::after {
    content: '↓';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impact-card:hover::after {
    opacity: 0.7;
}

.impact-card.expanded::after {
    content: '↑';
}

/* Mobile Carousel Styles */
@media (max-width: 768px) {
    .impact-grid {
        display: flex;
        overflow: hidden;
        position: relative;
        width: 100%;
        scroll-snap-type: x mandatory;
    }

    .impact-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        width: 100%;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--text-color);
        opacity: 0.3;
        cursor: pointer;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .carousel-dot.active {
        opacity: 1;
        transform: scale(1.2);
    }

    /* Improve touch interaction */
    .impact-grid {
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }

    /* Smooth transitions for cards */
    .impact-card {
        will-change: transform, opacity;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* Project Cards - Visual Hierarchy */
.star-section {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.star-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px 0 0 4px;
    opacity: 0.7;
}

.star-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.star-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--heading-color);
    margin: 0;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding: 4rem 1rem;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.timeline-year {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.1rem;
    min-width: 100px;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    margin: 0;
    color: var(--heading-color);
    font-size: 1.3rem;
}

.timeline-content .company {
    color: var(--primary-color);
    margin: 0.75rem 0 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.timeline-content .role {
    color: var(--text-color);
    margin: 0.5rem 0;
}

.timeline-content .period {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.expand-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 1.5rem;
}

.timeline-item.expanded .timeline-details {
    max-height: 500px;
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.timeline-item.expanded .expand-icon {
    transform: translateY(-50%) rotate(180deg);
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.detail-item p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 0 6px rgba(0, 123, 255, 0.3);
}

.timeline-item.education::before {
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(92, 219, 149, 0.2);
}

.timeline-item.education:hover::before {
    box-shadow: 0 0 0 6px rgba(92, 219, 149, 0.3);
}

/* Work Cards */
.work-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.work-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.5s ease;
}

.work-card-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.work-card-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.work-card-header .role {
    color: var(--text-color);
    margin: 0.5rem 0;
}

.work-card-header .period {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.work-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 1.5rem;
}

.work-card.expanded .work-card-details {
    max-height: 500px;
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.work-card.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Project Cards */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.2rem 2rem 3.2rem 2rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: 
        transform 0.3s cubic-bezier(0.4,0,0.2,1),
        box-shadow 0.3s cubic-bezier(0.4,0,0.2,1),
        background 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 260px;
}

.project-card .lottie-anim {
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem auto;
}

.project-card .know-more {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.2rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1);
    transform: translateY(12px);
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 36px rgba(0, 123, 255, 0.16);
    background: rgba(240, 248, 255, 0.7);
}

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

.project-card:hover .lottie-anim {
    opacity: 1;
}

/* Visual Hierarchy */
.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.1rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.project-card p {
    color: var(--text-color);
    margin: 0 0 2.2rem 0;
    line-height: 1.7;
    font-size: 1.13rem;
    font-weight: 400;
}

/* Responsive Project Cards */
@media (max-width: 900px) {
    .project-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .project-card {
        min-width: 0;
        min-height: 220px;
        padding: 1.2rem 0.7rem 2.2rem 0.7rem;
        transition: box-shadow 0.3s, background 0.3s, transform 0.3s;
    }
    .project-card:hover, .project-card:active {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        background: white;
    }
    .project-card .know-more {
        opacity: 0;
        pointer-events: none;
    }
    .project-card.expanded {
        background: rgba(240, 248, 255, 0.7);
        box-shadow: 0 8px 32px rgba(0, 123, 255, 0.13);
        z-index: 2;
    }
    .project-card.expanded .know-more {
        opacity: 1;
        pointer-events: auto;
        position: static;
        margin-top: 1rem;
        transform: none;
        text-align: left;
    }
    .project-card.expanded p {
        display: block;
        opacity: 1;
        max-height: 1000px;
        transition: max-height 0.3s, opacity 0.3s;
    }
    .project-card p {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s, opacity 0.3s;
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .project-cards {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .project-card {
        min-width: 0;
        min-height: 180px;
        padding: 1rem 0.5rem 2rem 0.5rem;
    }
    .project-card h3 {
        font-size: 1.1rem;
    }
    .project-card p {
        font-size: 1rem;
    }
    .project-card .know-more {
        font-size: 0.95rem;
        bottom: 0.7rem;
    }
}

/* Touch Targets */
.project-card, .skill-chip, .work-card, .timeline-header {
    min-height: 44px;
    min-width: 44px;
}

/* Modal Scrollable on Mobile */
@media (max-width: 600px) {
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Skills Section */
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.skill-category h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.skill-chip {
    background: var(--card-bg);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
}

.skill-chip span {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.skill-detail {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.skill-detail p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

.skill-chip.active {
    background: #007bff;
    color: white;
}

.skill-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: var(--card-bg);
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: var(--shadow);
}

.skill-description p {
    padding: 15px;
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.skill-chip.active .skill-description {
    max-height: 200px;
}

/* Contact Section */
.contact {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #888;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1,
    .typing-text {
        font-size: 2rem;
        white-space: normal;
    }
    
    .aesthetic-subheadline {
        font-size: 1rem;
        padding: 1.2rem 1rem 1.2rem 0.8rem;
        max-width: 98vw;
    }
    
    .aesthetic-subheadline .intro {
        font-size: 1.1rem;
    }
    
    .aesthetic-subheadline .tagline,
    .aesthetic-subheadline .summary,
    .aesthetic-subheadline .belief {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    section {
        padding: 3.5rem 0.5rem 3.5rem 0.5rem;
        margin-bottom: 2rem;
    }
    
    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        margin-left: 40px;
        width: calc(100% - 40px);
    }

    .timeline-item::before {
        left: -40px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-year {
        margin-bottom: 0.5rem;
    }

    .expand-icon {
        top: 1.5rem;
        transform: none;
    }

    .timeline-item.expanded .expand-icon {
        transform: rotate(180deg);
    }

    .skill-chips {
        gap: 0.8rem;
    }
    
    .skill-chip {
        padding: 0.6rem 1rem;
    }
    
    .skill-chip span {
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 100px;
    }

    h3, .timeline-content .company, .skill-category h3 {
        font-size: 1.1rem;
        margin-top: 1rem;
        margin-bottom: 0.7rem;
    }

    .project-card, .work-card, .modal-content {
        padding: 1.2rem 0.7rem 2.2rem 0.7rem;
    }

    .star-section h3 {
        font-size: 1.05rem;
        margin-top: 0.7rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-content {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* Typing Animation */
.typed-cursor {
    display: none;
}

/* What Drives Me Section */
.drives-me {
    margin-top: 2rem;
}

.drives-me h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.bullet-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.bullet-point {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.bullet-point::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.bullet-point:hover::before {
    width: 100%;
    opacity: 0.1;
}

.bullet-point.visible {
    transform: translateY(0);
    opacity: 1;
}

.bullet-point h4 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.bullet-point p {
    color: #555;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal.active {
    display: flex;
    opacity: 1;
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background: var(--modal-bg);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    margin: 2rem auto;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 2001;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-body {
    margin-top: 1.5rem;
}

.star-section {
    margin-bottom: 2.5rem;
}

.star-section:last-child {
    margin-bottom: 0;
}

.star-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
    margin-top: 1.2rem;
}

.star-section p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.modal-title {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.skill-detail {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.skill-detail p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
        max-height: 90vh;
        transform: none;
    }
    
    .modal.active .modal-content {
        transform: none;
    }
    
    .modal-title {
        font-size: 1.3rem;
        padding-right: 2rem;
    }
    
    .close-modal {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 1.4rem;
    }
    
    .star-section {
        margin-bottom: 1.5rem;
    }
    
    .star-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .star-section p, 
    .star-section ul {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Project Cards */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.2rem 2rem 3.2rem 2rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: 
        transform 0.3s cubic-bezier(0.4,0,0.2,1),
        box-shadow 0.3s cubic-bezier(0.4,0,0.2,1),
        background 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.project-card .know-more {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.2rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.13);
    background: rgba(240, 248, 255, 0.6);
}

.project-card:hover .know-more {
    opacity: 1;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.project-card p {
    color: var(--text-color);
    margin: 0 0 2.2rem 0;
    line-height: 1.6;
}

.star-section ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
}

.star-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.star-section ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.star-section ul li:last-child {
    margin-bottom: 0;
}

/* Section Titles */
section h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 3.5rem;
    max-width: 1200px;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--heading-color);
    line-height: 1.15;
}

/* Subheadings */
h3, .timeline-content .company, .skill-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.timeline-content .company {
    font-size: 1.35rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

/* Body Text */
body, .about-text, .project-card p, .work-card p, .star-section p, .modal-body, .skill-detail p {
    font-size: 1.13rem;
    color: var(--text-color);
    line-height: 1.8;
    font-weight: 400;
}

/* Section Spacing */
section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card & Modal Padding */
.project-card, .work-card, .modal-content {
    padding: 2.2rem 2rem 3.2rem 2rem;
}

/* Card Spacing */
.project-card h3, .work-card-header h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.project-card p, .work-card p {
    margin-bottom: 2.2rem;
}

/* Modal Section Titles */
.star-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
    margin-top: 1.2rem;
}

/* Modal Body Spacing */
.star-section {
    margin-bottom: 2.5rem;
}

.star-section:last-child {
    margin-bottom: 0;
}

/* Bullet Points in About */
.bullet-point h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.bullet-point p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    section {
        padding: 3.5rem 0.5rem 3.5rem 0.5rem;
        margin-bottom: 2rem;
    }
    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    h3, .timeline-content .company, .skill-category h3 {
        font-size: 1.1rem;
        margin-top: 1rem;
        margin-bottom: 0.7rem;
    }
    .project-card, .work-card, .modal-content {
        padding: 1.2rem 0.7rem 2.2rem 0.7rem;
    }
    .star-section h3 {
        font-size: 1.05rem;
        margin-top: 0.7rem;
    }
}

/* Dark mode toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }
  
  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
  }
  
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 999px;
    transition: 0.4s;
  }
  
  .toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
  }
  
  .toggle-switch input:checked + .toggle-slider {
    background-color: #007bff;
  }
  
  .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
  }

/* Modal overlay in dark mode */
body.dark-mode .modal {
    background: rgba(0,0,0,0.7);
}

/* Resume Modal Styles */
.resume-modal {
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    padding: 1rem;
}

.resume-modal iframe {
    width: 100%;
    height: calc(100% - 2rem);
    border-radius: 8px;
}

.resume-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .resume-modal {
        width: 100%;
        height: 95vh;
        margin: 0;
    }
}

/* Skills Carousel */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.prev-skills,
.next-skills {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-skills:hover,
.next-skills:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

.skill-chips {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    transition: transform 0.3s ease;
}

.skill-chip {
    transform: scale(1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-chip:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .skill-chips {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .carousel-controls {
        margin-top: 1.5rem;
    }
}

/* Remove underlines from links */
a {
    text-decoration: none;
}

/* Bottom CTA Row - Inviting Styles */
.bottom-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2.5rem;
}
.bottom-cta-row a {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 1.08rem;
    padding: 0.9rem 1.7rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.bottom-cta-row a:nth-child(1) { /* Download Resume */
    background: var(--primary-color);
    color: #fff;
}
.bottom-cta-row a:nth-child(1):hover {
    background: #0056b3;
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,123,255,0.18);
}
.bottom-cta-row a:nth-child(2) { /* Email */
    background: var(--primary-color);
    color: #fff;
}
.bottom-cta-row a:nth-child(2):hover {
    background: #0056b3;
    color: #fff;
    box-shadow: 0 4px 18px rgba(92,219,149,0.18);
}
.bottom-cta-row a:nth-child(3), .bottom-cta-row a:nth-child(4) { /* LinkedIn, GitHub */
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.bottom-cta-row a:nth-child(3):hover, .bottom-cta-row a:nth-child(4):hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,123,255,0.13);
}

/* Navbar adjustments */
.theme-toggle {
    margin-left: 0;
    height: 40px;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .bottom-cta-row {
        flex-direction: column;
        gap: 1rem;
    }
    .theme-toggle {
        margin-left: 0;
        height: 36px;
    }
    .nav-links {
        gap: 1.2rem;
    }
}

/* Responsive Navbar and Theme Toggle */
@media (max-width: 900px) {
  .navbar {
    padding: 8px 8px;
  }
  .nav-content {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .logo {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
    display: none;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: absolute;
    top: 56px;
    left: 0;
    z-index: 1001;
  }
  .nav-links.active {
    display: flex;
  }
  .theme-toggle {
    justify-content: center;
    margin: 0.5rem auto 0.5rem auto;
    font-size: 1rem;
  }
  .hamburger {
    display: block;
    position: absolute;
    right: 16px;
    top: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    z-index: 1100;
    cursor: pointer;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 4px 2px;
  }
  .logo {
    font-size: 1rem;
  }
  .theme-toggle {
    font-size: 0.95rem;
    height: 32px;
  }
  .toggle-switch {
    width: 32px;
    height: 16px;
  }
  .toggle-slider:before {
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
  }
  .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(14px);
  }
  .bottom-cta-row, .bottom-cta-row_1 {
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
  }
  .bottom-cta-row a, .bottom-cta-row_1 a {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.8rem 0.5rem;
  }
}

/* Hamburger menu default hidden on desktop */
.hamburger {
  display: none;
}

/* Adjust section spacing */
section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.impact {
    padding: 3rem 1rem;
    background: var(--background-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    margin: -2rem 0 3rem 0;
    opacity: 0.8;
}

/* Update navbar links for dark mode */
.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Logo color in dark mode */
.logo {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Mobile navigation dark mode */
@media (max-width: 900px) {
    .nav-links {
        background: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links li a {
        padding: 12px 20px;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a:hover {
        background: rgba(0, 123, 255, 0.1);
    }
}

/* Adjust impact cards spacing */
.impact-grid {
    gap: 1.2rem;
    padding: 0.5rem;
}

.impact-card {
    min-height: 260px;
    padding: 1.8rem;
}

/* Add subtle gradient to impact cards */
.impact-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, var(--card-bg) 100%);
    border: 1px solid var(--border-color);
}

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

/* Adjust spacing between major sections */
#about, #impact, #timeline, #projects, #skills, #contact {
    margin-bottom: 2rem;
}

#skills {
    padding-bottom: 4rem;
    margin-bottom: 0;
}

#contact {
    margin-bottom: 0;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
    background: var(--background-color);
}

/* Ensure sections don't overlap */
.skills, .contact {
    position: relative;
    background: var(--background-color);
} 