/* ============================================
   BJPlayground - Alternative Dark Theme
   Cloud-Native Developer Portfolio
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Dark Theme */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f16;
    --bg-tertiary: #151520;
    --bg-card: rgba(21, 21, 32, 0.6);
    
    /* Accent Colors */
    --accent-cyan: #00d4ff;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;
    
    /* Gradients */
    --gradient-cyan-purple: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    --gradient-purple-pink: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Effects */
    --shadow-glow-cyan: 0 0 40px rgba(0, 212, 255, 0.3);
    --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Particle Canvas */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Gradient Overlay */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Grid Lines */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: space-evenly;
    opacity: 0.03;
}

.grid-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--accent-cyan) 50%, transparent 100%);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: var(--space-xl) 0;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--accent-green);
    margin-bottom: var(--space-lg);
    animation: fadeInDown 0.8s ease-out;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Hero Content */
.hero-content {
    max-width: 900px;
}

.name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.name-bracket {
    color: var(--accent-cyan);
    font-weight: 400;
    opacity: 0.8;
}

/* Tagline with Typewriter Effect */
.tagline {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.tagline-prefix {
    color: var(--accent-purple);
    font-weight: 600;
}

.cursor {
    color: var(--accent-cyan);
    animation: blink 1s infinite;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-cyan-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--text-muted), transparent);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.8s ease-out 1s backwards, bounce 2s infinite 1.5s;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

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

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

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ============================================
   TECH FOCUS SECTION
   ============================================ */

.tech-focus {
    padding: var(--space-3xl) 0;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.focus-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: var(--space-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.focus-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(168, 85, 247, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.focus-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.2);
}

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

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

.focus-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-cyan);
    margin-bottom: var(--space-md);
}

.focus-icon svg {
    width: 100%;
    height: 100%;
}

.focus-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.focus-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    padding: 0.35rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects {
    padding: var(--space-3xl) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: 280px;
}

.project-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
}

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

.project-content {
    padding: var(--space-lg);
    position: relative;
    z-index: 2;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.project-category {
    padding: 0.25rem 0.75rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-purple);
}

.project-links {
    display: flex;
    gap: var(--space-xs);
}

.project-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
}

.project-link svg {
    width: 18px;
    height: 18px;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.project-card.featured h3 {
    font-size: 2rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.project-tech span {
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
}

/* Project Visual (for featured card) */
.project-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.visual-circle:first-child {
    width: 200px;
    height: 200px;
    animation: rotate 20s linear infinite;
}

.visual-circle:last-child {
    width: 140px;
    height: 140px;
    border-color: rgba(0, 212, 255, 0.2);
    animation: rotate 15s linear infinite reverse;
}

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

/* ============================================
   TECH STACK SECTION
   ============================================ */

.tech-stack {
    padding: var(--space-3xl) 0;
}

.stack-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.stack-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.stack-category {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.stack-category:hover {
    border-color: rgba(0, 212, 255, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.category-icon svg {
    width: 22px;
    height: 22px;
}

.cloud-icon {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
}

.backend-icon {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-purple);
}

.frontend-icon {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-pink);
}

.data-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.stack-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.35rem 0;
}

.tech-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   COMING SOON / TIMELINE SECTION
   ============================================ */

.coming-soon {
    padding: var(--space-3xl) 0;
}

.timeline {
    position: relative;
    padding: var(--space-lg) 0;
}

.timeline-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-50%);
}

.timeline-progress {
    height: 100%;
    width: 33%;
    background: var(--gradient-cyan-purple);
    border-radius: 2px;
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

.timeline-node {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    animation: nodePulse 2s infinite;
}

.node-core {
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

@keyframes nodePulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: var(--space-md);
    transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
}

.timeline-phase {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-bottom: var(--space-xs);
    display: block;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--space-2xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-cyan-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.footer-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.terminal-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

.terminal-prompt {
    color: var(--accent-green);
}

.terminal-command {
    color: var(--text-secondary);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 968px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .project-visual {
        display: none;
    }
    
    .stack-container {
        grid-template-columns: 1fr;
    }
    
    .timeline-track {
        display: none;
    }
    
    .timeline-items {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
