/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
nav ul li:hover {
    opacity: 0.8;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-banner h1 {
    animation: slideInFromLeft 0.8s ease-out;
}

.hero-banner p {
    animation: slideInFromLeft 0.8s ease-out 0.1s backwards;
}

.hero-banner button {
    animation: slideInFromLeft 0.8s ease-out 0.2s backwards;
}

/* Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Buttons */
button, .button {
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

button:hover, .button:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Cards */
.card, [class*="rounded-lg"] {
    transition: all 0.3s ease;
}

[class*="shadow-md"]:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Testimonials Carousel */
.testimonial-carousel {
    position: relative;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    animation: fadeIn 0.6s ease-out;
}

@media (min-width: 768px) {
    .testimonial-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-item {
    animation: fadeIn 0.6s ease-out;
}

/* FAQ Accordion */
.faq-question {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.faq-question:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.faq-item.active .faq-question {
    background-color: rgba(59, 130, 246, 0.1);
}

.faq-answer {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        max-height: 1000px;
        transform: translateY(0);
    }
}

/* Form Styles */
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="checkbox"], input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

/* Error Messages */
.error-message {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* Confirmation Message */
#confirmationMessage {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
#mobileMenuContent {
    animation: slideDown 0.3s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-banner {
        min-height: 100vh;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

button, a[href*="quote"] {
    transition: all 0.3s ease !important;
}

/* Loading State */
button:active {
    transform: scale(0.98);
}

/* Accessibility */
a:focus, button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }
    
    body {
        background-color: white;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
        color: #e5e7eb;
    }
    
    input, select, textarea {
        background-color: #1f2937;
        border-color: #374151;
        color: #e5e7eb;
    }
}

/* Brand Color Schemes */
.brand-hp { border-color: #0066cc; }
.brand-canon { border-color: #c41c3b; }
.brand-xerox { border-color: #8b2252; }
.brand-epson { border-color: #005eb8; }
.brand-samsung { border-color: #1428a0; }
.brand-konica { border-color: #ff6600; }
.brand-brother { border-color: #0099cc; }
.brand-lexmark { border-color: #4b0082; }
.brand-ricoh { border-color: #009f4d; }

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Professional Apple-style spacing */
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Background Patterns */
.pattern-grid {
    background-image: 
        linear-gradient(90deg, rgba(229, 231, 235, 0.5) 1px, transparent 1px),
        linear-gradient(rgba(229, 231, 235, 0.5) 1px, transparent 1px);
    background-size: 2rem 2rem;
}

/* ===========================
   Modal Popup Styles
   =========================== */

.modal-overlay {
    display: none;
    animation: fadeIn 0.3s ease-out;
    z-index: 9999;
    position: fixed;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.flex {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    animation: slideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 28rem;
    margin-top: auto;
    margin-bottom: auto;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal-overlay.flex {
        align-items: center;
        padding: 0.5rem;
    }
    
    .modal-content {
        max-height: 95vh;
        max-width: 100%;
    }
}

/* Close button styling */
#closeModal:hover {
    opacity: 0.8;
    cursor: pointer;
}

/* Form inputs in modal */
#quoteForm input,
#quoteForm select,
#quoteForm textarea {
    transition: all 0.3s ease;
    font-size: 16px;
}

#quoteForm input:focus,
#quoteForm select:focus,
#quoteForm textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

#quoteForm input.border-red-600 {
    border-color: #dc2626 !important;
    background-color: rgba(220, 38, 38, 0.05);
}

#quoteForm input.border-red-600:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Submit button in modal */
#submitBtn {
    transition: all 0.3s ease;
    font-size: 16px;
}

#submitBtn:hover {
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

#submitBtn:active {
    transform: scale(0.98);
}

/* Success modal styling */
#successModal .modal-content {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Modal responsiveness */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    #quoteModal .modal-content {
        width: calc(100% - 2rem);
    }
}

/* Smooth transitions for modal state changes */
.modal-overlay {
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

