:root {
    /* Colors - Light Mode */
    --bg-color: #f0f2f5;
    --svg-color: #000000;
    --text-color: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --blob-1: #ff0080;
    --blob-2: #7928ca;
    --blob-3: #0070f3;

    /* Design Tokens */
    --blur-amount: 20px;
    --border-radius: 24px;
    --transition-speed: 0.3s;
    --font-main: 'Outfit', sans-serif;
}

[data-theme="dark"] {
    --bg-color: #000000;
    --svg-color: #ffffff;
    --text-color: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent-color: #2997ff;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--blob-1);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    bottom: -100px;
    right: -100px;
    animation-delay: 2s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--blob-3);
    top: 40%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

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

.section {
    padding: 44px 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--text-color), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Utilities */
.glass-header,
.glass-card,
.glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    border-radius: var(--border-radius);
    padding: 40px;
    transition: transform var(--transition-speed);
}

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

/* Header (Desktop - Vertical Sidebar) */
.glass-header {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 80px;
    height: 44vh;
    border-radius: 0 24px 24px 0;
    padding: 40px 10px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
    z-index: 1000;
}

.glass-header nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    flex-direction: column;
    margin: 10px;
    align-items: center;
    width: 100%;
    list-style: none;
}

.nav-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 32px;
    text-decoration: none;
    font-weight: 600;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

/* Hide text labels on desktop sidebar */
.nav-links a span {
    display: none;
}

.nav-links a i {
    display: block;
    font-size: 1rem;
}

#nav-links-bottom {
    display: none;
}

.controls {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: 10px;
    gap: 20px;
    align-items: center;
}

.icon-btn,
.text-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.icon-btn:hover,
.text-btn:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
}

/* Adjust main content for sidebar */
main {
    padding-left: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    max-width: 800px;
}

.hero-greeting {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-title {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: justify;
}

/* Hero Section Adjustments for Sidebar */
.hero-section {
    min-height: 24vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 24px;
}

/* Experience Timeline */
/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Central Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* Left side items */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Right side items */
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* The dots */
.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-color);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
    transition: all var(--transition-speed);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-color);
    box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.3);
    transform: scale(1.1);
}

/* Content Box */
.timeline-content {
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: var(--glass-shadow);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Arrows */
.timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 26px;
    width: 0;
    z-index: 1;
    border: medium solid var(--glass-border);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--glass-border) transparent transparent;
    transition: border-color var(--transition-speed);
}

/* Fix arrow direction for left items */
.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--glass-border);
}

/* Fix arrow direction for right items */
.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--glass-border) transparent transparent;
}

/* Inner Content Styling */
.role {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.company {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-item:nth-child(odd) .company {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) .company {
    justify-content: flex-start;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.date,
.location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-item:nth-child(odd) .date,
.timeline-item:nth-child(odd) .location {
    justify-content: flex-end;
}

.description {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.technologies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-item:nth-child(odd) .technologies-container {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) .technologies-container {
    justify-content: flex-start;
}

.tech-chip {
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 113, 227, 0.15);
    transition: all var(--transition-speed);
}

.tech-chip:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
}

/* Skills Grid */
.skills-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 156px;
    min-height: 120px;
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .skill-card:hover {
    background: rgba(40, 40, 40, 0.8);
}

.skill-icon {
    font-size: 2rem;
}

.skill-icon svg path {
    fill: var(--svg-color);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    justify-self: center;
}

.blog-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.blog-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.read-more {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact */
.contact-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all var(--transition-speed);
    text-decoration: none;
}

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

/* Footer */
.glass-footer {
    padding: 20px 0;
    text-align: center;
    height: 160px;
    border-radius: 24px 24px 0 0;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
/* Responsive - Mobile (< 750px) - Revert to Horizontal Header */
/* Responsive - Mobile (< 750px) - Bottom Nav Bar */
@media (max-width: 750px) {
    .glass-header {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        height: auto;
        border-radius: 48px;
        padding: 12px 20px;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        z-index: 1000;
    }

    .glass-header nav {
        flex-direction: row;
        width: 100%;
        height: auto;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-bottom: 0;
        font-size: 1.2rem;
    }

    /* Bottom Navigation Bar */
    /* Bottom Navigation Bar */
    #nav-links {
        display: none;
    }

    #nav-links-bottom {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        background: var(--glass-bg);
        backdrop-filter: blur(var(--blur-amount));
        -webkit-backdrop-filter: blur(var(--blur-amount));
        border: 1px solid var(--glass-border);
        box-shadow: var(--glass-shadow);
        border-radius: 48px;
        padding: 16px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        list-style: none;
    }

    #nav-links-bottom a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: transparent;
        color: var(--text-color);
        transition: all var(--transition-speed);
    }

    #nav-links-bottom a:hover,
    #nav-links-bottom a.active {
        background: var(--accent-color);
        color: white;
        transform: translateY(-3px);
    }

    #nav-links-bottom a span {
        display: none;
    }

    #nav-links-bottom a i {
        display: block;
        font-size: 1.2rem;
        margin-right: 0;
    }

    .controls {
        flex-direction: row;
        margin-top: 0;
        gap: 16px;
    }

    .mobile-menu-btn {
        display: none;
    }

    main {
        padding-left: 0;
        /* Add padding for bottom nav */
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    /* Timeline Mobile Adjustments */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .company,
    .timeline-item:nth-child(even) .company {
        justify-content: flex-start;
    }

    .timeline-item:nth-child(odd) .date,
    .timeline-item:nth-child(odd) .location,
    .timeline-item:nth-child(even) .date,
    .timeline-item:nth-child(even) .location {
        justify-content: flex-start;
    }

    .timeline-item:nth-child(odd) .technologies-container,
    .timeline-item:nth-child(even) .technologies-container {
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 18px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 18px;
    }

    /* Fix arrows for mobile */
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--glass-border) transparent transparent;
    }
}

@media (max-width: 750px) {
    .glass-header {
        width: 95%;
        padding: 16px 20px;
    }

    /* The following rules are now handled by the 750px media query, but keeping for 768px specific adjustments if any */
    /* .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(var(--blur-amount));
        flex-direction: column;
        padding: 20px;
        border-radius: 24px;
        border: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    } */

    .hero-name {
        font-size: 2.5rem;
    }

    /* Timeline adjustments handled in the main media query above */
}