/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vh: 1vh;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-brand h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    background: #eff6ff;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2563eb;
    padding: 0.5rem;
    z-index: 1001;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar-brand h2 {
        font-size: 1.2rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 2rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
    }

    .navbar-menu.mobile-open {
        right: 0;
    }

    .navbar-menu .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid #f1f5f9;
        border-radius: 0;
        width: 100%;
        text-align: left;
    }

    .navbar-menu .nav-link:hover,
    .navbar-menu .nav-link.active {
        background: #f8fafc;
        color: #2563eb;
    }
}

/* Mobile Menu Overlay */
@media (max-width: 768px) {
    .navbar-menu.mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(9, 35, 90, 0.774), rgba(14, 29, 71, 0.822)),
                url('../img/backgrounds/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    margin-top: 60px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature i {
    font-size: 1.2rem;
    color: #60a5fa;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .feature {
        justify-content: center;
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 0 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    justify-content: center;
    min-height: 44px; /* iOS minimum touch target */
}

.btn-primary {
    background: #2563eb;  
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 50px;
}

/* Disabled and maintenance mode button styles */
.btn-disabled {
    background: #9ca3af;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled:hover {
    background: #9ca3af;
    transform: none;
    opacity: 0.6;
}

.maintenance-mode {
    opacity: 0.7;
    position: relative;
}

.maintenance-notice {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #fcd34d;
}

.maintenance-notice i {
    color: #f59e0b;
}

/* Mobile button optimizations */
@media (max-width: 768px) {
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.service-card .card-header {
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
}

.bece-card .card-header {
    background: linear-gradient(rgba(0, 0, 0, 0.63), rgba(0, 0, 0, 0.541)),
                url('../img/backgrounds/assce-bg.jpeg');
    background-size: cover;
    background-position: center;
}

.wassce-card .card-header {
    background: linear-gradient(rgba(0, 0, 0, 0.63), rgba(0, 0, 0, 0.541)),
                url('../img/backgrounds/wassce-bg.jpg');
    background-size: cover;
    background-position: center;
}

.bulk-card .card-header {
    background: linear-gradient(rgba(0, 0, 0, 0.63), rgba(0, 0, 0, 0.541)),
                url('../img/backgrounds/bulk.jpg');
    background-size: cover;
    background-position: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, #09235a, #0e1d47);    
    color: white;
    padding: 2rem;
    text-align: center;
}

.card-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    text-align: center;
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list i {
    color: #10b981;
    font-size: 0.9rem;
}

.buy-btn {
    width: 100%;
    justify-content: center;
}

/* Mobile Services Adjustments */
@media (max-width: 768px) {
    .services {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }

    .service-card {
        margin: 0;
    }

    .card-header {
        padding: 1.5rem;
    }

    .card-header i {
        font-size: 2.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .price {
        font-size: 1.8rem;
    }
}

/* Retrieval Section */
.retrieval {
    background: #f1f5f9;
    padding: 80px 0;
}

.retrieval-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.retrieval-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    min-height: 44px; /* iOS touch target */
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mobile form improvements */
@media (max-width: 768px) {
    .retrieval {
        padding: 60px 0;
    }

    .retrieval-card {
        padding: 1.5rem;
        margin: 0 15px;
    }

    .form-group input,
    .form-group select {
        padding: 0.875rem 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 48px;
    }
}

/* Form focus improvements for mobile */
.form-group.focused input,
.form-group.focused select {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #ffffff;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2rem;
    color: #2563eb;
    min-width: 2.5rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.contact-item p {
    margin: 0;
    color: #64748b;
}

/* Clickable contact items */
.contact-item.clickable {
    cursor: pointer;
    user-select: none;
}

.contact-item.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.15);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.contact-item.clickable:active {
    transform: translateY(-2px);
    transition: transform 0.1s ease;
}

.contact-item small {
    display: block;
    font-size: 0.8rem;
    color: #2563eb;
    font-weight: 500;
    margin-top: 0.25rem;
}

.contact-item .fa-whatsapp {
    color: #25D366;
}

.contact-item.clickable:hover .fa-whatsapp {
    color: #128C7E;
}

/* Mobile Contact Adjustments */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
        text-align: center;
        flex-direction: column;
    }

    .contact-item i {
        font-size: 2.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 1rem 1rem 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #1e293b;
}

.close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    padding: 0.5rem;
    min-width: 44px; /* Touch target */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #ef4444;
    background: #fef2f2;
    border-radius: 50%;
}

