/* ScaniteX Custom Mobile-First CSS */

/* Hero Section Mobile-First */
.hero-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-top: 60px;
}

@media (min-width: 768px) {
    .hero-section {
        height: 500px;
        margin-top: 80px;
    }
}

.hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-section .content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 20px;
}

@media (min-width: 768px) {
    .hero-section .content {
        text-align: left;
        padding: 0;
    }
}

.hero-section .text-background {
    background: rgba(33, 37, 41, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 90%;
}

@media (min-width: 768px) {
    .hero-section .text-background {
        margin-left: 0;
        max-width: none;
    }
}

.hero-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6ea8fe;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

.hero-section .subtitle {
    font-size: 1rem;
    color: #dee2e6;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .hero-section .subtitle {
        font-size: 1.125rem;
    }
}

.hero-section p {
    font-size: 0.9rem;
    color: #adb5bd;
}

@media (min-width: 768px) {
    .hero-section p {
        font-size: 1rem;
    }
}

.hero-section .btn-primary {
    border-color: #dc3545;
    font-size: 0.9rem;
    padding: 12px 20px;
    min-width: 140px;
}

@media (min-width: 768px) {
    .hero-section .btn-primary {
        font-size: 1rem;
        padding: 10px 20px;
        min-width: auto;
    }
}

/* Additional Mobile Improvements */

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Touch-friendly buttons */
.btn {
    min-height: 44px;
    min-width: 44px;
    border-radius: 8px;
}

/* Better spacing for mobile */
.section {
    padding: 40px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* Improved cards for mobile */
.card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: none;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

/* Mobile-friendly forms */
.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Improved loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Better focus states for accessibility */
.btn:focus, .form-control:focus {
    outline: 2px solid #6ea8fe;
    outline-offset: 2px;
}

/* Mobile navigation improvements */
.navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
    }
}

/* Improved spacing in mobile lists */
.list-unstyled li {
    padding: 8px 0;
}

/* Better mobile tables */
.table-responsive {
    border-radius: 8px;
}

/* Improved mobile popover positioning */
.popup-content {
    margin: 10% auto;
    width: 95%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .popup-content {
        margin: 15% auto;
        width: 80%;
        max-width: 600px;
    }
}

/* Cookie consent mobile improvements */
.custom-cookie-popup {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    border-radius: 12px;
    padding: 15px;
}

@media (min-width: 768px) {
    .custom-cookie-popup {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: 500px;
        padding: 20px;
    }
}

/* Improved mobile statistics display */
.stat-card {
    text-align: center;
    padding: 25px 15px;
}

@media (min-width: 768px) {
    .stat-card {
        padding: 20px;
    }
}

/* Better mobile pricing cards */
.pricing .card-body {
    padding: 25px 20px;
}

@media (min-width: 768px) {
    .pricing .card-body {
        padding: 30px 25px;
    }
}

/* Mobile-optimized news cards */
.news-card {
    padding: 15px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .news-card {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* Performance optimizations */
.img-fluid {
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .bg-light {
        background-color: #1a202c !important;
    }
}