:root {
    --bg: #030303;
    --text: #ffffff;
    --accent: #00f2ff; /* Ultra Bright Electric Blue */
    --muted: #a0a0a0;
    --card: rgba(10, 10, 10, 0.95);
    --border: rgba(0, 242, 255, 0.4);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Syncopate', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg); color: var(--text); font-family: var(--font-main); overflow-x: hidden; }

#neural-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.6; /* Increased opacity for visibility */
}

.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05; pointer-events: none; z-index: 999;
}

/* Sidebar */
.sidebar {
    position: fixed; width: 280px; height: 100vh;
    border-right: 2px solid var(--border);
    padding: 3rem; display: flex; flex-direction: column;
    justify-content: space-between; z-index: 100;
    background: rgba(3, 3, 3, 0.98);
}

.logo { font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: -2px; color: var(--accent); text-shadow: 0 0 10px var(--accent); }
nav { display: flex; flex-direction: column; gap: 1.5rem; }
.nav-link { text-decoration: none; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; }
.nav-link.active, .nav-link:hover { color: var(--accent); text-shadow: 0 0 8px var(--accent); padding-left: 10px; }

main { margin-left: 280px; padding: 0 5rem; }
.section { padding: 100px 0; border-bottom: 1px solid var(--border); }
.section-label { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 5px; margin-bottom: 3.5rem; display: block; font-weight: 700; }

/* Hero Section */
.hero { height: 100vh; display: flex; align-items: center; justify-content: space-between; border: none; }
h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 4rem); line-height: 1.1; text-transform: uppercase; margin: 1.5rem 0; }
.hero-subtext { max-width: 450px; color: var(--muted); margin-bottom: 2.5rem; font-size: 1.1rem; }

.profile-frame { width: 320px; height: 420px; border: 3px solid var(--accent); overflow: hidden; position: relative; box-shadow: 0 0 30px rgba(0, 242, 255, 0.3); }
.profile-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.profile-frame:hover .profile-img { filter: grayscale(0%); transform: scale(1.05); }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.contact-card { 
    background: var(--card); border: 1px solid var(--border); 
    padding: 2rem; text-decoration: none; color: var(--text); 
    display: flex; align-items: center; gap: 20px; transition: 0.3s;
}
.contact-card i { color: var(--accent); font-size: 1.8rem; filter: drop-shadow(0 0 5px var(--accent)); }
.contact-card:hover { border-color: var(--accent); transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0, 242, 255, 0.2); }
.contact-info small { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.7rem; font-weight: 700; }
.contact-info p { font-weight: 500; margin-top: 5px; }

/* Tech Stack */
.tech-icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.tech-item { text-align: center; transition: 0.3s; }
.tech-item i, .tech-item svg { font-size: 3.8rem; color: var(--accent); margin-bottom: 1.2rem; display: block; filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5)); }
.tech-item span { font-size: 0.8rem; color: var(--text); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }

/* Projects */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.p-card { background: var(--card); padding: 2.5rem; border: 1px solid var(--border); transition: 0.3s; }
.p-card:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(0, 242, 255, 0.1); }
.p-link { color: var(--accent); text-decoration: none; font-weight: 800; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; text-transform: uppercase; }

/* Buttons */
.btn-main { background: var(--accent); color: #000; padding: 1.3rem 2.8rem; text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; display: inline-block; margin-right: 1rem; transition: 0.3s; box-shadow: 0 0 15px rgba(0, 242, 255, 0.3); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); padding: 1.3rem 2.8rem; text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; display: inline-block; transition: 0.3s; }
.btn-main:hover { transform: scale(1.05); box-shadow: 0 0 25px var(--accent); }
.btn-outline:hover { background: rgba(0, 242, 255, 0.1); transform: scale(1.05); }

.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 2px solid var(--border); }
    main { margin-left: 0; padding: 2.5rem; }
    .hero { flex-direction: column-reverse; height: auto; text-align: center; padding-top: 50px; }
    .project-grid, .contact-grid { grid-template-columns: 1fr; }
    .tech-icon-grid { grid-template-columns: repeat(2, 1fr); }
}