.modal-body {
    padding: 2rem;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
        border-radius: 0.5rem;
    }
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.qty-btn {
    background: #e5e7eb;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #2563eb;
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

.quantity-selector input {
    width: 80px;
    text-align: center;
    border: 2px solid #e5e7eb;
    padding: 0.5rem;
    border-radius: 0.5rem;
    min-height: 44px;
}

/* Mobile Quantity Selector */
@media (max-width: 768px) {
    .qty-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .quantity-selector input {
        width: 90px;
        font-size: 16px; /* Prevent zoom */
    }
}

/* Pricing Summary */
.pricing-summary {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.price-row.total {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #10b981;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.spinner {
    text-align: center;
    color: white;
}

.spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.spinner p {
    font-size: 1.2rem;
}

/* Card Display */
.card-display {
    background: rgb(179, 174, 174);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-logo {
    padding: 0.5rem 0.5rem 0 0.5rem;
    
}

.card-logo img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.card-header-text {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.4;
}

.pins-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.pins-table th,
.pins-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.pins-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pins-table td {
    background: white;
    font-size: 0.9rem;
}

.pins-table tr:hover td {
    background: #f9fafb;
}

/* PIN code styling */
.pins-table td:nth-child(2) {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #1e40af;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.card-footer {
    padding: 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.card-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.download-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.download-section .btn {
    margin: 0 0.5rem;
}

/* Mobile Card Display */
@media (max-width: 768px) {
    .card-logo {
        padding: 1rem 0.5rem 0 0.5rem;
    }
    
    .card-logo img {
        max-width: 120px;
    }
    
    .pins-table {
        font-size: 0.8rem;
    }

    .pins-table th,
    .pins-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .pins-table td:nth-child(2) {
        font-size: 0.9rem;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-header-text {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .download-section .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Responsive Table for Mobile */
@media (max-width: 600px) {
    .pins-table,
    .pins-table thead,
    .pins-table tbody,
    .pins-table th,
    .pins-table td,
    .pins-table tr {
        display: block;
    }

    .pins-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .pins-table tr {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        border-radius: 0.5rem;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .pins-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 40% !important;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .pins-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 35%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #374151;
    }

    .pins-table td:last-child {
        border-bottom: none;
    }
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #60a5fa;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #60a5fa;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.footer-section i {
    margin-right: 0.5rem;
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes slideUp {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Success and Error Messages */
.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 11000;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    min-width: 300px;
    max-width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: all 0.3s ease;
}

@keyframes alertSlideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(220, 252, 231, 0.95);
    color: #166534;
    border: 1px solid #22c55e;
}

.alert-error {
    background: rgba(254, 242, 242, 0.95);
    color: #dc2626;
    border: 1px solid #ef4444;
}

.alert-info {
    background: rgba(239, 246, 255, 0.95);
    color: #1d4ed8;
    border: 1px solid #2196f3;
}

.alert-warning {
    background: rgba(254, 243, 199, 0.95);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.alert i {
    font-size: 1.25rem;
}

.alert i {
    margin-right: 0.5rem;
}

/* Mobile Alert Adjustments */
@media (max-width: 768px) {
    .alert {
        margin: 1rem 15px;
        font-size: 0.9rem;
    }
}

/* Touch and Interaction Improvements */
@media (hover: none) {
    .btn:hover,
    .nav-link:hover,
    .service-card:hover,
    .contact-item:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
    
    .nav-link:active,
    .service-card:active {
        opacity: 0.8;
    }
}

/* PWA and Mobile App Styling */
@media (display-mode: standalone) {
    .header {
        padding-top: env(safe-area-inset-top);
    }
    
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .services {
        padding: 50px 0;
    }
    
    .modal-content {
        max-height: 80vh;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-header i,
    .contact-item i {
        transform: translateZ(0);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Force bright/light mode - Override any dark mode preferences */
* {
    color-scheme: light !important;
}

body {
    background-color: #f8fafc !important;
    color: #333 !important;
}

.header {
    background: #fff !important;
    color: #333 !important;
}

.service-card,
.retrieval-card,
.modal-content,
.card-display {
    background: #fff !important;
    color: #333 !important;
}

.footer {
    background: #1e293b !important;
    color: white !important;
}

/* Ensure form elements stay bright */
input, select, textarea {
    background: #fff !important;
    color: #333 !important;
    border: 2px solid #e5e7eb !important;
}

/* Ensure buttons maintain their intended colors */
.btn-primary {
    background: #2563eb !important;
    color: white !important;
}

.btn-secondary {
    background: #64748b !important;
    color: white !important;
}

/* End of CSS */
