/* --- Variables & Core Setup --- */
:root {
    --bg: #030712;
    --card-bg: #0f172a;
    --primary: #8b5cf6;
    --cyan: #06b6d4;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, var(--primary), var(--cyan));
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

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

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 100px 0; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-center { text-align: center; }

/* --- Animated Background --- */
.bg-vignette { position: fixed; inset: 0; background: radial-gradient(circle at center, transparent, var(--bg) 90%); z-index: -1; pointer-events: none; }
.bg-blob { position: fixed; width: 400px; height: 400px; border-radius: 50%; filter: blur(120px); opacity: 0.15; z-index: -2; animation: move 20s infinite alternate; }
.blur-purple { top: -10%; right: -10%; background: var(--primary); }
.blur-cyan { bottom: -10%; left: -10%; background: var(--cyan); animation-delay: -10s; }

@keyframes move { from { transform: translate(0, 0); } to { transform: translate(100px, 100px); } }

/* --- Navigation --- */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: var(--transition); }
.navbar.scrolled { background: rgba(3, 7, 18, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); padding: 1rem 0; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; }
.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; transition: var(--transition); }
.nav-links a:hover { color: white; }
.btn-nav { padding: 0.6rem 1.4rem; background: white; color: var(--bg); border-radius: 100px; text-decoration: none; font-weight: 700; font-size: 0.85rem; }

/* --- Hero --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.badge { background: rgba(139, 92, 246, 0.1); border: 1px solid var(--primary); padding: 0.5rem 1rem; border-radius: 100px; color: var(--primary); font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 2rem; }
.hero h1 { font-size: clamp(3rem, 7vw, 5rem); line-height: 1.1; font-weight: 800; margin-bottom: 1.5rem; }
.hero-sub { color: var(--text-muted); font-size: 1.25rem; max-width: 600px; margin-bottom: 3rem; }
.hero-actions { display: flex; gap: 1.5rem; align-items: center; }

/* --- Buttons --- */
.btn { padding: 1rem 2.5rem; border-radius: 12px; font-weight: 700; text-decoration: none; transition: var(--transition); display: inline-block; }
.btn-primary { background: var(--gradient); color: white; border: none; box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4); }
.btn-link { color: white; font-weight: 700; }
.btn-link i { transition: 0.3s; margin-left: 5px; }
.btn-link:hover i { transform: translateX(5px); }

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: center; }
.image-wrapper { position: relative; border-radius: 24px; }
.image-wrapper img { width: 100%; border-radius: 24px; position: relative; z-index: 2; filter: grayscale(20%); }
.image-border { position: absolute; inset: -15px; border: 2px solid var(--primary); border-radius: 30px; z-index: 1; opacity: 0.3; }
.experience-years { margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem; }
.exp-num { font-size: 3.5rem; font-weight: 800; color: var(--primary); }
.exp-text { font-weight: 700; color: var(--text-muted); line-height: 1.2; }

/* --- Skills --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.skill-category { background: var(--card-bg); padding: 3rem; border-radius: 24px; border: 1px solid var(--glass-border); transition: var(--transition); }
.skill-category:hover { border-color: var(--primary); transform: translateY(-10px); }
.category-icon { font-size: 2rem; color: var(--cyan); margin-bottom: 1.5rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.skill-tags span { background: rgba(255, 255, 255, 0.05); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* --- Project Cards --- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 3rem; margin-top: 3rem; }
.project-card { background: var(--card-bg); border-radius: 24px; overflow: hidden; border: 1px solid var(--glass-border); transition: var(--transition); }
.project-img-box { position: relative; height: 300px; overflow: hidden; }
.project-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s ease; }
.project-overlay { position: absolute; inset: 0; background: rgba(3, 7, 18, 0.8); display: flex; align-items: center; justify-content: center; gap: 1.5rem; opacity: 0; transition: 0.4s; }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover img { transform: scale(1.1); }
.project-body { padding: 2.5rem; }
.project-stack { display: flex; gap: 1rem; margin-top: 1.5rem; }
.project-stack span { color: var(--cyan); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- Contact CTA --- */
.cta-glass { background: linear-gradient(rgba(255,255,255,0.02), transparent); border: 1px solid var(--glass-border); padding: 6rem 2rem; border-radius: 48px; text-align: center; }
.btn-giant { padding: 1.5rem 4rem; font-size: 1.2rem; margin: 2rem 0; }
.social-row { display: flex; justify-content: center; gap: 2rem; margin-top: 3rem; }
.social-link { font-size: 1.8rem; color: var(--text-muted); transition: 0.3s; }
.social-link:hover { color: white; transform: translateY(-5px); }

/* --- Animations --- */
.reveal { opacity: 0; transform: translateY(40px); transition: 1s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-image { max-width: 400px; margin: 0 auto; }
    .experience-years { justify-content: center; }
    .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .section { padding: 60px 0; }
}