/* Khoz Corporation Private Limited - Modern Styling */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.4);
    --bg-dark: #090d16;
    --bg-card-dark: #111827;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --border-dark: #1e293b;
    
    --bg-light: #f8fafc;
    --bg-card-light: #ffffff;
    --text-light: #0f172a;
    --border-light: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    line-height: 1.6;
}

body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-light);
}

/* Glassmorphism elements */
.glass-panel {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

/* Glowing Pulsing Status Badge */
.pulse-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.warning-pulse {
    background-color: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: warning-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes warning-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Top Announcement Banner */
.top-announcement {
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.top-announcement a {
    color: #fde047 !important;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.2s;
}

.top-announcement a:hover {
    color: #ffffff !important;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .gradient-text {
    background: linear-gradient(135deg, #1d4ed8 0%, #7e22ce 50%, #be185d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Hover Effects */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-dark);
}

body.light-mode .service-card {
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.15), 0 8px 10px -6px rgba(37, 99, 235, 0.1);
}

/* Countdown Display Box */
.timer-box {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    min-width: 80px;
    text-align: center;
}

body.light-mode .timer-box {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Custom Modal */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Form Styles */
.form-input {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

body.light-mode .form-input {
    background-color: #ffffff;
    border: 1px solid #94a3b8;
    color: #0f172a;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Highlight Box for Digital Meghu Link */
.digital-meghu-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px dashed rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
}

body.light-mode .digital-meghu-box {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.85) 0%, rgba(243, 232, 255, 0.85) 100%);
    border: 1px dashed #3b82f6;
}

.digital-meghu-box:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
}

/* ==========================================
   DAY MODE / LIGHT MODE COMPREHENSIVE FIXES
   ========================================== */

body.light-mode {
    background-color: #f8fafc;
    color: #0f172a;
}

/* Override text color utilities in Light Mode */
body.light-mode .text-white,
body.light-mode h1:not(.top-announcement *),
body.light-mode h2:not(.top-announcement *),
body.light-mode h3:not(.top-announcement *),
body.light-mode h4:not(.top-announcement *) {
    color: #0f172a !important;
}

body.light-mode .text-slate-200,
body.light-mode .text-slate-300 {
    color: #1e293b !important;
}

body.light-mode .text-slate-400 {
    color: #475569 !important;
}

body.light-mode .text-slate-500 {
    color: #64748b !important;
}

/* Header & Nav in Light Mode */
body.light-mode header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
}

body.light-mode nav a {
    color: #334155 !important;
}

body.light-mode nav a:hover {
    color: #2563eb !important;
}

body.light-mode #mobile-menu {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
}

body.light-mode #mobile-menu a {
    color: #0f172a !important;
}

/* Theme Toggle Button in Light Mode */
body.light-mode #theme-toggle {
    background-color: #e2e8f0;
    color: #0f172a;
}

body.light-mode #mobile-menu-btn {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* Sections Backgrounds in Light Mode */
body.light-mode #maintenance-status {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

body.light-mode #about {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

body.light-mode #contact {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

/* Status Cards & Items in Light Mode */
body.light-mode .bg-slate-900\/80,
body.light-mode .bg-slate-900\/60,
body.light-mode .bg-slate-900\/40,
body.light-mode .bg-slate-950\/80 {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

body.light-mode .border-slate-800,
body.light-mode .border-slate-800\/80,
body.light-mode .border-slate-700 {
    border-color: #cbd5e1 !important;
}

/* Buttons in Light Mode */
body.light-mode .bg-slate-800 {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

body.light-mode .bg-slate-800:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

/* FAQ Items in Light Mode */
body.light-mode .faq-item {
    background-color: #ffffff;
    border-color: #cbd5e1 !important;
}

body.light-mode .faq-question {
    color: #0f172a !important;
}

body.light-mode .faq-question:hover {
    background-color: #f1f5f9 !important;
}

body.light-mode .faq-answer {
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}

/* Footer in Light Mode */
body.light-mode footer {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    color: #334155;
}

body.light-mode footer .bg-slate-900 {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

body.light-mode footer .border-slate-900 {
    border-color: #cbd5e1 !important;
}

/* Select inputs in Light Mode */
body.light-mode select.form-input {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* Modals in Light Mode */
body.light-mode #quote-modal .glass-panel {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-mode #quote-modal label {
    color: #334155 !important;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
}
