/* ============================================
   PREMIUM SAAS PORTFOLIO - LINEAR STYLE
   Dark Futuristic UI with Purple/Cyan Accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Premium Dark Theme */
:root {
    --bg-primary: #0B0B0F;
    --bg-secondary: #111118;
    --bg-tertiary: #16161D;
    --bg-card: #1A1A24;
    
    --purple-primary: #8B5CF6;
    --purple-bright: #A78BFA;
    --blue-cyber: #3B82F6;
    --cyan-accent: #06B6D4;
    
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    --gradient-cyber: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    --gradient-premium: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #06B6D4 100%);
    
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-muted: #6B7280;
    
    --border-subtle: rgba(139, 92, 246, 0.1);
    --border-medium: rgba(139, 92, 246, 0.2);
    --border-bright: rgba(139, 92, 246, 0.4);
    
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
    --glow-strong: 0 0 40px rgba(139, 92, 246, 0.5);
    
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Selection */
::selection {
    background: var(--purple-primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-bright);
}

/* Background Effects */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    opacity: 0.25;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
}

/* Premium Glow Effect */
.premium-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.glow-1 {
    top: -200px;
    left: -200px;
}

.glow-2 {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-30px, 30px); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 11, 15, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.2s var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-premium);
    transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    margin-bottom: 4rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--purple-bright);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--purple-primary);
    border-radius: 50%;
    box-shadow: var(--glow-purple);
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.1s;
}

.title-line:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    min-height: 1.5rem;
    font-weight: 400;
}

.typed-text {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor-blink {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--purple-primary);
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-purple);
    border: 1px solid transparent;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    backdrop-filter: blur(10px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--border-bright);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 2rem 3rem;
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--border-medium), transparent);
}

/* Sections */
section {
    position: relative;
    padding: 6rem 3rem;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--purple-bright);
    margin-bottom: 1rem;
}

.section-tag::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--purple-primary);
    border-radius: 50%;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

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

.about-text {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.lead-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.description-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.description-text strong {
    color: var(--purple-bright);
    font-weight: 600;
}

/* Cards */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-premium);
    transform: scaleX(0);
    transition: transform 0.3s var(--transition-smooth);
}

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

.highlight-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: var(--glow-purple);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    color: var(--purple-primary);
}

.highlight-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.highlight-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-category {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s var(--transition-smooth);
}

.skill-category:hover {
    border-color: var(--border-bright);
    box-shadow: var(--glow-purple);
}

.category-title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--purple-bright);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-premium);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Experience */
.experience-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
}

.experience-item {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s var(--transition-smooth);
}

.experience-item:hover {
    border-color: var(--border-bright);
    box-shadow: var(--glow-purple);
}

.experience-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.experience-period {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--purple-bright);
    margin-bottom: 1rem;
}

.experience-item ul {
    list-style: none;
    margin-top: 1rem;
}

.experience-item li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    position: relative;
    line-height: 1.6;
}

.experience-item li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 4px;
    height: 4px;
    background: var(--purple-primary);
    border-radius: 50%;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-lead {
    text-align: center;
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: var(--glow-purple);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    color: var(--purple-primary);
}

.contact-info h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--purple-bright);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.contact-info p {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

/* Footer */
.footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Music Player - Premium Redesign */
.music-player {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 280px;
    padding: 0;
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.98) 0%, rgba(16, 16, 24, 0.98) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(139, 92, 246, 0.1) inset,
        0 0 60px rgba(139, 92, 246, 0.15);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: playerSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
}

.music-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-premium);
    opacity: 0.6;
}

.music-player:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(139, 92, 246, 0.2) inset,
        0 0 80px rgba(139, 92, 246, 0.25);
}

@keyframes playerSlideIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: rgba(16, 16, 24, 0.5);
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--purple-primary);
    border-radius: 50%;
    box-shadow: 
        0 0 0 0 rgba(139, 92, 246, 0.7),
        0 0 8px var(--purple-primary);
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7), 0 0 8px var(--purple-primary);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0), 0 0 12px var(--purple-primary);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0), 0 0 8px var(--purple-primary);
    }
}

.player-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.player-minimize {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    color: var(--purple-bright);
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.player-minimize:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--purple-primary);
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.player-minimize:active {
    transform: scale(0.95);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(11, 11, 15, 0.4);
}

