/* Netflix-Style Sidebar Portfolio CSS */

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Layout Structure */
.layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #000 0%, #111 100%);
    border-right: 1px solid #333;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: #111;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e50914, #b81d24);
    border-radius: 2px;
}

/* Brand Section */
.brand-section {
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e50914, #b81d24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.identity h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 400;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

/* Enhanced Navbar Styling */
.sidebar { position: fixed; }
.sidebar::before { content:""; position:absolute; top:0; left:0; width:4px; height:100%; background:linear-gradient(180deg,#e50914,#7a0716 60%,#e50914); box-shadow:0 0 8px -2px #e50914,0 0 0 1px rgba(255 255 255 / .06); }

.nav-menu { position:relative; padding-top:.25rem; }
.nav-menu::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(255 255 255 / .08),rgba(255 255 255 / 0)); mix-blend-mode:overlay; opacity:.25; }

.nav-collapse-toggle { background:rgba(255 255 255 / .08); border:1px solid rgba(255 255 255 / .15); color:#fff; height:40px; border-radius:10px; margin:0 0 .5rem 0; cursor:pointer; font-size:.9rem; font-weight:600; letter-spacing:1px; display:flex; align-items:center; justify-content:center; transition:background .35s var(--ease-soft), transform .3s var(--ease-soft); }
.nav-collapse-toggle:hover { background:rgba(255 255 255 / .15); }
.nav-collapse-toggle:active { transform:scale(.92); }

.nav-btn { position:relative; overflow:hidden; }
.nav-btn::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(255 255 255 / .07),rgba(255 255 255 / 0)); opacity:0; transition:opacity .4s var(--ease-soft); }
.nav-btn:hover::after { opacity:1; }
.nav-btn .nav-icon { filter: drop-shadow(0 2px 4px rgba(0 0 0 / .4)); }

.nav-btn.active { box-shadow:0 6px 22px -8px rgba(0 0 0 / .7), 0 0 0 1px rgba(255 255 255 / .08), 0 0 0 1px rgba(229 9 20 / .8) inset; }
.nav-btn.active::after { opacity:.35; }

/* Collapsed Sidebar */
.sidebar.collapsed { width:90px; }
.sidebar.collapsed .identity, .sidebar.collapsed .subtitle { display:none; }
.sidebar.collapsed .nav-text { display:none; }
.sidebar.collapsed .nav-btn { justify-content:center; padding:.85rem 0; }
.sidebar.collapsed .nav-collapse-toggle { width:100%; }
.sidebar.collapsed .logo { margin-bottom:.5rem; }
.sidebar.collapsed + .content-area { margin-left:90px; transition: margin-left .4s var(--ease-soft); }

.sidebar, .content-area { transition: margin-left .4s var(--ease-soft); }

