* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #06b6d4;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #667eea; /* Fallback for older browsers */
    background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: -moz-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: -o-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    min-height: -webkit-fill-available; /* iOS Safari fix */
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* Header */
.header {
    background: var(--primary-color); /* Fallback */
    background: -webkit-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    background: -moz-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    background: -o-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.company-name {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.nav-tabs {
    display: flex;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-size: 12px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-tab.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 24px;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.nav-tab.active .nav-icon {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}

.nav-text {
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 20px 16px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.tab-content {
    display: none;
    -webkit-animation: fadeIn 0.3s ease;
    -moz-animation: fadeIn 0.3s ease;
    -o-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(10px);
        -moz-transform: translateY(10px);
        -ms-transform: translateY(10px);
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
}

/* Welcome Card */
.welcome-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.welcome-card h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-light);
    font-size: 16px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:active {
    -webkit-transform: scale(0.98);
    -moz-transform: scale(0.98);
    -ms-transform: scale(0.98);
    transform: scale(0.98);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Delivery Section */
.delivery-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 20px;
    padding: 30px 24px;
    margin: 30px 0;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-light);
}

.delivery-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.delivery-icon {
    font-size: 80px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.delivery-text h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 700;
}

.delivery-description {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

.delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    margin-top: 10px;
}

.badge-icon {
    font-size: 24px;
}

.badge-text {
    font-weight: 600;
    font-size: 15px;
}

/* Quick Action */
.quick-action {
    margin-top: 24px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: var(--primary-color); /* Fallback */
    background: -webkit-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    background: -moz-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    background: -o-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Section Title */
.section-title {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

/* Service List */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-item:active {
    transform: scale(0.98);
}

.service-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
}

.service-info h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 4px;
}

.service-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* Order Form */
.order-form {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--bg-light);
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.payment-option {
    display: block;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.payment-option input[type="radio"]:checked + .payment-label {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.payment-icon {
    font-size: 24px;
}

.bank-info {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.bank-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 16px;
}

.bank-image {
    max-width: 200px;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 0 auto 20px;
    display: block;
    box-sizing: border-box;
    object-fit: cover;
}

.bank-details {
    margin-top: 20px;
}

.bank-detail-item {
    margin-bottom: 15px;
}

.bank-detail-item label {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.copy-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.bank-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-dark);
    word-break: break-all;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 60px;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.phone-copy-box {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
    flex-wrap: wrap;
    direction: rtl;
}

.call-icon-link,
.whatsapp-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.call-icon-link:hover,
.whatsapp-icon-link:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.call-icon-link:active,
.whatsapp-icon-link:active {
    transform: scale(0.95);
}

.call-icon,
.whatsapp-icon {
    font-size: 20px;
    display: block;
}

.whatsapp-icon-link {
    background: #25D366;
}

.whatsapp-icon-link:hover {
    background: #20BA5A;
}

.copy-btn-small {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn-small:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.copy-btn-small:active {
    transform: translateY(0);
}

.btn-submit {
    margin-top: 8px;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.contact-card:active {
    transform: scale(0.98);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.contact-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 16px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.contact-link:active {
    color: var(--primary-dark);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.modal-content h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 24px;
}

/* Responsive Design for All Mobile Devices */

/* Extra Small Devices (phones, 320px and up) */
@media (max-width: 360px) {
    .header {
        padding: 16px 12px;
    }
    
    .company-name {
        font-size: 18px;
    }
    
    .logo {
        width: 35px;
        height: 35px;
        padding: 4px;
    }
    
    .welcome-card {
        padding: 20px;
    }
    
    .welcome-card h2 {
        font-size: 22px;
    }
    
    .welcome-card p {
        font-size: 14px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 16px;
    }
    
    .feature-icon {
        font-size: 32px;
    }
    
    .nav-text {
        font-size: 10px;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .order-form {
        padding: 20px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .main-content {
        padding: 16px 12px;
    }
}

/* Small Devices (phones, 480px and up) */
@media (max-width: 480px) {
    .company-name {
        font-size: 20px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 0 !important;
        z-index: 1000 !important;
    }
    
    .welcome-card h2 {
        font-size: 24px;
    }
    
    .service-item {
        padding: 16px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 15px;
    }
    
    .btn-primary {
        padding: 14px;
        font-size: 16px;
    }
    
    .bank-image {
        max-width: 150px;
        width: 150px;
        height: 150px;
    }
    
    .copy-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .phone-copy-box {
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
        direction: rtl;
    }
    
    .call-icon-link,
    .whatsapp-icon-link {
        width: 36px;
        height: 36px;
    }
    
    .call-icon,
    .whatsapp-icon {
        font-size: 18px;
    }
    
    .copy-btn-small {
        width: auto;
        min-width: 60px;
    }
    
    .delivery-section {
        padding: 24px 16px;
        margin: 20px 0;
    }
    
    .delivery-icon {
        font-size: 60px;
    }
    
    .delivery-text h2 {
        font-size: 24px;
    }
    
    .delivery-description {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .delivery-badge {
        padding: 10px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .badge-text {
        font-size: 13px;
        text-align: center;
    }
    
    .modal-content {
        padding: 24px;
        margin: 10px;
    }
    
    .modal-icon {
        font-size: 48px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 481px) and (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        padding: 24px 20px;
    }
    
    .header {
        padding: 24px 20px;
    }
    
    .welcome-card {
        padding: 28px;
    }
    
    .order-form {
        padding: 28px;
    }
}

/* Large Devices (tablets landscape, 1024px and up) */
@media (min-width: 769px) {
    .main-content {
        max-width: 800px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-tabs {
        max-width: 800px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .header {
        padding: 12px 16px;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .company-name {
        font-size: 18px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .welcome-card {
        padding: 16px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .nav-tab,
    .service-item,
    .contact-card,
    .feature-card {
        -webkit-tap-highlight-color: rgba(30, 64, 175, 0.2);
    }
    
    .btn-primary:active,
    .nav-tab:active {
        transform: scale(0.95);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .bank-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Safe Area for Notched Devices */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(20px, env(safe-area-inset-top));
    }
    
    .nav-tabs {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
    
    .main-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* PWA Install Prompt */
.install-prompt {
    background: var(--primary-color);
    color: white;
    padding: 16px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: none;
}

.install-prompt.active {
    display: block;
}

.install-prompt button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    margin-left: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.footer {
    background: var(--bg-white);
    padding: 20px 16px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-content p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.footer-separator {
    color: var(--text-light);
    margin: 0 4px;
}

