:root {
    --bg-color: #030305;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-1: #6366f1; 
    --accent-2: #a855f7; 
    --accent-3: #ec4899; 
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-color); color: var(--text-main); font-family: 'Outfit', sans-serif; overflow-x: hidden; line-height: 1.6; }

/* Fixed, hardware-accelerated floating blob */
#glow-blob { 
    position: fixed; 
    width: 50vw; 
    height: 50vw; 
    max-width: 600px;
    max-height: 600px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3)); 
    border-radius: 50%; 
    pointer-events: none; 
    filter: blur(100px); 
    z-index: 1; 
    top: 50%; 
    left: 50%; 
    /* The GPU animation now handles movement and breathing */
    animation: blobFloat 20s infinite alternate ease-in-out;
}

/* Drifting animation across the screen */
@keyframes blobFloat {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    33% { transform: translate(-30%, -60%) scale(1.1); opacity: 0.5; }
    66% { transform: translate(-70%, -40%) scale(0.9); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

#noise { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E'); opacity: 0.04; pointer-events: none; z-index: 1; }

.container { max-width: 1200px; margin: 0 auto; padding: 2rem; position: relative; z-index: 2; padding-top: 120px; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; z-index: 100; background: rgba(3, 3, 5, 0.7); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
.nav-brand { font-size: 1.5rem; font-weight: 800; letter-spacing: 2px; background: linear-gradient(to right, #fff, var(--accent-1)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links a { color: var(--text-main); text-decoration: none; margin-right: 2rem; font-weight: 600; font-size: 0.95rem; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-2); }

/* Typography */
h1 { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; background: linear-gradient(to right, #fff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.03em; }
h2.page-title { font-size: 3rem; margin-bottom: 2rem; text-align: center; }
.bio { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 3rem; font-weight: 300; }

/* Centered Landing */
.landing-hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; z-index: 2; }
.typing-container { font-size: 1.5rem; font-weight: 600; color: var(--accent-2); height: 30px; }
.typing-text { border-right: 2px solid var(--accent-2); padding-right: 5px; animation: blink 0.75s step-end infinite; }
@keyframes blink { 50% { border-color: transparent; } }

/* About Page Split */
.hero-split { display: flex; align-items: center; justify-content: space-between; gap: 4rem; }
.hero-text { flex: 1; }
.hero-image-container { flex: 0.8; display: flex; justify-content: center; align-items: center; animation: float 6s ease-in-out infinite; }
.profile-ring { width: 350px; height: 350px; border-radius: 50%; padding: 6px; background: linear-gradient(135deg, var(--accent-1), var(--accent-3)); box-shadow: 0 0 50px rgba(168, 85, 247, 0.3); }
.profile-pic { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 6px solid var(--bg-color); }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

/* Grid & Projects Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.glass-card { 
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border); 
    border-radius: 24px; 
    padding: 2.5rem; 
    color: var(--text-main); 
    backdrop-filter: blur(16px); 
    text-decoration: none; 
    display: flex; 
    flex-direction: column;
    will-change: transform; 
    transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease; 
}

.glass-card:hover { 
    border-color: rgba(168, 85, 247, 0.4); 
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.2); 
    /* Removed transform here so JS fully controls the tilt */
}

.glass-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.glass-card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.tech-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto;}
.tag { background: rgba(255, 255, 255, 0.05); padding: 0.3rem 0.8rem; border-radius: 100px; font-size: 0.8rem; color: var(--accent-1); border: 1px solid rgba(255, 255, 255, 0.05); }

/* Live Project Status Utilities */
.status-active .status-dot, .status-active .status-dot::after { background: #4ade80; }
.status-stable .status-dot, .status-stable .status-dot::after { background: #fbbf24; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; position: relative; }
.status-dot::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.5); opacity: 0; } }

.language-bar { width: 100%; height: 6px; border-radius: 100px; background: rgba(255, 255, 255, 0.1); margin-top: 1.5rem; display: flex; overflow: hidden; margin-bottom: 0.5rem;}
.lang-segment { height: 100%; transition: width 1s ease; position: relative; background-color: var(--accent-1); }
.lang-segment:hover::after { content: attr(data-lang-info); position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); background: #000; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; white-space: nowrap; z-index: 10; }

/* The Tactical Skills Grid */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }

.skill-card { 
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border); 
    padding: 2.5rem; 
    border-radius: 24px; 
    position: relative; 
    overflow: hidden; 
    transform: translateZ(0); 
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; 
}

.skill-header { display: flex; justify-content: space-between; margin-bottom: 1rem; transition: opacity 0.3s ease; }
.skill-name { font-weight: 700; font-size: 1.2rem; }
.skill-percent { color: var(--accent-1); font-family: 'Fira Code', monospace; }

.skill-bar { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.05); border-radius: 2px; overflow: hidden; }
.skill-progress { height: 100%; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); box-shadow: 0 0 15px var(--accent-1); }

.skill-intel-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem; 
    background: rgba(3, 3, 5, 0.95); 
    color: var(--accent-2); 
    font-size: 0.95rem; 
    font-family: 'Fira Code', monospace; 
    text-align: center;
    backdrop-filter: blur(5px);
    opacity: 0; 
    transform: translateY(100%); 
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); 
}

/* Hover Triggers */
.skill-card:hover { border-color: var(--accent-2); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.skill-card:hover .skill-intel-overlay { opacity: 1; transform: translateY(0); }

/* Scroll Animations */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 1s, transform 1s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   Upgraded Contact Terminal UI
   ========================================================== */
.contact-wrapper {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: var(--accent-1);
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
}

.terminal-card {
    background: rgba(10, 10, 15, 0.6); /* Slightly darker, terminal feel */
    border: 1px solid rgba(168, 85, 247, 0.3); /* Permanent subtle purple border */
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.1); /* Subtle neon glow */
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 600px; /* Narrower and sleeker than a standard card */
    backdrop-filter: blur(20px);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--accent-1);
}

.contact-form input,
.contact-form textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Full width button for symmetry */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.4);
}
