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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #3d2f2f;
    background: linear-gradient(180deg, #e8dcc8 0%, #d9cab3 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

main::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Contact Page - No scrollbar at all */
.contact-page main {
    overflow: hidden;
}

/* Custom Scrollbar Styling */
main::-webkit-scrollbar {
    width: 12px;
}

main::-webkit-scrollbar-track {
    background: #d4a57426;
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b6f47 0%, #6b5537 100%);
    border-radius: 10px;
    border: 2px solid #d4a57426;
}

main::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6b5537 0%, #5d4a2f 100%);
}

/* Firefox Scrollbar */
main {
    scrollbar-width: thin;
    scrollbar-color: #8b6f47 #d4a57426;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(180deg, #8b6f47 0%, #6b5537 100%);
    box-shadow: 0 4px 12px rgba(61, 47, 47, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    min-height: 70px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.1s ease;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.logo-link:active {
    transform: scale(0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-icon {
    height: 48px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(255, 255, 255, 1));
    pointer-events: none;
    -webkit-user-drag: none;
}

.logo h1 {
    color: #f5e6d3;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-menu a {
    color: #f5e6d3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-menu a:hover {
    color: #e8c49a;
}

.nav-menu a.active {
    color: #f4c542;
    text-decoration: underline;
    text-decoration-color: #f4c542;
    text-underline-offset: 10px;
}

/* Hero Section */
.hero {
    background: transparent;
    color: #3d2f2f;
    padding: 120px 0 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Home Page Video Section */
.video-section {
    padding: 0 0 60px !important;
}

.home-video-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.video-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-track {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    border: 4px solid #8b6f47;
    box-shadow: 0 8px 24px rgba(93, 74, 47, 0.3);
}

.carousel-track-inner {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.video-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
}

.video-slide .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-slide .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(139, 111, 71, 0.9);
    color: #f5e6d3;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(93, 74, 47, 0.4);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px 0;
    font-family: Arial, sans-serif;
}

.carousel-nav:hover {
    background: rgba(107, 85, 55, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
    left: -60px;
}

.carousel-nav.next {
    right: -60px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4a574;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot:hover {
    background: #c99761;
    transform: scale(1.2);
}

.dot.active {
    background: #8b6f47;
    width: 14px;
    height: 14px;
}

.home-video-container iframe {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn-primary {
    background: #d4a574;
    color: #3d2f2f;
    box-shadow: 0 4px 8px rgba(61, 47, 47, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #c99761;
    box-shadow: 0 10px 20px rgba(61, 47, 47, 0.3);
}

/* Sections */
.section {
    padding: 80px 0;
}

/* About Page Styles */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #5d4a2f;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: justify;
}

.body-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6b5537;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.body-text.emphasis {
    font-weight: 600;
    color: #5d4a2f;
    font-style: italic;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(212, 165, 116, 0.15);
    border-left: 4px solid #d4a574;
    border-radius: 4px;
}

.subsection-title {
    font-size: 1.8rem;
    color: #8b6f47;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
}

.feature-list li {
    font-size: 1.1rem;
    color: #6b5537;
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    line-height: 1.6;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-size: 1.3rem;
    color: #8b6f47;
    font-weight: bold;
}

.section-alt {
    background: transparent;
}

.back-btn-img {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 99;
    width: 65px;
    height: 65px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(93, 74, 47, 0.3));
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.back-btn-img:hover {
    transform: scale(1.15);
    filter: drop-shadow(3px 3px 6px rgba(93, 74, 47, 0.4)) brightness(1.2) saturate(1.3);
}

.back-btn-img:active {
    transform: scale(0.95);
}

.section-title {
    font-size: 2.5rem;
    color: #8b6f47;
    margin-bottom: 2rem;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.section-description {
    font-size: 1.15rem;
    color: #8b6f47;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.3s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.section-text {
    text-align: center;
    font-size: 1.1rem;
    color: #6b5537;
    max-width: 600px;
    margin: 0 auto 2rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.card {
    background: linear-gradient(145deg, #f5e6d3 0%, #e8dcc8 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #d4a574;
    box-shadow: 0 4px 12px rgba(93, 74, 47, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(93, 74, 47, 0.25);
    border-color: #c99761;
}

.card h3 {
    color: #8b6f47;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.card-icon {
    height: 120px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(139, 111, 71, 0.3));
}

.card p {
    color: #6b5537;
    line-height: 1.6;
    text-align: justify;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input {
    padding: 12px;
    border: 2px solid #d4a574;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #faf8f5;
    color: #3d2f2f;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #8b6f47;
    background: #fff;
}

textarea.form-input {
    resize: vertical;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: block;
}

.form-message.success {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.form-message.success::before {
    content: '✅ ';
    font-size: 1.4rem;
    margin-right: 0.5rem;
}

.form-message.error {
    background: linear-gradient(135deg, #e57373 0%, #ef5350 100%);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.form-message.error::before {
    content: '❌ ';
    font-size: 1.4rem;
    margin-right: 0.5rem;
}

.form-message.info {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.form-message.info::before {
    content: '📧 ';
    font-size: 1.4rem;
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #8b6f47 0%, #613a03 100%);
    color: #f5e6d3;
    text-align: center;
    padding: 0.85rem 0;
    box-shadow: 0 -4px 12px rgba(61, 47, 47, 0.2);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

footer p {
    font-size: 0.7rem;
    line-height: 1;
    margin: 0;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 1.2s steps(30, end) forwards;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 0.8s ease both;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

.animate-delay-6 {
    animation-delay: 0.6s;
}

/* Popup Notifications */
.popup-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 400px;
}

.popup-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.popup-notification.popup-success {
    background: #4caf50;
    color: white;
}

.popup-notification.popup-error {
    background: #f44336;
    color: white;
}

.popup-notification.popup-info {
    background: #2196f3;
    color: white;
}

/* Metronome Styles */
.metronome-container {
    max-width: 500px;
    width: 100%;
    margin: 1.5rem auto;
    padding: 2.5rem 1.5rem 2rem;
    background: linear-gradient(145deg, #f5e6d3 0%, #e8dcc8 100%);
    border-radius: 16px;
    border: 2px solid #d4a574;
    box-shadow: 0 8px 24px rgba(93, 74, 47, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.indicator-toggle-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #8b6f47;
    background: linear-gradient(145deg, #f5e6d3 0%, #e8dcc8 100%);
    color: #6b5537;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(93, 74, 47, 0.2);
    user-select: none;
}

.indicator-toggle-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, #e8dcc8 0%, #d4a574 100%);
    box-shadow: 0 4px 8px rgba(93, 74, 47, 0.3);
}

.indicator-toggle-btn:active {
    transform: scale(0.95);
}

.beat-indicator {
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.beat-indicator:not(.active-indicator) {
    display: none;
}

/* Single Circle Indicator */
.single-indicator {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8b6f47 0%, #6b5537 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(93, 74, 47, 0.3);
    position: relative;
    overflow: visible;
    transition: box-shadow 0.1s ease;
}

.beat-light {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: #5d4a2f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(245, 230, 211, 0.8);
    user-select: none;
}

.single-indicator.active {
    box-shadow: 
        0 0 25px 10px rgba(244, 197, 66, 0.6),
        0 0 50px 20px rgba(244, 197, 66, 0.3),
        0 4px 12px rgba(93, 74, 47, 0.3);
}

.single-indicator.accent {
    box-shadow: 
        0 0 30px 12px rgba(76, 175, 80, 0.7),
        0 0 60px 25px rgba(76, 175, 80, 0.4),
        0 4px 12px rgba(93, 74, 47, 0.3);
}

/* Multi-Circle Indicator */
.multi-indicator {
    width: 100%;
    max-width: 450px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 50px;
}

.multi-circles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 268px;
    row-gap: 0.75rem;
}

.beat-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8b6f47 0%, #6b5537 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(93, 74, 47, 0.3);
    position: relative;
    overflow: visible;
    transition: box-shadow 0.1s ease;
}

.beat-circle-inner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.1s ease;
}

.beat-circle.active .beat-circle-inner {
    background: linear-gradient(145deg, #f4c542 0%, #e8a83a 100%);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.beat-circle.accent .beat-circle-inner {
    background: linear-gradient(145deg, #4caf50 0%, #45a049 100%);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.beat-circle.active {
    box-shadow: 
        0 0 20px 6px rgba(244, 197, 66, 0.6),
        0 0 40px 12px rgba(244, 197, 66, 0.3),
        0 4px 12px rgba(93, 74, 47, 0.3);
}

.beat-circle.accent {
    box-shadow: 
        0 0 25px 8px rgba(76, 175, 80, 0.7),
        0 0 50px 15px rgba(76, 175, 80, 0.4),
        0 4px 12px rgba(93, 74, 47, 0.3);
}

.bpm-display {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.bpm-value {
    font-size: 2rem;
    font-weight: 700;
    color: #8b6f47;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(93, 74, 47, 0.2);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.bpm-label {
    font-size: 1rem;
    color: #6b5537;
    font-weight: 600;
    letter-spacing: 1px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.bpm-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.bpm-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #d4a574 0%, #c99761 100%);
    color: #3d2f2f;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(93, 74, 47, 0.2);
    user-select: none;
}

.bpm-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(93, 74, 47, 0.3);
}

.bpm-btn:active {
    transform: scale(0.95);
}

.bpm-slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #6b5537 0%, #8b6f47 50%, #d4a574 100%);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.bpm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4c542 0%, #e8a83a 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(244, 197, 66, 0.4);
    transition: all 0.3s ease;
}

.bpm-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(244, 197, 66, 0.6);
}

.bpm-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4c542 0%, #e8a83a 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(244, 197, 66, 0.4);
    border: none;
    transition: all 0.3s ease;
}

.bpm-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(244, 197, 66, 0.6);
}

.time-signature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #6b5537;
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.time-select {
    padding: 0.5rem 1rem;
    border: 2px solid #d4a574;
    border-radius: 8px;
    background: #faf8f5;
    color: #3d2f2f;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-select:focus {
    outline: none;
    border-color: #8b6f47;
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.2);
}

.metronome-controls {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.metronome-btn {
    padding: 12px 35px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(93, 74, 47, 0.2);
    user-select: none;
}

.start-btn {
    background: linear-gradient(145deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4);
}

.start-btn.active {
    background: linear-gradient(145deg, #f44336 0%, #da190b 100%);
}

.metronome-btn:active {
    transform: scale(0.95);
}

.beat-counter {
    font-size: 1.3rem;
    color: #6b5537;
    font-weight: 600;
    text-align: center;
}

.beat-counter span {
    color: #8b6f47;
    font-weight: 700;
}

/* Video Grid and Cards */
.rudiments-category {
    margin-top: 3rem;
}

.rudiments-category:first-of-type {
    margin-top: 2rem;
}

.category-title {
    font-size: 1.8rem;
    color: #6b5537;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #d4a574;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.category-title.collapsible {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.3s ease;
}

.category-title.collapsible:hover {
    color: #8b6f47;
}

.category-text {
    flex: 1;
}

.toggle-icon {
    font-size: 2rem;
    font-weight: 700;
    color: #8b6f47;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.category-title.collapsed .toggle-icon {
    transform: rotate(0deg);
}

.category-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

.category-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.rudiments-category:first-of-type .category-title {
    animation-delay: 0.2s;
}

.rudiments-category:nth-of-type(2) .category-title {
    animation-delay: 0.3s;
}

.rudiments-category:nth-of-type(3) .category-title {
    animation-delay: 0.4s;
}

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

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

.videos-grid:has(.video-card:only-child) {
    max-width: 420px;
}

.video-card {
    background: linear-gradient(145deg, #f5e6d3 0%, #e8dcc8 100%);
    border-radius: 12px;
    border: 4px solid #8b6f47;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(93, 74, 47, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.5);
}

.video-card.animate-in {
    animation: scaleIn 0.6s ease forwards;
}

.video-card.animate-in:hover {
    transform: translateY(-4px) scale(1);
    box-shadow: 0 8px 20px rgba(93, 74, 47, 0.3);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.video-card:hover .video-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.enlarge-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.3rem;
    color: #6b5537;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.video-description {
    font-size: 1rem;
    color: #8b6f47;
    margin: 0;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    animation: slideIn 0.3s ease;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.video-modal-close:hover {
    transform: scale(1.2);
}

.video-modal-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .video-section {
        padding: 0 0 40px !important;
    }
    
    .home-video-container {
        padding: 0 0.5rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 2rem;
        padding-bottom: 2px;
    }
    
    .carousel-nav.prev {
        left: -45px;
    }
    
    .carousel-nav.next {
        right: -45px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 12px;
        height: 12px;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }
    
    .rudiments-category {
        margin-top: 2rem;
    }
    
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .toggle-icon {
        font-size: 1.5rem;
        margin-left: 0.5rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .video-description {
        font-size: 0.9rem;
    }
    
    .video-modal-content {
        width: 95%;
    }
    
    .video-modal-close {
        top: -40px;
        font-size: 2.5rem;
    }
    
    .enlarge-icon {
        font-size: 2.5rem;
    }
    
    .metronome-container {
        max-width: calc(100vw - 2rem);
        padding: 2rem 0.75rem 1.5rem;
        gap: 0.5rem;
        margin: 1rem auto;
    }
    
    .indicator-toggle-btn {
        top: 0.5rem;
        right: 0.5rem;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .beat-indicator {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .single-indicator {
        width: 100px;
        height: 100px;
    }
    
    .beat-light {
        width: 80px;
        height: 80px;
    }
    
    .beat-number {
        font-size: 2.5rem;
    }
    
    .multi-indicator {
        padding: 10px 20px;
        max-width: 100%;
    }
    
    .multi-circles {
        gap: 0.5rem;
        max-width: 190px;
        row-gap: 0.5rem;
    }
    
    .beat-circle {
        width: 38px;
        height: 38px;
    }
    
    .beat-circle-inner {
        width: 30px;
        height: 30px;
    }
    
    .bpm-display {
        gap: 0.4rem;
    }
    
    .bpm-value {
        font-size: 1.5rem;
    }
    
    .bpm-label {
        font-size: 0.85rem;
    }
    
    .bpm-controls {
        gap: 0.5rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .bpm-btn {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .bpm-slider {
        min-width: 0;
        flex: 1;
    }
    
    .time-signature {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    .time-select {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
    
    .metronome-controls {
        width: 100%;
        padding: 0 0.5rem;
    }
    
    .metronome-btn {
        padding: 10px 28px;
        font-size: 0.95rem;
    }
    
    .beat-counter {
        font-size: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
        padding-bottom: 2px;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .metronome-container {
        max-width: calc(100vw - 1.5rem);
        padding: 1.5rem 0.5rem 1.25rem;
        gap: 0.4rem;
    }
    
    .beat-indicator {
        width: 90px;
        height: 90px;
        margin-bottom: 0.75rem;
    }
    
    .single-indicator {
        width: 90px;
        height: 90px;
    }
    
    .beat-light {
        width: 72px;
        height: 72px;
    }
    
    .beat-number {
        font-size: 2.2rem;
    }
    
    .multi-indicator {
        padding: 8px 15px;
    }
    
    .multi-circles {
        gap: 0.45rem;
        max-width: 170px;
        row-gap: 0.45rem;
    }
    
    .beat-circle {
        width: 34px;
        height: 34px;
    }
    
    .beat-circle-inner {
        width: 26px;
        height: 26px;
    }
    
    .bpm-display {
        gap: 0.3rem;
    }
    
    .bpm-value {
        font-size: 1.3rem;
    }
    
    .bpm-label {
        font-size: 0.75rem;
    }
    
    .bpm-controls {
        gap: 0.4rem;
        padding: 0 0.25rem;
    }
    
    .bpm-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .time-signature {
        font-size: 0.8rem;
        padding: 0 0.25rem;
    }
    
    .time-select {
        font-size: 0.85rem;
        padding: 0.35rem 0.5rem;
    }
    
    .metronome-controls {
        padding: 0 0.25rem;
    }
    
    .metronome-btn {
        padding: 9px 24px;
        font-size: 0.9rem;
    }
    
    .indicator-toggle-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}
