/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet - 768px and below */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

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

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

    .nav-link {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-link::after {
        display: none;
    }

    .cta-button {
        margin: 10px 0;
    }

    /* Hero Section */
    .hero {
        height: 500px;
        margin-top: 60px;
    }

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

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

    .hero .button {
        display: block;
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* About Grid */
    .about-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail-grid.reverse {
        direction: ltr;
    }

    /* Services Grid */
    .services-grid,
    .team-grid,
    .mission-grid,
    .hse-grid,
    .objectives-grid,
    .process-timeline {
        grid-template-columns: 1fr;
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-image-wrapper {
        height: 200px;
    }

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

    /* Intro Stats */
    .intro-stats {
        gap: 20px;
    }

    .stat-card {
        min-width: 100%;
    }

    /* Sections */
    .intro,
    .services,
    .projects,
    .about-section,
    .mission-vision,
    .team,
    .services-detail,
    .contact-section,
    .hse-section {
        padding: 60px 0;
    }

    /* Page Header */
    .page-header {
        padding: 60px 0;
        margin-top: 60px;
    }

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

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

    /* CTA Section */
    .cta {
        padding: 60px 0;
    }

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

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

    .cta .button {
        width: 100%;
        max-width: 300px;
        display: block;
        margin: 10px auto;
    }

    /* Footer */
    .footer-grid {
        gap: 30px;
    }

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

    /* Form */
    .form-group {
        margin-bottom: 20px;
    }

    /* Service Cards */
    .service-card {
        padding: 30px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* Team Members */
    .member-image {
        height: 250px;
    }

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

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

    /* Navigation */
    .logo h1 {
        font-size: 1.2rem;
    }

    /* Hero */
    .hero {
        height: 400px;
        margin-top: 55px;
    }

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

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

    /* Typography */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }

    /* Sections */
    .intro,
    .services,
    .projects,
    .about-section,
    .mission-vision,
    .team,
    .services-detail,
    .contact-section,
    .hse-section,
    .work-process,
    .objectives {
        padding: 40px 0;
    }

    /* Page Header */
    .page-header {
        padding: 40px 0;
        margin-top: 55px;
    }

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

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

    /* Service Cards */
    .service-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

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

    /* Stats */
    .intro-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card h4 {
        font-size: 1.5rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-image-wrapper {
        height: 200px;
    }

    /* CTA */
    .cta {
        padding: 40px 0;
    }

    .cta h2 {
        font-size: 1.4rem;
    }

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

    /* Contact */
    .contact-item {
        gap: 15px;
        margin-bottom: 20px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* Form */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .button {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

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

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

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

    .social-links {
        justify-content: center;
    }

    /* WhatsApp Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 1.3rem;
    }

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

    .team-member h3 {
        font-size: 1rem;
    }

    .member-role {
        font-size: 0.85rem;
    }

    .team-member p {
        font-size: 0.85rem;
    }

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

    /* Mission Cards */
    .mission-card {
        padding: 30px 20px;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .mission-card h3 {
        font-size: 1.1rem;
    }

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

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

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

    /* Features List */
    .features-list li {
        padding: 10px 0;
        font-size: 0.9rem;
    }

    /* Process Timeline */
    .process-step {
        padding: 30px 20px;
    }

    .step-number {
        font-size: 2rem;
    }

    .process-step h3 {
        font-size: 1.1rem;
    }

    /* HSE Cards */
    .hse-icon {
        font-size: 2.5rem;
    }

    /* Objective Cards */
    .objective-number {
        font-size: 2rem;
    }

    /* Detail Text */
    .detail-text h2 {
        font-size: 1.4rem;
    }

    .detail-text p {
        font-size: 0.95rem;
    }
}

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

    .hero {
        height: 350px;
    }

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

    .button {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .service-card {
        padding: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card h4 {
        font-size: 1.3rem;
    }
}

/* Large Screens - 1440px and above */
@media (min-width: 1440px) {
    .container {
        max-width: 1300px;
    }

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

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

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

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .mission-grid,
    .hse-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .cta {
        display: none;
    }

    body {
        background-color: var(--white);
    }

    a {
        color: var(--primary);
        text-decoration: underline;
    }

    .button {
        border: 2px solid var(--text);
        color: var(--text) !important;
    }

    .page-break {
        page-break-after: always;
    }
}

/* Accessibility */
@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;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1a1a1a;
        --white: #2a2a2a;
        --text: #e0e0e0;
        --light-gray: #3a3a3a;
    }

    body {
        background-color: var(--background);
        color: var(--text);
    }

    .navbar {
        background-color: #1a1a1a;
    }

    .nav-links {
        background-color: #1a1a1a;
    }

    .service-card,
    .mission-card,
    .process-step,
    .objective-card,
    .hse-card {
        background-color: #2a2a2a;
    }

    .about-grid,
    .services-detail,
    .team {
        background-color: #1a1a1a;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #2a2a2a;
        color: var(--text);
        border-color: #3a3a3a;
    }

    .footer {
        background-color: #0a0a0a;
    }

    .credentials-box {
        background-color: #2a2a2a;
    }
}