/**
 * TELOS GLOBAL TECH - Main Stylesheet (REDESIGNED - Brighter)
 * Modern enterprise technology aesthetic
 */

/* ============================================
   BASE STYLES
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #FFFFFF;
    color: #0F172A;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(2, 132, 199, 0.15);
    color: #0F172A;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284C7;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes nodeFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -15px); }
    50% { transform: translate(-5px, 10px); }
    75% { transform: translate(15px, 5px); }
}

@keyframes dataStream {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(2, 132, 199, 0.3); }
    50% { border-color: rgba(2, 132, 199, 0.6); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes counterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-180deg) scale(0.5); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes heroGrid {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

@keyframes traceDot {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #EFF6FF 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(30, 111, 184, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(2, 132, 199, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated Grid Background */
.hero-grid {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-grid::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(30, 111, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 111, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    animation: heroGrid 20s linear infinite;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #0284C7;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(2, 132, 199, 0.4);
    animation: nodeFloat var(--duration, 8s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0.4;
}

/* Trace Lines */
.hero-trace-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.trace-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 111, 184, 0.25), transparent);
    animation: traceDot var(--duration, 4s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* Scanline Effect */
.hero-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.2), transparent);
    animation: scanline 4s ease-in-out infinite;
    pointer-events: none;
}

/* Glowing Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
    animation: nodeFloat var(--duration, 12s) ease-in-out infinite;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.03), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: #0284C7;
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(30, 111, 184, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.08);
}

.service-card .card-icon {
    transition: all 0.35s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
}

.service-card .card-border-glow {
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), transparent, rgba(2, 132, 199, 0.2));
    z-index: -1;
}

.service-card:hover .card-border-glow {
    opacity: 1;
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */

.timeline-step {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #0284C7, transparent);
    opacity: 0.3;
}

.step-number {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E6FB8 0%, #0284C7 100%);
    border: 2px solid rgba(2, 132, 199, 0.3);
    border-radius: 50%;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.25rem;
    color: #FFFFFF;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(30, 111, 184, 0.2);
}

.timeline-step.visible .step-number {
    animation: rotateIn 0.6s ease forwards;
}

/* ============================================
   COUNTER SECTION
   ============================================ */

.counter-box {
    position: relative;
    padding: 2rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.counter-box:hover {
    border-color: #0284C7;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 111, 184, 0.1);
}

.counter-value {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1E6FB8;
}

.counter-label {
    font-size: 0.875rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ============================================
   TESTIMONIAL SLIDER
   ============================================ */

.testimonial-slide {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    inset: 0;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.35s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
    border-color: #0284C7;
    box-shadow: 0 12px 32px rgba(30, 111, 184, 0.1);
}

/* ============================================
   MARQUEE LOGOS
   ============================================ */

.logo-marquee-track {
    display: flex;
    gap: 4rem;
    animation: marquee var(--duration, 30s) linear infinite;
    width: max-content;
}

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

.logo-marquee-item {
    flex-shrink: 0;
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.logo-marquee-item:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* ============================================
   SCAM IDENTIFIER
   ============================================ */

.scam-type-btn {
    position: relative;
    padding: 1rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    color: #0F172A;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.scam-type-btn:hover {
    border-color: #0284C7;
    background: rgba(2, 132, 199, 0.03);
}

.scam-type-btn.active {
    border-color: #0284C7;
    background: rgba(2, 132, 199, 0.06);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.08);
}

.scam-detail-panel {
    display: none;
    animation: slideUp 0.5s ease forwards;
}

.scam-detail-panel.active {
    display: block;
}

/* ============================================
   EVIDENCE CHECKLIST
   ============================================ */

.evidence-check {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.evidence-check:hover {
    border-color: #0284C7;
    background: rgba(2, 132, 199, 0.02);
}

.evidence-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #0284C7;
    cursor: pointer;
}

.evidence-check.checked {
    border-color: #0284C7;
    background: rgba(2, 132, 199, 0.04);
}

.recovery-score-ring {
    position: relative;
    width: 160px;
    height: 160px;
}

.recovery-score-ring svg {
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: #E2E8F0;
    stroke-width: 8;
}

.score-ring-progress {
    fill: none;
    stroke: #0284C7;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLASSMORPHISM
   ============================================ */

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.2), transparent);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #1E6FB8 0%, #0284C7 100%);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(30, 111, 184, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 111, 184, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #FFFFFF;
    color: #1E6FB8;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #F8FAFC;
    border-color: #1E6FB8;
    color: #0F4C81;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #FFFFFF;
    color: #1E6FB8;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #F8FAFC;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, #1E6FB8 0%, #0284C7 50%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   NAVIGATION
   ============================================ */

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0284C7;
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 50%, #F8FAFC 100%);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 70%, rgba(30, 111, 184, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(2, 132, 199, 0.04) 0%, transparent 50%);
}

/* Dark page header variant for accent pages */
.page-header-dark {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #1E6FB8 0%, #0F4C81 100%);
    overflow: hidden;
}

.page-header-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    color: #0F172A;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0284C7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
    background: #FFFFFF;
}

.form-input::placeholder {
    color: #94A3B8;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    color: #0F172A;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-select:focus {
    outline: none;
    border-color: #0284C7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* ============================================
   BLOG STYLES
   ============================================ */

.blog-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
    border-color: #0284C7;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(30, 111, 184, 0.1);
}

.blog-card img {
    transition: transform 0.6s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* ============================================
   ADMIN STYLES (left untouched as requested)
   ============================================ */

.admin-sidebar {
    background: linear-gradient(180deg, #0A0E1A 0%, #0F1B31 100%);
    border-right: 1px solid rgba(0, 212, 255, 0.1);
}

.admin-card {
    background: rgba(15, 27, 49, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(15, 27, 49, 0.9) 0%, rgba(10, 14, 26, 0.95) 100%);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 212, 255, 0.25);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    background: rgba(15, 27, 49, 0.5);
}

.admin-table td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-table tr:hover td {
    background: rgba(0, 212, 255, 0.02);
}

/* ============================================
   TESTIMONIAL CARD (testimonials page)
   ============================================ */

.testimonial-card-full {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.35s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.testimonial-card-full:hover {
    border-color: #0284C7;
    box-shadow: 0 12px 32px rgba(30, 111, 184, 0.1);
}

/* ============================================
   CHAT WIDGET
   ============================================ */

#chat-window {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    overflow: hidden;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .counter-value {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 6rem 0;
    }
}

@media (max-width: 768px) {
    .counter-value {
        font-size: 1.75rem;
    }
    
    .timeline-connector {
        left: 30px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .btn-primary, .btn-secondary, .btn-white {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .hero-particles, .hero-grid, .chat-widget-container {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-grid::before,
    .hero-scanline,
    .hero-particle,
    .trace-line,
    .hero-orb {
        display: none !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .timeline-step {
        opacity: 1 !important;
        transform: none !important;
    }
}
