/* ==========================================================================
   NORT COMPANY — DIGITAL EXPERIENCE 2026
   Premium Corporate Styling & Glassmorphism Theme Engine
   ========================================================================== */

:root {
    --primary: #2A5D68;
    --primary-light: #377785;
    --primary-dark: #1b3d45;
    --secondary: #48A9A6;
    --secondary-hover: #5ec2bf;
    --secondary-glow: rgba(72, 169, 166, 0.25);
    --bg-dark: #0b0f14;
    --bg-card: rgba(16, 23, 32, 0.7);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(72, 169, 166, 0.3);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --font-display: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    selection-background-color: var(--secondary);
    selection-color: #0b0f14;
}

::selection {
    background-color: var(--secondary);
    color: #0b0f14;
}

/* --- Reading Progress Bar --- */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* --- Loader --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(72, 169, 166, 0.15);
    border-top-color: var(--secondary);
    border-right-color: var(--primary);
    border-radius: 50%;
    animation: loader-spin 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

/* --- Glassmorphism & High-Tier Cards --- */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
}

.glass-card {
    background: rgba(16, 23, 32, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(72, 169, 166, 0.08);
    transform: translateY(-4px);
}

/* --- Mouse Reactive Glow Follow Card --- */
.glow-card {
    position: relative;
    background: rgba(16, 23, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -1000px);
    left: var(--mouse-x, -1000px);
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(72, 169, 166, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.glow-card:hover::before {
    opacity: 1;
}

.glow-card:hover {
    border-color: rgba(72, 169, 166, 0.4);
    transform: translateY(-3px);
}

.glow-card > * {
    position: relative;
    z-index: 2;
}

/* --- Reveal Scroll Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay helpers for stagger effect */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* --- Marquee Infinite Scroll --- */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* --- Strategic Cockpit Dashboard Box --- */
.cockpit-panel {
    background: linear-gradient(145deg, rgba(26, 38, 50, 0.8) 0%, rgba(13, 19, 27, 0.95) 100%);
    border: 1px solid rgba(72, 169, 166, 0.25);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(42, 93, 104, 0.3);
}

/* --- Pulse Badges --- */
.pulse-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #10b981;
    animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}


/* --- FAQ Accordion Transition --- */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-content {
    max-height: 500px;
    opacity: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--secondary);
}

/* --- Toast Feedback --- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(16, 23, 32, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-highlight);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    z-index: 99999;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #2A5D68;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #48A9A6;
}

/* --- Text Gradient Helpers --- */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-teal {
    background: linear-gradient(135deg, #48A9A6 0%, #7ee0dd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtle Grid Background Pattern */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}