/* Responsive CSS */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 30px;
    }

    /* Header */
    .nav-list {
        gap: 30px;
    }

    .nav-link {
        font-size: 15px;
    }

    /* Products Section */
    .products-content {
        gap: 60px;
    }

    /* Innovation Section */
    .innovation-grid {
        gap: 40px;
    }

    .innovation-card {
        padding: 30px 20px;
    }

    /* Performance Section */
    .performer-profile {
        grid-template-columns: 150px 1fr;
        gap: 30px;
    }

    /* Lessons Section */
    .lessons-content {
        gap: 60px;
    }

    /* Footer */
    .footer-content {
        gap: 30px;
    }

    .footer-links {
        gap: 30px;
    }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 20px;
    }

    /* Header */
    .header {
        height: 85px;
    }

    .logo {
        height: 55px;
        width: 55px;
    }

    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
        width: 44px;
        height: 44px;
        position: relative;
        cursor: pointer;
        background: none;
        border: none;
        padding: 10px;
        z-index: 1002;
    }

    .menu-bar {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .header.scrolled .menu-bar {
        background-color: var(--secondary-color);
    }

    /* Mobile menu active state */
    .mobile-menu-toggle.active .menu-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.active .menu-bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .menu-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Navigation menu mobile styles */
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 25px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1001;
        display: flex;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-link {
        font-size: 18px;
        color: var(--secondary-color);
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Overlay for mobile menu */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 1000;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    /* Hero Section */
    .hero-content {
        padding: 40px 15px 60px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 3rem);
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }

    .scroll-indicator {
        bottom: 25px;
    }

    /* Introduction Section */
    .intro-text {
        font-size: clamp(1rem, 3vw, 1.2rem);
        line-height: 1.7;
    }

    /* Products Section */
    .products-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .products-image {
        order: -1;
    }

    .section-title-en {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .product-name {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        margin-bottom: 30px;
    }

    .feature {
        margin-bottom: 25px;
    }

    .feature h4 {
        font-size: 1.1rem;
    }

    .feature p {
        font-size: 0.95rem;
    }

    .price {
        font-size: 2rem;
    }

    .price-unit {
        font-size: 1rem;
    }
    
    .product-actions {
        gap: 12px;
    }
    
    .cta-button,
    .cta-button-crowdfunding {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .button-icon {
        width: 18px;
        height: 18px;
    }

    /* Innovation Section */
    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .innovation .section-title-en {
        margin-bottom: 50px;
    }

    .innovation-card {
        padding: 30px 25px;
    }

    .innovation-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 25px;
    }

    .innovation-card h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .innovation-card p {
        font-size: 0.95rem;
    }

    /* Performance Section */
    .performance {
        background-attachment: scroll;
    }

    .performance .section-title-en {
        margin-bottom: 50px;
    }

    .performance-packages {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }

    .package-card {
        padding: 30px 25px;
    }

    .package-card h3 {
        font-size: 1.3rem;
    }

    .package-price {
        font-size: 1.6rem;
    }

    .performer-profile {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        padding: 30px 25px;
    }

    .profile-image {
        justify-self: center;
        width: 120px;
    }

    .profile-info h3 {
        font-size: 1.2rem;
    }

    .profile-info p {
        font-size: 0.95rem;
    }

    /* Lessons Section */
    .lessons-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lessons-image {
        order: -1;
    }

    .lessons-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .lesson-types {
        gap: 10px;
        margin-bottom: 40px;
    }

    .lesson-tag {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    .lesson-pricing h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .pricing-table td {
        padding: 12px 0;
        font-size: 0.95rem;
    }

    /* Message Section */
    .message-item {
        margin-bottom: 60px;
    }

    .message-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .message-reverse .message-content {
        grid-template-columns: 1fr;
    }

    .message-reverse .message-image,
    .message-reverse .message-text {
        order: initial;
    }

    .message-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .message .section-title-en {
        margin-bottom: 40px;
        text-align: center;
    }

    .message-body {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 30px;
    }

    .message-signature {
        text-align: center;
    }

    .message-signature p {
        font-size: 0.95rem;
    }

    .signature-name {
        font-size: 1.2rem;
    }

    /* Contact Section */
    .contact {
        min-height: calc(100vh - 150px);
    }
    
    .contact .section-title-en {
        margin-bottom: 40px;
    }

    .contact-form {
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 25px;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .submit-button {
        padding: 12px 40px;
        font-size: 1rem;
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .social-links {
        justify-content: center;
        gap: 15px;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        padding-top: 25px;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* iPhone 15/14/13 specific (390px) */
@media (max-width: 390px) {
    :root {
        --section-padding: 40px;
    }

    .container {
        padding: 0 15px;
    }

    /* Header adjustments */
    .header {
        height: 80px;
    }
    
    .logo {
        height: 50px;
        width: 50px;
    }

    /* Hero adjustments */
    .hero-content {
        padding: 30px 15px 50px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    /* Products section */
    .products-content {
        gap: 30px;
    }

    .product-features {
        margin-bottom: 30px;
    }

    .feature {
        margin-bottom: 20px;
    }

    .feature h4 {
        font-size: 1.05rem;
    }

    .feature p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Innovation cards */
    .innovation-grid {
        gap: 30px;
    }

    .innovation-card {
        padding: 25px 20px;
    }

    /* Performance section */
    .performance-packages {
        gap: 25px;
    }

    /* Forms and buttons */
    .cta-button,
    .submit-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    /* Contact form */
    .form-group {
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px;
    }

    .container {
        padding: 0 15px;
    }

    /* Hero Section */
    .hero-content {
        padding: 30px 15px 50px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.8) 100%);
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }

    /* Products Section */
    .product-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button,
    .cta-button-crowdfunding {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    /* Innovation Section */
    .innovation-card {
        padding: 25px 20px;
    }

    /* Performance Section */
    .package-card,
    .performer-profile {
        padding: 25px 20px;
    }

    /* Message Section */
    .message-item {
        margin-bottom: 50px;
    }

    .message-body {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .message-signature p {
        font-size: 0.9rem;
    }

    .signature-name {
        font-size: 1.1rem;
    }

    /* Contact Section */
    .contact {
        min-height: calc(100vh - 100px);
    }
    
    .submit-button {
        padding: 12px 30px;
    }
}

/* Large screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        padding: 0 40px;
    }

    .products-content,
    .lessons-content {
        gap: 100px;
    }

    .innovation-grid {
        gap: 80px;
    }

    .innovation-card {
        padding: 50px 40px;
    }
}