/* Responsive Styles */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1.5fr 1fr;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 120px 0 100px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    /* Remove any conflicting tablet navigation styles */
    .site-header {
        padding: 10px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Ensure the header elements stay in one row */
    .header-inner {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .main-nav ul {
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 15px;
    }
    
    .dropdown {
        min-width: 200px;
        padding: 12px;
    }
    
    .dropdown li {
        margin-bottom: 8px;
    }
    
    .dropdown a {
        padding: 6px 8px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Tablet layout improvements */
    .section-header h2 {
        font-size: 32px;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-contact {
        grid-column: span 2;
    }
    
    .case-study {
        flex-direction: column;
    }
    
    .case-study-image, .case-study-content {
        width: 100%;
    }
    
    .case-study-content {
        padding: 30px;
    }
    
    /* Floating cards for tablets */
    .floating-card {
        padding: 15px;
        max-width: 240px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-1 {
        top: -10%;
        right: 55%;
    }
    
    .card-2 {
        top: 35%;
        right: -15%;
    }
    
    .card-3 {
        bottom: -5%;
        right: 25%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    /* Improved AI Impact section for tablets */
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .impact-card {
        padding: 25px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .impact-icon {
        width: 50px;
        height: 50px;
    }
    
    .impact-icon i {
        font-size: 22px;
    }
    
    .impact-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .impact-list li {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .impact-quote {
        margin-top: auto;
        padding-top: 15px;
    }
    
    /* Services grid for tablets */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Technologies section for tablets */
    .tech-showcase {
        flex-direction: column;
        gap: 30px;
    }
    
    .tech-category {
        width: 100%;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 5px 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
    }
    
    .has-dropdown.active .dropdown {
        max-height: 300px;
    }
    
    .dropdown a {
        padding: 8px 0;
        font-size: 16px;
    }
    
    .dropdown a:hover {
        background-color: transparent;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    body.no-scroll {
        overflow: hidden;
    }
    
    .hero {
        padding: 100px 0 80px;
        text-align: center;
    }
    
    .hero .container {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        width: 80%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-contact {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .floating-card {
        position: static;
        width: 90%;
        max-width: 320px;
        margin: 15px auto;
        animation: none;
        flex-direction: row;
        align-items: center;
        transform: none !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .floating-card:hover {
        transform: translateY(-5px) !important;
    }
    
    .card-details {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    /* Improved AI Impact section for mobile */
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .impact-card {
        padding: 20px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 15px;
    }
    
    .section-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Improved spacing for mobile */
    section {
        padding: 60px 0;
    }
    
    .ai-impact {
        padding: 60px 0;
    }
    
    /* Better card layout for mobile */
    .impact-card {
        display: flex;
        flex-direction: column;
    }
    
    .impact-icon {
        margin-bottom: 15px;
    }
    
    .impact-list {
        margin-bottom: 15px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 30px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .floating-card {
        padding: 12px;
    }
    
    .card-icon {
        width: 36px;
        height: 36px;
    }
    
    .card-icon i {
        font-size: 16px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .card-subtitle {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .stat-value {
        font-size: 13px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    /* Further optimized AI Impact section for small phones */
    .impact-card {
        padding: 15px;
    }
    
    .impact-icon {
        width: 40px;
        height: 40px;
    }
    
    .impact-icon i {
        font-size: 18px;
    }
    
    .impact-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .impact-list li {
        font-size: 13px;
        margin-bottom: 8px;
        padding-left: 18px;
    }
    
    .impact-quote {
        font-size: 13px;
    }
}

/* Contact Page Responsive Styles */
@media (max-width: 991.98px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-wrapper {
        order: 1;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-submit {
        grid-column: span 1;
    }
    
    .map-container {
        height: 350px;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 80px 0 50px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .contact-item {
        gap: 15px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 16px;
    }
    
    .contact-text h4 {
        font-size: 16px;
    }
    
    .faq-question h4 {
        font-size: 16px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .modal-dialog {
        max-width: 90%;
        margin: 1rem;
    }
}

@media (max-width: 575.98px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .contact-info .section-header h2 {
        font-size: 1.8rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 25px 15px;
    }
    
    .map-container {
        height: 250px;
    }
} 