/**
 * RESPONSIVE STYLES
 * Mobile & Tablet Breakpoints
 */

/* ===== EXTRA LARGE DEVICES (1400px and up) ===== */
@media (max-width: 1400px) {
    :root {
        --section-padding: 100px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== LARGE DEVICES (1200px and down) ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .header {
        padding: 15px 30px;
    }
    
    .header.scrolled {
        padding: 10px 30px;
    }
    
    .nav-links {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .music-intro h1 {
        font-size: 3rem;
    }
}

/* ===== MEDIUM DEVICES (992px and down) ===== */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    /* Header Mobile */
    .header {
        padding: 15px 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: rgba(10, 0, 20, 0.98);
        backdrop-filter: blur(30px);
        padding: 120px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 998;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 25px;
    }
    
    .nav-link {
        font-size: 1.3rem;
        display: block;
        padding: 12px 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 999;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        background: var(--neon-cyan);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--neon-cyan);
    }
    
    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        letter-spacing: 5px;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .hero-btn {
        padding: 15px 25px;
        font-size: 0.9rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-card {
        padding: 40px 30px;
    }
    
    /* Hide cursor on touch */
    .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    a, button {
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Social sidebar hide */
    .social-sidebar {
        display: none;
    }
}

/* ===== SMALL DEVICES (768px and down) ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Preloader */
    .loader-circles {
        width: 180px;
        height: 180px;
    }
    
    .neon-loader {
        padding: 40px 20px;
    }
    
    .neon-loader-logo .logo-letter {
        font-size: 1.5rem;
    }
    
    .logo-space {
        width: 10px;
    }
    
    .loader-text {
        font-size: 0.75rem;
        letter-spacing: 4px;
    }
    
    .neon-loader-bar {
        width: 180px;
        height: 5px;
    }
    
    .loader-percentage {
        font-size: 0.9rem;
        min-width: 40px;
    }
    
    .loader-corner {
        width: 30px;
        height: 30px;
    }
    
    .loader-corner-tl,
    .loader-corner-tr {
        top: 10px;
    }
    
    .loader-corner-bl,
    .loader-corner-br {
        bottom: 10px;
    }
    
    .loader-corner-tl,
    .loader-corner-bl {
        left: 10px;
    }
    
    .loader-corner-tr,
    .loader-corner-br {
        right: 10px;
    }
    
    /* Music Intro */
    .music-intro h1 {
        font-size: 2.2rem;
    }
    
    .music-intro h2 {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .music-icon {
        width: 90px;
        height: 90px;
    }
    
    .music-icon i {
        font-size: 35px;
    }
    
    .start-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    /* Header */
    .header {
        padding: 12px 15px;
    }
    
    .nav-brand .logo {
        font-size: 1.4rem;
    }
    
    .nav-actions {
        gap: 10px;
    }
    
    .music-btn {
        width: 45px;
        height: 45px;
    }
    
    .lang-toggle {
        padding: 8px 12px;
    }
    
    .lang-toggle .lang-code {
        display: none;
    }
    
    /* Info Tooltip Mobile */
    .info-tooltip {
        width: 280px;
        right: -20px;
    }
    
    .info-tooltip-header {
        font-size: 0.8rem;
        padding: 12px;
    }
    
    .info-tooltip-content {
        font-size: 0.85rem;
        padding: 12px;
    }
    
    /* Hero */
    .hero-section {
        padding: 100px 15px 60px;
    }
    
    .hero-bg-slide {
        background-position: center center;
    }
    
    .hero-badge {
        padding: 10px 20px;
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    /* Features */
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-badge {
        padding: 8px 18px;
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 35px 25px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: 50px 15px 30px;
    }
    
    .footer-brand {
        font-size: 1.6rem;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .footer-social-link {
        width: 45px;
        height: 45px;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Floating elements hide */
    .floating-elements {
        display: none;
    }
    
    /* Grid background hide */
    .grid-bg {
        opacity: 0.3;
    }
}

/* ===== EXTRA SMALL DEVICES (576px and down) ===== */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    /* Music Intro */
    .music-intro h1 {
        font-size: 1.8rem;
    }
    
    .music-icon {
        width: 80px;
        height: 80px;
    }
    
    .music-icon i {
        font-size: 30px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .hero-badge {
        padding: 8px 15px;
        font-size: 0.7rem;
    }
    
    /* Features */
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    /* Nav Menu */
    .nav-menu {
        width: 100%;
        right: -100%;
    }
}

/* ===== VERY SMALL DEVICES (400px and down) ===== */
@media (max-width: 400px) {
    /* Preloader */
    .loader-circles {
        width: 150px;
        height: 150px;
    }
    
    .neon-loader-logo .logo-letter {
        font-size: 1.2rem;
    }
    
    .logo-space {
        width: 8px;
    }
    
    .loader-text {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }
    
    .neon-loader-bar {
        width: 150px;
    }
    
    .loader-corner {
        display: none;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .start-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        margin-bottom: 20px;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .music-intro-content {
        transform: scale(0.8);
    }
    
    .music-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .grid-bg,
    .floating-elements,
    .cursor-follower {
        display: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --bg-card: rgba(0, 0, 0, 0.95);
        --border-color: rgba(255, 255, 255, 0.5);
        --text-secondary: rgba(255, 255, 255, 0.9);
        --text-muted: rgba(255, 255, 255, 0.7);
    }
    
    .hero-btn,
    .feature-card,
    .start-btn {
        border-width: 2px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects */
    .hero-btn:hover,
    .feature-card:hover,
    .social-link:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .nav-link {
        padding: 20px 0;
    }
    
    .hero-btn {
        padding: 18px 30px;
    }
    
    .feature-card {
        padding: 45px 30px;
    }
    
    /* Hide cursor follower */
    .cursor-follower {
        display: none;
    }
    
    /* Hide grid background */
    .grid-bg {
        opacity: 0.2;
    }
}

/* ===== SAFE AREA INSETS (Notched devices) ===== */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }
    
    .nav-menu {
        padding-left: max(40px, env(safe-area-inset-left));
        padding-right: max(40px, env(safe-area-inset-right));
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .hero-scroll,
    .floating-elements,
    .cursor-follower,
    .back-to-top,
    #particles,
    .grid-bg,
    #preloader,
    .music-intro,
    .nav-toggle,
    .music-btn,
    .social-sidebar {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        cursor: auto;
    }
    
    .main-wrapper {
        opacity: 1;
    }
    
    .hero-section {
        min-height: auto;
        padding: 50px 0;
    }
    
    .text-gradient,
    .text-neon {
        -webkit-text-fill-color: initial;
        background: none;
        text-shadow: none;
        color: #b026ff;
    }
    
    a {
        text-decoration: underline;
    }
    
    section {
        page-break-inside: avoid;
    }
}
