/* Mobile Optimizations for Index.html - Keep Desktop Unchanged */

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .logo-container img {
        height: 50px !important;
    }
    
    .logo {
        display: none !important; /* Hide the text, keep only the logo image */
    }
    
    .nav-menu {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Ensure desktop navigation remains unchanged */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
        display: inline-block !important;
        color: var(--text-primary) !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        transition: color 0.3s ease !important;
    }
    
    .logo {
        display: block !important;
        font-size: 1.5rem !important;
    }
    
    .hamburger {
        display: none !important;
    }
}

/* Hero Section Mobile Optimizations */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 60px 0 40px;
    }
    
    .hero-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
        max-width: 100%;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        max-width: 350px;
        margin: 0 auto;
        position: relative;
    }
    
    /* Create a single horizontal row for social icons */
    .hero-cta .social-icons {
        position: absolute !important;
        bottom: -60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        margin: 0 !important;
    }
    
    .hero-cta .social-icons:first-child {
        left: calc(50% - 35px) !important;
    }
    
    .hero-cta .social-icons:last-child {
        left: calc(50% + 35px) !important;
    }
    
    /* Add space below hero-cta for the absolutely positioned icons */
    .hero-cta {
        margin-bottom: 40px !important;
    }
    
    .btn-primary-large {
        order: 1;
        font-size: 0.9rem;
        padding: 12px 24px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
        width: auto;
    }
    
    .hero-image {
        display: none;
    }
    
    .scroll-indicator {
        margin-top: 30px;
    }
    
    .scroll-indicator span {
        font-size: 0.9rem;
    }
}

