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

:root {
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-accent: #c1ff12;
    --color-accent-alt: #ff4081;
    --color-surface: #111111;
    --color-border: #222222;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .cursor,
    .cursor-follower,
    .floating-particle,
    .particle {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-bg: #000000;
        --color-text: #ffffff;
        --color-accent: #00ff00;
        --color-border: #ffffff;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced focus indicators */
:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.nav-link:focus,
.cta-button:focus,
.submit-button:focus,
.project-card:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(193, 255, 18, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: none;
}

/* Respect cursor preferences for accessibility */
@media (pointer: coarse) {
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* Enhanced immersive background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(193, 255, 18, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 64, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(100, 255, 218, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.cursor {
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    position: fixed;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s, width 0.3s, height 0.3s;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2vw 4vw;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    transition: var(--transition-base);
}

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

.logo {
    font-size: 1.2vw;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    gap: 3vw;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9vw;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.8));
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: 6vw;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 2vw;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s forwards;
}

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

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

.hero-subtitle {
    font-size: 1.5vw;
    color: var(--color-text-muted);
    margin-bottom: 3vw;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-cta {
    display: flex;
    gap: 2vw;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1vw;
    padding: 1.2vw 2.5vw;
    font-size: 1vw;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.cta-button.secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.primary:hover {
    background: var(--color-text);
}

.cta-button.secondary:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.cta-button .arrow {
    transition: transform var(--transition-base);
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3vw;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    margin: 0 auto 1vw;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.scroll-indicator p {
    font-size: 0.8vw;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

section {
    padding: 8vw 4vw;
}

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

.section-header {
    text-align: center;
    margin-bottom: 5vw;
}

.section-title {
    font-size: 4vw;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1vw;
}

.section-subtitle {
    font-size: 1.2vw;
    color: var(--color-text-muted);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3vw;
}

.project-card {
    position: relative;
    background: var(--color-surface);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-smooth);
}

.project-card:hover {
    transform: scale(1.02);
}

.project-visual {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card:hover .project-video {
    transform: scale(1.1);
    transition: transform 10s ease-out;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-number {
    position: absolute;
    bottom: 2vw;
    right: 2vw;
    font-size: 3vw;
    font-weight: 900;
    color: var(--color-accent);
    opacity: 0.3;
}

.project-info {
    padding: 2vw;
}

.project-title {
    font-size: 1.5vw;
    font-weight: 700;
    margin-bottom: 0.5vw;
}

.project-description {
    font-size: 0.9vw;
    color: var(--color-text-muted);
    margin-bottom: 1vw;
}

.project-tags {
    display: flex;
    gap: 0.5vw;
}

.tag {
    font-size: 0.7vw;
    padding: 0.3vw 0.8vw;
    background: var(--color-border);
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.violin-lessons {
    background: var(--color-surface);
}

.lessons-content {
    display: grid;
    gap: 5vw;
}

.lesson-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    align-items: center;
}

.showcase-video {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.showcase-video video {
    width: 100%;
    border-radius: 20px;
}

/* Media controls for violin demo */
.media-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 50px;
    transition: opacity 0.3s ease;
}

.media-controls:hover {
    background: rgba(0, 0, 0, 0.8);
}

.media-btn {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.media-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: scale(1.1);
}

.media-btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

#volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--color-accent);
}

#volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

#volume-slider:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Classical music notification */
.music-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--color-text);
    padding: 16px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.5s ease;
    max-width: 300px;
}

.music-notification.show {
    transform: translateX(0);
}

.music-notification h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--color-accent);
}

.music-notification p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.showcase-info h3 {
    font-size: 2vw;
    margin-bottom: 1vw;
}

.showcase-info p {
    font-size: 1.1vw;
    color: var(--color-text-muted);
    margin-bottom: 2vw;
}

.lesson-features {
    list-style: none;
}

.lesson-features li {
    display: flex;
    align-items: center;
    gap: 1vw;
    margin-bottom: 1vw;
    font-size: 1vw;
}

.lesson-features svg {
    width: 1.5vw;
    height: 1.5vw;
    color: var(--color-accent);
}

.lesson-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw;
}

.lesson-card {
    text-align: center;
    padding: 3vw;
    background: var(--color-bg);
    border-radius: 20px;
    transition: transform var(--transition-base);
}

.lesson-card:hover {
    transform: translateY(-10px);
}

.lesson-icon {
    margin-bottom: 2vw;
    color: var(--color-accent);
}

.lesson-card h4 {
    font-size: 1.5vw;
    margin-bottom: 1vw;
}

.lesson-card p {
    font-size: 0.9vw;
    color: var(--color-text-muted);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
}

.about-intro {
    font-size: 1.5vw;
    margin-bottom: 2vw;
    color: var(--color-accent);
}

.about-text p {
    font-size: 1.1vw;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 3vw;
}

.stats {
    display: flex;
    gap: 3vw;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3vw;
    font-weight: 900;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.9vw;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(193, 255, 18, 0.2));
    mix-blend-mode: overlay;
}

.contact {
    background: var(--color-surface);
    text-align: center;
    padding: 10vw 4vw;
}

.contact .section-title {
    font-size: 5vw;
    margin-bottom: 3vw;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5vw;
    align-items: start;
}

.contact-intro {
    font-size: 1.3vw;
    color: var(--color-text-muted);
    margin-bottom: 3vw;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    position: relative;
    margin-bottom: 3vw;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1vw 0;
    font-size: 1.1vw;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1vw;
    font-size: 1.1vw;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -1.5vw;
    font-size: 0.9vw;
    color: var(--color-accent);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    gap: 1vw;
    padding: 1.2vw 2.5vw;
    font-size: 1vw;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2vw;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(193, 255, 18, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.form-status {
    margin-top: 2vw;
    padding: 1vw;
    border-radius: 10px;
    font-size: 1vw;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-status.show {
    opacity: 1;
}

.form-status.success {
    background: rgba(193, 255, 18, 0.1);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.form-status.error {
    background: rgba(255, 64, 129, 0.1);
    color: var(--color-accent-alt);
    border: 1px solid var(--color-accent-alt);
}

.contact-info-side {
    position: sticky;
    top: 10vw;
}

.contact-info-side h3 {
    font-size: 2vw;
    margin-bottom: 1vw;
}

.contact-info-side p {
    font-size: 1.1vw;
    color: var(--color-text-muted);
    margin-bottom: 2vw;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3vw;
}

.social-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1vw;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
}

.social-link:hover {
    color: var(--color-accent);
}

.linkedin-badge-container {
    margin-top: 4vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-base {
    background: rgba(255, 255, 255, 0.05);
    padding: 2vw;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge-base:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.2);
}

.badge-base__link {
    color: var(--color-accent) !important;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 12vw;
    }
    
    .hero-subtitle {
        font-size: 4vw;
    }
    
    .cta-button {
        font-size: 3vw;
        padding: 3vw 6vw;
    }
    
    .section-title {
        font-size: 10vw;
    }
    
    .section-subtitle {
        font-size: 3vw;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .lesson-showcase {
        grid-template-columns: 1fr;
    }
    
    .lesson-types {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        justify-content: space-around;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 8vw;
    }
    
    .contact-intro {
        font-size: 4vw;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 4vw;
        padding: 3vw 0;
    }
    
    .form-group label {
        font-size: 4vw;
        top: 3vw;
    }
    
    .form-group input:focus ~ label,
    .form-group input:valid ~ label,
    .form-group textarea:focus ~ label,
    .form-group textarea:valid ~ label {
        top: -4vw;
        font-size: 3vw;
    }
    
    .submit-button {
        font-size: 4vw;
        padding: 4vw 8vw;
    }
    
    .form-status {
        font-size: 3vw;
    }
    
    .contact-info-side h3 {
        font-size: 6vw;
    }
    
    .contact-info-side p {
        font-size: 4vw;
    }
    
    .contact-info-side {
        position: static;
    }
}