@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Fira+Code:wght@400;600&display=swap');

/* 
   MY THEME COLORS 
   (Don't mess with these, it took me forever to find the right blue)
*/
:root {
    --bg-dark: #0a0c10;
    --bg-card: rgba(17, 25, 40, 0.75);
    --primary: #3b82f6; 
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent: #10b981; 
    --accent-glow: rgba(16, 185, 129, 0.5);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor implementation in JS */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor - Fixed the annoying 'not showing' bug */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;   /* CRITICAL: Keep these at 0 */
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, background 0.2s ease;
}

.custom-cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
}

/* Background Layers */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    border-radius: 50%;
    opacity: 0.3;
    animation: move 20s infinite alternate;
}

.blob:nth-child(2) {
    background: var(--accent-glow);
    right: -100px;
    top: 20%;
    animation-delay: -5s;
}

@keyframes move {
    from { transform: translate(-20%, -20%) scale(1); }
    to { transform: translate(20%, 20%) scale(1.2); }
}

.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Typography & Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    opacity: 1;
    transform: none;
}

.hero-tag {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Cards & Components */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s var(--transition);
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.section-label {
    color: var(--accent);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Recon Section */
.recon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.recon-item h4 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.recon-item span {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Skills Terminal */
.terminal-window {
    background: #0d1117;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #30363d;
    font-family: 'Fira Code', monospace;
}

.terminal-header {
    background: #161b22;
    padding: 0.8rem 1rem;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #30363d;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-body {
    padding: 1.5rem;
    color: #e6edf3;
    font-size: 0.95rem;
}

.cmd { color: var(--accent); }
.param { color: var(--primary); }

/* Weaponry Badges */
.weapons-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.weapon-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s var(--transition);
}

.weapon-badge:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.github-stats-card img {
    width: 100%;
    border-radius: 12px;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--text-dim);
    font-size: 1.5rem;
    transition: color 0.3s var(--transition);
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3.5rem; }
    .hero-btns { flex-direction: column; align-items: stretch; }
}

@media (pointer: coarse) {
    .custom-cursor, .custom-cursor-follower { display: none; }
    * { cursor: auto; }
}
