/* ===== NAVBAR RTL FIXES ===== */
/* Prevent navbar from reversing in RTL mode */
[dir="rtl"] .nav-container {
    flex-direction: row !important; /* Keep same order as LTR */
}

[dir="rtl"] .nav-actions {
    flex-direction: row !important; /* Keep same order as LTR */
}

/* ===== RESPONSIVE DESIGN - MINIMALIST DARK ===== */

/* Mobile First Approach */

/* Very Small Devices (phones, 320px and down) */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero {
        min-height: 80vh;
        padding: calc(70px + var(--spacing-xl)) 0 var(--spacing-2xl);
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    /* Fix feature-list checkmark positioning on very small devices */
    .feature-list li {
        padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-lg) !important;
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 0.875rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-top: var(--spacing-xl);
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .card,
    .value-card,
    .step-card,
    .skill-category,
    .investment-area,
    .track-stat {
        padding: var(--spacing-md);
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
        height: 70px;
    }
    
    /* Mobile nav menu rules are consolidated in main.css. This file intentionally holds no layout for .nav-menu. */
    
    .nav-menu.show {
        display: flex !important;
    }
    
    .nav-menu::before {
        content: '✕';
        position: absolute;
        top: var(--spacing-lg);
        right: var(--spacing-lg);
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 1700;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
        text-align: center;
    }
    
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .language-switcher {
        z-index: 1001;
        background: var(--bg-secondary);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .lang-btn {
        padding: var(--spacing-xs);
        font-size: 0.75rem;
    }
    
    /* Consultation Form Mobile Styles */
    .consultation-form,
    .resume-form {
        padding: var(--spacing-md);
        margin: var(--spacing-sm);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .form-group {
        margin-bottom: var(--spacing-md);
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: var(--spacing-sm);
        font-size: 0.875rem;
        border-radius: var(--radius-sm);
    }
    
    .form-textarea {
        min-height: 80px;
    }
    
    .calendar-type-selector {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .calendar-type-btn {
        width: 100%;
        padding: var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    .custom-calendar {
        font-size: 0.75rem;
    }
    
    .calendar-header {
        padding: var(--spacing-sm);
    }
    
    .calendar-title {
        font-size: 0.875rem;
    }
    
    .calendar-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .calendar-weekdays {
        font-size: 0.7rem;
        padding: var(--spacing-xs);
    }
    
    .calendar-day {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .time-slots {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .time-slot {
        padding: var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    .fee-details {
        padding: var(--spacing-md);
    }
    
    .fee-amount {
        font-size: 1.5rem;
    }
    
    .btn-large {
        width: 100%;
        padding: var(--spacing-md);
        font-size: 0.875rem;
    }
    
    /* Mobile Image Styles */
    .card-image img {
        height: 150px;
    }
    
    .team-member-image img {
        height: 200px;
    }
    
    .blog-image img {
        height: 150px;
    }
    
    .service-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    /* Service Page Mobile Styles */
    .tech-categories {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Service page specific improvements */
    .service-hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .service-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .service-hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Typography improvements for service content */
    .card h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    /* Better spacing for service sections */
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-alt {
        padding: var(--spacing-2xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .tech-category {
        padding: var(--spacing-lg);
    }
    
    /* Mobile-specific improvements for mobile applications page */
    .service-hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .service-hero-subtitle {
        font-size: 1rem;
    }
    
    .service-hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .tech-list li {
        padding: var(--spacing-md) 0;
        font-size: 0.95rem;
    }
    
    /* Additional mobile typography improvements */
    .card h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    /* Fix feature-list checkmark positioning on mobile */
    .feature-list li {
        padding: var(--spacing-md) 0 var(--spacing-md) var(--spacing-lg) !important;
        font-size: 0.95rem;
    }
    
    .tech-category h3 {
        font-size: 1.125rem;
    }
    
    .service-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-feature {
        padding: var(--spacing-lg);
    }
    
    .service-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .service-feature h3 {
        font-size: 1.125rem;
    }
    
    /* Button Mobile Styles */
    .btn {
        min-height: 44px;
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.875rem;
        touch-action: manipulation;
    }
    
    .btn-large {
        min-height: 48px;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 0.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Footer Mobile Styles */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer h3 {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-md);
    }
    
    .footer li {
        margin-bottom: var(--spacing-xs);
    }
}

/* Small Mobile Devices (321px - 575px) */
@media (min-width: 321px) and (max-width: 575.98px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        min-height: 85vh;
        padding: calc(70px + var(--spacing-2xl)) 0 var(--spacing-2xl);
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.1;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-top: var(--spacing-2xl);
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .card,
    .value-card,
    .step-card,
    .skill-category,
    .investment-area,
    .track-stat {
        padding: var(--spacing-lg);
    }
    
    .nav-container {
        padding: 0 var(--spacing-md);
        height: 70px;
    }
    
    /* Mobile nav menu rules are consolidated in main.css. This file intentionally holds no layout for .nav-menu to avoid conflicts. */
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
        text-align: center;
    }
    
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .language-switcher {
        z-index: 1001;
        background: var(--bg-secondary);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .lang-btn {
        padding: var(--spacing-xs);
        font-size: 0.875rem;
    }
    
    .service-hero {
        padding: 100px 0 var(--spacing-2xl);
    }
    
    .service-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }
    
    .service-hero-text h1 {
        font-size: 2.25rem;
    }
    
    .service-icon-large {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .value-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .investment-areas {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .track-record {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .modal-content {
        width: 90%;
        max-width: 400px;
        margin: 20px auto;
        padding: var(--spacing-lg);
        max-height: 85vh;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        top: 20px;
        max-width: calc(100vw - 20px);
        min-width: auto;
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .toast {
        right: 5px;
        left: 5px;
        top: 10px;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Consultation Form Mobile Styles */
    .consultation-form,
    .resume-form {
        padding: var(--spacing-lg);
        margin: var(--spacing-sm);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .form-group {
        margin-bottom: var(--spacing-lg);
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .calendar-type-selector {
        flex-direction: row;
        gap: var(--spacing-sm);
        justify-content: center;
    }
    
    .calendar-type-btn {
        flex: 1;
        max-width: 120px;
        padding: var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    .custom-calendar {
        font-size: 0.8rem;
    }
    
    .calendar-header {
        padding: var(--spacing-md);
    }
    
    .calendar-title {
        font-size: 1rem;
    }
    
    .calendar-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .calendar-weekdays {
        font-size: 0.75rem;
        padding: var(--spacing-sm);
    }
    
    .calendar-day {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .time-slot {
        padding: var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .fee-details {
        padding: var(--spacing-lg);
    }
    
    .fee-amount {
        font-size: 1.75rem;
    }
    
    .btn-large {
        width: 100%;
        padding: var(--spacing-lg);
        font-size: 0.9rem;
    }
    
    /* Mobile Image Styles */
    .card-image img {
        height: 180px;
    }
    
    .team-member-image img {
        height: 220px;
    }
    
    .blog-image img {
        height: 180px;
    }
    
    .service-icon-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    /* Service Page Mobile Styles */
    .tech-categories {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .tech-category {
        padding: var(--spacing-xl);
    }
    
    .tech-category h3 {
        font-size: 1.25rem;
    }
    
    .service-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .service-feature {
        padding: var(--spacing-xl);
    }
    
    .service-feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.375rem;
    }
    
    .service-feature h3 {
        font-size: 1.25rem;
    }
    
    /* Button Mobile Styles */
    .btn {
        min-height: 44px;
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 0.9rem;
        touch-action: manipulation;
    }
    
    .btn-large {
        min-height: 50px;
        padding: var(--spacing-lg) var(--spacing-xl);
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }
    
    /* Footer Mobile Styles */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer h3 {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .footer li {
        margin-bottom: var(--spacing-sm);
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero {
        min-height: 90vh;
        padding: calc(80px + var(--spacing-2xl)) 0 var(--spacing-2xl);
    }
    
    .hero-title {
        font-size: 2.75rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Fix feature-list checkmark positioning on small devices */
    .feature-list li {
        padding: var(--spacing-md) 0 var(--spacing-md) var(--spacing-lg) !important;
        font-size: 0.95rem;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .value-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .investment-areas {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .track-record {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero {
        min-height: 95vh;
        padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    }
    
    .hero-title {
        font-size: 3.25rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .value-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .investment-areas {
        grid-template-columns: repeat(3, 1fr);
    }

    .track-record {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (small laptops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero {
        min-height: 100vh;
        padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    }

    .hero-title {
        font-size: 3.75rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.625rem;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(5, 1fr);
    }

    .value-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .investment-areas {
        grid-template-columns: repeat(5, 1fr);
    }

    .track-record {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Devices (standard laptops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1919.98px) {
    .container {
        max-width: 1200px;
    }

    .hero {
        min-height: 100vh;
        padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    }

    .hero-title {
        font-size: 4.25rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(5, 1fr);
    }

    .value-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .investment-areas {
        grid-template-columns: repeat(5, 1fr);
    }

    .track-record {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ultra Wide Screens (large desktops, 1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .hero {
        min-height: 100vh;
        padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    }

    .hero-title {
        font-size: 5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(5, 1fr);
    }

    .value-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .investment-areas {
        grid-template-columns: repeat(5, 1fr);
    }

    .track-record {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-stats {
        margin-top: var(--spacing-xl);
    }

    .service-hero {
        padding: 100px 0 var(--spacing-xl);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

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

    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right,
    .animate-float {
        animation: none;
    }
}

/* Dark Mode Support (for browsers that support it) */
@media (prefers-color-scheme: dark) {
    /* Our design is already dark, so no changes needed */
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .hero-actions,
    .btn {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .card,
    .value-card,
    .step-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    body {
        background: white !important;
        color: black !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }

    p {
        color: #333 !important;
    }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .nav-link:focus,
    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
        outline: 2px solid var(--brand-primary);
        outline-offset: 2px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .card:hover,
    .value-card:hover,
    .step-card:hover,
    .skill-category:hover,
    .investment-area:hover,
    .track-stat:hover {
        transform: none;
    }

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

    .nav-link.active {
        color: var(--text-primary);
    }
}

/* Container Queries (Future-proofing) */
@container (min-width: 400px) {
    .card {
        padding: var(--spacing-xl);
    }
}

@container (min-width: 600px) {
    .card {
        padding: var(--spacing-2xl);
    }
}

/* Custom Scrollbar for Webkit Browsers */
@media screen and (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-primary);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--border-medium);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--brand-primary);
    }
} 
