/* assets/css/custom.css - Custom styling for Zhukhr Tech */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cairo:wght@400;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

:root {
    --navy-950: #070B19;
    --navy-900: #0A1128;
    --navy-850: #001F54;
    --navy-800: #0F1D40;
    --navy-700: #142850;
    --cyan-400: #38BDF8;
    --cyan-500: #0EA5E9;
    --gold-500: #F59E0B;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--navy-950);
    color: #F1F5F9;
    overflow-x: hidden;
}

.font-arabic {
    font-family: 'Cairo', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', 'Cairo', Georgia, serif;
}

.font-playfair-italic {
    font-family: 'Playfair Display', 'Cairo', Georgia, serif;
    font-style: italic;
}

h1:not(.no-playfair) {
    font-family: 'Playfair Display', 'Cairo', Georgia, serif;
    font-style: italic;
}

html[lang="ar"] .font-playfair-italic,
html[lang="ar"] h1:not(.no-playfair),
html[lang="ar"] .italic {
    font-style: normal !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #070B19;
}
::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0EA5E9;
}

/* Tech Grid Pattern */
.bg-tech-grid {
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Navy Glassmorphism */
.glass-navy {
    background: rgba(10, 17, 40, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.12);
}

.glass-card {
    background: rgba(15, 29, 64, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 12px 30px -10px rgba(14, 165, 233, 0.2);
}

/* Radial Glows */
.glow-cyan {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(10, 17, 40, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.glow-navy {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(3, 64, 120, 0.3) 0%, rgba(7, 11, 25, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Badge Pulse */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.05); }
}

.pulse-badge {
    animation: soft-pulse 3s infinite ease-in-out;
}

/* ============================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS
============================================================ */

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Prevent auto-zoom on iOS Safari when focusing form inputs */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Modal max height & smooth touch scroll on mobile */
    .modal-scroll-area {
        max-height: calc(100vh - 80px);
        -webkit-overflow-scrolling: touch;
    }

    /* Touch momentum for horizontal date picker */
    .calendar-dates-row {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .calendar-dates-row > * {
        scroll-snap-align: start;
    }
}

/* Hide scrollbar for clean horizontal scrolling */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Floating contact buttons safe padding on notched mobile devices */
@supports (padding: max(0px)) {
    .fixed.bottom-5 {
        bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
    }
}


/* Light Mode Globals */
html.light-mode {
    filter: invert(1) hue-rotate(180deg);
}
html.light-mode img, 
html.light-mode canvas, 
html.light-mode video, 
html.light-mode .keep-dark {
    filter: invert(1) hue-rotate(180deg);
}

/* Ensure Logo Badge remains clean white in Day/Light mode with no black border/background */
html.light-mode .brand-logo-badge {
    filter: invert(1) hue-rotate(180deg);
    background-color: #ffffff !important;
}
html.light-mode .brand-logo-badge img {
    filter: none !important;
}

/* ============================================================
   LEGAL DOCUMENTS STYLING (Terms & Privacy)
============================================================ */
.legal-body p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}
.legal-body p:last-child {
    margin-bottom: 0;
}
.legal-body ul {
    list-style-type: disc;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding-inline-start: 1.5rem;
}
.legal-body ol {
    list-style-type: decimal;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding-inline-start: 1.5rem;
}
.legal-body li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}
.legal-body strong {
    color: #f8fafc;
    font-weight: 700;
}
.legal-body a {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.legal-body a:hover {
    color: #7dd3fc;
}
.legal-body .contact {
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: rgba(10, 16, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}


