/* ============================================
   GLOBAL STYLES & VARIABLES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #030712;
    --bg-card: rgba(15, 23, 42, 0.6);
    --accent-cyan: #22d3ee;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   CUSTOM CURSOR
============================================ */
#custom-cursor {
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    display: none;
    will-change: transform;
}

@media (min-width: 1024px) {
    #custom-cursor {
        display: block;
    }
}

#custom-cursor.clicking {
    transform: scale(0.8);
}

/* ============================================
   NEURAL CANVAS BACKGROUND
============================================ */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-primary);
}

/* ============================================
   NAVIGATION
============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(3, 7, 18, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.cyan-text {
    color: var(--accent-cyan);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--accent-cyan);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    font-size: 1rem;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 1rem 2rem;
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(34, 211, 238, 0.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.stat-card {
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: border-color 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   TECH MARQUEE
============================================ */
.marquee-container {
    overflow: hidden;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 2rem 0;
}

.marquee {
    display: flex;
    animation: scroll 25s linear infinite;
    width: fit-content;
}

.marquee-item {
    padding: 0.75rem 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-right: 2rem;
    white-space: nowrap;
    font-size: 0.875rem;
}

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

/* ============================================
   SECTIONS
============================================ */
section {
    padding: 5rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.bg-dark {
    background: rgba(15, 23, 42, 0.2);
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.bg-dark > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* ============================================
   PROJECT CARDS (FIXED - NO GLOWING BINARY)
============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.15);
    transform: translateY(-5px);
}

/* FIXED: Binary overlay - subtle, no glow */
.binary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 1rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    color: rgba(34, 211, 238, 0.08);
    font-size: 0.625rem;
    line-height: 1.2;
    word-wrap: break-word;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.project-card:hover .binary-overlay {
    opacity: 1;
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.metrics {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

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

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

.metrics span {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.875rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(71, 85, 105, 1);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================
   SYSTEM LOGS TERMINAL
============================================ */
.terminal {
    padding: 2rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 1rem;
    font-size: 0.875rem;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title {
    margin-left: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.terminal-content {
    color: var(--accent-cyan);
}

.terminal-line {
    opacity: 0;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.3s forwards;
}

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

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-cyan);
    margin-left: 4px;
    animation: blink 0.8s infinite;
}

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

/* ============================================
   SKILLS GRID
============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.skill-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   EXPERIENCE TIMELINE
============================================ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

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

.timeline-item:hover {
    border-color: rgba(34, 211, 238, 0.3);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
}

.timeline-period {
    color: var(--accent-cyan);
    font-size: 0.875rem;
}

.timeline-company {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
============================================ */
.contact-card {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(22, 78, 99, 0.2));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 2rem;
    text-align: center;
}

.contact-card p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
============================================ */
footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

footer p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

footer .credit {
    color: rgba(34, 211, 238, 0.5);
    font-size: 0.75rem;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline-header {
        flex-direction: column;
    }

    .contact-buttons {
        flex-direction: column;
    }
}

/* ============================================
   SCROLL ANIMATIONS
============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MAGNETIC BUTTON EFFECT
============================================ */
.magnetic-btn {
    transition: transform 0.2s ease-out;
    position: relative;
    z-index: 1;
}
/* ============================================
   COMPACT TIMELINE ITEM (GrowthMatricMedia)
============================================ */
.timeline-compact {
    padding: 1.25rem 2rem;
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.06);
}

.timeline-compact .timeline-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.timeline-compact .timeline-company {
    font-size: 0.85rem;
}

.timeline-compact .timeline-description {
    font-size: 0.8rem;
    color: #64748b;
}