.play-button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-purple);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 16px rgba(139, 92, 246, 0.35),
        0 0 0 0 rgba(139, 92, 246, 0.4);
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.play-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(139, 92, 246, 0.5),
        0 0 0 4px rgba(139, 92, 246, 0.15);
}

.play-button:hover::before {
    width: 100%;
    height: 100%;
}

.play-button:active {
    transform: translateY(0) scale(0.98);
}

.play-button svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.play-icon,
.pause-icon {
    transition: opacity 0.2s;
}

.hidden {
    display: none;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
}

.volume-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 9px;
    color: var(--purple-bright);
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.volume-button:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--purple-primary);
    transform: scale(1.05);
}

.volume-button:active {
    transform: scale(0.95);
}

.volume-button svg {
    width: 16px;
    height: 16px;
}

.volume-slider-container {
    position: relative;
    flex: 1;
    height: 5px;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.2) inset;
    z-index: 10;
    padding: 8px 0;
    margin: -8px 0;
}

.volume-slider-container:hover {
    height: 6px;
    background: rgba(139, 92, 246, 0.18);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3) inset;
}

.volume-slider-container:active,
.volume-slider-container.touching {
    height: 7px;
    background: rgba(139, 92, 246, 0.25);
}

.volume-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 25%;
    background: var(--gradient-premium);
    border-radius: 10px;
    transition: width 0.05s ease-out;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
    position: relative;
}

.volume-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.volume-slider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 30px;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    cursor: pointer;
    z-index: 1;
    margin: 0;
    padding: 0;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.volume-slider::-moz-range-thumb {
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.volume-value {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--purple-bright);
    min-width: 22px;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.player-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 32px;
    padding: 0.625rem 1rem;
    background: rgba(16, 16, 24, 0.3);
    border-top: 1px solid rgba(139, 92, 246, 0.08);
}

.player-visualizer .bar {
    width: 2.5px;
    min-height: 3px;
    background: var(--gradient-premium);
    border-radius: 10px;
    animation: visualize 1s ease-in-out infinite;
    opacity: 0.25;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.3);
}

.player-visualizer .bar:nth-child(1) {
    animation-delay: 0s;
}

.player-visualizer .bar:nth-child(2) {
    animation-delay: 0.1s;
}

.player-visualizer .bar:nth-child(3) {
    animation-delay: 0.2s;
}

.player-visualizer .bar:nth-child(4) {
    animation-delay: 0.3s;
}

.player-visualizer .bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes visualize {
    0%, 100% {
        height: 4px;
        opacity: 0.25;
    }
    50% {
        height: 22px;
        opacity: 1;
    }
}

