
/* Google Fonts are loaded via <link> tag in layouts/app.blade.php */

/* Design Tokens & Theme Variables */
:root {
    --primary: #00E5FF;
    --primary-rgb: 0, 229, 255;
    --secondary: #8A2BE2;
    --secondary-rgb: 138, 43, 226;
    --bg-dark: #050816;
    --bg-card: rgba(13, 17, 38, 0.7);
    --border-glow: rgba(0, 229, 255, 0.15);
    --text-muted: #8F9CAE;
    --radius-premium: 20px;
}

/* Global Reset & Base Style */
body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Custom Selection */
::selection {
    background: rgba(0, 229, 255, 0.25);
    color: #ffffff;
}

/* Glowing Blob Backgrounds */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.18) 0%, rgba(5, 8, 22, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, rgba(5, 8, 22, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ffffff, var(--secondary));
    z-index: 99999;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Background floating elements */
.glowing-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: float-slow 20s infinite ease-in-out alternate;
}

@keyframes float-slow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(60px, -60px) scale(1.15) rotate(45deg);
    }
    100% {
        transform: translate(-40px, 40px) scale(0.9) rotate(-45deg);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

/* Futuristic Premium Components */

/* Glassmorphism Card with Gradient Border on Hover */
.cyber-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-premium);
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cyber-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-premium);
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.15;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--secondary-rgb), 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.cyber-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-rgb), 0.5);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.15), 0 0 20px rgba(138, 43, 226, 0.08);
}

.cyber-card:hover::after {
    opacity: 1;
}

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

/* Cyber Button with Neon Hover */
.cyber-btn {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-premium);
    border: 1px solid var(--primary);
    background: transparent;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-shadow: 0 0 4px rgba(0, 229, 255, 0.3);
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.cyber-btn:hover {
    border-color: transparent;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6), 0 0 10px rgba(138, 43, 226, 0.4);
    color: #050816 !important;
    text-shadow: none;
    transform: translateY(-2px);
}

.cyber-btn:hover::before {
    left: 0;
}

/* Cyber Secondary Button with Glow */
.cyber-btn-secondary {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-premium);
    border: 1px solid var(--secondary);
    background: rgba(138, 43, 226, 0.05);
    color: #ffffff;
    position: relative;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
}

.cyber-btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(0, 229, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.cyber-btn-secondary:hover {
    background: transparent;
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4), 0 0 10px rgba(0, 229, 255, 0.2);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.cyber-btn-secondary:hover::before {
    opacity: 1;
}

/* Cyber Title with Gradient */
.cyber-gradient-text {
    background: linear-gradient(90deg, var(--primary) 0%, #ffffff 50%, var(--secondary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: text-shine 6s linear infinite;
}

@keyframes text-shine {
    to {
        background-position: 200% center;
    }
}

/* Cyber Input Form */
.cyber-input {
    background: rgba(13, 17, 38, 0.5);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-premium);
    color: #ffffff;
    padding: 0.9rem 1.4rem;
    transition: all 0.3s ease;
}

.cyber-input:focus {
    background: rgba(13, 17, 38, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3), inset 0 0 5px rgba(0, 229, 255, 0.1);
    color: #ffffff;
    outline: none;
}

.cyber-input::placeholder {
    color: var(--text-muted);
}

/* Custom Spacing & Utilities */
.section-padding {
    padding: 80px 0;
}

.text-muted-custom {
    color: var(--text-muted);
}

/* Badge styling */
.cyber-badge {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50px;
    padding: 8px 18px;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cyber-badge:hover {
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
    border-color: var(--primary);
}

/* Form block */
.cyber-form-card {
    background: radial-gradient(circle at top left, rgba(13, 17, 38, 0.9) 0%, rgba(5, 8, 22, 0.95) 100%);
}

/* --- PREMIUM UI/UX ADDITIONS --- */

/* Scanlines and Tech Overlay */
.tech-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 6px 100%;
    opacity: 0.35;
}

/* Moving Tech Grid background */
.tech-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    pointer-events: none;
    animation: grid-scroll 24s linear infinite;
}

@keyframes grid-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Premium Glowing Text utilities */
.text-glow-primary {
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6), 0 0 20px rgba(0, 229, 255, 0.3);
}

.text-glow-secondary {
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.6), 0 0 20px rgba(138, 43, 226, 0.3);
}

/* Premium Card with Glowing Corner Brackets */
.cyber-card-premium {
    background: radial-gradient(100% 100% at 0% 0%, rgba(13, 17, 38, 0.8) 0%, rgba(5, 8, 22, 0.95) 100%);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.cyber-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.cyber-card-premium:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.15), 0 0 25px rgba(138, 43, 226, 0.08);
}

.cyber-card-premium:hover::before {
    opacity: 1;
}

/* Neon Corner Brackets */
.cyber-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    pointer-events: none;
    transition: all 0.3s ease;
}
.cyber-corner-tl { top: -1px; left: -1px; border-top-color: var(--primary); border-left-color: var(--primary); }
.cyber-corner-tr { top: -1px; right: -1px; border-top-color: var(--primary); border-right-color: var(--primary); }
.cyber-corner-bl { bottom: -1px; left: -1px; border-bottom-color: var(--primary); border-left-color: var(--primary); }
.cyber-corner-br { bottom: -1px; right: -1px; border-bottom-color: var(--primary); border-right-color: var(--primary); }

.cyber-card-premium:hover .cyber-corner {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 5px var(--primary));
}

/* Interactive Science-fiction Terminal UI */
.cyber-terminal {
    background: rgba(4, 6, 15, 0.92);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.1);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    text-align: left;
    margin-top: 2rem;
}

.cyber-terminal-header {
    background: rgba(13, 17, 38, 0.95);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cyber-terminal-buttons {
    display: flex;
    gap: 6px;
}

.cyber-terminal-btn {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.cyber-terminal-btn-red { background: #ff5f56; }
.cyber-terminal-btn-yellow { background: #ffbd2e; }
.cyber-terminal-btn-green { background: #27c93f; }

.cyber-terminal-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.cyber-terminal-body {
    padding: 20px;
    height: 320px;
    overflow-y: auto;
    color: #a8ffb2;
    font-size: 0.85rem;
    line-height: 1.6;
}

.cyber-terminal-line {
    margin-bottom: 8px;
    word-break: break-all;
}

.cyber-terminal-prompt {
    color: var(--primary);
    margin-right: 6px;
}

.cyber-terminal-success { color: #00ff88; }
.cyber-terminal-warning { color: #ffca28; }
.cyber-terminal-info { color: #00E5FF; }

/* Pulse animations */
@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* Floating Glass Capsule Navbar */
.navbar-capsule {
    margin: 12px auto;
    border-radius: 50px;
    max-width: 1200px;
    border: 1px solid rgba(0, 229, 255, 0.15) !important;
    background: rgba(5, 8, 22, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 8px 24px !important;
}

.navbar-capsule.scrolled {
    background: rgba(5, 8, 22, 0.95) !important;
    border-color: rgba(0, 229, 255, 0.3) !important;
    box-shadow: 0 10px 35px rgba(0, 229, 255, 0.12);
}

/* High-tech custom fields */
.tech-form-group {
    position: relative;
}

.tech-input-indicator {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.cyber-input:focus ~ .tech-input-indicator {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

/* Cyber Accordion */
.cyber-accordion-btn {
    border: none !important;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.cyber-accordion-btn:not(.collapsed) {
    background: rgba(0, 229, 255, 0.03) !important;
    color: var(--primary) !important;
    border-bottom-color: rgba(0, 229, 255, 0.3) !important;
}
