/* Mobile First Responsive Design */

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #211f62;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        padding-top: 50px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link {
        display: block;
        padding: 20px;
        font-size: 18px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        border-radius: 0;
        margin-top: 0;
    }
    
    .dropdown-menu a {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero-image {
        object-fit: contain;
        object-position: center;
    }
    
    .hero-overlay {
        padding: 20px;
        align-items: flex-end;
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-content h2 {
        font-size: 32px;
    }
    
    .about-content p {
        font-size: 16px;
    }
    
    /* Services */
    .services-grid {
        display: flex;
        gap: 20px;
        min-width: max-content;
    }
    
    .service-card {
        min-width: 300px;
        max-width: 350px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .services-scroll-container {
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    /* About Page Responsive */
    .founder-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .vision-mission {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Services Page Responsive */
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-detail-content.reverse .service-detail-image {
        order: 0;
    }
    
    .service-detail-content.reverse .service-detail-text {
        order: 1;
    }
    
    /* Contact Page Responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 10px 15px;
    }
    
    .nav-logo .logo {
        height: 40px;
    }
    
    /* Hero Section */
    .hero-image {
        object-fit: contain;
        object-position: center;
    }
    
    .hero-overlay {
        padding: 15px;
        align-items: flex-end;
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* About Section */
    .about-content h2 {
        font-size: 28px;
    }
    
    .about-content p {
        font-size: 14px;
    }
    
    .about-read-more {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    /* Services */
    .service-card {
        margin: 0 5px;
        min-width: 280px;
        max-width: 320px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-content h3 {
        font-size: 18px;
    }
    
    .service-content p {
        font-size: 13px;
    }
    
    .feature-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .service-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .services-scroll-container {
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* CTA */
    .cta {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 14px;
    }
    
    .cta-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* Mobile About Page */
    .founder-section {
        padding: 40px 0;
    }
    
    .founder-text h2 {
        font-size: 28px;
    }
    
    .founder-text h3 {
        font-size: 20px;
    }
    
    .vision-card,
    .mission-card {
        padding: 30px 20px;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Services Page */
    .service-detail {
        margin: 60px 0;
        padding: 40px 0;
    }
    
    .service-detail-text h2 {
        font-size: 28px;
    }
    
    .service-detail-text h3 {
        font-size: 18px;
    }
    
    /* Mobile Contact Page */
    .contact-details {
        gap: 20px;
    }
    
    .contact-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-icon {
        font-size: 28px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .cta-content h2 {
        font-size: 22px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-cta {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .carousel-dots,
    .scroll-to-top {
        display: none;
    }
    
    .hero {
        height: auto;
    }
    
    .carousel-slide {
        position: static;
        opacity: 1;
    }
    
    .hero-overlay {
        position: static;
        background: none;
        color: #333;
    }
}
