/* ===========================
   Responsive Styles
   =========================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: space-around;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .floating-card {
        display: none;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Dashboard */
    .dashboard-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-card,
    .alert-card,
    .table-card {
        grid-column: span 1;
    }
    
    /* Vision */
    .vision-content {
        grid-template-columns: 1fr;
    }
    
    .vision-stats {
        justify-content: space-around;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content .footer-section:first-child {
        grid-column: span 2;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* Section */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    /* Dashboard */
    .tab-button {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .kpi-value {
        font-size: 28px;
    }
    
    .chart-card {
        padding: 20px 15px;
    }
    
    .responsive-table {
        font-size: 13px;
    }
    
    .responsive-table th,
    .responsive-table td {
        padding: 10px 8px;
    }
    
    /* Vision */
    .vision-features {
        gap: 25px;
    }
    
    .vision-feature {
        flex-direction: column;
    }
    
    .vision-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .vision-stat h3 {
        font-size: 40px;
    }
    
    .vision-image {
        display: none;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .contact-form .btn {
        grid-column: span 1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content .footer-section:first-child {
        grid-column: span 1;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-subtitle {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 15px;
    }
    
    /* Features */
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 36px;
    }
    
    .feature-title {
        font-size: 20px;
    }
    
    .feature-description {
        font-size: 15px;
    }
    
    /* Dashboard */
    .dashboard-tabs {
        gap: 8px;
    }
    
    .tab-button {
        font-size: 13px;
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .tab-button i {
        font-size: 14px;
    }
    
    .dashboard-card {
        padding: 20px 15px;
    }
    
    .kpi-icon {
        width: 50px;
        height: 50px;
    }
    
    .kpi-icon i {
        font-size: 24px;
    }
    
    .kpi-info h4 {
        font-size: 13px;
    }
    
    .kpi-value {
        font-size: 24px;
    }
    
    .kpi-trend {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .chart-header h4 {
        font-size: 16px;
    }
    
    .alert-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .alert-icon {
        width: 100%;
        height: auto;
        padding: 15px;
    }
    
    .alert-content h5 {
        font-size: 15px;
    }
    
    .alert-content p {
        font-size: 13px;
    }
    
    .responsive-table {
        font-size: 12px;
    }
    
    .responsive-table th,
    .responsive-table td {
        padding: 8px 6px;
        min-width: 80px;
    }
    
    .badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    /* Vision */
    .vision-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .vision-features {
        gap: 20px;
    }
    
    .vision-icon {
        width: 50px;
        height: 50px;
    }
    
    .vision-icon i {
        font-size: 24px;
    }
    
    .vision-info h4 {
        font-size: 18px;
    }
    
    .vision-info p {
        font-size: 15px;
    }
    
    .vision-stat h3 {
        font-size: 36px;
    }
    
    .vision-stat p {
        font-size: 13px;
    }
    
    /* Blog */
    .blog-image {
        height: 200px;
    }
    
    .blog-category {
        top: 15px;
        left: 15px;
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .blog-title {
        font-size: 18px;
    }
    
    .blog-excerpt {
        font-size: 14px;
    }
    
    /* Contact */
    .contact-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 24px;
    }
    
    .contact-details h4 {
        font-size: 16px;
    }
    
    .contact-details p {
        font-size: 14px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link i {
        font-size: 20px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-logo {
        font-size: 20px;
    }
    
    .footer-logo i {
        font-size: 28px;
    }
    
    .footer-description {
        font-size: 14px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
    }
    
    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-section a {
        font-size: 14px;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top i {
        font-size: 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn,
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .tab-button {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Landscape Mode for Small Devices */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 40px;
    }
    
    .hero-stats {
        margin-bottom: 20px;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .dashboard-tabs,
    .contact-form,
    .footer,
    .back-to-top,
    .hamburger {
        display: none !important;
    }
    
    .hero {
        padding-top: 20px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .dashboard-card,
    .feature-card,
    .blog-card {
        break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .tab-button.active {
        border: 2px solid var(--white);
    }
    
    .nav-link::after {
        height: 3px;
    }
    
    .feature-card:hover,
    .dashboard-card:hover {
        border-width: 2px;
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2a2a2a;
        --text-color: #e0e0e0;
        --dark-gray: #b0b0b0;
    }
    
    .navbar {
        background: #1a1a1a;
    }
    
    .hero-background {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    }
    
    .dashboard-card,
    .feature-card,
    .blog-card,
    .contact-card {
        background: #2a2a2a;
    }
    
    .mockup-header {
        background: #3a3a3a;
    }
}

/* ===========================
   Dashboard & Vision Responsive Fixes
   =========================== */

/* Large screens - optimize for desktop */
@media (min-width: 1400px) {
    .dashboard-grid {
        max-width: 1400px;
        margin: 0 auto 40px;
    }
    
    .dashboard-stats {
        max-width: 1400px;
        margin: 40px auto 0;
    }
    
    .vision-content {
        max-width: 1400px;
    }
}

/* Medium to Large Desktop */
@media (max-width: 1200px) {
    .dashboard-grid {
        gap: 25px;
    }
    
    .dashboard-card {
        min-height: 320px;
        padding: 25px;
    }
    
    .dashboard-stats {
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-icon i {
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .vision-content {
        gap: 60px;
    }
    
    .vision-mockup {
        padding: 80px;
    }
    
    .vision-mockup i {
        font-size: 120px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-card {
        min-height: 300px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vision-text p {
        font-size: 18px;
    }
    
    .vision-quote {
        font-size: 24px;
        padding: 25px 30px;
    }
    
    .vision-mockup {
        padding: 60px;
    }
    
    .vision-mockup i {
        font-size: 100px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        flex-direction: row;
        padding: 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .vision-text p {
        font-size: 16px;
        text-align: left;
    }
    
    .vision-quote {
        font-size: 20px;
        padding: 20px 25px;
    }
    
    .vision-image {
        padding: 40px 20px;
    }
    
    .vision-mockup {
        padding: 50px;
    }
    
    .vision-mockup i {
        font-size: 80px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .dashboard-card {
        padding: 20px;
        min-height: 280px;
    }
    
    .dashboard-card .card-header h3 {
        font-size: 18px;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
    }
    
    .stat-icon i {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-title {
        font-size: 13px;
    }
    
    .vision-quote {
        font-size: 18px;
        padding: 18px 20px;
        border-left-width: 4px;
    }
    
    .vision-mockup {
        padding: 40px;
    }
    
    .vision-mockup i {
        font-size: 70px;
    }
}


/* Navigation Actions Responsive */
@media (max-width: 992px) {
    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 20px;
    }
    
    .language-toggle {
        width: 100%;
        justify-content: center;
        margin: 0;
    }
    
    .nav-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