/* Animated rail glow */
.sidebar::before { animation: railPulse 6s ease-in-out infinite; }
@keyframes railPulse { 0%,100% { box-shadow:0 0 8px -2px #e50914,0 0 0 1px rgba(255 255 255 / .06); filter:brightness(1); } 50% { box-shadow:0 0 14px 0 #ff2d3d,0 0 0 1px rgba(255 255 255 / .16); filter:brightness(1.25); } }

/* Tooltip for collapsed mode */
.sidebar.collapsed .nav-btn[data-label] { position:relative; }
.sidebar.collapsed .nav-btn[data-label]:hover::before { content:attr(data-label); position:absolute; left:110%; top:50%; transform:translateY(-50%); background:rgba(20 20 24 / .95); padding:.5rem .75rem; border-radius:8px; white-space:nowrap; font-size:.75rem; letter-spacing:.5px; color:#fff; box-shadow:0 4px 18px -4px rgba(0 0 0 / .65); animation: fadeInTooltip .35s var(--ease-soft); }
@keyframes fadeInTooltip { from { opacity:0; transform:translate(6px,-50%); } to { opacity:1; transform:translate(0,-50%); } }

/* Ripple effect */
.nav-btn { --ripple-color: rgba(255 255 255 / .35); }
.nav-btn:focus-visible { outline:2px solid rgba(var(--accent-rgb)/.9); outline-offset:2px; }
.nav-btn .ripple { position:absolute; inset:0; overflow:hidden; border-radius:inherit; pointer-events:none; }
.nav-btn .ripple span { position:absolute; border-radius:50%; background:var(--ripple-color); transform:scale(0); animation:ripple .6s ease-out forwards; mix-blend-mode:overlay; }
@keyframes ripple { to { transform:scale(3.2); opacity:0; } }

.nav-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #ffffff;
    transform: translateX(5px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #e50914, #b81d24);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

/* Main Content Area */
.content-area {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
}

.content-section {
    padding: 3rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: none;
    min-height: 100vh;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e50914;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1), transparent);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    background: linear-gradient(135deg, #e50914, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Container with Image */
.hero-container {
    display: flex;
    gap: 3rem; /* reduced gap to bring content closer */
    align-items: flex-start;
    margin-bottom: 3rem;
}

.hero-image {
    flex: 0 0 350px;
    text-align: center;
    margin-left: -20px; /* shift image slightly left */
}

.profile-image {
    position: relative;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border: 2px solid #e50914;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.3);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.4);
}

.image-placeholder {
    width: 250px;
    height: 300px;
    background: linear-gradient(135deg, #1a1a1a, #333);
    border: 2px solid #e50914;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.3);
    position: relative;
    overflow: hidden;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.4);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #e50914, #ff1744);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}

.avatar-initial {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

.image-icon {
    font-size: 4rem;
    color: #e50914;
    opacity: 0.8;
}

.placeholder-text {
    text-align: center;
}

.placeholder-text p {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.placeholder-text small {
    color: #aaaaaa;
    font-size: 0.9rem;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(229, 9, 20, 0.1) 50%, 
        transparent 70%);
    pointer-events: none;
}

.image-icon {
    font-size: 4rem;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

/* Hero Basic Info (Below Image) */
.hero-basic-info {
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
}

.hero-basic-info .hero-subtitle {
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-align: center;
}

.hero-basic-info .hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.3;
    background: linear-gradient(135deg, #e50914, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.hero-basic-info .hero-location {
    font-size: 1rem;
    color: #aaaaaa;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
}

.summary-section {
    text-align: left;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.08), rgba(17, 17, 17, 0.6));
    border-radius: 8px;
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.summary-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e50914;
    margin-bottom: 1rem;
    text-align: center;
}

.summary-section p {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.hero-content {
    flex: 1;
}

/* Remove old hero section styles that are no longer needed */
.hero-content .hero-subtitle,
.hero-content .hero-title,
.hero-content .hero-location {
    display: none;
}

.hero-description h2 {
    display: none;
}

.description-content {
    display: none;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
    text-align: left;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 600px;
}

/* Home Section Styles */
.hero-subtitle {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.3;
    background: linear-gradient(135deg, #e50914, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-location {
    font-size: 1rem;
    color: #aaaaaa;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-description h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.description-content {
    margin-bottom: 2.5rem;
}

.description-content p {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 1.2rem;
    line-height: 1.7;
    font-weight: 400;
}

.description-content p strong {
    color: #e50914;
    font-weight: 600;
}

/* Key Attributes Section */
.key-attributes {
    margin-bottom: 2.5rem;
}

.attribute-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.05), rgba(17, 17, 17, 0.8));
    border-left: 3px solid #e50914;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.attribute-item:hover {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1), rgba(17, 17, 17, 0.9));
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.2);
}

.attribute-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e50914;
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.attribute-item p {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.skill-tag {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #444444;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #e50914, #b81d24);
    border-color: #e50914;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.metric-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #111111, #1a1a1a);
    border-radius: 8px;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
    border-color: #e50914;
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.2);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #e50914, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.metric-label span {
    display: block;
    font-size: 0.75rem;
    color: #aaaaaa;
    font-weight: 400;
    margin-top: 0.25rem;
}

/* Focus Areas Grid */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.focus-area {
    padding: 2rem;
    background: linear-gradient(135deg, #111111, #222222);
    border-radius: 8px;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.focus-area:hover {
    transform: translateY(-5px);
    border-color: #e50914;
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.15);
}

.focus-area h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e50914;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-item {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #444444;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: linear-gradient(135deg, #e50914, #b81d24);
    border-color: #e50914;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
}

/* Initiatives List */
.initiatives-list {
    margin-top: 2rem;
}

.initiative-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #333333;
    transition: all 0.3s ease;
}

.initiative-item:last-child {
    border-bottom: none;
}

.initiative-item:hover {
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.1), transparent);
}

.initiative-number {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #e50914, #b81d24);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.initiative-text {
    flex: 1;
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
}

.values-statement {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333333;
}

.values-statement p {
    font-size: 1.1rem;
    color: #ffffff;
    font-style: italic;
}

.values-statement strong {
    color: #e50914;
}


/* Experience Timeline */
.experience-timeline {
    margin-top: 2rem;
    position: relative;
}

.timeline-group {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 12px;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.timeline-group-header:hover {
    border-color: #e50914;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.org-logo {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e50914, #ff1744);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.org-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.org-logo-fallback {
    font-size: 2.5rem;
    color: #ffffff;
}

.org-info {
    flex: 1;
}

.organization-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.org-status {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    background: rgba(170, 170, 170, 0.2);
    color: #aaaaaa;
}

.current-status {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.1));
    color: #e50914;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.experience-item {
    position: relative;
    margin-left: 2rem;
    margin-bottom: 2rem;
    border-left: 2px solid #333333;
    transition: all 0.3s ease;
}

.experience-item.current {
    border-left: 2px solid #e50914;
}

.experience-item.current .experience-timeline-dot {
    background: #e50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 15px rgba(229, 9, 20, 0.5); }
    50% { box-shadow: 0 0 25px rgba(229, 9, 20, 0.8); }
    100% { box-shadow: 0 0 15px rgba(229, 9, 20, 0.5); }
}

.experience-timeline-dot {
    position: absolute;
    left: -7px;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: #666666;
    border-radius: 50%;
    border: 2px solid #000000;
    transition: all 0.3s ease;
    z-index: 2;
}

.experience-item:hover .experience-timeline-dot {
    background: #e50914;
    transform: scale(1.3);
}

.experience-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 12px;
    padding: 2rem;
    margin-left: 2rem;
    border: 1px solid #333333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(229, 9, 20, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.experience-card:hover {
    border-color: #e50914;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.2);
}

.experience-card:hover::before {
    opacity: 1;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.role-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.role-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.1));
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.experience-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 1rem;
    color: #e50914;
    font-weight: 500;
}

.experience-date {
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: #aaaaaa;
    line-height: 1.4;
    flex-shrink: 0;
}

.experience-date .duration {
    font-size: 0.75rem;
    color: #888888;
    font-weight: 400;
}

.experience-description {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.achievement-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15), rgba(229, 9, 20, 0.05));
    border-radius: 8px;
    border-left: 4px solid #e50914;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #ffffff;
}

.achievement-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.1));
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(229, 9, 20, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #e50914, #ff1744);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    background: linear-gradient(135deg, #111111, #1a1a1a);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #333333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-item:hover {
    transform: translateY(-5px);
    border-color: #e50914;
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.2);
}