/* About Page Mobile Optimizations */
@media (max-width: 768px) {
    /* Page Header */
    .page-header {
        text-align: center !important;
        padding: 40px 20px !important;
    }
    
    .page-header h1 {
        font-size: 2rem !important;
        text-align: center !important;
    }
    
    /* Artist Story Section */
    .artist-story {
        padding: 40px 20px !important;
    }
    
    .story-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }
    
    .story-text {
        order: 2 !important;
    }
    
    .story-text h2 {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    .story-text p {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    .story-image {
        order: 1 !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    /* What I Do Section */
    .what-i-do {
        padding: 40px 20px !important;
    }
    
    .what-i-do-content {
        text-align: center !important;
    }
    
    .what-i-do-text h3 {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    .what-i-do-text p {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    .visual-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .visual-item {
        text-align: center !important;
    }
    
    /* Process Steps */
    .my-process {
        padding: 40px 20px !important;
    }
    
    .process-steps {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .process-card {
        text-align: center !important;
    }
    
    .step-content h3 {
        text-align: center !important;
        margin: 15px 0 10px !important;
    }
    
    .step-content p {
        text-align: center !important;
    }

    /* General About Page Content */
    .about {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-image {
        order: 1;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        text-align: center !important;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
        text-align: center !important;
    }
    
    .btn-text {
        font-size: 0.9rem;
        padding: 10px 0;
        text-align: center !important;
        display: block !important;
    }
    
    /* CTA Section */
    .final-cta {
        text-align: center !important;
    }
    
    .cta-content {
        text-align: center !important;
    }
    
    .cta-buttons {
        justify-content: center !important;
    }
}

/* Small Mobile Devices (iPhone SE and similar) */
@media (max-width: 480px) {
    .visual-grid {
        gap: 20px !important;
    }
    
    .visual-item {
        padding: 20px !important;
    }
    
    .visual-item-icon {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
    }
    
    /* Pricing carousel adjustments for small screens */
    .pricing-carousel {
        padding: 0 35px !important;
    }
    
    .pricing-carousel-arrow {
        width: 35px !important;
        height: 35px !important;
    }
    
    .pricing-carousel-left {
        left: 5px !important;
    }
    
    .pricing-carousel-right {
        right: 5px !important;
    }
    
    /* Pricing cards for small screens */
    .pricing-card {
        padding: 20px 20px 30px 20px !important; /* Added more padding */
        max-height: 440px !important; /* Increased from 420px */
        min-height: 440px !important; /* Force equal height */
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
    }
    
    .pricing-card.expanded {
        max-height: none !important; /* Let content determine height */
        min-height: 550px !important;
    }
    
    /* Remove featured/premium styling differences on small screens */
    .pricing-card.featured,
    .pricing-card.premium {
        border: 2px solid #ddd !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    .pricing-card h2 {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
        height: 55px !important; /* Fixed height for title area */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.2 !important;
        overflow: hidden !important;
    }
    
    .pricing-image {
        max-width: 160px !important;
        margin: 0 auto 12px !important;
    }
    
    .pricing-image img {
        height: 130px !important;
    }
    
    .price-range {
        margin-bottom: 8px !important;
        display: flex !important;
        align-items: baseline !important;
        justify-content: center !important;
        gap: 4px !important;
    }
    
    .price-range .currency {
        display: inline !important;
        font-size: 1.1rem !important;
    }
    
    .price-range .amount {
        display: inline !important;
        font-size: 1.8rem !important;
    }
    
    /* Expand button visibility and sizing for small screens */
    .pricing-card .expand-btn {
        margin: 12px auto 8px !important;
        padding: 6px 0 !important;
        font-size: 0.85rem !important;
        min-height: 36px !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .pricing-card.expanded .expand-btn {
        margin-top: 20px !important;
        margin-bottom: 12px !important;
    }
    
    /* Order buttons for small screens */
    .pricing-card .btn {
        position: absolute !important;
        bottom: 60px !important; /* Moved up to make space for More Details */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 95% !important;
        max-width: 260px !important;
        font-size: 0.85rem !important;
        padding: 10px 12px !important;
        min-height: 44px !important;
        margin: 0 !important;
    }
    
    /* More Details button for small screens */
    .pricing-card .expand-btn {
        position: absolute !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        margin: 0 !important;
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        display: block !important;
        visibility: visible !important;
        z-index: 5 !important;
        background: transparent !important;
        border: none !important;
        color: var(--primary-color) !important;
        text-decoration: underline !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }
    
    /* Size pricing adjustments */
    .size-pricing {
        margin-bottom: 12px !important;
    }
    
    .size-option {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    
    /* Features list adjustments */
    .features {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }
    
    .features li {
        margin-bottom: 6px !important;
    }
    
    /* Pricing note adjustments */
    .pricing-note {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 5px !important;
    }
}

/* Very Small Mobile Devices (iPhone SE - 375px and below) */
@media (max-width: 375px) {
    /* Extra small pricing carousel adjustments */
    .pricing-carousel {
        padding: 0 30px !important;
    }
    
    .pricing-carousel-arrow {
        width: 32px !important;
        height: 32px !important;
    }
    
    .pricing-carousel-left {
        left: 2px !important;
    }
    
    .pricing-carousel-right {
        right: 2px !important;
    }
    
    /* Force consistent title height for iPhone SE */
    .pricing-card h2 {
        height: 50px !important; /* Fixed height for iPhone SE */
        min-height: 50px !important;
        font-size: 1.3rem !important;
    }
    
    /* Extra small pricing cards - FLEXIBLE HEIGHT WITH CONSISTENT LAYOUT */
    .pricing-card {
        padding: 18px 18px 110px 18px !important; /* More bottom space for buttons */
        height: auto !important; /* Auto height instead of fixed */
        min-height: 450px !important; /* Minimum height */
        overflow: visible !important;
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .pricing-card.expanded {
        height: 900px !important; /* Fixed height for expanded state */
    }
    
    /* Position button absolutely at bottom */
    .pricing-card .btn {
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 98% !important;
        max-width: 220px !important;
        font-size: 0.75rem !important;
        padding: 8px 8px !important;
        min-height: 36px !important;
        line-height: 1.1 !important;
        z-index: 1 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Remove featured/premium styling differences on iPhone SE */
    .pricing-card.featured,
    .pricing-card.premium {
        border: 2px solid #ddd !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    .pricing-card h2 {
        font-size: 1.15rem !important;
        margin-bottom: 8px !important;
        height: 50px !important; /* Fixed height for title area */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.2 !important;
        overflow: hidden !important;
    }
    
    .pricing-image {
        max-width: 130px !important;
        margin: 0 auto 8px !important;
    }
    
    .pricing-image img {
        height: 110px !important;
    }
    
    .price-range {
        margin-bottom: 6px !important;
        display: flex !important;
        align-items: baseline !important;
        justify-content: center !important;
        gap: 3px !important;
    }
    
    .price-range .currency {
        display: inline !important;
        font-size: 1rem !important;
    }
    
    .price-range .amount {
        display: inline !important;
        font-size: 1.5rem !important;
    }
    
    /* Order buttons for very small screens - BETTER POSITIONING */
    .pricing-card .btn {
        position: absolute !important;
        bottom: 60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 200px !important;
        font-size: 0.75rem !important;
        padding: 10px !important;
        min-height: 36px !important;
        line-height: 1.1 !important;
        z-index: 1 !important;
        margin: 0 !important;
        border-radius: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* More Details button for iPhone SE */
    .pricing-card .expand-btn {
        position: absolute !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        margin: 0 !important;
        padding: 8px 15px !important;
        font-size: 0.75rem !important;
        display: block !important;
        visibility: visible !important;
        z-index: 5 !important;
        background: transparent !important;
        border: none !important;
        color: var(--primary-color) !important;
        text-decoration: underline !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
    
    /* Compact text sizes */
    .size-option {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
    }
    
    .features {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
    }
    
    .features li {
        margin-bottom: 3px !important;
    }
    
    .pricing-note {
        font-size: 0.7rem !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 5px !important;
    }
    
    /* Ensure carousel indicators are visible */
    .pricing-carousel-indicators {
        margin-top: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .pricing-indicator {
        width: 10px !important;
        height: 10px !important;
    }
}

/* Ultra small screens (320px and below) */
@media (max-width: 320px) {
    .pricing-card {
        max-height: none !important; /* Remove max height restriction */
        min-height: 430px !important; /* Minimum height for content */
        padding: 15px 15px 100px 15px !important; /* More space at bottom for buttons */
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Force consistent title height for smallest screens */
    .pricing-card h2 {
        height: 45px !important;
        min-height: 45px !important;
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }
    
    .pricing-card.expanded {
        max-height: 850px !important;
    }
    
    /* Remove featured/premium styling differences on ultra small screens */
    .pricing-card.featured,
    .pricing-card.premium {
        border: 2px solid #ddd !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    .pricing-card h2 {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
        height: 45px !important; /* Fixed height for title area */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.1 !important;
        overflow: hidden !important;
    }
    
    .pricing-image {
        max-width: 120px !important;
    }
    
    .pricing-image img {
        height: 100px !important;
    }
    
    .pricing-card .btn {
        position: absolute !important;
        bottom: 50px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.7rem !important;
        padding: 8px 6px !important;
        min-height: 32px !important;
        margin: 0 !important;
        width: 85% !important;
        max-width: 180px !important;
        border-radius: 4px !important;
    }
    
    /* More Details button for ultra small screens */
    .pricing-card .expand-btn {
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        margin: 0 !important;
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
        display: block !important;
        visibility: visible !important;
        z-index: 5 !important;
        background: transparent !important;
        border: none !important;
        color: var(--primary-color) !important;
        text-decoration: underline !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }
}

/* Critical fix: Force expand button visibility across all mobile sizes */
@media (max-width: 768px) {
    .pricing-card .expand-btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }
}
.pricing-badge {
    display: none !important;
}

/* Hide mobile carousel elements on desktop */
@media (min-width: 769px) {
    .pricing-carousel-arrow,
    .pricing-carousel-indicators {
        display: none !important;
    }
    
    .pricing-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
        width: auto !important;
        transform: none !important;
    }
    
    .pricing-card {
        flex: none !important;
    }
}

/* Pricing Page Mobile Optimizations */
@media (max-width: 768px) {
    /* Hide pricing badges on mobile */
    .pricing-badge {
        display: none !important;
    }
    
    /* Mobile Pricing Carousel */
    .pricing-carousel {
        position: relative !important;
        overflow: hidden !important;
        padding: 0 50px !important;
    }
    
    .pricing-carousel-arrow {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: rgba(107, 78, 47, 0.9) !important;
        color: white !important;
        border: none !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 10 !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    .pricing-carousel-arrow:hover {
        background: rgba(107, 78, 47, 1) !important;
        transform: translateY(-50%) scale(1.1) !important;
    }
    
    .pricing-carousel-left {
        left: 10px !important;
    }
    
    .pricing-carousel-right {
        right: 10px !important;
    }
    
    .pricing-carousel-indicators {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 20px !important;
    }
    
    .pricing-indicator {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
        background: #ddd !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .pricing-indicator.active {
        background: var(--primary-color) !important;
        transform: scale(1.2) !important;
    }
    
    /* Pricing Cards - Compact Mobile View */
    .pricing-grid {
        display: flex !important;
        transition: transform 0.5s ease !important;
        width: 200% !important;
        margin-bottom: 15px !important;
    }
    
    .pricing-card {
        padding: 20px 20px 120px 20px !important; /* Simplified padding with more space at bottom */
        height: auto !important; /* Let content determine height */
        overflow: visible !important; /* Allow content to be fully visible */
        position: relative !important;
        transition: height 0.5s ease !important;
        margin-bottom: 40px !important;
        flex: 0 0 50% !important;
        min-width: 0 !important;
        display: flex !important; /* Use flex for better content distribution */
        flex-direction: column !important; /* Stack content vertically */
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
    }
    
    /* Remove featured/premium styling differences on mobile */
    .pricing-card.featured,
    .pricing-card.premium {
        border: 2px solid #ddd !important;
        box-shadow: none !important;
        background: white !important;
        height: 500px !important;
    }
    
    .pricing-card.expanded {
        height: auto !important; /* Let content determine height */
        min-height: 550px !important;
        margin-bottom: 40px !important;
    }
    
    /* Position button absolutely at bottom */
    .pricing-card .btn {
        position: absolute !important;
        bottom: 70px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        width: 80% !important;
        max-width: 250px !important;
        min-width: 180px !important;
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        margin: 0 !important;
        border-radius: 4px !important;
    }
    
    /* Position More Details button below Order button */
    .pricing-card .expand-btn {
        position: absolute !important;
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        margin: 0 !important;
        padding: 10px !important;
        font-size: 0.85rem !important;
        display: block !important;
        visibility: visible !important;
        z-index: 5 !important;
        background: transparent !important;
        border: none !important;
        color: var(--primary-color) !important;
        text-decoration: underline !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }
    
    .pricing-card h2 {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
        height: 40px !important; /* Fixed height for consistent layout */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.3 !important;
        overflow: visible !important;
    }
    
    .pricing-image {
        max-width: 180px !important;
        margin: 0 auto !important; /* Remove bottom margin, we'll control spacing with price-range */
        flex-shrink: 0 !important; /* Prevent image from shrinking */
    }
    
    .pricing-image img {
        height: 150px !important;
    }
    
    .price-range {
        margin: 15px auto 25px !important; /* Consistent spacing after image regardless of title */
        display: flex !important;
        align-items: baseline !important;
        justify-content: center !important;
        gap: 5px !important;
    }
    
    .price-range .currency {
        display: inline !important;
        font-size: 1.2rem !important;
    }
    
    .price-range .amount {
        display: inline !important;
        font-size: 2rem !important;
    }
    
    /* Hide these elements by default on mobile */
    .pricing-card .size-pricing {
        display: none !important;
    }
    
    .pricing-card.expanded .size-pricing {
        display: block !important;
    }
    
    .pricing-card .features {
        display: none !important;
    }
    
    .pricing-card.expanded .features {
        display: block !important;
    }
    
    .pricing-card .pricing-note {
        display: none !important;
    }
    
    .pricing-card.expanded .pricing-note {
        display: block !important;
    }
    
    /* Additional Options section */
    .dropdown-section {
        margin-top: 30px !important;
    }
    
    .dropdown-toggle h2 {
        font-size: 1.4rem !important;
    }
    
    .option-item {
        padding: 15px !important;
    }
    
    .option-item h3 {
        font-size: 1.2rem !important;
    }
    
    /* Reference Photo Guide */
    .photo-guide-content {
        flex-direction: column !important;
    }
    
    .photo-guide-left {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    .photo-guide-right {
        width: 100% !important;
    }
    
    /* Process slideshow */
    .process-step {
        padding: 15px !important;
    }
    
    /* Important Information */
    .info-row {
        flex-direction: column !important;
    }
    
    .info-category {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
}

/* Customer Reviews Mobile Optimizations */
@media (max-width: 768px) {
    .customer-review {
        padding: 50px 0;
    }
    
    .review-section-header h3 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .review-carousel {
        max-width: 100%;
    }
    
    .review-slide {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .review-image {
        flex-shrink: 0;
    }
    
    .review-image img {
        width: 150px !important;
        height: 150px !important;
    }
    
    .review-text {
        padding-right: 20px;
        max-width: 280px;
    }
    
    .review-text blockquote {
        border-left: none;
        padding-left: 0;
        text-align: center;
        font-size: 0.95rem;
        border-top: 3px solid var(--primary-color);
        padding-top: 15px;
        padding-left: 0;
    }
    
    .review-author {
        text-align: center;
        margin-top: 15px;
    }
    
    .stars {
        text-align: center;
        margin-bottom: 15px;
        font-size: 1.1rem;
    }
}

/* CTA Section Mobile Optimizations */
@media (max-width: 768px) {
    .final-cta {
        padding: 60px 0;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .cta-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        max-width: 280px;
        font-size: 0.9rem;
        padding: 15px 30px;
    }
}

/* Footer Mobile Optimizations */
@media (max-width: 768px) {
    .footer-container {
        padding: 40px 20px 20px;
        text-align: center !important;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: center !important;
    }
    
    .footer-section {
        text-align: center !important;
    }
    
    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 15px;
        text-align: center !important;
    }
    
    .footer-section ul {
        text-align: center !important;
        list-style: none !important;
        padding: 0 !important;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
        text-align: center !important;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
        text-align: center !important;
        display: block !important;
    }
    
    .social-links {
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .social-link {
        text-align: center !important;
        margin-bottom: 8px !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center !important;
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        text-align: center !important;
    }
    
    .footer-legal {
        gap: 20px;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .footer-legal a {
        font-size: 0.8rem;
        text-align: center !important;
        margin-bottom: 8px !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.7rem;
    }
    
    .about-text h2 {
        font-size: 1.6rem;
    }
    
    .review-section-header h3 {
        font-size: 1.6rem;
    }
    
    .cta-text h2 {
        font-size: 1.6rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .review-text {
        max-width: 250px;
    }
    
    .review-image img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        font-size: 0.85rem;
        padding: 12px 25px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 40px 0 20px;
    }
    
    .hero-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .hero-image {
        max-width: 250px;
    }
    
    .social-icons {
        order: initial;
        width: auto;
        margin-top: 0;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .nav-link {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .btn-text {
        padding: 15px 0;
        font-size: 1rem;
    }
    
    .social-icon {
        padding: 12px;
        margin: 0 8px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
        touch-action: manipulation;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Ensure sufficient color contrast */
    .hero-text p {
        color: #333;
    }
    
    .about-text p {
        color: #333;
    }
    
    .review-text blockquote {
        color: #444;
    }
    
    /* Improve focus states for keyboard navigation on mobile */
    .nav-link:focus,
    .btn-primary-large:focus,
    .btn-secondary-large:focus,
    .carousel-arrow:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Gallery/Portfolio Page Mobile Optimizations */
@media (max-width: 768px) {
    /* Fix gallery page horizontal overflow */
    .full-gallery {
        overflow: hidden;
    }
    
    .filter-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 30px !important;
        padding: 20px 10px !important;
    }
    
    .filter-btn {
        width: 100% !important;
        max-width: 200px !important;
        padding: 12px 20px !important;
        font-size: 0.85rem !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    /* Override carousel styles and make gallery stack vertically */
    .gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        gap: 25px !important;
        max-width: 100% !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
    
    .gallery-item {
        min-width: auto !important;
        flex-shrink: initial !important;
        margin-right: 0 !important;
        margin: 0 auto !important;
        max-width: 300px !important;
        width: 100% !important;
    }
    
    .gallery-item .placeholder-image {
        height: 200px !important;
    }
    
    .gallery-item-info {
        padding: 15px !important;
        text-align: center !important;
    }
    
    .gallery-item-info h3 {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    
    .gallery-item-info p {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    .gallery-style {
        font-size: 0.8rem !important;
    }
    
    /* Hide carousel navigation if present */
    .carousel-nav,
    .carousel-nav-btn,
    .gallery-indicators {
        display: none !important;
    }
    
    /* Page header mobile optimization */
    .page-header {
        padding: 40px 0 30px !important;
        text-align: center !important;
    }
    
    .page-header h1 {
        font-size: 2rem !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        max-width: 280px !important;
    }
    
    .gallery-item .placeholder-image {
        height: 180px !important;
    }
    
    .filter-btn {
        max-width: 180px !important;
        padding: 10px 15px !important;
        font-size: 0.8rem !important;
    }
    
    .page-header h1 {
        font-size: 1.7rem !important;
    }
}