/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Navigation - Optimized for touch */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0.5rem;
    }

    .nav-menu li a {
        padding: 15px 20px;
        display: block;
        min-height: 44px;
        line-height: 1.5;
        font-size: 1.1rem;
    }

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

    .hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero Section - Mobile First */
    .hero {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
        min-height: auto;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        order: -1;
    }

    /* Buttons - Touch-friendly sizing */
    .btn {
        width: 100%;
        max-width: 350px;
        padding: 15px 25px;
        font-size: 1.05rem;
        min-height: 48px;
    }

    /* Section Titles - Better readability */
    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

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

    /* Services Grid - Single column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .service-card h3 {
        font-size: 1.4rem;
        margin: 1rem 0;
    }

    .service-card p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .service-icon {
        font-size: 3rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Gallery Grid - Mobile optimized */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item {
        max-width: 100%;
    }

    /* Filter buttons - Touch friendly */
    .filter-controls {
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .filter-btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-height: 44px;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Contact Section - Responsive */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px;
        padding: 12px;
        min-height: 44px;
    }

    /* CTA Section */
    .cta-section {
        padding: 3rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .cta-section p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 350px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    /* Packages */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .package-card {
        max-width: 100%;
    }
}

/* Large Phone / Small Tablet (640px and below) */
@media (max-width: 640px) {
    /* Gallery - Two columns on large phones */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    /* Ensure readable text */
    p {
        font-size: 1rem;
        line-height: 1.65;
    }

    /* Services - Better spacing on medium devices */
    .services {
        padding: 3rem 1rem;
    }

    /* Testimonials - Better cards */
    .testimonials-grid {
        gap: 1.25rem;
    }
}

/* Mobile Styles (480px and below) - Extra optimization for small screens */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    body {
        line-height: 1.7;
    }

    .container {
        padding: 0 16px;
    }

    /* Hero - Compact but readable */
    .hero {
        padding: 2rem 1rem;
    }

    .hero-content h2 {
        font-size: 1.9rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .hero-image img {
        border-radius: 8px;
    }

    /* Headings - Optimized hierarchy */
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    /* Sections - Breathing room */
    section {
        padding: 2.5rem 0;
    }

    .services-section,
    .gallery-section {
        padding: 2rem 0;
    }

    /* Service Cards - Comfortable spacing */
    .service-card {
        padding: 1.75rem 1.25rem;
    }

    .service-icon {
        font-size: 2.75rem;
        margin-bottom: 0.5rem;
    }

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

    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Gallery - Full width images */
    .gallery-grid {
        gap: 1.25rem;
    }

    .gallery-item img {
        border-radius: 8px;
    }

    /* Filter Controls - Easier tapping */
    .filter-controls {
        gap: 0.6rem;
        padding: 0 0.5rem;
    }

    .filter-btn {
        padding: 11px 18px;
        font-size: 0.95rem;
        min-height: 44px;
        border-width: 2px;
    }

    /* Buttons - Comfortable touch targets */
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 8px;
    }

    /* Forms - Prevent zoom on iOS */
    .contact-form input,
    .contact-form textarea,
    .contact-form select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea {
        font-size: 16px;
        padding: 14px 12px;
        min-height: 48px;
        line-height: 1.5;
    }

    textarea {
        min-height: 120px;
    }

    /* Contact Section */
    .contact-grid {
        gap: 1.5rem;
    }

    .contact-item {
        padding: 0.5rem 0;
    }

    .contact-item p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* CTA Section - Clear and bold */
    .cta-section {
        padding: 2.5rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .cta-section p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    /* Navigation - Logo sizing */
    .logo h1 {
        font-size: 1.15rem;
    }

    .logo-icon {
        font-size: 1.6rem;
    }

    .navbar {
        padding: 0.85rem 0;
    }

    /* Footer - Compact but clear */
    .footer-section h4 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .footer-content {
        gap: 2rem;
    }

    /* Testimonials - Easy to read */
    .testimonial-card {
        padding: 1.5rem 1.25rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .testimonial-author {
        font-size: 0.9rem;
    }

    /* Packages - Clear pricing */
    .package-card {
        padding: 1.75rem 1.25rem;
    }

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

    .package-features li {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0.5rem 0;
    }

    /* Feature numbers */
    .feature-number {
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }

    /* Modal - Better mobile experience */
    .modal-content {
        width: 95%;
        max-width: 500px;
        margin: 5% auto;
        padding: 1rem;
    }

    .modal-content img {
        border-radius: 8px;
    }

    /* Ensure text is always readable */
    p, li, a {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .cta-buttons,
    footer,
    .hamburger {
        display: none;
    }

    body {
        background: white;
    }

    .hero {
        min-height: auto;
        padding: 0;
    }
}
