/* ==================== Responsive Design ==================== */

/* ==================== tablets (768px and up) ==================== */
@media (max-width: 768px) {
    /* Header */
    .header-top-content {
        flex-direction: column;
        gap: 15px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        font-size: 0.8rem;
    }

    .navbar {
        padding: 15px 0;
    }

    .navbar-wrapper {
        padding: 10px 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .about-grid,
    .services-grid,
    .overview-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .overview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .qhse-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .qhse-certifications {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .fleet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .fleet-card {
        padding: 20px;
    }

    .fleet-icon {
        font-size: 1.8rem;
    }

    .fleet-card h4 {
        font-size: 0.9rem;
    }

    /* Sections padding */
    .about,
    .services,
    .projects,
    .fleet,
    .qhse,
    .contact {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Cards */
    .about-card,
    .service-card,
    .overview-card {
        padding: 25px;
    }

    .card-icon,
    .service-icon {
        font-size: 2rem;
    }

    .about-card h3,
    .service-card h3 {
        font-size: 1.1rem;
    }

    .about-card p,
    .service-card p {
        font-size: 0.95rem;
    }

    /* Contact form */
    .contact-form {
        padding: 25px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Clients Section */
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-btn-prev {
        left: 10px;
    }

    .slider-btn-next {
        right: 10px;
    }

    .client-logo {
        flex: 0 0 150px;
        height: 100px;
    }

    .clients-track {
        gap: 30px;
    }
}

/* ==================== Mobile (480px and below) ==================== */
@media (max-width: 480px) {
    /* Header */
    .header-top {
        padding: 10px 0;
    }

    .contact-info {
        display: none;
    }

    .language-switch {
        gap: 5px;
    }

    .lang-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .logo img {
        height: 40px;
    }

    .navbar-wrapper {
        padding: 10px 0;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        padding: 30px 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
        width: 100%;
    }

    /* Shapes */
    .shape-1 {
        width: 200px;
        height: 200px;
    }

    .shape-2 {
        width: 150px;
        height: 150px;
    }

    .shape-3 {
        width: 100px;
        height: 100px;
    }

    /* Sections */
    .section-title {
        font-size: 1.5rem;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .overview-card {
        padding: 20px;
    }

    .overview-card .icon {
        font-size: 2rem;
    }

    .project-image {
        height: 250px;
    }

    .project-overlay h3 {
        font-size: 1.1rem;
    }

    .about,
    .services,
    .projects,
    .fleet,
    .qhse,
    .contact {
        padding: 40px 15px;
    }

    /* Cards */
    .about-card,
    .service-card {
        padding: 20px;
    }

    .card-icon,
    .service-icon {
        font-size: 1.5rem;
    }

    .about-card h3,
    .service-card h3 {
        font-size: 1rem;
    }

    .about-card p,
    .service-card p {
        font-size: 0.9rem;
    }

    /* Fleet */
    .fleet-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .fleet-card {
        padding: 20px;
    }

    .fleet-icon {
        font-size: 2rem;
    }

    .fleet-card h4 {
        font-size: 1rem;
    }

    /* QHSE */
    .qhse-content {
        gap: 30px;
    }

    .qhse-text {
        font-size: 0.95rem;
    }

    .qhse-certifications {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cert-item {
        padding: 20px;
    }

    .cert-item i {
        font-size: 1.5rem;
    }

    .cert-item h4 {
        font-size: 0.95rem;
    }

    /* Statistics */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-intro {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .info-card {
        padding: 20px;
    }

    .info-card i {
        font-size: 1.5rem;
    }

    .info-card h4 {
        font-size: 0.95rem;
    }

    .info-card p {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 40px 15px 15px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-section ul li {
        margin-bottom: 8px;
    }

    .footer-section a {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* Clients Section Mobile */
    .clients-track {
        gap: 20px;
    }

    .client-logo {
        flex: 0 0 120px;
        height: 80px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .slider-btn-prev {
        left: 5px;
    }

    .slider-btn-next {
        right: 5px;
    }

    .clients-subtitle {
        font-size: 1rem;
    }
}

/* ==================== Small Mobile (320px and below) ==================== */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
}

/* ==================== Landscape Mode ==================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    header,
    .hero-buttons,
    .mobile-menu-btn,
    footer,
    .contact-form {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
    }
}

/* ==================== High DPI Screens ==================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.8rem;
    }
}

/* ==================== Dark Mode Support (Future) ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a1a1a;
        --bg-white: #2d2d2d;
        --text-dark: #f0f0f0;
        --text-light: #b0b0b0;
    }
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
