/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern cyberpunk-inspired color palette */
    --primary-color: #00E5FF;
    --primary-hover: #1efbff;
    --secondary-color: #191414;
    --accent-color: #00E5FF;
    --accent-secondary: #FF006E;

    /* Dark backgrounds - Spotify style */
    --bg-color: #121212;
    --bg-dark: #000000;
    --bg-card: #181818;
    --bg-hover: #282828;

    /* Text colors */
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #6a6a6a;

    /* Border colors */
    --border-color: #282828;
    --border-light: #404040;
    --border-glow: rgba(0, 229, 255, 0.3);

    /* Status colors */
    --success-color: #00E5FF;
    --warning-color: #ffa116;
    --error-color: #FF006E;

    /* Gradient definitions */
    --gradient-primary: linear-gradient(180deg, #00E5FF 0%, #191414 100%);
    --gradient-accent: linear-gradient(135deg, #00E5FF 0%, #FF006E 100%);
    --gradient-warm: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, transparent 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideDown 0.5s ease;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-nav.nav-hidden {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    pointer-events: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(40, 40, 40, 0.5);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-item svg {
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item:hover svg {
    stroke: var(--primary-color);
    transform: scale(1.1);
}

.nav-item.active {
    color: var(--bg-dark);
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.5);
    font-weight: 700;
}

.nav-item.active svg {
    stroke: var(--text-color);
}

.nav-label {
    display: inline;
}

.nav-separator {
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
    align-self: center;
    margin: 0 0.2rem;
}

/* Hero Section - Spotify Artist Header Style */
.hero {
    padding: 8rem 0 5rem 0;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.15) 0%, #121212 50%, #121212 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 3rem 0;
        min-height: auto;
    }
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 229, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) translateX(20px);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(229, 9, 20, 0.03) 2px,
        rgba(229, 9, 20, 0.03) 4px
    );
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-intro {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-image-inline {
    position: relative;
    flex-shrink: 0;
}

.hero-image-inline .hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(30px);
    animation: pulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-image-inline img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.2);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    object-fit: cover;
}

.hero-image-inline img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 229, 255, 0.4), 0 0 30px rgba(255, 0, 110, 0.2);
    border-color: var(--primary-color);
}

.hero-info {
    flex: 1;
    min-width: 0;
}

.hero-image {
    position: relative;
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(40px);
    animation: pulse 3s ease-in-out infinite;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    border-radius: 50%;
    border: 4px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 229, 255, 0.2);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 229, 255, 0.4), 0 0 40px rgba(255, 0, 110, 0.2);
    border-color: var(--primary-color);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(229, 9, 20, 0.5);
    }
}

