/* 
   Visual Enhanced Portfolio
   Theme: Corporate Tech Dark
*/

:root {
    --bg-main: #0b0f15;
    --primary: #2563eb;    
    --accent: #0ea5e9;     
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(17, 24, 39, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --nav-height: 80px;
    --container: 1100px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.2s ease; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; }

/* Utilities */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; z-index: 2; }
.text-center { text-align: center; }
.center-row { justify-content: center; }

/* Site Wide Backgrounds */
#bg-particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.6;
}

.ambient-gradient {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(37,99,235,0.08), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(14,165,233,0.08), transparent 50%);
    z-index: 0; pointer-events: none;
}

.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0; pointer-events: none;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Glassmorphism & Cards */
.glass-panel, .glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 0 20px rgba(37, 99, 235, 0.05);
}

/* Section Hiding for GSAP */
.section-hidden { opacity: 0; transform: translateY(30px); }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; height: var(--nav-height); z-index: 1000;
    background: rgba(11, 15, 21, 0.7); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}
.nav-container {
    height: 100%; display: flex; justify-content: space-between; align-items: center;
    max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
}
.logo { font-size: 1.5rem; font-weight: 700; }
.logo span { color: var(--accent); }

.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link { font-size: 0.95rem; color: var(--text-gray); font-weight: 500; }
.nav-link:hover { color: var(--text-white); }
.btn-nav {
    border: 1px solid var(--border-light); padding: 0.4rem 1rem; border-radius: 6px; color: var(--accent);
}
.btn-nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.bar { width: 25px; height: 3px; background: #fff; margin: 5px; transition: 0.3s; display: block; }

/* Hero */
.hero-section {
    padding-top: var(--nav-height); min-height: 100vh; display: flex; align-items: center; position: relative;
    opacity: 1; transform: translateY(0); /* Override hidden for Hero initial load handled by JS */
}
.hero-container {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 100%;
    max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
}
.hero-badge {
    display: inline-block; padding: 0.5rem 1rem; background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2); color: var(--accent); border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-name { font-size: 4rem; line-height: 1.1; margin-bottom: 0.5rem; }
.hero-title { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--text-gray); }
.hero-pitch { max-width: 500px; color: var(--text-gray); margin-bottom: 2.5rem; font-size: 1.1rem; }
.hero-buttons { display: flex; gap: 1rem; }

.btn {
    padding: 0.9rem 2rem; border-radius: 6px; font-weight: 600; font-size: 1rem;
    display: inline-flex; justify-content: center; align-items: center; border: none; cursor: pointer;
}
.btn-primary {
    background: var(--primary); color: white; box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-white); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.hero-visual { width: 100%; height: 500px; position: relative; z-index: 5; }

/* Pipeline Diagram */
.pipeline-wrapper {
    position: relative; padding: 3rem 0; margin-bottom: 2rem;
    background: radial-gradient(ellipse at center, rgba(37,99,235,0.05) 0%, transparent 70%);
}
.pipeline-container {
    display: flex; justify-content: center; align-items: center; gap: 0; position: relative; z-index: 2;
}

.pipe-node {
    width: 140px; height: 100px;
    background: var(--glass-bg); border: 1px solid var(--primary);
    border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: relative; transition: 0.3s;
    box-shadow: 0 0 15px rgba(37,99,235,0.1);
}
.pipe-node:hover { transform: scale(1.05); box-shadow: 0 0 25px rgba(37,99,235,0.3); z-index: 5; }

.core-node {
    width: 160px; height: 120px; background: rgba(37,99,235,0.1); border-color: var(--accent);
}

.node-icon { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--accent); }
.node-label { font-size: 0.9rem; font-weight: 700; color: #fff; }
.node-sub { font-size: 0.75rem; color: var(--text-gray); margin-top: 2px; }

.pipe-path {
    width: 100px; height: 2px; background: rgba(255,255,255,0.1); position: relative;
}
.flow-dot {
    position: absolute; top: -2px; left: 0; width: 6px; height: 6px; background: var(--accent);
    border-radius: 50%; box-shadow: 0 0 8px var(--accent);
    animation: flowMove 2s infinite linear;
}
.delay-1 { animation-delay: 1s; }

@keyframes flowMove {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.pipeline-pulse {
    position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: transparent;
    z-index: 1; overflow: hidden;
}
.pipeline-pulse::after {
    content: ''; position: absolute; top: 0; left: -20%; width: 20%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.5), transparent);
    animation: pulsePass 4s infinite ease-in-out;
}
@keyframes pulsePass {
    0% { left: -20%; }
    100% { left: 120%; }
}

