/* Dometrix Technologies — static site styles (ported from index.css / App.css) */

:root {
    --navy: #0B1F3A;
    --azure: #1CA0E0;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #1CA0E0 #eef1f4;
}

body {
    margin: 0;
    background-color: #ffffff;
    color: #0B1F3A;
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Sora', sans-serif;
}

::selection {
    background: #1CA0E0;
    color: #ffffff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #eef1f4; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #1CA0E0; }

/* Grain / noise overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.font-heading { font-family: 'Sora', sans-serif; }
.font-body { font-family: 'Manrope', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

.overline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #1CA0E0;
}

.text-gradient {
    background: linear-gradient(120deg, #0B1F3A 0%, #16608f 55%, #1CA0E0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.azure-glow { box-shadow: 0 0 80px -20px rgba(28, 160, 224, 0.45); }

.radial-spot {
    background: radial-gradient(circle at 50% 40%, rgba(28,160,224,0.14), transparent 60%);
}

.grid-lines {
    background-image:
        linear-gradient(to right, rgba(11,31,58,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11,31,58,0.05) 1px, transparent 1px);
    background-size: 80px 80px;
}

.grid-lines-light {
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 80px 80px;
}

@media (hover: hover) and (pointer: fine) {
    .hide-cursor, .hide-cursor * { cursor: none !important; }
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #1CA0E0;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(28,160,224,0.6);
    border-radius: 9999px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
}
.cursor-ring.grow {
    width: 64px;
    height: 64px;
    background: rgba(28,160,224,0.08);
}

/* Header solid/transparent state */
.site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
.site-header--solid {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(0,0,0,0.1);
}

/* Desktop dropdown (pure CSS, mirrors group-hover behaviour) */
.nav-dropdown-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile nav panel */
#mobileNavPanel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}
#mobileNavPanel.is-open {
    max-height: 100%;
    opacity: 1;
}

/* Masked line reveal (headings) */
.line-mask { display: block; overflow: hidden; }
.line-mask > span {
    display: block;
    transform: translateY(110%);
    will-change: transform;
}
.mask-in .line-mask > span {
    animation: lineReveal 0.9s cubic-bezier(0.33,1,0.68,1) forwards;
    animation-delay: var(--mask-delay, 0s);
}
@keyframes lineReveal {
    to { transform: translateY(0); }
}

/* Scroll / load reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.33,1,0.68,1), transform 0.7s cubic-bezier(0.33,1,0.68,1);
    transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-only reveal (used for small inline elements) */
[data-fade] {
    opacity: 0;
    transition: opacity 0.8s ease;
    transition-delay: var(--reveal-delay, 0s);
}
[data-fade].revealed { opacity: 1; }

/* Floating dock CTA entrance */
#floatingDock {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease 1.1s, transform 0.6s ease 1.1s;
}
#floatingDock.is-shown {
    opacity: 1;
    transform: translateX(0);
}

/* Marquee */
.marquee-strip { overflow: hidden; }
.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Toast notifications (sonner replacement) */
#toastRoot {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    background: #ffffff;
    border: 1px solid rgba(11,31,58,0.1);
    color: #0B1F3A;
    border-radius: 0.75rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.875rem;
    box-shadow: 0 10px 40px -10px rgba(11,31,58,0.25);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: 320px;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast--error { border-color: rgba(220,38,38,0.35); }

/* Network sphere canvas host */
.network-sphere-canvas { display: block; height: 100%; width: 100%; }

/* Parallax image (About page) */
.parallax-wrap { position: relative; overflow: hidden; border-radius: 1rem; }
.parallax-img {
    position: absolute;
    inset: 0;
    height: 130%;
    width: 100%;
    object-fit: cover;
    will-change: transform;
}
