/**
 * Responsive Design - Mobile and Tablet Optimizations
 */

/* Extra Large Devices (1920px and above) */
@media (min-width: 1920px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.8rem;
    }

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

    .container-fluid {
        max-width: 1600px;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
    .header {
        padding: 1rem 0;
    }

    .navbar {
        padding: 0.5rem 0;
    }
}

/* Medium Devices (768px to 991px) - Tablet */
@media (max-width: 991px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .hero-section {
        padding: 80px 0 60px;
    }

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

    .hero-description {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
        margin: 0 !important;
    }

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

    .nav-link:hover {
        color: var(--secondary-color) !important;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .process-step {
        padding: 1.5rem 1rem;
    }

    .process-step::after {
        height: 40px;
        top: 50px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

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

    .cta-section {
        padding: 40px 0;
        margin: 40px 0;
    }

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

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

    /* Offcanvas menu improvements */
    .offcanvas {
        width: 280px;
    }

    .offcanvas-body {
        padding: 1.5rem;
    }
}

/* Small Devices (576px to 767px) - Smaller Tablet */
@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: 60px 0 50px;
    }

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

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

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

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .process-step {
        padding: 1.25rem 0.75rem;
    }

    .process-step::after {
        display: none;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-description {
        font-size: 0.9rem;
    }

    .stat-item {
        padding: 1.5rem 0.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-title {
        font-size: 1.05rem;
    }

    .feature-desc {
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 30px 0;
        margin: 30px 0;
        border-radius: 12px;
    }

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

    .cta-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn-primary {
        width: 100%;
    }

    /* Form Adjustments */
    .form-control {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.95rem;
    }

    /* Accordion */
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    /* Sticky CTA */
    .sticky-cta {
        bottom: 15px;
        right: 15px;
    }

    .sticky-cta-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.1rem;
    }

    /* Container */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Nav adjustments */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 0.85rem;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
    }

    /* List items */
    .list-icon-item {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .list-icon {
        font-size: 1rem;
    }

    .list-content {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding-top: 40px;
        padding-bottom: 15px;
    }

    .footer-title {
        font-size: 14px;
    }

    .footer-links li {
        margin-bottom: 8px !important;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .contact-info {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices (up to 575px) - Mobile */
@media (max-width: 575px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }

    h5, h6 {
        font-size: 0.95rem;
    }

    .hero-section {
        padding: 50px 0 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-section::before {
        width: 300px;
        height: 300px;
        transform: translate(50px, -50px);
    }

    .hero-section::after {
        width: 200px;
        height: 200px;
        transform: translate(-50px, 50px);
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    .card {
        margin-bottom: 1.25rem;
    }

    .card-body {
        padding: 1.25rem;
    }

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

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        width: 100%;
        display: block;
    }

    .btn-sm {
        width: auto;
        display: inline-block;
    }

    .btn-group {
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .process-step {
        padding: 1rem 0;
    }

    .process-row {
        display: flex;
        flex-direction: column;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 auto 0.75rem;
    }

    .step-title {
        font-size: 0.95rem;
    }

    .step-description {
        font-size: 0.85rem;
    }

    .stat-item {
        padding: 1.25rem 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .feature-item {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .feature-icon {
        font-size: 1.75rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-desc {
        font-size: 0.85rem;
    }

    .testimonial-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .testimonial-author {
        font-size: 0.95rem;
    }

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

    .cta-section {
        padding: 25px 0;
        margin: 25px 0;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .cta-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    /* Forms */
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }

    .form-check-input {
        width: 1.1rem;
        height: 1.1rem;
    }

    /* Accordion */
    .accordion-button {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .accordion-item {
        margin-bottom: 0.75rem;
    }

    /* Navbar */
    .navbar-brand {
        font-size: 0.75rem;
    }

    .navbar-brand .logo-icon {
        width: 32px;
        height: 32px;
        margin-right: 0.5rem;
    }

    .navbar-brand .logo-icon i {
        font-size: 14px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    /* Language buttons */
    .btn-outline-secondary {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Apply Now button */
    .btn-apply {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Offcanvas */
    .offcanvas {
        width: 100%;
        max-width: 300px;
    }

    .offcanvas-header {
        padding: 1rem;
    }

    .offcanvas-body {
        padding: 1rem;
    }

    /* Footer */
    .footer {
        padding-top: 30px;
        padding-bottom: 10px;
    }

    .footer-section {
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links,
    .contact-info {
        text-align: center;
    }

    .footer-links li {
        margin-bottom: 6px !important;
    }

    .footer-links a,
    .contact-info a {
        font-size: 0.85rem;
    }

    .footer-title {
        font-size: 13px;
    }

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

    /* Sticky CTA */
    .sticky-cta {
        bottom: 10px;
        right: 10px;
    }

    .sticky-cta-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
        gap: 5px;
    }

    .sticky-cta-btn i {
        font-size: 0.9rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 10px;
        right: 10px;
        font-size: 1rem;
    }

    /* Container */
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* List items */
    .list-icon-item {
        gap: 0.5rem;
        margin-bottom: 0.6rem;
    }

    .list-icon {
        font-size: 0.95rem;
    }

    .list-content {
        font-size: 0.9rem;
    }

    /* Row/Column */
    .row {
        margin-right: -0.375rem;
        margin-left: -0.375rem;
    }

    .row > * {
        padding-right: 0.375rem;
        padding-left: 0.375rem;
    }
}

/* Very Small Devices (up to 360px) */
@media (max-width: 360px) {
    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1rem;
    }

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

    .hero-description {
        font-size: 0.9rem;
    }

    .section {
        padding: 30px 0;
    }

    .btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .cta-title {
        font-size: 1.1rem;
    }

    .cta-description {
        font-size: 0.85rem;
    }

    .navbar-brand {
        font-size: 0.65rem;
    }

    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        margin-bottom: 0.5rem;
    }

    .section {
        padding: 40px 0;
    }
}

/* High Resolution Displays (2x and 3x pixel ratio) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e5e7eb;
    }

    .card,
    .form-control,
    .accordion-item {
        background-color: #2a2a2a;
        color: #e5e7eb;
    }

    .form-control {
        border-color: #444;
    }

    .accordion-button {
        background-color: #2a2a2a;
        color: #00d4ff;
    }

    .accordion-body {
        background-color: #1a1a1a;
        color: #d1d5db;
    }
}