.proto-details .tech-pill {
    padding: 0.4rem 1rem; border: 1px solid var(--border-light); 
    border-radius: 20px; font-size: 0.85rem; color: var(--accent);
}
.section-subtitle { text-align: center; color: var(--text-gray); margin-bottom: 3rem; }

/* Skills Panel */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.skill-category { padding: 2rem; }
.cat-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem; color: var(--primary); }
.skill-list { list-style: none; }
.skill-list li { margin-bottom: 1rem; }
.skill-name { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }
.bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width 1s ease; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tag-cloud span { padding: 0.4rem 0.8rem; background: rgba(255,255,255,0.05); border-radius: 20px; font-size: 0.85rem; color: var(--accent); }
.feature-list { list-style: circle inside; color: var(--text-gray); }

/* Experience Cards */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.glass-card { padding: 2rem; transform-style: preserve-3d; transform: perspective(1000px); }
.highlight-card { border-color: var(--primary); }
.card-badge {
    position: absolute; top: -10px; right: 20px; background: var(--primary); padding: 0.3rem 0.8rem;
    font-size: 0.75rem; border-radius: 4px; font-weight: 700;
}
.card-content { transform: translateZ(20px); }
.card-role { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.3rem; }
.card-loc { color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.card-divider { width: 40px; height: 2px; background: var(--border-light); margin: 1rem 0; }
.card-bullets { list-style: none; color: var(--text-gray); font-size: 0.95rem; }
.card-bullets li { margin-bottom: 0.5rem; padding-left: 1.2rem; position: relative; }
.card-bullets li::before { content: '▹'; position: absolute; left: 0; color: var(--primary); }

/* About & AI */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; color: var(--accent); font-weight: 700; }
.section-title { font-size: 2.5rem; margin-top: 0.5rem; margin-bottom: 1rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.lead-text { font-size: 1.2rem; border-left: 3px solid var(--primary); padding-left: 1rem; margin-bottom: 1.5rem; }
.image-frame { border: 1px solid var(--border-light); padding: 10px; position: relative; }
.frame-decor { position: absolute; bottom: -10px; right: -10px; width: 80px; height: 80px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); z-index: -1; }
.ai-showcase { display: flex; justify-content: space-between; align-items: center; padding: 3rem; }
.ai-desc { max-width: 60%; }
.ai-stats { display: flex; gap: 3rem; }
.stat .val { font-size: 2rem; font-weight: 700; }

/* Management */
.mgmt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.mgmt-item { padding: 2rem 1rem; text-align: center; }
.mgmt-item i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }

/* Contact/Footer */
.contact-links { margin-top: 2rem; }
.footer { padding: 2rem 0; border-top: 1px solid var(--border-light); text-align: center; }
.footer-content { display: flex; justify-content: space-between; color: var(--text-gray); font-size: 0.9rem; }

/* Mobile */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed; top: var(--nav-height); right: -100%; width: 100%; height: calc(100vh - var(--nav-height));
        background: var(--bg-main); flex-direction: column; justify-content: center; transition: 0.4s;
    }
    .nav-menu.active { right: 0; }
    .menu-toggle { display: block; }
    
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-visual { height: 400px; order: -1; }
    
    .pipeline-container { flex-direction: column; gap: 2rem; }
    .pipe-path { width: 2px; height: 40px; }
    .flow-dot { width: 6px; height: 6px; left: -2px; top: 0; animation: flowMoveVert 2s infinite linear; }
    
    @keyframes flowMoveVert {
        0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; }
    }
    
    .about-grid, .skills-grid, .ai-showcase, .mgmt-grid { grid-template-columns: 1fr; text-align: center; }
    .ai-desc { max-width: 100%; margin-bottom: 2rem; }
    .ai-stats { justify-content: center; }
    .card-badge { right: 50%; transform: translateX(50%); top: -15px; }
}
