/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ================================== */

/* ===================================
   TABLET DEVICES (768px and above)
   ================================== */

@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

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

    .container {
        padding: 0 15px;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .services-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* ===================================
   MOBILE DEVICES (768px and below)
   ================================== */

@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

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

    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-logo {
        gap: 8px;
        font-size: 1.25rem;
    }

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
    }

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

    .nav-item {
        padding: 1rem 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: flex;
    }

    .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 */
    .hero {
        margin-top: 60px;
        min-height: 400px;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

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

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

    .btn {
        width: 100%;
    }

    /* Sections */
    .features,
    .services-preview,
    .testimonials,
    .faq,
    .cta,
    .about-section,
    .mission-vision,
    .why-choose,
    .team,
    .achievements,
    .gallery,
    .stats,
    .services-detailed,
    .comparison,
    .contact-section,
    .map-section {
        padding: 50px 0;
    }

    /* Grid Layouts */
    .features-grid,
    .services-grid,
    .testimonials-grid,
    .gallery-grid,
    .stats-grid,
    .mission-vision .container,
    .why-grid,
    .team-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    /* Feature Cards */
    .feature-card,
    .service-card,
    .testimonial-card,
    .mission-card,
    .why-card,
    .team-card,
    .achievement-card {
        padding: 1.5rem;
    }

    /* Service Detail */
    .service-detail-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .service-detail-icon {
        font-size: 2.5rem;
    }

    /* Comparison Table */
    .comparison-table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 1rem 0.5rem;
    }

    /* Gallery */
    .gallery-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .gallery-image {
        height: 200px;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form,
    .contact-info-wrapper {
        width: 100%;
    }

    .contact-info-card {
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        margin: 0 auto;
    }

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

    /* FAQ */
    .faq-container {
        max-width: 100%;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 1rem;
    }

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

    .footer-section h4 {
        margin-bottom: 0.75rem;
    }

    /* Buttons */
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 90px;
        right: 20px;
        font-size: 1.2rem;
    }

    /* CTA */
    .cta h2 {
        font-size: 1.75rem;
    }

    .cta p {
        font-size: 1rem;
    }

    /* Page Header */
    .page-header {
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }

    .stat-card p {
        font-size: 1rem;
    }

    /* Team */
    .team-image {
        height: 200px;
    }

    .team-card h4 {
        margin: 1rem 1rem 0.5rem;
    }

    /* Map */
    .map-container {
        height: 300px;
    }

    .map-container iframe {
        height: 300px;
    }
}

/* ===================================
   SMALL MOBILE DEVICES (480px and below)
   ================================== */

@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }

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

    p {
        font-size: 0.95rem;
    }

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Navigation */
    .navbar-logo {
        font-size: 1rem;
    }

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

    /* Hero */
    .hero {
        margin-top: 55px;
        min-height: 300px;
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

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

    /* Sections */
    .features,
    .services-preview,
    .testimonials,
    .faq,
    .cta,
    .about-section,
    .mission-vision,
    .why-choose,
    .team,
    .achievements,
    .gallery,
    .stats,
    .services-detailed,
    .comparison,
    .contact-section,
    .map-section {
        padding: 30px 0;
    }

    /* Cards */
    .feature-card,
    .service-card,
    .testimonial-card,
    .mission-card,
    .why-card,
    .team-card,
    .achievement-card,
    .service-detail-card {
        padding: 1rem;
    }

    .feature-icon,
    .service-icon,
    .mv-icon,
    .why-icon,
    .achievement-icon {
        font-size: 2rem;
    }

    .service-detail-icon {
        font-size: 2rem;
    }

    /* Buttons */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Gallery */
    .gallery-image {
        height: 150px;
    }

    .gallery-overlay {
        padding: 1rem;
    }

    .gallery-overlay h4 {
        font-size: 0.9rem;
    }

    .gallery-overlay p {
        font-size: 0.8rem;
    }

    /* Contact Form */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .contact-info-card {
        padding: 1rem;
    }

    .info-icon {
        font-size: 1.5rem;
    }

    .info-content h4 {
        font-size: 0.95rem;
    }

    .info-content p {
        font-size: 0.85rem;
    }

    /* FAQ */
    .faq-question {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0.75rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

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

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

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

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

    /* Floating Buttons */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 1.25rem;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 80px;
        right: 15px;
        font-size: 1rem;
    }

    /* CTA */
    .cta h2 {
        font-size: 1.5rem;
    }

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

    /* Page Header */
    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    /* Stats */
    .stat-number {
        font-size: 2rem;
    }

    .stat-card p {
        font-size: 0.9rem;
    }

    /* Team */
    .team-image {
        height: 150px;
    }

    .team-card h4 {
        font-size: 1rem;
        margin: 0.75rem 0.75rem 0.25rem;
    }

    .team-card p {
        font-size: 0.85rem;
        margin: 0.25rem 0.75rem;
    }

    .team-bio {
        font-size: 0.8rem;
        padding: 0 0.75rem 1rem;
    }

    /* Map */
    .map-container {
        height: 250px;
    }

    .map-container iframe {
        height: 250px;
    }

    /* Table */
    table {
        font-size: 0.8rem;
    }

    table th,
    table td {
        padding: 0.75rem 0.25rem;
    }

    /* About */
    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    /* Service Detail */
    .service-detail-header {
        padding-bottom: 1rem;
    }

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

    .service-features li {
        font-size: 0.9rem;
        padding: 0.25rem 0;
    }

    /* Filter Buttons */
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .gallery-filter {
        gap: 0.25rem;
    }
}

/* ===================================
   EXTRA SMALL DEVICES (320px and below)
   ================================== */

@media (max-width: 320px) {
    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.25rem;
    }

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

    .container {
        padding: 0 10px;
    }

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

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

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .feature-icon,
    .service-icon {
        font-size: 1.5rem;
    }

    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .scroll-top {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .gallery-image {
        height: 120px;
    }

    .team-image {
        height: 120px;
    }

    .map-container {
        height: 200px;
    }

    .map-container iframe {
        height: 200px;
    }
}

/* ===================================
   LANDSCAPE ORIENTATION
   ================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 300px;
    }

    .page-header {
        padding: 30px 0;
    }

    .sections {
        padding: 30px 0;
    }
}

/* ===================================
   PRINT STYLES
   ================================== */

@media print {
    .navbar,
    .whatsapp-btn,
    .scroll-top,
    .hamburger {
        display: none;
    }

    body {
        background: white;
    }

    .container {
        max-width: 100%;
    }

    a {
        text-decoration: underline;
    }
}
