/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;400;700&family=Space+Grotesk:wght@300;400;600&display=swap');

:root {
    --bg-dark: #020204;
    --neon-cyan: #00f3ff;
    --neon-purple: #9d00ff;
    --text-main: #f0f4f8;
    --text-dim: #8892b0;
    --glass-bg: rgba(10, 10, 15, 0.4);
    --glass-border: rgba(0, 243, 255, 0.15);
    
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 6px; height: 6px; background: var(--neon-cyan); }
.cursor-outline {
    width: 40px; height: 40px; border: 1px solid var(--neon-purple);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

/* Vanta Background */
#vanta-bg {
    position: fixed; inset: 0; z-index: -2;
}

/* Scanlines */
.scanlines {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
}

/* Typography Base */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; }

/* Preloader */
#preloader {
    position: fixed; inset: 0; background: var(--bg-dark); z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}
.preloader-content { text-align: center; }
.glitch-text { font-family: var(--font-mono); color: var(--neon-cyan); font-size: 2rem; letter-spacing: 2px; }
.loading-bar { width: 300px; height: 2px; background: rgba(255,255,255,0.1); margin-top: 20px; overflow: hidden; }
.loading-progress { width: 0%; height: 100%; background: var(--neon-cyan); animation: loadBar 1.5s ease-out forwards; }
@keyframes loadBar { to { width: 100%; } }

/* Section Headers (Aligned Perfectly Center) */
.section-header {
    width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-bottom: 5rem; text-align: center;
}
.section-title {
    font-size: 3.5rem; color: #fff; letter-spacing: 4px; position: relative;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5); margin: 0;
}
.title-line {
    width: 60px; height: 4px; background: var(--neon-purple); margin-top: 15px;
    box-shadow: 0 0 15px var(--neon-purple); border-radius: 2px;
}

section { padding: 120px 5% 60px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

/* Header / Nav */
.futuristic-nav {
    position: fixed; top: 0; width: 100%; padding: 20px 5%;
    display: flex; justify-content: center; z-index: 100;
    transition: background 0.3s;
}
.futuristic-nav.scrolled {
    background: rgba(2, 2, 4, 0.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    width: 100%; max-width: 1400px; display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-family: var(--font-heading); font-size: 24px; color: #fff; text-decoration: none; letter-spacing: 2px;
}
.logo span { color: var(--neon-cyan); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
    font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); text-decoration: none;
    letter-spacing: 1px; transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0,243,255,0.6); }
.mobile-toggle { display: none; font-size: 24px; color: var(--neon-cyan); }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px;
    background: transparent; border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan); font-family: var(--font-mono); font-size: 14px;
    text-decoration: none; letter-spacing: 1px; position: relative;
    overflow: hidden; transition: 0.3s; box-shadow: 0 0 10px rgba(0,243,255,0.1);
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--neon-cyan); transition: 0.4s; z-index: -1;
}
.btn-primary:hover::before { left: 0; }
.btn-primary:hover { color: var(--bg-dark); box-shadow: 0 0 20px rgba(0,243,255,0.6); }

/* Hero Section */
.hero-section {
    display: flex; flex-direction: row; align-items: center; justify-content: space-between;
    max-width: 1400px; margin: 0 auto; width: 100%;
}
.hero-content { flex: 1; padding-right: 50px; }
.hero-tag {
    display: inline-block; padding: 5px 15px; border: 1px solid var(--neon-purple);
    color: var(--neon-purple); font-family: var(--font-mono); font-size: 12px;
    margin-bottom: 20px; border-radius: 4px; box-shadow: 0 0 10px rgba(157, 0, 255, 0.2);
}
.glitch-title { font-size: clamp(40px, 6vw, 80px); line-height: 1.1; margin-bottom: 10px; color: #fff; text-shadow: 0 0 10px rgba(0,243,255,0.3); }
.hero-role { font-family: var(--font-mono); font-size: 24px; color: var(--neon-cyan); margin-bottom: 30px; }
.hero-desc { font-size: 18px; color: var(--text-dim); margin-bottom: 40px; max-width: 600px; }
.cursor-blink { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-visual { flex: 1; display: flex; justify-content: flex-end; }
.hologram-container { position: relative; width: 400px; height: 450px; }
.image-wrapper {
    width: 100%; height: 100%; position: relative; border: 1px solid var(--neon-cyan);
    box-shadow: inset 0 0 30px rgba(0,243,255,0.2), 0 0 30px rgba(0,243,255,0.2);
    overflow: hidden; border-radius: 10px;
}
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(80%) sepia(20%) hue-rotate(140deg); }
.holo-overlay {
    position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(0,243,255,0.1) 50%, transparent 100%);
    background-size: 100% 200%; animation: scanHolo 3s linear infinite; pointer-events: none;
}
@keyframes scanHolo { 0% { background-position: 0 -100%; } 100% { background-position: 0 100%; } }

