/* =============================================
   AUROSCITY - Premium Design System
   Desenvolvido por GuaxiFox
   Version 2.0
   ============================================= */

/* ─────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────────
   SCROLLBAR
   ───────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

/* ─────────────────────────────────────────────
   SELECTION
   ───────────────────────────────────────────── */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

/* ─────────────────────────────────────────────
   KEYFRAME ANIMATIONS
   ───────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

@keyframes glow {
    0% { opacity: 0.5; filter: blur(40px); }
    100% { opacity: 0.8; filter: blur(60px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* ─────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────── */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float 10s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-pulse-slow { animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite alternate; }
.animate-shimmer { animation: shimmer 2s linear infinite; }
.animate-gradient { animation: gradient 8s ease infinite; background-size: 200% 200%; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }
.animate-slide-down { animation: slideDown 0.5s ease-out; }
.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-scale-in { animation: scaleIn 0.4s ease-out; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-spin-slow { animation: spin 20s linear infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-bounce-slow { animation: bounce 3s infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* ─────────────────────────────────────────────
   REVEAL ANIMATIONS
   ───────────────────────────────────────────── */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-element.revealed,
.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ─────────────────────────────────────────────
   GLASSMORPHISM
   ───────────────────────────────────────────── */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─────────────────────────────────────────────
   HOVER EFFECTS
   ───────────────────────────────────────────── */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Shine effect */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.hover-shine:hover::before {
    left: 100%;
}

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

/* ─────────────────────────────────────────────
   BADGES
   ───────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-error {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.badge-info {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ─────────────────────────────────────────────
   SKELETON LOADING
   ───────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─────────────────────────────────────────────
   MODAL TRANSITIONS
   ───────────────────────────────────────────── */
.modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.open .modal-content {
    transform: scale(1) translateY(0);
}

/* ─────────────────────────────────────────────
   INPUT STYLES
   ───────────────────────────────────────────── */
.input-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.input-dark:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 158, 11, 0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.input-dark::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ─────────────────────────────────────────────
   PRELOADER
   ───────────────────────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    background: #050506;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 3px solid transparent;
    border-top-color: #06b6d4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

/* ─────────────────────────────────────────────
   TOAST NOTIFICATIONS
   ───────────────────────────────────────────── */
#toast {
    transform: translateX(400px);
}

#toast.show {
    transform: translateX(0);
}

/* ─────────────────────────────────────────────
   UPTIME BARS
   ───────────────────────────────────────────── */
.uptime-bar {
    width: 4px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: all 0.3s;
}

.uptime-bar:hover {
    transform: scaleY(1.2);
    box-shadow: 0 0 8px currentColor;
}

.uptime-bar.active {
    background-color: #10b981;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.4);
}

.uptime-bar.warn {
    background-color: #f59e0b;
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.4);
}

.uptime-bar.error {
    background-color: #f43f5e;
    box-shadow: 0 0 5px rgba(244, 63, 94, 0.4);
}

/* ─────────────────────────────────────────────
   SERVICE STATUS
   ───────────────────────────────────────────── */
.service-item {
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.service-item:hover .service-icon {
    color: white;
}

/* ─────────────────────────────────────────────
   ROADMAP ITEMS
   ───────────────────────────────────────────── */
.roadmap-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.roadmap-item.active {
    opacity: 1;
    transform: translateY(0);
}

.roadmap-item.completed .roadmap-dot {
    background-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.roadmap-item.current .roadmap-dot {
    background-color: transparent;
    border: 2px solid #f59e0b;
}

.roadmap-item.current .roadmap-dot::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #f59e0b;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.roadmap-item.pending {
    opacity: 0.4;
}

/* ─────────────────────────────────────────────
   STAFF CARDS
   ───────────────────────────────────────────── */
.staff-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.staff-card .staff-avatar {
    transition: filter 0.5s ease, transform 0.5s ease;
    filter: grayscale(30%);
}

.staff-card:hover .staff-avatar {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* ─────────────────────────────────────────────
   GLOW EFFECTS
   ───────────────────────────────────────────── */
.shadow-glow {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

.shadow-glow-lg {
    box-shadow: 0 0 80px rgba(245, 158, 11, 0.2);
}

.shadow-glow-cyan {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.15);
}

.text-glow {
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* ─────────────────────────────────────────────
   CARDS - HOLOGRAPHIC EFFECT
   ───────────────────────────────────────────── */
.holo-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.holo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.05) 0%,
        transparent 50%,
        rgba(6, 182, 212, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.holo-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* ─────────────────────────────────────────────
   NEON CARD
   ───────────────────────────────────────────── */
.neon-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.neon-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #f59e0b, #06b6d4, #8b5cf6, #f43f5e);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.neon-card:hover::after {
    opacity: 0.4;
}

.neon-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
.btn-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.4);
}

.btn-pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}

/* ─────────────────────────────────────────────
   CLIP PATHS
   ───────────────────────────────────────────── */
.clip-path-button {
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.clip-path-card {
    clip-path: polygon(0 20px, 20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

/* ─────────────────────────────────────────────
   GRADIENTS
   ───────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
}

.gradient-border {
    position: relative;
    background: transparent;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, #f59e0b, #06b6d4, #8b5cf6);
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ─────────────────────────────────────────────
   RESPONSIVE UTILITIES
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .text-responsive {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ─────────────────────────────────────────────
   FOCUS STYLES (ACCESSIBILITY)
   ───────────────────────────────────────────── */
*:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* ─────────────────────────────────────────────
   REDUCED MOTION - Respeitando preferência do usuário
   Nota: Removido bloqueio total para não quebrar UI
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-pulse-slow,
    .animate-shimmer,
    .animate-glow,
    .animate-gradient,
    .animate-bounce {
        animation: none;
    }
}

/* ─────────────────────────────────────────────
   UNIVERSAL FORM ELEMENTS DARK THEME
   ───────────────────────────────────────────── */

/* Text inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="url"],
textarea,
select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    caret-color: #f59e0b;
}

/* Placeholder text */
input::placeholder,
textarea::placeholder {
    color: rgba(156, 163, 175, 0.6) !important;
}

/* Focus states */
input:focus,
textarea:focus,
select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #f59e0b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

/* Select dropdown styling */
select {
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.7em center !important;
    background-size: 1.2em !important;
    padding-right: 2.5em !important;
}

/* Select options */
select option {
    background-color: #050506 !important;
    color: white !important;
}

select option:checked {
    background-color: #f59e0b !important;
    background-image: linear-gradient(#f59e0b, #f59e0b) !important;
    color: #050506 !important;
}

/* Checkboxes and Radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #f59e0b !important;
}

/* File input */
input[type="file"] {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

input[type="file"]::file-selector-button {
    background-color: #f59e0b !important;
    color: #050506 !important;
    border: none !important;
    padding: 0.5em 1em !important;
    cursor: pointer !important;
}

/* ─────────────────────────────────────────────
   PRINT STYLES
   ───────────────────────────────────────────── */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
