/* Custom Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: #030304; /* Prevents white background on mobile pull-down overscroll */
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #030304;
    --bg-card: rgba(255, 255, 255, 0.04);
    --text-primary: #e5f0ff;
    --text-secondary: #8ea4c2;
    --color-accent: #ff7a2f;
    --color-status: #38bdf8;
    --border-color: rgba(255, 255, 255, 0.14);
    --border-color-light: rgba(255, 255, 255, 0.08);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
}

/* Custom Scrollbar (Sidescroll) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    border: 2px solid var(--bg-dark); /* Padding border effect */
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Firefox scrollbar support */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    background: linear-gradient(180deg, #030304 0%, #030405 6.8%, #05070b 52%, #0c0602 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Portfolio Shell Container */
.portfolio-shell {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

/* Top Navigation Bar */
.top-navigation {
    width: 100%;
    max-width: 1120px;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s cubic-bezier(0.44, 0, 0.56, 1);
}

.nav-link:hover {
    color: var(--color-accent);
}

/* Content Wrapper */
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px; /* Sections handle their own top/bottom paddings */
}

/* Opening / Hero Card */
.opening-card {
    width: 100%;
    max-width: 1120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 122, 47, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    padding: 48px 40px 72px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.opening-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 36px;
    align-items: start;
}

/* Left Column: Intro Copy */
.intro-copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
}

.availability-pill {
    background-color: rgba(56, 189, 248, 0.09);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 999px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-status);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px var(--color-status);
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 4px var(--color-status);
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 12px var(--color-status);
    }
}

.status-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-status);
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    line-height: 0.98em;
    letter-spacing: -0.045em;
    background-image: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(245, 214, 194) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-wrap: balance;
}

.hero-summary {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
}

.action-buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* Button Base Styles */
.btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 999px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-arrow {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-primary {
    background-color: rgba(11, 34, 48, 0.95);
    color: var(--text-primary);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
    background-color: rgba(11, 34, 48, 1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.55);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
}

/* Right Column: Profile Snapshot */
.profile-snapshot {
    background: linear-gradient(145deg, #120b07eb 0%, #0a0a0df5 55%, rgba(255, 122, 47, 0.16) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: 0 22px 54px rgba(255, 122, 47, 0.1);
}

.profile-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar-box {
    width: 165px;
    height: 183px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    border: 1px solid #222;
    flex-shrink: 0;
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-identity h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-primary);
}

.profile-identity p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Portrait Stage */
.portrait-stage {
    width: 100%;
    height: 330px;
    background: radial-gradient(50% 50% at 50% 82%, rgba(255, 190, 61, 0.3) 0%, rgba(255, 122, 47, 0.12) 24%, rgba(0,0,0,0) 56%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0px;
    overflow: visible; /* To allow floating cards to overlap slightly if needed */
}

.pixel-portrait {
    width: 236px;
    height: 310px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    mask-image: radial-gradient(50% 50% at 50% 52%, #000 0% 48%, rgba(0,0,0,0.65) 66%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: radial-gradient(50% 50% at 50% 52%, #000 0% 48%, rgba(0,0,0,0.65) 66%, rgba(0,0,0,0) 100%);
}

.pixel-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Interface Card */
.floating-card-left {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0.92;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    width: 156px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 46%;
    left: -20px; /* Pulled slightly outwards to replicate original Framer overlap */
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    animation: float-left 6s ease-in-out infinite;
}

@keyframes float-left {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-53%) translateX(2px);
    }
}

.card-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #ffffff;
    text-transform: uppercase;
}

.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 22px;
}

.bar {
    width: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
}

.bar-1 { height: 6px; background-color: var(--color-accent); }
.bar-2 { height: 12px; background-color: var(--color-accent); }
.bar-3 { height: 18px; background-color: var(--color-accent); }
.bar-4 { height: 22px; background-color: var(--color-accent); }

/* Floating Discovery Card */
.floating-card-bottom {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0.92;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    width: 190px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: 12px;
    right: -25px; /* Overlap right edge */
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    animation: float-right 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes float-right {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-4px) translateX(-2px);
    }
}

.reference-thumbnail {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.reference-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-copy h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
    color: #ffffff;
}

