/* =========================================
   1. VARIABLES & GLOBAL RESET
   ========================================= */
:root {
    --bg-dark: #141002;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #522ca9;       /* Vivid Violet */
    --accent: #1c96a9;        /* Electric Cyan */
    --text-main: #ffffff;
    --text-muted: #a756ae;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Spline Sans Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    overflow-x: hidden;
    perspective: 1000px; /* Essential for 3D effects */
}

/* =========================================
   2. AMBIENT BACKGROUND ANIMATIONS
   ========================================= */
.ambient-light {
    position: fixed;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.15;
    z-index: -1;
    filter: blur(120px);
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.1); }
}

/* =========================================
   3. MODERN FLOATING NAVBAR (Capsule Style)
   ========================================= */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(10, 10, 12, 0.75); 
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    color: white;
}

.highlight { 
    color: var(--accent); 
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:not(.btn-glow):hover {
    color: white;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.btn-glow {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

/* =========================================
   4. HERO SECTION (Vibrant & Animated)
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 80px;
    margin-bottom: 4rem;
}

/* Aurora Blobs */
.hero::before {
    content: ''; position: absolute; top: -10%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
    filter: blur(80px); z-index: -1;
    animation: floatBlob 10s infinite alternate;
}

.hero::after {
    content: ''; position: absolute; bottom: 10%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    filter: blur(80px); z-index: -1;
    animation: floatBlob 8s infinite alternate-reverse;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 40px); }
}

.hero-text { max-width: 600px; transform-style: preserve-3d; z-index: 2; }

.status-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px; border-radius: 30px;
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent); font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1.5rem; backdrop-filter: blur(5px);
}

.pulse {
    width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

h1 {
    font-size: 4rem; line-height: 1.05; font-weight: 800;
    letter-spacing: -2px; margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, #818cf8, #2dd4bf, #f472b6, #818cf8);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero-text p {
    font-size: 1.1rem; color: #cbd5e1; line-height: 1.6;
    margin-bottom: 2.5rem; max-width: 90%;
}

.hero-buttons { display: flex; gap: 1.2rem; }

.btn-primary {
    background: white; color: black; padding: 14px 32px;
    border-radius: 12px; font-weight: 700; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.4); }

.btn-secondary {
    padding: 14px 32px; border-radius: 12px; font-weight: 600;
    color: white; text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); transition: 0.3s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: white; }

/* =========================================
   5. 3D CARDS (Stats & Bento)
   ========================================= */
.hero-card-3d {
    position: relative; width: 380px; height: 280px;
    perspective: 1000px; transform-style: preserve-3d;
    z-index: 5;
}

.glass-panel {
    width: 100%; height: 100%;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px); border-radius: 20px;
    padding: 2rem; transform: translateZ(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-panel h3 { font-size: 1.1rem; color: var(--accent); margin-bottom: 1.5rem; }

.stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.school { font-size: 0.9rem; font-weight: 600; }
.degree { font-size: 0.75rem; color: var(--text-muted); }
.grade { font-family: var(--font-mono); color: var(--primary); font-weight: 700; }

.floater {
    position: absolute; width: 50px; height: 50px;
    background: #111; border: 1px solid var(--card-border);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 5;
}
.f1 { top: -20px; right: -20px; color: #fbbf24; transform: translateZ(60px); }
.f2 { bottom: -20px; left: -20px; color: #61dafb; transform: translateZ(50px); }
.f3 { top: 40%; right: -30px; color: #fff; transform: translateZ(40px); }

/* Bento Grid System */
.bento-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto); gap: 1.5rem;
}

.card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 24px; padding: 1.5rem; position: relative; overflow: hidden;
    transform-style: preserve-3d; transition: border-color 0.3s;
}
.card:hover { border-color: rgba(255,255,255,0.2); }
.wide-card { grid-column: span 2; }
.tall-card { grid-row: span 2; }

/* Content Styles */
.card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; font-size: 1.2rem; }
.skill-group { margin-bottom: 1.2rem; }
.skill-group label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: rgba(255,255,255,0.05); padding: 4px 10px;
    border-radius: 6px; font-size: 0.85rem; border: 1px solid transparent;
    transition: 0.3s;
}
.tag:hover { border-color: var(--primary); background: rgba(139, 92, 246, 0.1); }

/* Featured Project */
.project-card {
    display: flex; flex-direction: column; justify-content: flex-end;
    background-size: cover; background-position: center;
}
.badge-accent {
    background: var(--accent); color: black; font-weight: 700;
    font-size: 0.7rem; padding: 4px 10px; border-radius: 4px;
    display: inline-block; margin-bottom: 8px; width: fit-content;
}
.tech-stack span { 
    font-size: 0.75rem; background: rgba(0,0,0,0.6); 
    padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.2);
    margin-right: 5px; color: #ccc;
}

/* Timeline */
.timeline-item {
    border-left: 2px solid var(--card-border); padding-left: 1rem;
    margin-bottom: 1.5rem; position: relative;
}
.timeline-item::before {
    content: ''; position: absolute; left: -5px; top: 0;
    width: 8px; height: 8px; background: var(--primary); border-radius: 50%;
}
.time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.company { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 5px; }
.timeline-item p { font-size: 0.9rem; line-height: 1.4; color: #ddd; }

/* Certifications Grid */
.cert-grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.cert-item {
    background: rgba(0,0,0,0.3); border: 1px solid var(--card-border);
    padding: 1rem; border-radius: 12px; display: flex; align-items: center; gap: 15px;
    transition: 0.3s;
}
.cert-item:hover { transform: translateY(-5px); border-color: var(--accent); }
.cert-icon { font-size: 1.5rem; color: var(--text-muted); }

/* Resume Download */
.icon-box-large { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }

/* =========================================
   6. CONTACT FORM & FOOTER
   ========================================= */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-left h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-left p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-details .detail-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; font-size: 0.9rem;
}
.social-row { display: flex; gap: 1rem; margin-top: 2rem; }
.social-row a {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--card-border);
    display: flex; align-items: center; justify-content: center;
    color: white; transition: 0.3s;
}
.social-row a:hover { background: var(--primary); border-color: var(--primary); }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; margin-bottom: 5px; color: var(--text-muted); }
.form-group input, .form-group textarea {
    width: 100%; padding: 10px; background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border); border-radius: 8px;
    color: white; font-family: inherit; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent); background: rgba(0,0,0,0.5);
}

footer { margin-top: 4rem; padding: 2rem 0; border-top: 1px solid var(--card-border); text-align: center; color: var(--text-muted); font-size: 0.8rem; }

/* =========================================
   7. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 900px) {
    .glass-nav { width: 95%; top: 15px; padding: 0.8rem 1rem; }
    .nav-links a:not(.btn-glow) { display: none; } /* Simplified nav */
    
    .hero { flex-direction: column; text-align: center; gap: 3rem; padding-top: 100px; }
    h1 { font-size: 3rem; }
    .hero-buttons { justify-content: center; }
    .hero-card-3d { width: 100%; max-width: 380px; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .wide-card, .tall-card { grid-column: span 1; grid-row: span 1; }
    .contact-wrapper { grid-template-columns: 1fr; }
}