/* ============================================
   RIKKU.SYS Dashboard - Styles
   ============================================ */

:root {
    --cyan: #00f5ff;
    --cyan-dim: #00b8c4;
    --green: #00ff41;
    --green-dim: #00cc33;
    --bg: #050505;
    --bg-2: #080810;
    --bg-3: #0c0c18;
    --glass-border: rgba(0, 245, 255, 0.12);
    --glass-bg: rgba(0, 245, 255, 0.03);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--cyan-dim);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */

/* CRT Scanlines */
.crt-scanlines {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
}

/* Scanline sweep animation */
.scanline-sweep {
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.15), transparent);
    animation: scanline 8s linear infinite;
}

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

/* Grid background */
.grid-bg {
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridFlow 20s linear infinite;
}

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

/* Vignette */
.vignette {
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
}

/* Gradient backgrounds */
.bg-gradient-radial-cyan {
    background: radial-gradient(circle, #00f5ff, transparent);
}

.bg-gradient-radial-green {
    background: radial-gradient(circle, #00ff41, transparent);
}

/* ============================================
   GLASS CARD
   ============================================ */

.glass-card {
    background: rgba(0, 245, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 245, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.glass-card-green {
    background: rgba(0, 255, 65, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 65, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* ============================================
   NAVBAR
   ============================================ */

#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.nav-link.active {
    color: var(--cyan) !important;
}

.hire-btn {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(0, 255, 65, 0.08));
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

.hire-btn:hover {
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.25);
}

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

.hero-name {
    background: linear-gradient(135deg, #ffffff 20%, #00f5ff 60%, #00cc99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.4));
}

.status-badge {
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.25);
    color: var(--green);
}

.cursor-blink {
    animation: cursorBlink 1s step-end infinite;
}

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

.cta-primary {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(0, 245, 255, 0.08));
    border: 1px solid rgba(0, 245, 255, 0.4);
    color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.2);
}

.cta-primary:hover {
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.35);
}

.cta-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.stat-card {
    transition: all 0.3s ease;
}

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

/* ============================================
   SECTION DIVIDER
   ============================================ */

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.3;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.icon-box {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.course-tag {
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.2);
    color: rgba(255, 170, 0, 0.7);
}

.tech-badge {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.15);
    color: rgba(0, 245, 255, 0.7);
}

.tech-badge:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.25);
}

/* ============================================
   REPO CARDS
   ============================================ */

.repo-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.repo-card:hover {
    border-color: rgba(0, 245, 255, 0.4) !important;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.2), 0 16px 64px rgba(0, 0, 0, 0.8) !important;
    transform: translateY(-4px);
}

.repo-card .corner-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.repo-card:hover .corner-accent {
    opacity: 1;
}

.repo-card .corner-accent::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to left, var(--cyan), transparent);
}

.repo-card .corner-accent::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, var(--cyan), transparent);
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skill-bar {
    transition: width 1s ease-out;
}

.project-card {
    border: 1px solid rgba(0, 245, 255, 0.12);
}

.project-card:hover {
    border-color: var(--project-color);
    box-shadow: 0 0 20px color-mix(in srgb, var(--project-color) 20%, transparent);
}

/* ============================================
   TERMINAL
   ============================================ */

#terminal-logs::-webkit-scrollbar {
    width: 3px;
}

#terminal-logs::-webkit-scrollbar-thumb {
    background: rgba(0, 245, 255, 0.3);
}

/* Terminal log colors */
.log-boot { color: #aaaacc; }
.log-ok { color: #00ff41; }
.log-info { color: #00f5ff; }
.log-warn { color: #ffaa00; }

/* ============================================
   README MODAL
   ============================================ */

.readme-modal-content {
    border: 1px solid rgba(0, 245, 255, 0.25);
    box-shadow: 0 0 60px rgba(0, 245, 255, 0.15);
}

.modal-btn {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--cyan);
}

.modal-btn:hover {
    background: rgba(0, 245, 255, 0.15);
}

.readme-content h1,
.readme-content h2,
.readme-content h3 {
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    margin: 1rem 0 0.5rem;
}

.readme-content h1 { font-size: 1.25rem; }
.readme-content h2 { font-size: 1.1rem; }
.readme-content h3 { font-size: 0.95rem; }

.readme-content p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

.readme-content code {
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid rgba(0, 245, 255, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--cyan);
}

.readme-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 245, 255, 0.15);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.readme-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.readme-content a {
    color: var(--cyan);
    text-decoration: none;
}

.readme-content a:hover {
    text-decoration: underline;
}

.readme-content ul,
.readme-content ol {
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.readme-content li {
    margin: 0.25rem 0;
}

.readme-content blockquote {
    border-left: 2px solid var(--cyan);
    padding-left: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin: 0.75rem 0;
}

.readme-content hr {
    border: none;
    border-top: 1px solid rgba(0, 245, 255, 0.15);
    margin: 1rem 0;
}

.readme-content img {
    max-width: 100%;
    border-radius: 6px;
}

.readme-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.readme-content th {
    border-bottom: 1px solid rgba(0, 245, 255, 0.3);
    padding: 0.5rem;
    color: var(--cyan);
    text-align: left;
    font-family: 'Orbitron', sans-serif;
}

.readme-content td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

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

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

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

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

@media (max-width: 768px) {
    .hero-name {
        font-size: 3rem !important;
    }
    
    .glass-card {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* ============================================
   LOADING & UTILITY
   ============================================ */

.animate-pulse-skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hidden {
    display: none !important;
}

/* Focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Selection */
::selection {
    background: rgba(0, 245, 255, 0.3);
    color: white;
}