.mini-copy p {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

/* Portrait Caption */
.portrait-caption {
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 12;
}

.caption-sparkle {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
}

.portrait-caption span {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
    width: 100%;
}

.contact-card-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Section Headings */
.section-heading {
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

/* Card Component Base */
.card {
    background: linear-gradient(145deg, #0c0c0f 0%, #140b06 100%);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.card-eyebrow-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-title-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    margin-top: 4px;
}

.meta-group p {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
}

.card-description p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* Summary and Expertise Section */
.summary-expertise-section {
    width: 100%;
    max-width: 1120px;
    padding: 72px 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.technical-expertise-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-group h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.chip:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Experience Section */
.experience-section {
    width: 100%;
    max-width: 1120px;
    padding: 72px 0;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.experience-card {
    gap: 14px;
}

/* Education and Languages Section */
.education-languages-section {
    width: 100%;
    max-width: 1120px;
    padding: 72px 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.education-card {
    height: 100%;
}

/* Bottom Contact Card */
.bottom-contact-card {
    width: 100%;
    max-width: 1120px;
    background: linear-gradient(180deg, rgba(255, 122, 47, 0.1) 0%, #060608 100%);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    text-align: center;
}

.contact-card-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    max-width: 600px;
}

.contact-card-description {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.btn-large svg {
    width: 16px;
    height: 16px;
}

/* Footer Section */
.footer-bar {
    width: 100%;
    max-width: 1120px;
    padding: 28px 0 40px;
    border-top: 1px solid var(--border-color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text p {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.profile-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-link {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.2s ease;
}

.social-link svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.social-link:hover {
    color: var(--color-accent);
}

/* Scroll Reveal Classes (Micro-Animations) */
.reveal-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-description ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
}

.card-description li {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.card-description li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Profile Card specific spacing & font sizes to balance height of the core stack card */
.profile-card {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.profile-card .card-eyebrow-text {
    font-size: 14px;
    letter-spacing: 0.08em;
}

.profile-card .meta-group p {
    font-size: 15px;
}

.profile-card .card-title-text {
    font-size: 44px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-top: 12px;
}

.profile-card .card-description p {
    font-size: 24px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Floating Spotify-like Player Popup */
.spotify-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    background: linear-gradient(145deg, rgba(12, 12, 15, 0.92) 0%, rgba(20, 11, 6, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 122, 47, 0.05);
    z-index: 999;
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
                visibility 0.8s;
    font-family: var(--font-body);
}

.spotify-player.player-hidden {
    opacity: 0;
    transform: translateY(120px) scale(0.8);
    visibility: hidden;
    pointer-events: none;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.player-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    flex: 1;
    margin-right: 12px;
}

.player-header-sub-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 6px, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6px, #000 95%, transparent);
}

.player-header-sub {
    display: inline-block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    animation: header-scroll 16s linear infinite;
    padding-left: 100%;
    font-weight: 500;
}

@keyframes header-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.player-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    text-transform: uppercase;
}

.player-icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.player-icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.player-icon-btn:hover {
    color: var(--text-primary);
}

.player-icon-btn:active {
    transform: scale(0.9);
}

.player-video-container {
    width: 100%;
    height: 158px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background-color: #000;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.player-video-container:hover .video-overlay {
    opacity: 1;
}

.overlay-play-icon {
    font-size: 32px;
    color: #fff;
}

.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.player-text {
    flex: 1;
    overflow: hidden;
}

.player-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.player-artist {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: 2px;
}

.like-btn.liked {
    color: var(--color-accent);
    animation: heart-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Progress bar styling */
.player-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.player-time {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 28px;
    font-family: monospace;
}

.player-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.player-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

.player-progress-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.player-progress-bar:hover .player-progress-handle {
    opacity: 1;
}

.player-progress-bar:hover {
    height: 5px;
}

/* Control buttons */
.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.ctrl-btn {
    opacity: 0.7;
}

.ctrl-btn:hover {
    opacity: 1;
}

.ctrl-btn.active-toggle.repeat-active,
.ctrl-btn.active-toggle.shuffle-active {
    color: var(--color-accent);
    opacity: 1;
}

.player-play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--text-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0c0c0f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, color 0.2s ease;
}

.player-play-btn:hover {
    transform: scale(1.08);
    background-color: var(--color-accent);
    color: #fff;
}

.player-play-btn:active {
    transform: scale(0.95);
}

.player-play-btn svg {
    display: block;
}

/* Volume bar styling */
.player-volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.player-volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.player-volume-fill {
    height: 100%;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
}

/* Minimized Floating Music Badge */
.player-minimized-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(12, 12, 15, 0.9) 0%, rgba(20, 11, 6, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 122, 47, 0.25);
    z-index: 999;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.5s;
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.player-minimized-badge.player-hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    visibility: hidden;
    pointer-events: none;
}

.player-minimized-badge:hover {
    transform: scale(1.1);
    color: #fff;
    border-color: var(--color-accent);
}

.player-minimized-badge:active {
    transform: scale(0.95);
}

.badge-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    opacity: 0;
    pointer-events: none;
    animation: badge-pulse 2s infinite ease-out;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Helper utility class */
.hidden {
    display: none !important;
}

/* Carousel Header and Navigation Buttons */
.carousel-header-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.carousel-nav-buttons {
    display: none; /* Hidden on desktop */
    gap: 8px;
}

.carousel-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    color: var(--text-primary);
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .carousel-nav-buttons {
        display: flex !important; /* Visible on mobile/tablet */
    }
}

/* Media Queries for full mobile & tablet responsiveness */
@media (max-width: 1024px) {
    .opening-grid {
        grid-template-columns: 1fr !important;
        gap: 36px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    .education-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .education-grid {
        display: flex !important;
        overflow-x: auto !important;
        width: calc(100% + 24px) !important;
        max-width: calc(100% + 24px) !important;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 10px 4px 20px 4px;
        margin: 0 -12px;
        padding-left: 16px;
        padding-right: 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .education-grid::-webkit-scrollbar {
        display: none;
    }
    
    .education-card {
        flex: 0 0 72% !important;
        scroll-snap-align: center;
        height: auto;
    }
    
    .education-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .education-card .meta-group p {
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .portfolio-shell {
        padding: 20px 12px;
        gap: 24px;
    }
    
    .opening-card {
        padding: 24px 16px 36px;
        border-radius: 24px;
        gap: 20px;
    }
    
    .hero-headline {
        font-size: 38px;
        line-height: 1.05;
        letter-spacing: -0.03em;
    }
    
    .hero-summary {
        font-size: 14px;
    }
    
    .action-buttons {
        gap: 8px;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .profile-snapshot {
        padding: 16px;
        border-radius: 20px;
        gap: 16px;
    }
    
    .avatar-box {
        width: 120px;
        height: 133px;
        border-radius: 16px;
    }
    
    .profile-identity h3 {
        font-size: 18px;
    }
    
    .portrait-stage {
        height: 260px;
        border-radius: 16px;
    }
    
    .pixel-portrait {
        width: 180px;
        height: 240px;
    }
    
    .floating-card-left {
        left: 0px;
        width: 130px;
        padding: 8px;
    }
    
    .floating-card-bottom {
        right: 0px;
        width: 160px;
        padding: 8px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .summary-expertise-section,
    .experience-section,
    .education-languages-section {
        padding: 36px 0;
    }
    
    .card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .profile-card {
        padding: 24px 16px;
        gap: 20px;
    }
    
    .profile-card .card-title-text {
        font-size: 26px;
    }
    
    .profile-card .card-description p {
        font-size: 16px;
    }
    
    .bottom-contact-card {
        padding: 24px 16px;
        border-radius: 24px;
        gap: 16px;
    }
    
    .contact-card-title {
        font-size: 24px;
    }
    
    .contact-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-actions .btn {
        width: 100%;
    }
    
    .footer-bar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 0 30px;
    }

    /* Spotify Player Mobile Styles */
    .spotify-player {
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: 100%;
        padding: 14px;
        gap: 12px;
    }
    
    .player-video-container {
        height: 140px;
    }
    
    .player-minimized-badge {
        bottom: 12px;
        right: 12px;
    }
}
