/* Custom styles for All Done Technology (ADT) Enterprise Suite Landing Page */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-blue: #0284c7;
    --brand-cyan: #06b6d4;
    --brand-dark: #0f172a;
    --brand-slate: #1e293b;
    --brand-accent: #3b82f6;
    --whatsapp-color: #25D366;
    --gmail-color: #EA4335;
    --call-color: #0284c7;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* ========================================================
   Aerosol.io Inspired Persistent Side Rail & Navigation Menu
   ======================================================== */
.side-rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 88px;
    background: #0b1320;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hamburger-bars {
    width: 26px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hamburger-bars .bar {
    display: block;
    height: 2px;
    background-color: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-bars .bar-1 { width: 26px; }
.hamburger-bars .bar-2 { width: 18px; }
.hamburger-bars .bar-3 { width: 26px; }

.hamburger-btn:hover .hamburger-bars .bar-2 {
    width: 26px;
}

/* Hamburger to X morph */
.hamburger-btn.is-active .hamburger-bars .bar-1 {
    transform: translateY(9px) rotate(45deg);
    background-color: #38bdf8;
}

.hamburger-btn.is-active .hamburger-bars .bar-2 {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.is-active .hamburger-bars .bar-3 {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #38bdf8;
}

.hamburger-btn.is-active .menu-caption {
    color: #38bdf8;
}

/* Fullscreen/Slide-Out Menu Overlay (aerosol.io style) */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 88px;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, #16333b 0%, #0c1a24 60%, #071018 100%);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-25px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(56, 189, 248, 0.15);
}

.side-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

@media (max-width: 1023px) {
    .side-menu-overlay {
        left: 0;
        top: 64px;
    }
}

/* Staggered entrance animation for navigation menu items */
.stagger-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-menu-overlay.is-open .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.side-menu-overlay.is-open .stagger-1  { transition-delay: 0.06s; }
.side-menu-overlay.is-open .stagger-2  { transition-delay: 0.12s; }
.side-menu-overlay.is-open .stagger-3  { transition-delay: 0.18s; }
.side-menu-overlay.is-open .stagger-4  { transition-delay: 0.24s; }
.side-menu-overlay.is-open .stagger-5  { transition-delay: 0.30s; }
.side-menu-overlay.is-open .stagger-6  { transition-delay: 0.36s; }
.side-menu-overlay.is-open .stagger-7  { transition-delay: 0.42s; }
.side-menu-overlay.is-open .stagger-8  { transition-delay: 0.48s; }
.side-menu-overlay.is-open .stagger-9  { transition-delay: 0.54s; }
.side-menu-overlay.is-open .stagger-10 { transition-delay: 0.60s; }

.side-menu-overlay:not(.is-open) .stagger-item {
    transition-delay: 0s;
    transition-duration: 0.15s;
}

.sub-product-link {
    display: flex;
    align-items: center;
    width: 100%;
    transition: all 0.25s ease;
    text-decoration: none;
}

.sub-product-link:hover {
    transform: translateX(8px);
}

/* Hide floating contact buttons when menu is open so they don't cover menu contents */
body.menu-open .floating-contact-panel {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.overlay-nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: #cbd5e1;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    transition: all 0.25s ease;
    text-decoration: none;
}

.overlay-nav-link:hover {
    color: #ffffff;
    transform: translateX(8px);
}

.overlay-nav-link:hover .link-bullet {
    background-color: #38bdf8;
    transform: scale(1.4);
}

.link-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(148, 163, 184, 0.4);
    transition: all 0.25s ease;
}

/* Glassmorphism & Navbar */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.site-logo-img {
    height: 48px;
    width: auto;
    max-height: 52px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.site-logo-img:hover {
    transform: scale(1.02);
}

.nav-link {
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #0284c7;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #0284c7;
    transition: width 0.25s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Gradient accents */
.gradient-text {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-gradient-overlay {
    background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
}

/* Screenshot Mockup Container */
.mockup-window {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.mockup-window:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(14, 165, 233, 0.3);
}

.mockup-header {
    background: #f1f5f9;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.mockup-dots {
    display: flex;
    gap: 6px;
    margin-right: 12px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot-red { background: #ef4444; }
.mockup-dot-yellow { background: #f59e0b; }
.mockup-dot-green { background: #10b981; }

.mockup-url {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 14px;
    font-size: 0.75rem;
    color: #64748b;
    font-family: monospace;
    flex-grow: 1;
    max-width: 480px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Floating Action Center */
.floating-contact-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.fab-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(0, 0, 0, 0.35);
}

.fab-whatsapp {
    background-color: #25D366;
}

.fab-call {
    background-color: #0284c7;
}

.fab-gmail {
    background-color: #EA4335;
}

.fab-top {
    background-color: #334155;
    width: 44px;
    height: 44px;
}

.fab-tooltip {
    position: absolute;
    right: 64px;
    background: #0f172a;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fab-btn:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse animation for high visibility */
.pulse-badge {
    animation: pulseRing 2s infinite cubic-bezier(0.45, 0, 0, 1);
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Copy Credential Button Feedback */
.btn-copy {
    transition: all 0.2s ease;
}

.btn-copy:active {
    transform: scale(0.95);
}

/* Toast Notification */
#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Lightbox Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
