/* ===== Enhanced Mobile Responsive Styles ===== */

/* Tablet and below (991px) */
@media (max-width: 991px) {

    /* Navigation */
    .navbar {
        padding: 15px 0;
    }

    .navbar-brand .logo {
        height: 40px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 25px;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
    }

    .stat-item i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-image {
        margin-top: 60px;
    }

    .hero-mockup {
        padding: 30px 15px;
    }

    .floating-card {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Feature Cards */
    .feature-card {
        margin-bottom: 20px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* Services Section */
    .service-image-wrapper {
        margin-bottom: 40px;
        order: -1;
    }

    .service-main-image {
        padding: 10px;
    }

    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Contact Section */
    .contact-info {
        margin-bottom: 30px;
    }

    .contact-card {
        margin-bottom: 15px;
    }

    /* Footer */
    .footer {
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
}

/* Mobile devices (767px and below) */
@media (max-width: 767px) {

    /* Typography */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
    }

    .btn-primary,
    .btn-outline-light {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    /* Hero Stats */
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
    }

    .stat-item {
        width: 100%;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    /* Hero Image */
    .hero-image {
        margin-top: 40px;
    }

    .hero-mockup {
        padding: 20px 10px;
    }

    .hero-main-image {
        max-width: 90%;
    }

    .floating-card {
        display: none;
        /* Hide floating cards on mobile */
    }

    /* Sections */
    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 30px;
    }

    /* Feature Cards */
    .feature-card {
        padding: 30px 20px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Services */
    .service-item {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .service-icon {
        margin: 0 auto 20px;
    }

    .service-item h4 {
        font-size: 1.1rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }

    /* Contact */
    .contact-card {
        padding: 25px 20px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-card h4 {
        font-size: 1.1rem;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-logo {
        height: 50px;
    }

    .footer-brand,
    .footer-title {
        text-align: center;
        margin-bottom: 25px;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* Small mobile devices (575px and below) */
@media (max-width: 575px) {

    /* Navigation */
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand .logo {
        height: 35px;
    }

    .theme-toggle,
    .lang-toggle {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .btn-primary,
    .btn-outline-light {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    /* Sections */
    section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* Features */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 25px 15px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    /* Services */
    .service-item {
        padding: 20px 15px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .service-item h4 {
        font-size: 1rem;
    }

    .service-item p {
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-card {
        padding: 20px 15px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .contact-card h4 {
        font-size: 1rem;
    }

    .contact-form-wrapper {
        padding: 25px 15px;
    }

    .form-control {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-logo {
        height: 40px;
    }

    .footer p,
    .footer-links li,
    .footer-contact li {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
}

/* Extra small devices - landscape phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .hero-buttons .btn {
        padding: 10px 20px;
    }

    .hero-mockup {
        padding: 15px 5px;
    }

    .service-main-image img,
    .hero-main-image {
        max-width: 95%;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 991px) {
    .nav-link {
        padding: 12px 20px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn,
    button {
        min-height: 44px;
        touch-action: manipulation;
    }

    .contact-card a,
    .footer-links a,
    .social-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .row>* {
        padding-left: 10px;
        padding-right: 10px;
    }
}