/* Universal Glass Card */
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); padding: 40px; position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.card-corner { position: absolute; width: 10px; height: 10px; border: 2px solid var(--neon-cyan); }
.top-left { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.top-right { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.bottom-right { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; max-width: 1200px; margin: 0 auto; align-items: center; width: 100%; }
.about-visual { position: relative; border: 1px solid var(--neon-purple); padding: 10px; background: rgba(157,0,255,0.05); }
.about-visual img { width: 100%; display: block; filter: contrast(1.2); }
.scanner { position: absolute; width: 100%; height: 2px; background: var(--neon-purple); box-shadow: 0 0 15px var(--neon-purple); top: 0; left: 0; animation: scanDown 4s ease-in-out infinite alternate; }
@keyframes scanDown { 0% { top: 0; } 100% { top: 100%; } }
.about-text-box h3 { font-size: 24px; color: var(--neon-cyan); margin-bottom: 20px; }
.about-text-box p { color: var(--text-dim); margin-bottom: 20px; font-size: 16px; }
.stats-container { display: flex; gap: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.stat-box { flex: 1; }
.stat-num { display: block; font-family: var(--font-heading); font-size: 40px; color: #fff; line-height: 1; margin-bottom: 5px; }
.stat-label { font-family: var(--font-mono); font-size: 12px; color: var(--neon-purple); text-transform: uppercase; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; width: 100%; }
.skill-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 40px 30px; transition: 0.3s; position: relative; }
.skill-icon { font-size: 40px; color: var(--neon-cyan); margin-bottom: 20px; }
.skill-card h3 { font-size: 22px; color: #fff; margin-bottom: 15px; }
.skill-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 20px; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-stack span { font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border: 1px solid rgba(157,0,255,0.4); color: var(--neon-purple); border-radius: 20px; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1400px; margin: 0 auto; width: 100%; }
.project-card { border: 1px solid var(--glass-border); background: var(--glass-bg); padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.project-img { height: 200px; background: #0a0a0f; border: 1px solid rgba(255,255,255,0.05); position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.img-overlay { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,243,255,0.05) 2px, rgba(0,243,255,0.05) 4px); }
.project-tag { position: relative; font-family: var(--font-mono); font-size: 14px; color: var(--neon-cyan); border: 1px solid var(--neon-cyan); padding: 5px 15px; background: rgba(0,0,0,0.5); z-index: 2; }
.project-info h4 { font-size: 20px; color: #fff; margin-bottom: 10px; }
.project-info p { color: var(--text-dim); font-size: 14px; }

/* Contact */
.contact-container { display: flex; gap: 50px; max-width: 1200px; margin: 0 auto; width: 100%; }
.contact-info { flex: 1; }
.contact-info h3 { font-size: 28px; color: var(--neon-cyan); margin-bottom: 20px; }
.contact-info p { color: var(--text-dim); margin-bottom: 30px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-family: var(--font-mono); color: #fff; }
.contact-list i { color: var(--neon-purple); font-size: 20px; }
.contact-form { flex: 1.5; display: flex; flex-direction: column; gap: 25px; }
.input-row { display: flex; gap: 25px; }
.input-group { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.input-group label { font-family: var(--font-mono); font-size: 12px; color: var(--neon-cyan); }
.input-group input, .input-group textarea { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); padding: 15px; color: #fff; font-family: var(--font-body); font-size: 15px; outline: none; transition: 0.3s; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--neon-purple); box-shadow: 0 0 15px rgba(157,0,255,0.2); }

/* Footer */
footer { text-align: center; padding: 40px; border-top: 1px solid var(--glass-border); background: #010102; margin-top: 100px; }
.footer-content p { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: 2px; }

/* Responsive */
@media (max-width: 1024px) {
    .skills-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-section, .about-grid, .contact-container { flex-direction: column; text-align: center; }
    .hero-content { padding-right: 0; display: flex; flex-direction: column; align-items: center; width: 100%; }
    .hero-visual, .about-visual { justify-content: center; margin-top: 50px; width: 100%; }
    .hologram-container { width: 100%; max-width: 350px; height: 400px; margin: 0 auto; }
    .stats-container { flex-direction: column; gap: 20px; }
    .hero-desc { margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
    .skills-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .mobile-toggle { display: block; cursor: pointer; z-index: 101; }
    .nav-links { display: none; } 
    .input-row { flex-direction: column; }
    .glitch-title { font-size: 32px; letter-spacing: 1px; }
    .hero-role { font-size: 16px; margin-bottom: 20px; }
    .hero-desc { font-size: 14px; margin-bottom: 30px; }
    .section-title { font-size: 28px; letter-spacing: 2px; }
    .cursor-dot, .cursor-outline { display: none; } 
    section { padding-top: 100px; }
    .hologram-container { height: 350px; }
}