.badge-icon {
    font-size: 1.2rem;
    animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(20, 20, 20, 0.6);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.highlight-item:hover {
    background: rgba(20, 20, 20, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.highlight-icon {
    font-size: 2rem;
    filter: grayscale(0.3);
}

.highlight-text {
    flex: 1;
}

.highlight-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 0.2rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    color: var(--text-color);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    color: var(--text-color);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.name-reading {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.2);
}

.social-link svg {
    opacity: 0.8;
}

/* Availability Section */
.availability-section {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.75rem;
    border-radius: 16px;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.availability-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.availability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.availability-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: var(--text-color);
}

.availability-badge {
    background: linear-gradient(135deg, var(--success-color) 0%, #1ed760 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: badgePulse 2s ease-in-out infinite;
}

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

.availability-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.availability-list li:last-child {
    border-bottom: none;
}

.availability-list strong {
    color: var(--text-color);
}

/* Hero Stats - Stats inside hero section */
.hero-stats {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.hero-stats .stat-card {
    min-height: 200px;
    padding: 1.5rem 1.25rem;
}

.hero-stats .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    min-height: 3rem;
}

.hero-stats .stat-unit {
    font-size: 1.5rem;
}

.hero-stats .stat-label {
    font-size: 0.95rem;
}

.hero-stats .stat-description {
    font-size: 0.85rem;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 0, 110, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: var(--bg-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    min-height: 4.2rem;
}

.stat-number span[data-target] {
    display: inline-block;
    min-width: 1ch;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.stat-unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--bg-dark);
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
    font-weight: 700;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.highlight-box {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 3rem;
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

.highlight-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

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

.highlight-box li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.7;
}

.highlight-box li:last-child {
    border-bottom: none;
}

.highlight-box strong {
    color: var(--text-color);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #121212 0%, rgba(0, 229, 255, 0.1) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 0, 110, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.btn-primary {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-secondary) 100%);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.3);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(0, 229, 255, 0.5), 0 0 40px rgba(255, 0, 110, 0.3);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

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

/* Experience/Work Page */
.page-header {
    padding: 7rem 0 4rem 0;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.15) 0%, #121212 40%, #121212 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 50vh;
}

.page-header .hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    animation: gradientShift 8s ease infinite;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(229, 9, 20, 0.03) 2px,
        rgba(229, 9, 20, 0.03) 4px
    );
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

.page-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
    border: 1px solid rgba(229, 9, 20, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    animation: badgePulse 2s ease-in-out infinite;
}

.page-header-badge .badge-icon {
    font-size: 1.2rem;
    animation: iconBounce 1s ease-in-out infinite;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background-color: rgba(20, 20, 20, 0.4);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c20711 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tab-button.active {
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-secondary) 100%);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.5);
}

.tab-button:hover:not(.active) {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Timeline Wrapper for TOC layout */
.timeline-wrapper {
    display: flex;
    gap: 2rem;
    position: relative;
}

/* Table of Contents */
.experience-toc {
    flex-shrink: 0;
    width: 220px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 10rem;
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}

.experience-toc h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    color: var(--text-color);
    background-color: var(--bg-hover);
    border-left-color: var(--border-light);
}

.toc-link.active {
    color: var(--primary-color);
    background-color: rgba(229, 9, 20, 0.1);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Timeline takes remaining space */
.timeline-wrapper .timeline {
    flex: 1;
    min-width: 0;
}

/* Hide TOC on screens smaller than 1200px to avoid overlap */
@media (max-width: 1199px) {
    .timeline-wrapper {
        display: block;
    }

    .experience-toc {
        display: none;
    }
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--border-color) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.75rem;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 3px var(--bg-card);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.timeline-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    background-color: var(--bg-card);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.timeline-company {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.timeline-description {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.timeline-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    background: var(--bg-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.project-content {
    padding: 1.25rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Wide project card for horizontal images */
.project-card-wide {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    grid-column: 1 / -1;
}

.project-card-wide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.2);
    border-color: var(--border-light);
}

.project-image-wide {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    background-color: #1a1a1a;
    border-bottom: 1px solid var(--border-color);
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.tech-tag {
    padding: 0.4rem 0.9rem;
    background-color: var(--bg-card);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.tech-tag:hover {
    border-color: var(--primary-color);
    color: var(--text-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.work-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.2);
    border-color: var(--border-light);
}

.work-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
}

.work-card .work-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.work-card .work-description {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Truncate text in list view only (not in modal) */
#work .work-card .work-description > p:not(.work-description h4 ~ p) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* For cards with detailed content (h4 tags), hide the detailed sections in list view */
#work .work-card .work-description h4,
#work .work-card .work-description h4 ~ * {
    display: none;
}

/* Show all content in modal */
#modalBody .work-description p,
#modalBody .work-description h4,
#modalBody .work-description h4 ~ * {
    display: block !important;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.work-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    background-color: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.work-card h4 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

/* Skills Page */
.skills-section {
    padding: 4rem 0;
}

.skill-category {
    margin-bottom: 4rem;
}

.skill-category h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 700;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-item:hover::before {
    transform: scaleX(1);
}

.skill-item:hover {
    background: var(--bg-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.skill-item:hover .skill-icon {
    transform: scale(1.15);
}

.skill-item:hover .skill-icon-img {
    transform: scale(1.15);
}

.skill-icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.skill-icon:not(.colored) {
    color: var(--text-color);
}

.skill-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon-img {
    transform: scale(1.1);
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.skill-level {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Service Page */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: var(--bg-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    font-weight: 700;
}

.service-card p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    font-weight: 700;
}

.contact-info p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
    background-color: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.contact-method:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.15);
    transform: translateY(-2px);
}

.contact-method svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 700;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-card);
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    color: var(--text-secondary);
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 1;
    background-color: var(--bg-card);
    border-radius: 0 12px 0 0;
}

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

#modalBody {
    padding: 2rem 2.5rem;
    padding-top: 0;
}

#modalBody .work-image {
    margin-top: 1rem;
}

#modalBody h3 {
    margin-top: 1rem;
}

/* Work card hover effect for clickable cards */
.work-card[style*="cursor: pointer"]:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(229, 9, 20, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    /* Hero Badge responsive */
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Hero highlights responsive */
    .hero-highlights {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .highlight-item {
        padding: 0.75rem;
    }

    .highlight-icon {
        font-size: 1.5rem;
    }

    .highlight-value {
        font-size: 1rem;
    }

    /* Hero stats responsive */
    .hero-stats {
        margin-top: 2rem;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .hero-stats .stat-card {
        min-height: 140px;
        padding: 1rem 0.75rem;
    }

    .hero-stats .stat-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero-stats .stat-number {
        font-size: 1.5rem;
        min-height: 2rem;
    }

    .hero-stats .stat-unit {
        font-size: 1rem;
    }

    .hero-stats .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .hero-stats .stat-description {
        font-size: 0.7rem;
    }

    /* Stats grid responsive */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-unit {
        font-size: 1.6rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    /* Availability section responsive */
    .availability-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Mobile Navigation - Bottom Fixed */
    .floating-nav {
        top: auto;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 500px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }

    .nav-menu {
        width: 100%;
        justify-content: space-between;
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .nav-item {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0.5rem;
        flex: 1;
        font-size: 0.7rem;
        line-height: 1;
        justify-content: center;
        align-items: center;
        min-height: 60px;
    }

    .nav-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .nav-label {
        font-size: 0.7rem;
        line-height: 1;
        height: 1em;
    }

    /* Add padding to bottom of content to avoid nav overlap */
    .footer {
        padding-bottom: 6rem;
    }

    /* Other mobile styles */
    .hero-content {
        text-align: center;
    }

    .hero-intro {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-image-inline img {
        width: 150px;
        height: 150px;
    }

    .hero-info h1 {
        font-size: 2rem;
    }

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

    .tagline {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    /* Show profile image first on mobile */
    .hero-image {
        order: -1;
        max-width: 240px;
        margin: 0 auto;
    }

    .footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .skill-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

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

    .tabs {
        flex-direction: row;
    }

    .tab-button {
        flex: 1;
        border-bottom: 3px solid transparent;
    }

    .tab-button.active {
        border-bottom-color: var(--primary-color);
    }

    /* Hide TOC on mobile */
    .experience-toc {
        display: none;
    }
}