.project-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.project-description {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #444444;
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status.live {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
}

.project-status.development {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #000000;
}

.project-status.beta {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    color: #ffffff;
}

/* Projects Timeline */
.projects-timeline {
    margin-top: 2rem;
    position: relative;
    margin-left: 2rem;
    border-left: 2px solid #333333;
}

/* Enhanced timeline axis */
.projects-timeline::before { content:""; position:absolute; left:-2px; top:0; width:4px; height:100%; background:linear-gradient(180deg,#e50914,#ff6a75 40%,#7a0716); border-radius:4px; opacity:.35; }

/* Sticky years */
.projects-timeline .timeline-year { position:sticky; top:70px; z-index:2; backdrop-filter:blur(12px) saturate(140%); -webkit-backdrop-filter:blur(12px) saturate(140%); }
.projects-timeline .timeline-year::after { content:""; position:absolute; left:0; bottom:-6px; width:42%; height:2px; background:linear-gradient(90deg,#e50914,transparent); opacity:.5; }

/* Project meta row */
.project-meta { display:flex; flex-direction:column; align-items:flex-end; gap:.45rem; }
.project-status-badge { padding:.35rem .65rem; font-size:.55rem; letter-spacing:1.5px; text-transform:uppercase; font-weight:700; border-radius:14px; background:linear-gradient(135deg,rgba(255 255 255 / .18),rgba(255 255 255 / .04)); border:1px solid rgba(255 255 255 / .3); color:#fff; position:relative; overflow:hidden; }
.project-status-badge::before { content:""; position:absolute; inset:0; background:linear-gradient(120deg,rgba(var(--accent-rgb)/.55),transparent 70%); opacity:.4; mix-blend-mode:overlay; }
.status-ongoing { background:linear-gradient(135deg,#ff8a3d,#ff3344); }
.status-progress { background:linear-gradient(135deg,#ffca3a,#ff3344); }
.status-completed { background:linear-gradient(135deg,#20c997,#198754); }

/* Scroll reveal accent for project items */
.project-item { position:relative; }
.project-item::before { content:""; position:absolute; left:-2px; top:0; width:4px; height:0; background:linear-gradient(180deg,#ff3344,#e50914); border-radius:4px; transition:height 1.4s var(--ease-soft); }
.project-item.in-view::before { height:100%; }
.project-item.in-view .project-card { box-shadow:0 0 0 1px rgba(var(--accent-rgb)/.4),0 8px 28px -8px rgba(0 0 0 / .7); }

/* Animate dots when in view */
.project-item .project-timeline-dot { transition: transform .8s var(--ease-bounce), background .6s var(--ease-soft); }
.project-item.in-view .project-timeline-dot { transform:scale(1.25) rotate(15deg); background:#ff3344; }



/* Year markers inside project timeline */
.projects-timeline .timeline-year {
    position: relative;
    margin-left: -2.2rem;
    padding: .35rem 1rem .35rem 2.4rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(229,9,20,0.18), rgba(229,9,20,0.05));
    color: #e3e3e3;
    border: 1px solid rgba(229,9,20,0.35);
    border-left: 4px solid #e50914;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 18px -6px rgba(229,9,20,.4);
    margin-bottom: 1.5rem;
}
.projects-timeline .timeline-year::before {
    content: attr(data-year);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-100%, -50%);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ff5a66;
    opacity: .3;
}

.project-date {
    font-size: .7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    padding: .4rem .6rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.15);
    color: #ffb8be;
    align-self: flex-start;
    box-shadow: 0 0 0 1px rgba(229,9,20,.4) inset;
}

.music-reactive .project-date { animation: reactiveHue 6s linear infinite; }

.projects-timeline .project-item {
    position: relative;
    margin-bottom: 2rem;
    border-left: none;
}

.project-timeline-dot {
    position: absolute;
    left: -9px;
    top: 2rem;
    width: 14px;
    height: 14px;
    background: #e50914;
    border-radius: 50%;
    border: 3px solid #000000;
    transition: all 0.3s ease;
    z-index: 2;
}

.project-timeline-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

.projects-timeline .project-item:hover .project-timeline-dot {
    background: #ff1744;
    transform: scale(1.2);
}

.project-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 12px;
    padding: 2rem;
    margin-left: 2rem;
    border: 1px solid #333333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(229, 9, 20, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover {
    border-color: #e50914;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.2);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.project-type {
    font-size: 1rem;
    color: #e50914;
    font-weight: 500;
}

.projects-timeline .project-description {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-status.completed {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #ffffff;
}

/* Contact Section */
.contact-content {
    text-align: center;
    margin-top: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #e50914, #b81d24);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #e50914;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.award-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #111111, #1a1a1a);
    border-radius: 8px;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.award-item:hover {
    transform: translateY(-5px);
    border-color: #e50914;
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.2);
}

.award-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e50914, #b81d24);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.award-position {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e50914, #ff1744);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    margin-bottom: 1rem;
}

.award-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.1));
    color: #e50914;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(229, 9, 20, 0.3);
    margin-top: 1rem;
}

.award-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.award-organization {
    font-size: 1rem;
    color: #e50914;
    margin-bottom: 1rem;
    font-weight: 500;
}

.award-description {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
}

/* Volunteering Section */
.volunteering-list {
    margin-top: 2rem;
}

.volunteer-item {
    background: linear-gradient(135deg, #111111, #1a1a1a);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #333333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.volunteer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(229, 9, 20, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.volunteer-item:hover {
    border-color: #e50914;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.2);
}

.volunteer-item:hover::before {
    opacity: 1;
}

.volunteer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.volunteer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e50914;
    background: linear-gradient(135deg, #e50914, #ff1744);
    display: flex;
    align-items: center;
    justify-content: center;
}

.volunteer-logo .org-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.volunteer-date {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.1));
    color: #e50914;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(229, 9, 20, 0.3);
    text-align: center;
    flex-shrink: 0;
}

.volunteer-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.volunteer-organization {
    font-size: 1rem;
    color: #e50914;
    font-weight: 500;
    margin-bottom: 0;
}

.volunteer-description {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.certification-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #111111, #1a1a1a);
    border-radius: 8px;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-5px);
    border-color: #e50914;
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.2);
}

.cert-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e50914, #b81d24);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.cert-position {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e50914, #ff1744);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    margin-bottom: 1rem;
}

.cert-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    font-size: 1rem;
    color: #e50914;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cert-date {
    font-size: 0.85rem;
    color: #aaaaaa;
    margin-bottom: 1rem;
}

.cert-description {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .content-area {
        margin-left: 240px;
    }
    
    .content-section {
        padding: 2rem 3rem;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .hero-image {
        flex: 0 0 250px;
    }
    
    .image-placeholder {
        width: 200px;
        height: 250px;
    }
    
    .page-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    /* Show mobile menu button and hide desktop sidebar */
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mobile-menu-overlay {
        display: none;
    }
    
    .mobile-menu-overlay.active {
        display: flex !important;
    }
    
    .sidebar {
        display: none;
    }
    
    .content-area {
        margin-left: 0;
        width: 100%;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
        padding-top: 6rem; /* Space for mobile menu button */
    }
    
    /* Remove the grid nav menu on mobile since we use overlay */
    .nav-menu {
        display: none;
    }
    
    .nav-btn {
        display: none;
    }
    
    .nav-btn .nav-icon {
        font-size: 1.2rem;
    }
    
    .nav-btn .nav-text {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .nav-collapse-toggle {
        display: none;
    }
    
    .brand-section {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .logo {
        margin: 0;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-image {
        flex: none;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .hero-basic-info {
        max-width: 100%;
    }
    
    .hero-basic-info .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-basic-info .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .summary-section {
        padding: 1rem;
    }
    
    .summary-section h2 {
        font-size: 1.2rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 240px;
    }
    
    .image-placeholder {
        width: 200px;
        height: 240px;
        gap: 1rem;
    }

    /* Optional styling for the additional introduction image */
    .secondary-photo {
        opacity: 0.92;
        box-shadow: 0 8px 24px rgba(0,0,0,0.55);
        animation: subtleFloat 9s ease-in-out infinite;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .avatar-initial {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 1rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    
    .timeline-group-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .org-logo {
        margin: 0 auto;
    }
    
    .experience-item {
        margin-left: 1rem;
    }
    
    .experience-card {
        margin-left: 1rem;
        padding: 1.5rem;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .role-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .experience-date {
        text-align: center;
        order: 2;
    }
    
    .experience-timeline-dot {
        left: -6px;
        top: 1.5rem;
    }
    
    .organization-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .achievement-highlight {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-timeline {
        margin-left: 1rem;
    }
    
    .project-card {
        margin-left: 1rem;
        padding: 1.5rem;
    }
    
    .project-timeline-dot {
        left: -7px;
    }
    
    .contact-links {
        gap: 1rem;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .award-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .award-icon,
    .award-position {
        margin: 0 auto;
    }
    
    .volunteer-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .volunteer-logo {
        margin: 0 auto;
    }
    
    .volunteering-list .volunteer-item {
        padding: 1.5rem;
    }
    
    .volunteer-date {
        width: auto;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    /* Added: better stacking & wrapping */
    .project-filters { flex-wrap: wrap; gap: .6rem; }
    .project-filters button { flex: 1 1 140px; }
    .projects-timeline, .experience-timeline { padding-left: 0; }
    .experience-card, .project-card { margin-left: 0; }
    .projects-timeline::before { left: 0; }
    .project-item::before { left: 0; }
    .project-item .project-timeline-dot, .experience-timeline-dot { left: -4px; }
    .music-player { right: 1rem; bottom: 1rem; width: 260px; }
    .music-player.collapsed { width: auto; }
    /* Certification cards stack already handled above */
    .certification-item { flex-direction: column; text-align: center; gap: 1rem; }
    .cert-badge { margin: 0 auto; }
}

@media (max-width: 600px) {
    html { font-size: 15px; }
    
    .mobile-menu-btn {
        top: 0.75rem !important;
        right: 0.75rem !important;
        width: 52px !important;
        height: 52px !important;
    }
    
    .nav-menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .nav-btn {
        padding: 0.6rem 0.3rem;
        font-size: 0.7rem;
    }
    
    .nav-btn .nav-icon {
        font-size: 1rem;
    }
    
    .nav-btn .nav-text {
        font-size: 0.6rem;
    }
    
    .brand-section {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .logo {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .identity h1 {
        font-size: 1rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    .hero-container { gap: 1.5rem; }
    .hero-image { margin-left: 0; }
    .skills-tags { gap: .4rem; }
    .skill-tag { font-size: 0.6rem; padding: .25rem .5rem; }
    .projects-timeline::before, .project-item::before, .project-item .project-timeline-dot, .experience-timeline-dot { display: none; }
    .project-card, .experience-card { box-shadow: 0 2px 10px rgba(0,0,0,.4); }
    .project-meta { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .music-player { width: calc(100% - 2rem); left: 1rem; right: 1rem; }
    body { overflow-x: hidden; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    
    .sidebar {
        padding: 1rem 0.75rem;
    }
    
    .nav-menu {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    
    .nav-btn {
        padding: 0.5rem 0.3rem;
        font-size: 0.65rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
    
    .nav-btn .nav-icon {
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .nav-btn .nav-text {
        font-size: 0.65rem;
        flex: 1;
    }
    
    .hero-container {
        gap: 1rem;
    }
    
    .hero-basic-info .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-basic-info .hero-subtitle {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    
    .profile-photo {
        width: 140px;
        height: 180px;
    }
    
    .image-placeholder {
        width: 140px;
        height: 180px;
        gap: 0.5rem;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
    }
    
    .avatar-initial {
        font-size: 2rem;
    }
    
    .image-icon {
        font-size: 3rem;
    }
    
    .summary-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        grid-template-columns: 1fr;
    }
    
    .brand-section {
        margin-bottom: 1.5rem;
        padding: 1rem 0.5rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 1.2rem;
    }
    
    .attribute-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .attribute-item h3 {
        font-size: 0.9rem;
    }
    
    .key-attributes {
        margin-bottom: 1.5rem;
    }
    
    .project-item {
        padding: 1rem;
    }
    
    .project-status {
        position: static;
        display: inline-block;
        margin-top: 0.5rem;
    }
    
    .awards-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .award-item,
    .certification-item {
        padding: 1rem;
    }
    
    /* Enhanced mobile music player */
    .music-player { 
        font-size: 0.8rem; 
        bottom: 0.5rem; 
        right: 0.5rem;
        width: calc(100% - 1rem) !important;
        left: 0.5rem;
    }
    .mp-title { font-size: 0.75rem; }
    .mp-btn { width: 32px; height: 32px; font-size: 0.8rem; }
    .mp-volume { width: 50px; }
    .mp-select { font-size: 0.6rem; padding: 0.3rem 0.4rem; }
    
    /* Tighter spacing */
    .content-section { padding: 0.75rem; }
    .sidebar { padding: 1rem 0.5rem; }
    .nav-btn { padding: 0.5rem 0.3rem; font-size: 0.65rem; }
    .skills-tags { gap: 0.25rem; }
    .skill-tag { font-size: 0.5rem; padding: 0.15rem 0.35rem; }
    
    .cert-badge {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e50914, #b81d24);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff0a16, #e50914);
}

/* =============================================================
     AMBIENT ALWAYS-ON ANIMATIONS (no interaction required)
     Performance-friendly (transform/opacity), randomized delays.
     Respects prefers-reduced-motion.
     ============================================================= */

/* Animated background wash */
.content-area::before {
    content:""; position:fixed; inset:0 0 0 280px; pointer-events:none; z-index:-1;
    background:radial-gradient(circle at 20% 30%, rgba(var(--accent-rgb)/.10), transparent 55%),
                         radial-gradient(circle at 80% 70%, rgba(var(--accent-rgb)/.08), transparent 60%);
    animation: bgShift 22s linear infinite;
    mix-blend-mode:screen;
}
@keyframes bgShift { 0% { transform:translate3d(0,0,0) scale(1); filter:hue-rotate(0deg); } 50% { transform:translate3d(0,-25px,0) scale(1.05); filter:hue-rotate(25deg);} 100% { transform:translate3d(0,0,0) scale(1); filter:hue-rotate(0deg);} }

/* Card gentle drift */
.experience-card, .project-card, .award-item, .certification-item, .volunteer-item {
    animation: cardDrift 9s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * -0.8s);
}
@keyframes cardDrift { 0%,100% { transform: translateY(0) translateZ(0); } 25% { transform: translateY(-4px) translateZ(0); } 50% { transform: translateY(2px) translateZ(0); } 75% { transform: translateY(-2px) translateZ(0); } }

/* Timeline dots already pulse; add subtle rotate glow */
.experience-timeline-dot::after, .project-timeline-dot::after {
    content:""; position:absolute; inset:-6px; border-radius:50%;
    background:conic-gradient(from 0deg, rgba(var(--accent-rgb)/.65), transparent 55%);
    animation: spinAura 6.5s linear infinite;
    filter:blur(4px) brightness(1.2);
    opacity:.35;
}
@keyframes spinAura { to { transform: rotate(360deg); } }

/* Skill tag pulsing hue */
.skills-tags .skill-tag { animation: tagHue 11s ease-in-out infinite; }
@keyframes tagHue { 0%,100% { filter:hue-rotate(0deg) brightness(1); } 50% { filter:hue-rotate(30deg) brightness(1.15);} }

/* Active nav button breathing */
.nav-btn.active { animation: activeBreath 7s ease-in-out infinite; }
@keyframes activeBreath { 0%,100% { filter:brightness(1); } 50% { filter:brightness(1.25); } }

/* Music player pulse ring when playing (will be toggled via class) */
.music-player.playing .mp-toggle { animation: mpGlow 5.5s ease-in-out infinite; }
@keyframes mpGlow { 0%,100% { box-shadow: var(--shadow-glow); } 50% { box-shadow:0 0 0 1px rgba(var(--accent-rgb)/.7), 0 0 24px -2px rgba(var(--accent-rgb)/.9);} }

/* Random index assignment (JS optional; fallback uses nth-child) */
.experience-card:nth-of-type(odd), .project-card:nth-of-type(odd), .award-item:nth-of-type(odd), .certification-item:nth-of-type(odd), .volunteer-item:nth-of-type(odd) { --card-index: 1; }
.experience-card:nth-of-type(3n), .project-card:nth-of-type(3n), .award-item:nth-of-type(3n), .certification-item:nth-of-type(3n), .volunteer-item:nth-of-type(3n) { --card-index: 2; }
.experience-card:nth-of-type(4n), .project-card:nth-of-type(4n), .award-item:nth-of-type(4n), .certification-item:nth-of-type(4n), .volunteer-item:nth-of-type(4n) { --card-index: 3; }

/* Reduced motion: disable ambient animations */
@media (prefers-reduced-motion: reduce) {
    .content-area::before, .experience-card, .project-card, .award-item, .certification-item, .volunteer-item,
    .experience-timeline-dot::after, .project-timeline-dot::after, .skills-tags .skill-tag, .nav-btn.active { animation: none !important; }
}

/* Extra Small Screens */
@media (max-width: 375px) {
    html { font-size: 13px; }
    
    .sidebar { 
        width: 100%; 
        padding: 0.75rem 0.5rem; 
    }
    
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-btn { 
        padding: 0.4rem 0.2rem; 
        font-size: 0.6rem; 
    }
    
    .nav-btn .nav-text {
        font-size: 0.6rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .identity h1 {
        font-size: 0.9rem;
    }
    
    .subtitle {
        font-size: 0.7rem;
    }
    .hero-basic-info .hero-title { font-size: 1.1rem; }
    .hero-basic-info .hero-subtitle { font-size: 0.65rem; }
    .profile-photo { width: 120px; height: 160px; }
    .image-placeholder { width: 120px; height: 160px; }
    .nav-btn { padding: 0.4rem 0.2rem; font-size: 0.6rem; }
    .section-header h2 { font-size: 1.4rem; }
    .attribute-item h3 { font-size: 0.8rem; }
    .mp-btn { width: 28px; height: 28px; font-size: 0.7rem; }
    .content-section { padding: 0.5rem; }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar { 
        position: fixed;
        top: 0;
        left: 0;
        width: 200px;
        height: 100vh;
        padding: 1rem 0.75rem;
        overflow-y: auto;
    }
    
    .sidebar::before {
        width: 4px;
        height: 100%;
        top: 0;
        bottom: auto;
        left: 0;
        background: linear-gradient(180deg,#e50914,#7a0716 60%,#e50914);
    }
    
    .content-area { 
        margin-left: 200px; 
    }
    
    .nav-menu {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    
    .nav-btn {
        padding: 0.4rem 0.5rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.4rem;
        font-size: 0.7rem;
    }
    
    .nav-btn .nav-icon {
        font-size: 0.9rem;
    }
    
    .nav-btn .nav-text {
        font-size: 0.65rem;
    }
    
    .brand-section {
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .identity h1 {
        font-size: 0.85rem;
    }
    
    .subtitle {
        font-size: 0.65rem;
    }
}

/* High Resolution Displays */
@media (min-width: 1440px) {
    .content-section { padding: 3rem 4rem; }
    .sidebar { width: 320px; }
    .content-area { margin-left: 320px; }
    .hero-container { gap: 4rem; }
    .profile-photo { width: 280px; height: 340px; }
}

/* =============================================================
   ENHANCED DESIGN LAYER (Structure preserved)
   Adds theme variables, glass effects, refined animations.
   ============================================================= */
:root {
    --accent: #e50914;
    --accent-rgb: 229 9 20;
    --bg-deep: #050507;
    --bg-panel: #111115;
    --bg-panel-alt: #18181d;
    --text: #ffffff;
    --text-dim: #b5b8c3;
    --grad-accent: linear-gradient(135deg,#ff3344,#e50914 55%,#7a0716);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --ease-soft: cubic-bezier(.16,.84,.44,1);
    --ease-bounce: cubic-bezier(.34,1.56,.64,1);
    --shadow-elevate: 0 4px 24px -6px rgba(0 0 0 / 0.65), 0 0 0 1px rgba(255 255 255 / 0.05);
    --shadow-glow: 0 0 0 1px rgba(var(--accent-rgb) / .55), 0 0 14px -2px rgba(var(--accent-rgb) / .6);
}

/* Mobile Menu Button & Overlay (hidden by default) */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    background: linear-gradient(135deg, #e50914, #b81d24);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 56px;
    height: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #000 0%, #111 100%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e50914, #b81d24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.mobile-identity h2 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.mobile-identity p {
    font-size: 0.8rem;
    color: #aaa;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.mobile-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s ease;
}

.mobile-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(229, 9, 20, 0.5);
    transform: translateX(5px);
}

.mobile-nav-btn.active {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.1));
    border-color: #e50914;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.2);
}

.mobile-nav-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mobile-nav-text {
    flex: 1;
    font-weight: 600;
}

/* Project filters */
.project-filters { margin-top:2rem; display:flex; flex-wrap:wrap; gap:.6rem; }
.project-filters button { background:linear-gradient(140deg,rgba(255 255 255 / .12),rgba(255 255 255 / .04)); border:1px solid rgba(255 255 255 / .22); color:#fff; padding:.45rem .9rem; font-size:.65rem; letter-spacing:1px; text-transform:uppercase; font-weight:600; border-radius:22px; cursor:pointer; position:relative; overflow:hidden; transition:background .5s var(--ease-soft), transform .35s var(--ease-soft), border-color .45s var(--ease-soft); }
.project-filters button::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(var(--accent-rgb)/.6),rgba(var(--accent-rgb)/0)); opacity:0; transition:opacity .5s; }
.project-filters button:hover { transform:translateY(-3px); border-color:rgba(var(--accent-rgb)/.75); }
.project-filters button.active { background:linear-gradient(130deg,#ff3344,#e50914 60%,#7a0716); color:#fff; box-shadow:var(--shadow-glow); }
.project-filters button.active::after { opacity:.35; }

/* Expandable project cards */
.project-card { cursor:pointer; }
.project-card.collapsed .project-description { max-height:0; opacity:0; margin-bottom:0; }
.project-card .project-description { max-height:800px; overflow:hidden; transition:max-height .7s var(--ease-soft), opacity .55s var(--ease-soft), margin .5s var(--ease-soft); }
.project-card .expand-indicator { font-size:.65rem; letter-spacing:1.5px; background:rgba(255 255 255 / .14); border:1px solid rgba(255 255 255 / .25); padding:.3rem .55rem; border-radius:6px; font-weight:600; text-transform:uppercase; display:inline-flex; align-items:center; gap:.35rem; }
.project-card .expand-indicator { display:none !important; }
.project-card.collapsed .expand-indicator .state-more { display:inline; }
.project-card.collapsed .expand-indicator .state-less { display:none; }
.project-card:not(.collapsed) .expand-indicator .state-more { display:none; }
.project-card:not(.collapsed) .expand-indicator .state-less { display:inline; }

/* Audio visualizer */
.mp-visualizer { display:flex; gap:3px; height:22px; align-items:flex-end; margin-top:.25rem; }
.mp-visualizer span { width:4px; background:linear-gradient(180deg,#ff3344,#e50914); border-radius:3px; height:6px; opacity:.8; animation: vizIdle 1.8s ease-in-out infinite; animation-delay: calc(var(--i)*.12s); }
@keyframes vizIdle { 0%,100% { transform:scaleY(.35);} 50% { transform:scaleY(1);} }
.music-reactive .mp-visualizer span { animation: vizBeat .6s ease-in-out infinite; }
@keyframes vizBeat { 0%,100% { transform:scaleY(.2);} 40% { transform:scaleY(1); } 60% { transform:scaleY(.55);} }


body {
    background: radial-gradient(circle at 20% 18%, #16161c, #050507 70%) fixed;
}

html, body, .content-area, .sidebar {
    font-family: 'Sora', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
    font-feature-settings: "ss01" 1, "ss02" 1;
    text-rendering: optimizeLegibility;
}

/* Krona One for display elements */
h1, h2, h3, .page-title, .hero-title, .nav-btn .nav-text, .brand-section .identity h1 {
    font-family: 'Krona One', 'Sora', system-ui, sans-serif;
    letter-spacing: .5px;
}

.hero-title { letter-spacing: 2px; }
.nav-btn .nav-text { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.8px; }
.sidebar.collapsed .nav-btn .nav-text { display:none; }

/* Slight weight simulation since Krona One has single weight */
.page-title, .hero-title { font-weight: 400; }

.sidebar {
    background: linear-gradient(180deg, rgba(255 255 255 / .05), rgba(255 255 255 / 0));
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-right: 1px solid rgba(255 255 255 / .06);
}

.nav-menu .nav-btn {
    background: linear-gradient(95deg, rgba(255 255 255 / .04), rgba(255 255 255 / .015));
    border: 1px solid rgba(255 255 255 / .06);
    position: relative;
    overflow: hidden;
    transition: border-color .25s var(--ease-soft), background .4s var(--ease-soft), transform .2s var(--ease-soft);
}

.nav-menu .nav-btn::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(var(--accent-rgb) / .3), transparent 70%);
    opacity: 0; transition: opacity .5s var(--ease-soft);
}

.nav-menu .nav-btn:hover { border-color: rgba(var(--accent-rgb) / .6); }
.nav-menu .nav-btn:hover::before { opacity: 1; }
.nav-menu .nav-btn:active { transform: scale(.95); }

.nav-menu .nav-btn.active {
    border-color: rgba(var(--accent-rgb) / .85);
    box-shadow: var(--shadow-glow);
}

.nav-menu .nav-btn.active::after {
    content: ""; position: absolute; left: -6px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 46%; border-radius: 4px;
    background: linear-gradient(180deg,#ff3344,#e50914 60%,#880812);
    animation: growBar .6s var(--ease-soft);
}

@keyframes growBar { from { height: 0; opacity: 0; } to { height: 46%; opacity: 1; } }

/* Card refinement */
.experience-card, .project-card, .award-item, .certification-item, .volunteer-item {
    background: linear-gradient(145deg, rgba(255 255 255 / .07), rgba(255 255 255 / .02) 60%, rgba(255 255 255 / 0));
    border: 1px solid rgba(255 255 255 / .09);
    box-shadow: 0 2px 10px -4px rgba(0 0 0 / .7);
    transition: box-shadow .45s var(--ease-soft), transform .5s var(--ease-bounce), border-color .4s var(--ease-soft);
}

.experience-card:hover, .project-card:hover, .award-item:hover, .certification-item:hover, .volunteer-item:hover {
    border-color: rgba(var(--accent-rgb) / .75);
    box-shadow: var(--shadow-elevate), var(--shadow-glow);
    transform: translateY(-6px);
}

/* Timeline dots */
.experience-timeline-dot, .project-timeline-dot {
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb) / .25), 0 0 0 1px rgba(var(--accent-rgb) / .6), 0 0 12px -2px rgba(var(--accent-rgb) / .75);
    animation: pulseDot 3.8s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { scale:1; } 50% { scale:1.18; } }

/* Titles gradient */
.page-title, .hero-title { background: linear-gradient(92deg,#fff,#ffb3c0 35%,#e50914 70%,#ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Skill tags */
.skills-tags .skill-tag {
    background: linear-gradient(140deg, rgba(255 255 255 / .14), rgba(255 255 255 / .04));
    border: 1px solid rgba(255 255 255 / .2);
    position: relative; overflow: hidden;
    transition: border-color .35s var(--ease-soft), background .6s var(--ease-soft), transform .35s var(--ease-soft);
}
.skills-tags .skill-tag::after {
    content:""; position:absolute; inset:0; background:linear-gradient(120deg,rgba(var(--accent-rgb)/.55),transparent 65%); opacity:0; transition:opacity .5s var(--ease-soft);
}
.skills-tags .skill-tag:hover { border-color: rgba(var(--accent-rgb)/.7); transform: translateY(-3px); }
.skills-tags .skill-tag:hover::after { opacity: 1; }

/* Floating subtle animation for hero image and timeline groups */
.hero-image, .timeline-group, .projects-timeline, .volunteering-list { animation: floatSoft 16s ease-in-out infinite; }
@keyframes floatSoft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Shimmer accent for active nav */
.nav-menu .nav-btn.active { background-image: linear-gradient(115deg, rgba(var(--accent-rgb)/.35), rgba(var(--accent-rgb)/.08) 40%, rgba(var(--accent-rgb)/.35)); background-size: 180% 180%; animation: activeSheen 6s linear infinite; }
@keyframes activeSheen { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Gradient edge highlight for cards */
.experience-card::before, .project-card::before, .award-item::before, .certification-item::before, .volunteer-item::before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(140deg, rgba(var(--accent-rgb)/.25), transparent 55%, rgba(var(--accent-rgb)/.25)); opacity:0; transition:opacity .6s var(--ease-soft); mix-blend-mode:overlay; border-radius:inherit; }
.experience-card:hover::before, .project-card:hover::before, .award-item:hover::before, .certification-item:hover::before, .volunteer-item:hover::before { opacity:1; }

/* Parallax tilt effect (JS will add class .tilt-active on hover) */
.tilt-active { transition: transform .15s linear; will-change: transform; }

/* Entrance stagger for auto-reveal refine */
[data-auto-reveal] { will-change: transform, opacity; }

/* Animated accent borders */
.award-position, .cert-position { position:relative; overflow:hidden; }
.award-position::after, .cert-position::after { content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; background:linear-gradient(120deg,#ff3344,#e50914,#ff3344); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: borderRotate 4.5s linear infinite; }
@keyframes borderRotate { to { transform: rotate(360deg); } }

/* Focus ring enhancement */
:focus-visible { outline: 2px solid rgba(var(--accent-rgb)/.9); outline-offset:3px; border-radius:6px; }

/* Pulsing underline on page title initial load */
.page-header .page-title { position:relative; }
.page-header .page-title::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:4px; background:linear-gradient(90deg,#ff3344,#e50914); border-radius:4px; animation: loadUnderline 1.2s .25s var(--ease-soft) forwards; }
@keyframes loadUnderline { to { width:100%; } }

/* Tag pop entrance */
.skills-tags .skill-tag { transform-origin: center; animation: tagPop .7s var(--ease-bounce) backwards; }
.skills-tags .skill-tag:nth-child(n) { animation-delay: calc(.03s * var(--i, 1)); }
@keyframes tagPop { 0% { transform: scale(.6); opacity:0; } 60% { transform: scale(1.08); opacity:1; } 100% { transform: scale(1); } }

/* Subtle glow loop for hero title */
.hero-title { animation: heroGlow 9s ease-in-out infinite; }
@keyframes heroGlow { 0%,100% { text-shadow:0 0 10px rgba(var(--accent-rgb)/.28); } 50% { text-shadow:0 0 22px rgba(var(--accent-rgb)/.6); } }

/* Multi-layer depth for content sections */
.content-section { position:relative; }
.content-section::after { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb)/.08), transparent 60%); opacity:.4; mix-blend-mode:screen; }

/* ================= Music Player ================= */
.music-player {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 999;
    font-family: 'Sora', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
}

.music-player .mp-toggle {
    background: var(--grad-accent);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .35s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.music-player .mp-toggle:hover { transform: scale(1.07); }
.music-player .mp-toggle:active { transform: scale(.92); }

.music-player .mp-body {
    width: 300px;
    max-width: 85vw;
    background: linear-gradient(145deg, rgba(255 255 255 / .1), rgba(255 255 255 / .04));
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255 255 255 / .12);
    border-radius: 16px;
    box-shadow: 0 6px 28px -8px rgba(0 0 0 / .7), var(--shadow-glow);
    padding: .9rem 1rem 1rem;
    display: grid;
    gap: .75rem;
    transform-origin: 100% 100%;
    animation: mpIn .55s var(--ease-bounce);
}
@keyframes mpIn { 0% { opacity:0; transform: translateY(18px) scale(.85); } 100% { opacity:1; transform: translateY(0) scale(1); } }

.music-player.collapsed .mp-body { display: none; }

.mp-header { display:flex; justify-content: space-between; align-items:center; }
.mp-title { font-size:.9rem; font-weight:600; color:#fff; letter-spacing:.5px; }
.mp-close { background: none; border:none; color:#fff; font-size:1.1rem; cursor:pointer; line-height:1; padding:.25rem .4rem; border-radius:8px; }
.mp-close:hover { background: rgba(255 255 255 / .12); }

.mp-controls { display:flex; align-items:center; gap:.65rem; flex-wrap:wrap; }
.mp-select { background: rgba(255 255 255 / .08); border:1px solid rgba(255 255 255 / .2); color:#fff; border-radius:10px; padding:.4rem .6rem; font-size:.65rem; letter-spacing:.5px; cursor:pointer; }
.mp-select option { background:#111; color:#fff; }
.mp-select:focus { outline:2px solid #e50914; outline-offset:2px; }
.mp-btn { background: rgba(255 255 255 / .15); border:1px solid rgba(255 255 255 / .25); color:#fff; width:42px; height:42px; border-radius:12px; cursor:pointer; font-size:.95rem; font-weight:600; display:flex; align-items:center; justify-content:center; transition: background .35s var(--ease-soft), transform .3s var(--ease-soft); }
.mp-btn:hover { background: rgba(255 255 255 / .22); }
.mp-btn:active { transform: scale(.9); }

.mp-progress { position:relative; flex:1; height:10px; background:rgba(255 255 255 / .12); border-radius:6px; cursor:pointer; overflow:hidden; }
.mp-progress-bar { position:absolute; inset:0 100% 0 0; background:var(--grad-accent); transition: width .25s linear; width:0; }

.mp-volume { width:80px; accent-color: var(--accent); cursor:pointer; }
.mp-volume::-webkit-slider-thumb { width:14px; height:14px; border-radius:50%; background: #fff; box-shadow:0 0 0 2px #fff, 0 0 0 5px rgba(var(--accent-rgb)/.7); }

.mp-status { font-size:.65rem; letter-spacing:1px; color: var(--text-dim); text-transform:uppercase; }
.mp-footer { display:flex; justify-content:space-between; align-items:center; }

@media (max-width:560px) {
  .music-player { right:.75rem; bottom:.75rem; }
  .music-player .mp-body { width:250px; padding:.75rem .85rem .85rem; }
  .music-player .mp-toggle { width:40px; height:40px; }
  .mp-btn { width:38px; height:38px; }
  .mp-volume { width:60px; }
}


/* Section header underline */
.section-header h2 { position: relative; display:inline-block; padding-bottom:.4rem; }
.section-header h2::after { content:""; position:absolute; left:0; bottom:0; width:100%; height:3px; background:linear-gradient(90deg,#ff3344,#e50914,#7a0814); border-radius:3px; animation: underlineGrow .8s var(--ease-soft); }
@keyframes underlineGrow { from { width:0; } to { width:100%; } }

/* Auto reveal (JS will add data-auto-reveal) */
[data-auto-reveal] { opacity:0; transform: translateY(24px); will-change: opacity, transform; }
[data-auto-reveal].revealed { opacity:1; transform:translateY(0); transition: opacity .55s var(--ease-soft) var(--reveal-delay,0ms), transform .55s var(--ease-soft) var(--reveal-delay,0ms); }

@media (max-width: 640px), (pointer: coarse) {
    .hero-image, .timeline-group, .projects-timeline, .volunteering-list { animation: none; }
    .tilt-active { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image, .timeline-group, .projects-timeline, .volunteering-list, .hero-title { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    [data-auto-reveal], [data-auto-reveal].revealed { transition: none !important; animation: none !important; }
}

/* Typography polish */
.experience-description, .project-description, .award-description, .volunteer-description, .cert-description, .summary-section p {
    line-height: 1.58; color: var(--text-dim);
}