.music-player.playing .player-visualizer .bar {
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.music-player.minimized {
    width: 60px;
    height: 60px;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
}

.music-player.minimized .player-header,
.music-player.minimized .volume-control,
.music-player.minimized .player-visualizer {
    display: none;
}

.music-player.minimized .player-controls {
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    height: 60px;
    background: var(--gradient-purple);
}

.music-player.minimized .play-button {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
}

.music-player.minimized .play-button:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 2rem;
    }
    
    .hero {
        padding: 7rem 2rem 4rem;
    }
    
    section {
        padding: 5rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 1.25rem;
    }
    
    .nav-link {
        font-size: 0.8125rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        width: 100%;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--border-medium), transparent);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .about-text {
        margin-bottom: 3rem;
    }
    
    .lead-text {
        font-size: 1.125rem;
    }
    
    .description-text {
        font-size: 0.9375rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .highlight-card {
        padding: 1.75rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .skill-category {
        padding: 1.75rem;
    }
    
    .experience-block {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .experience-item {
        padding: 1.75rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .contact-card {
        padding: 1.75rem;
    }
    
    /* Music Player на планшетах */
    .music-player {
        bottom: 1rem;
        right: 1rem;
        width: 260px;
    }
    
    .player-header {
        padding: 0.75rem 0.875rem;
    }
    
    .player-controls {
        gap: 0.625rem;
        padding: 0.75rem 0.875rem;
    }
    
    .play-button {
        width: 40px;
        height: 40px;
    }
    
    .volume-button {
        width: 30px;
        height: 30px;
    }
    
    .player-visualizer {
        height: 28px;
        padding: 0.5rem 0.875rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 16px;
    }
    
    body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }
    
    .nav-container {
        padding: 0.875rem 1rem;
    }
    
    .nav-logo {
        font-size: 0.875rem;
    }
    
    .nav-links {
        gap: 0.875rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .hero {
        padding: 5rem 1rem 2rem;
        min-height: calc(100vh - 60px);
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-tag {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        line-height: 1.15;
        margin-bottom: 1.25rem;
        word-break: break-word;
    }
    
    .title-line {
        display: block;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.75rem;
        line-height: 1.5;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.625rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 2rem;
        padding: 1.25rem 1rem;
    }
    
    .stat-item {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.375rem;
    }
    
    .stat-label {
        font-size: 0.6875rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-tag {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.75rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    
    .about-text {
        margin-bottom: 2.5rem;
    }
    
    .lead-text {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .description-text {
        font-size: 0.875rem;
        line-height: 1.65;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
    }
    
    .highlight-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1.25rem;
    }
    
    .highlight-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .highlight-card h3 {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }
    
    .highlight-card p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .skill-item {
        gap: 0.375rem;
    }
    
    .skill-name {
        font-size: 0.875rem;
    }
    
    .experience-block {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .experience-item {
        padding: 1.5rem;
    }
    
    .experience-item h4 {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }
    
    .experience-period {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.625rem;
    }
    
    .experience-item li {
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
        line-height: 1.6;
    }
    
    .contact-lead {
        font-size: 0.9375rem;
        margin-bottom: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
    }
    
    .contact-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .contact-info h3 {
        font-size: 0.75rem;
    }
    
    .contact-info p {
        font-size: 0.875rem;
        word-break: break-word;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-content p {
        font-size: 0.8125rem;
    }
    
    /* Компактный плеер на маленьких экранах */
    .music-player {
        width: calc(100vw - 2rem);
        max-width: 240px;
        bottom: 1rem;
        right: 1rem;
        left: auto;
    }
    
    .player-header {
        padding: 0.625rem 0.75rem;
    }
    
    .player-info {
        gap: 0.375rem;
    }
    
    .pulse-dot {
        width: 5px;
        height: 5px;
    }
    
    .player-title {
        font-size: 0.6875rem;
    }
    
    .player-minimize {
        width: 24px;
        height: 24px;
    }
    
    .player-minimize svg {
        width: 12px;
        height: 12px;
    }
    
    .player-controls {
        gap: 0.5rem;
        padding: 0.625rem 0.75rem;
    }
    
    .play-button {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    
    .play-button svg {
        width: 16px;
        height: 16px;
    }
    
    .volume-button {
        width: 28px;
        height: 28px;
    }
    
    .volume-button svg {
        width: 14px;
        height: 14px;
    }
    
    .volume-slider-container {
        height: 5px;
        min-height: 5px;
        padding: 12px 0;
        margin: -12px 0;
        z-index: 10;
    }
    
    .volume-slider-container:active,
    .volume-slider-container.touching {
        height: 7px;
        background: rgba(139, 92, 246, 0.3);
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 0;
        height: 0;
        opacity: 0;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 0;
        height: 0;
        opacity: 0;
    }
    
    .volume-value {
        font-size: 0.625rem;
        min-width: 20px;
    }
    
    .player-visualizer {
        height: 24px;
        gap: 2.5px;
        padding: 0.5rem 0.75rem;
    }
    
    .player-visualizer .bar {
        width: 2px;
    }
    
    @keyframes visualize {
        0%, 100% {
            height: 3px;
            opacity: 0.25;
        }
        50% {
            height: 16px;
            opacity: 1;
        }
    }
    
    .music-player.minimized {
        width: 52px;
        height: 52px;
    }
    
    .music-player.minimized .player-controls {
        height: 52px;
    }
    
    .music-player.minimized .play-button {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.625rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        padding: 1rem;
    }
    
    .stat-item {
        min-width: 70px;
    }
    
    .music-player {
        max-width: 220px;
    }
    
    .player-controls {
        gap: 0.375rem;
    }
    
    .play-button {
        width: 36px;
        height: 36px;
    }
}