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

html {
    scroll-behavior: smooth;
    /* Prevent horizontal scrolling on mobile */
    overflow-x: hidden;
    /* Optimize scrolling performance on mobile */
    -webkit-overflow-scrolling: touch;
    /* Enable hardware acceleration for smoother scrolling */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #3d2914;
    overflow-x: hidden;
    background-color: #faf8f5;
    /* Improve text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent zoom on input focus on iOS */
    -webkit-text-size-adjust: 100%;
    /* Improve touch scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Enable hardware acceleration for smoother performance */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    /* Optimize compositing for mobile */
    will-change: scroll-position;
}

/* Prevent horizontal scrolling caused by elements */
* {
    max-width: 100%;
}

/* Improve tap targets for touch devices */
button, 
a, 
input, 
select, 
textarea,
[role="button"] {
    touch-action: manipulation;
}

/* Optimize images for mobile */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

/* Mobile-first responsive container */
@media (max-width: 1200px) {
    .container {
        padding: 0 16px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(139, 69, 19, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(101, 67, 33, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    /* Optimize for mobile scrolling performance */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: background-color, box-shadow;
}

.navbar.scrolled {
    background: rgba(139, 69, 19, 0.98);
    box-shadow: 0 2px 20px rgba(101, 67, 33, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #f4e4bc;
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #f4e4bc;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #deb887;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #deb887;
    transition: width 0.3s ease;
}

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

.cta-button {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #a0522d, #8b4513);
}

.cta-button::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(244, 228, 188, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: #f4e4bc;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

/* Enhanced hamburger animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f4e4bc 0%, #deb887 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wood" width="100" height="100" patternUnits="userSpaceOnUse"><rect width="100" height="100" fill="%23deb887"/><path d="M0,50 Q25,40 50,50 T100,50" stroke="%23cd853f" stroke-width="1" fill="none" opacity="0.3"/><path d="M0,30 Q25,20 50,30 T100,30" stroke="%23d2691e" stroke-width="0.5" fill="none" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23wood)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #3d2914;
}

.highlight {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #654321;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #a0522d, #8b4513);
}

.btn-secondary {
    background: transparent;
    color: #3d2914;
    border: 2px solid #8b4513;
}

.btn-secondary:hover {
    background: #8b4513;
    color: white;
    transform: translateY(-3px);
}

/* Piano Photo */
.piano-photo {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(101, 67, 33, 0.3);
}

.hero-piano-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.piano-photo:hover .hero-piano-img {
    transform: scale(1.05);
}

.piano-body {
    width: 300px;
    height: 150px;
    background: linear-gradient(145deg, #654321, #8b4513);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 20px 40px rgba(101, 67, 33, 0.3);
}

.piano-keys {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 30px;
    background: repeating-linear-gradient(
        90deg,
        #fff 0px,
        #fff 12px,
        #2c2c2c 12px,
        #2c2c2c 14px
    );
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 15px rgba(101, 67, 33, 0.3);
}

.sound-waves {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
}

.sound-waves::before,
.sound-waves::after {
    content: '';
    position: absolute;
    border: 2px solid #8b4513;
    border-radius: 50%;
    animation: soundWave 2s infinite;
}

.sound-waves::before {
    width: 40px;
    height: 40px;
    top: 30px;
    left: 30px;
}

.sound-waves::after {
    width: 60px;
    height: 60px;
    top: 20px;
    left: 20px;
    animation-delay: 0.5s;
}

@keyframes soundWave {
    0% {
        opacity: 1;
        transform: scale(0.5);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #8b4513;
    border-bottom: 2px solid #8b4513;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #3d2914;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #654321;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #f4e4bc 0%, #deb887 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="woodgrain" width="200" height="200" patternUnits="userSpaceOnUse"><rect width="200" height="200" fill="%23deb887"/><path d="M0,100 Q50,90 100,100 T200,100" stroke="%23cd853f" stroke-width="2" fill="none" opacity="0.2"/><path d="M0,50 Q50,40 100,50 T200,50" stroke="%23d2691e" stroke-width="1" fill="none" opacity="0.15"/><path d="M0,150 Q50,140 100,150 T200,150" stroke="%23bc9a6a" stroke-width="1.5" fill="none" opacity="0.1"/></pattern></defs><rect width="200" height="200" fill="url(%23woodgrain)"/></svg>');
    opacity: 0.3;
}

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

.service-card {
    background: rgba(244, 228, 188, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(101, 67, 33, 0.2);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(139, 69, 19, 0.2);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(101, 67, 33, 0.3);
}

.service-card.featured {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(101, 67, 33, 0.2);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: #654321;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #654321;
}

.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8b4513;
    font-weight: bold;
}

.service-card.featured .service-features li::before {
    color: #deb887;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8b4513;
    margin-top: auto;
}

.service-card.featured .service-price {
    color: white;
}

/* About Section */
.about {
    padding: 100px 0;
    background: rgba(244, 228, 188, 0.3);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="woodpattern" width="200" height="200" patternUnits="userSpaceOnUse"><rect width="200" height="200" fill="%23f4e4bc"/><path d="M0,100 Q50,85 100,100 T200,100" stroke="%23deb887" stroke-width="3" fill="none" opacity="0.3"/><path d="M0,50 Q50,35 100,50 T200,50" stroke="%23cd853f" stroke-width="2" fill="none" opacity="0.2"/></pattern></defs><rect width="200" height="200" fill="url(%23woodpattern)"/></svg>');
    opacity: 0.4;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    max-width: 50%;
}

.about-intro {
    font-size: 1.2rem;
    color: #654321;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.credential {
    text-align: center;
    padding: 1.5rem;
    background: rgba(244, 228, 188, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(101, 67, 33, 0.2);
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.credential h4 {
    color: #8b4513;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential p {
    color: #3d2914;
    font-weight: 600;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: #8b4513;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(101, 67, 33, 0.3);
}

.about-piano-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.image-placeholder:hover .about-piano-img {
    transform: scale(1.05);
}

.tuning-illustration {
    position: relative;
    width: 200px;
    height: 200px;
}

.piano-strings {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.3) 0px,
        rgba(255, 255, 255, 0.3) 2px,
        transparent 2px,
        transparent 10px
    );
}

.tuning-fork {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px 20px 5px 5px;
}

.tuning-fork::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-bottom: none;
    border-radius: 25px 25px 0 0;
}

/* Before & After Section */
.before-after {
    padding: 100px 0;
    background: rgba(139, 69, 19, 0.05);
}

.before-after-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.before-after-text {
    flex: 1;
    padding-right: 2rem;
}

.before-after-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #3d2914;
    margin-bottom: 1.5rem;
}

.before-after-description {
    font-size: 1.1rem;
    color: #654321;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.before-after-video {
    flex: 1;
    max-width: 50%;
}

.demo-video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(101, 67, 33, 0.3);
    transition: transform 0.3s ease;
}

.demo-video:hover {
    transform: scale(1.02);
}

/* Responsive design for before/after section */
@media (max-width: 768px) {
    .before-after-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .before-after-text {
        padding-right: 0;
    }
    
    .before-after-video {
        max-width: 100%;
    }
}

/* Legacy testimonials styles (keeping for potential future use) */
.testimonials {
    padding: 100px 0;
    background: rgba(139, 69, 19, 0.05);
}

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

.testimonial-card {
    background: rgba(244, 228, 188, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(101, 67, 33, 0.2);
    transition: all 0.3s ease;
    border-left: 4px solid #8b4513;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(101, 67, 33, 0.3);
}

.stars {
    color: #daa520;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: #654321;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    color: #3d2914;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: #8b4513;
    font-size: 0.9rem;
    font-weight: 500;
}

.google-reviews-link-section {
    text-align: center;
    margin-top: 3rem;
}

.reviews-note {
    color: #654321;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.google-reviews-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 30px;
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.google-reviews-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #a0522d, #8b4513);
}

/* Mobile responsive for testimonials */
@media (max-width: 768px) {
    .testimonials {
        padding: 80px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .google-reviews-link-section {
        margin-top: 2rem;
    }
    
    .google-reviews-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #3d2914 0%, #8b4513 100%);
    color: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1507838153414-b4b713384a76?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
}

.contact .section-title {
    color: #f4e4bc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-intro {
    color: #f4e4bc;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.booking-section {
    background: rgba(244, 228, 188, 0.95);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.booking-section h3 {
    color: #2d1810;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.booking-description {
    color: #4a2c17;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
}

.google-calendar-booking-large {
    display: flex;
    justify-content: center;
}

.google-calendar-booking-large button {
    background: linear-gradient(135deg, #8b4513, #a0522d) !important;
    color: white !important;
    padding: 20px 40px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.google-calendar-booking-large button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.4) !important;
    background: linear-gradient(135deg, #a0522d, #8b4513) !important;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(244, 228, 188, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.contact-icon {
    font-size: 2rem;
}

.contact-text h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d1810;
    font-size: 1.1rem;
}

.contact-text p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #4a2c17;
    font-weight: 600;
    font-size: 1rem;
}

.contact-text small {
    color: #6b4423;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    color: #2c3e50;
}

.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: #3d2914;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #deb887;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile First Responsive Design */

/* Larger tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .image-placeholder {
        width: 350px;
        height: 350px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Enhanced Navigation */
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(139, 69, 19, 0.98), rgba(160, 82, 45, 0.98));
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
        gap: 1.5rem;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: #f4e4bc !important;
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
        border-radius: 10px;
        transition: all 0.3s ease;
        margin: 0 1rem;
    }

    .nav-link:hover {
        background: rgba(244, 228, 188, 0.2);
        transform: translateX(5px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Enhanced Hero Section */
    .hero {
        min-height: 90vh;
        padding: 100px 0 50px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 0 20px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .piano-photo {
        height: 280px;
        margin: 0 auto;
        max-width: 400px;
    }

    /* Enhanced Services Section */
    .services {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem;
        margin: 0 auto;
        max-width: 400px;
    }

    .service-card.featured {
        transform: none;
        margin-bottom: 1rem;
    }

    .service-card.featured:hover {
        transform: translateY(-5px);
    }

    .service-image {
        height: 180px;
        margin-bottom: 1.5rem;
    }

    .service-features {
        text-align: left;
    }

    /* Enhanced About Section */
    .about {
        padding: 80px 0;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        max-width: 100%;
    }

    .credentials {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .credential {
        padding: 1.25rem;
    }

    /* Enhanced Before & After Section */
    .before-after {
        padding: 80px 0;
    }

    .before-after-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .before-after-text {
        padding-right: 0;
        order: 1;
    }
    
    .before-after-video {
        max-width: 100%;
        order: 2;
    }

    .demo-video {
        max-height: 300px;
    }

    /* Enhanced Contact Section */
    .contact {
        padding: 80px 0;
    }

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

    .booking-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .booking-section h3 {
        font-size: 1.4rem;
    }

    .booking-description {
        font-size: 1rem;
    }

    .google-calendar-booking-large button {
        padding: 18px 30px !important;
        font-size: 1.1rem !important;
        width: 100%;
        max-width: 300px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.75rem;
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .contact-icon {
        font-size: 2.5rem;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .contact-text {
        flex: 1;
    }

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

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

    .footer-section {
        padding: 0 1rem;
    }

    /* Enhanced Image Display */
    .image-placeholder {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    /* Typography Adjustments */
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    /* Container and Layout */
    .container {
        padding: 0 12px;
    }

    .nav-container {
        padding: 0 15px;
        height: 65px;
    }

    .nav-logo h2 {
        font-size: 1.3rem;
    }

    /* Hero Section - Mobile Optimized */
    .hero {
        min-height: 85vh;
        padding: 80px 0 40px;
    }

    .hero-content {
        padding: 0 15px;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 260px;
    }

    .piano-photo {
        height: 220px;
        max-width: 340px;
    }

    /* Services Section - Mobile Optimized */
    .services {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .service-card {
        padding: 1.5rem;
        margin: 0 5px;
    }

    .service-image {
        height: 140px;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .service-features {
        margin-bottom: 1.5rem;
    }

    .service-features li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .service-price {
        font-size: 1.2rem;
    }

    /* About Section - Mobile Optimized */
    .about {
        padding: 60px 0;
    }

    .about-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .credentials {
        gap: 1rem;
    }

    .credential {
        padding: 1rem;
    }

    .credential h4 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .credential p {
        font-size: 0.9rem;
    }

    .image-placeholder {
        width: 240px;
        height: 240px;
    }

    /* Before & After Section - Mobile Optimized */
    .before-after {
        padding: 60px 0;
    }

    .before-after-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .before-after-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .demo-video {
        max-height: 250px;
        border-radius: 12px;
    }

    /* Contact Section - Mobile Optimized */
    .contact {
        padding: 60px 0;
    }

    .contact-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .booking-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }

    .booking-section h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .booking-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .google-calendar-booking-large button {
        padding: 16px 24px !important;
        font-size: 1rem !important;
        width: 100%;
        max-width: 280px;
    }

    .contact-details {
        gap: 1rem;
        padding: 0 5px;
    }

    .contact-item {
        padding: 1.25rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .contact-icon {
        font-size: 2rem;
        margin-right: 0;
    }

    .contact-text h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .contact-text p {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .contact-text small {
        font-size: 0.8rem;
    }

    /* Footer - Mobile Optimized */
    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-section {
        padding: 0 0.5rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }

    /* Typography - Mobile Optimized */
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    /* Mobile Navigation Enhancements */
    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 1.5rem 0;
        gap: 1rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.6rem 1rem;
        margin: 0 0.5rem;
    }

    .google-calendar-nav button {
        width: 90%;
        margin: 1rem auto;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 12px;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 0 12px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

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

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        max-width: 240px;
    }

    .piano-photo {
        height: 200px;
        max-width: 300px;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-image {
        height: 120px;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
    }

    .booking-section {
        padding: 1.25rem 0.75rem;
    }

    .contact-item {
        padding: 1rem 0.75rem;
    }

    .demo-video {
        max-height: 200px;
    }

    .section-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        touch-action: manipulation;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-icon {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Disable hover effects on touch devices for better performance */
    .service-card:hover,
    .testimonial-card:hover,
    .piano-photo:hover .hero-piano-img,
    .image-placeholder:hover .about-piano-img {
        transform: none !important;
    }

    .btn:hover {
        transform: none !important;
    }

    .service-card:hover .service-img {
        transform: none !important;
    }

    /* Enhance tap targets */
    .google-calendar-booking button,
    .google-calendar-nav button {
        min-height: 48px !important;
        touch-action: manipulation !important;
    }
    
    /* Optimize animations for touch devices */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Reduce expensive transforms on touch devices */
    .scroll-indicator,
    .sound-waves::before,
    .sound-waves::after {
        will-change: auto;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Google Calendar Button Styling */
.google-calendar-booking button,
.google-calendar-nav button {
    background: linear-gradient(135deg, #da7a35, #ff8248) !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    /* Mobile tap optimization */
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.google-calendar-booking button:hover,
.google-calendar-nav button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4) !important;
    background: linear-gradient(135deg, #ffb795, #ffa260) !important;
}

/* Mobile-specific button styling */
@media (max-width: 768px) {
    .google-calendar-booking button,
    .google-calendar-nav button {
        min-height: 48px !important;
        min-width: 48px !important;
    }
}

.google-calendar-nav button {
    padding: 10px 20px !important;
    border-radius: 25px !important;
}

/* Ensure Google Calendar buttons fit into navigation */
.google-calendar-nav {
    display: flex;
    align-items: center;
}

/* Mobile responsive adjustments for Google Calendar buttons */
@media (max-width: 768px) {
    .google-calendar-nav button {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .google-calendar-booking button {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Enhanced mobile navigation spacing */
    .nav-menu {
        gap: 1rem;
        padding: 2rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1.5rem;
        margin: 0 1rem;
    }
}

/* Mobile Device Specific Optimizations */
.mobile-device {
    /* Use hardware acceleration for smoother animations on mobile */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Optimize for 60fps on mobile */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.mobile-device .hero {
    /* Use viewport units that work better on mobile */
    min-height: calc(var(--vh, 1vh) * 100);
}

.mobile-device .service-card,
.mobile-device .contact-item {
    /* Add subtle touch feedback */
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    /* Enable hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mobile-device .btn {
    /* Improve button press feedback on mobile */
    transition: all 0.15s ease;
    /* Enable hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Optimize scrolling performance during scroll events */
.scrolling * {
    pointer-events: none;
}

.scrolling .sound-waves::before,
.scrolling .sound-waves::after {
    animation-play-state: paused !important;
}

/* Disable expensive effects during scroll on mobile */
@media (max-width: 768px) {
    .scrolling .fade-in,
    .scrolling .slide-in-left,
    .scrolling .slide-in-right {
        transition: none !important;
    }
    
    .scrolling .service-card:hover,
    .scrolling .btn:hover {
        transform: none !important;
    }
}

/* Loading and Performance Optimizations */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Reduce motion for users who prefer it */
@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;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .sound-waves::before,
    .sound-waves::after {
        animation: none;
    }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-piano-img,
    .service-img,
    .about-piano-img,
    .demo-video {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.hamburger:focus {
    outline: 2px solid #8b4513;
    outline-offset: 2px;
}

/* Improve form accessibility on mobile */
@media (max-width: 768px) {
    input, 
    select, 
    textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 8px;
        padding: 12px 16px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hamburger,
    .google-calendar-booking,
    .google-calendar-nav {
        display: none !important;
    }
    
    .hero,
    .services,
    .about,
    .contact {
        page-break-inside: avoid;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
