:root {
    --bg-dark: #050505;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Cyber Aurora Gradient */
    --gradient-1: #7928ca;
    --gradient-2: #ff0080;
    --accent-cyan: #00f0ff;
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --nav-height: 60px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- Ambient Background --- */
.ambient-light {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(121,40,202,0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite alternate;
}

.light-2 {
    top: auto; bottom: -20%; left: auto; right: -10%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

.mono-tag {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.section-heading span {
    color: #fff;
    font-family: var(--font-sans);
}

/* --- Floating Nav --- */
.floating-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
}

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

.glitch-text {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    color: #fff;
    margin-left: -5px; /* Optically align heavy font */
    position: relative;
}

/* Optional Glitch Effect CSS could go here */

.hero-bio {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    border-left: 2px solid var(--accent-cyan);
    padding-left: 1.5rem;
}

.hero-actions {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-glow {
    background: #fff;
    color: #000;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 4px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-glow:hover {
    background: var(--accent-cyan);
    box-shadow: 0 0 30px var(--accent-cyan);
}

.btn-text {
    font-family: var(--font-mono);
    color: #fff;
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    border-bottom-color: var(--accent-cyan);
}

/* --- About / Split Layout --- */
.section { padding: 8rem 0; }

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.text-block p { margin-bottom: 1.5rem; font-size: 1.1rem; }

.stack-block {
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 12px;
}

.mono-heading {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-item {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #fff;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    color: var(--accent-cyan);
}

/* --- Projects (Glass Cards) --- */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--gradient-1), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.project-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-5px);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.card-top a:hover { color: #fff; }

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.project-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* --- Contact (Minimal Form) --- */
.contact-box {
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.social-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-row a {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    position: relative;
}

.social-row a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0%; height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition);
}

.social-row a:hover::after { width: 100%; }

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1.5rem;
}

input, textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 0;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-cyan);
    background: rgba(255,255,255,0.02);
    padding-left: 10px;
}

.footer {
    padding: 2rem;
    text-align: center;
    opacity: 0.5;
    font-size: 0.8rem;
}

/* --- Animations --- */
.fade-in { opacity: 0; animation: fadeIn 1s forwards; }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

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

/* --- Responsive --- */
@media (max-width: 900px) {
    .contact-box { grid-template-columns: 1fr; padding: 2rem; }
    .split-layout { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .glitch-text { font-size: 3.5rem; }
    .input-group { flex-direction: column; gap: 1rem; }
    .floating-nav { bottom: 1rem; width: 90%; padding: 0.75rem 1rem; }
    .nav-links { justify-content: space-around; gap: 0; width: 100%; }
}