/* ============================================
   SHIVAM KUMAR - SYSTEM ARCHITECT PORTFOLIO
   ============================================ */

:root {
    /* STRICT COLOR SYSTEM */
    --bg-dark: #050505;       /* Deep dark background */
    --bg-card: #0A0A0A;       /* Card background base */
    
    --text-primary: #EDEDED;    /* Headings */
    --text-secondary: #B8B8B8;  /* Body text */
    --text-muted: #8A8A8A;      /* Meta/Helper */
    
    --accent: #4F7DFF;          /* Links, Icons, Highlights */
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Layout */
    --container: 1100px;
    --section-gap: 140px; /* Increased vertical spacing by ~15% */
}

/* Base & Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; cursor: none; }
body {
    background-color: var(--bg-dark);
    color: var(--text-secondary); /* Default body text */
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px; /* Minimum size */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
    font-weight: 400;
}

.meta, .small, .label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

a { text-decoration: none; color: inherit; transition: 0.2s ease; cursor: none; }
ul { list-style: none; }
button, input, textarea { font-family: inherit; cursor: none; }

/* 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-color: #fff;
    box-shadow: 0 0 10px #fff;
    opacity: 0.8;
}
.cursor-outline {
    width: 80px; height: 80px;
    
    /* Crystal Clear Glass Lens */
    /* No blur = transparency. High brightness/saturation = lens pop. */
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.01) 50%, 
        transparent 70%
    );
    backdrop-filter: brightness(1.2) saturate(1.2) contrast(1.1);
    -webkit-backdrop-filter: brightness(1.2) saturate(1.2) contrast(1.1);
    
    /* Crisp Rim */
    border: 1px solid rgba(255, 255, 255, 0.5); 
    box-shadow: 
        inset 0 0 15px rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0,0,0,0.15); /* Subtle shadow for lift */
    
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

body:hover .cursor-outline.hovered {
    width: 110px; height: 110px;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 60%
    );
    border-color: #fff;
    /* On hover: More 'pop' but stay clear */
    backdrop-filter: brightness(1.3) saturate(1.35) contrast(1.15);
    -webkit-backdrop-filter: brightness(1.3) saturate(1.35) contrast(1.15);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Background FX */
.bg-noise {
    position: fixed; inset: 0;
    opacity: 0.03; z-index: -1;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}
#bg-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0a0a0c 0%, #030304 100%);
}

/* Utilities */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.reveal-text, .reveal-fade, .reveal-slide-left { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Decoder Text Effect */
.reveal-decode { 
    opacity: 0; 
    font-family: var(--font-mono); /* Optional: Switch to mono only during decode if supported */
}
.reveal-decode.visible { opacity: 1; }
.dud { 
    color: var(--accent); /* Highlight scrambled random chars */
    opacity: 0.7;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed; top: 0; width: 100%; z-index: 100;
    padding: 1.5rem 0; transition: 0.3s;
}
.header.scrolled {
    padding: 0.8rem 0;
    /* Bright Glass Lens Effect for Header */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px) brightness(1.3) contrast(1.1); /* Brighter nav */
    -webkit-backdrop-filter: blur(12px) brightness(1.3) contrast(1.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.3); }
.nav-links { display: flex; gap: 2.5rem; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); position: relative; transition: 0.2s; }
.nav-link:hover { color: var(--text-primary); }

.btn-primary {
    background: linear-gradient(135deg, #4F7DFF, #6A5BFF);
    color: #FFFFFF;
    padding: 0.75rem 2rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(79, 125, 255, 0.4); }

.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 6px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: 0.3s; }

/* Mobile Menu */
.mobile-nav {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s; z-index: 90;
    backdrop-filter: blur(10px);
}
.mobile-nav.active { opacity: 1; pointer-events: all; }
.mobile-nav-inner { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-link { font-size: 2rem; color: var(--text-muted); }
.mobile-link:hover { color: #fff; }

/* ============================================
   HERO
   ============================================ */
.hero-section { padding: 180px 0 100px; display: flex; align-items: center; min-height: 90vh; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }

.hero-accent-line { width: 80px; height: 5px; background: linear-gradient(90deg, var(--accent-hightlight), var(--accent)); margin-bottom: 2rem; border-radius: 10px; }
.hero-title { font-size: 56px; line-height: 1.1; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.text-accent { color: var(--accent); background: none; -webkit-text-fill-color: initial; }

.hero-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 2.5rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; }
.btn-secondary {
    padding: 0.75rem 2rem; border: 1px solid rgba(255,255,255,0.15); color: var(--text-secondary);
    border-radius: 8px; font-weight: 500; font-size: 0.95rem;
    background: transparent;
}
.btn-secondary:hover { border-color: var(--text-primary); color: var(--text-primary); }

.hero-visual { position: relative; perspective: 1000px; }
.code-snippet {
    background: rgba(20, 20, 25, 0.6); /* Semi-transparent */
    backdrop-filter: blur(20px) saturate(180%); /* Strong glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px; transform: rotateY(-8deg) rotateX(5deg);
    box-shadow: -30px 30px 80px rgba(0,0,0,0.5);
    font-family: var(--font-mono); font-size: 0.85rem;
    transition: transform 0.4s ease; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-visual:hover .code-snippet { transform: rotateY(0deg) rotateX(0deg) scale(1.02); }
.k { color: #c084fc; font-weight: bold; }
.c { color: #facc15; }
.f { color: #60a5fa; }
.v { color: #f472b6; }
.s { color: #4ade80; }

/* ============================================
   ENGINEERING VALUES (Mindset)
   ============================================ */
.mindset-section { padding: var(--section-gap) 0; }
.section-label { font-family: var(--font-main); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 1rem; }
.section-title { font-size: 42px; font-weight: 600; margin-bottom: 3.5rem; letter-spacing: -0.01em; color: var(--text-primary); background: none; -webkit-text-fill-color: initial; }

.mindset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.mindset-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 12px; transition: 0.3s ease;
    position: relative; overflow: hidden;
}
.mindset-card:hover { 
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(79, 125, 255, 0.4);
    transform: translateY(-4px); 
}
.mindset-icon { font-size: 2rem; margin-bottom: 1.5rem; color: var(--accent); filter: none; }
.mindset-icon svg { width: 32px; height: 32px; stroke-width: 1.5; }
.mindset-card h3 { font-size: 24px; margin-bottom: 1rem; font-weight: 600; color: var(--text-primary); }
.mindset-card p { color: var(--text-secondary); font-size: 17px; line-height: 1.6; font-weight: 400; }

/* ============================================
   SKILLS SECTION (Tech Stack)
   ============================================ */
.skills-section { padding: var(--section-gap) 0; }
.skills-grid { 
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; 
    border-top: 1px solid var(--border); padding-top: 3rem;
}
.skill-category h4 { 
    color: #fff; margin-bottom: 1.5rem; font-size: 1.1rem; 
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.skill-tags { display: flex; flex-direction: column; gap: 0.8rem; }
.skill-tags span { 
    color: var(--text-muted); font-family: var(--font-mono); font-size: 0.95rem; 
    position: relative; padding-left: 1rem; transition: 0.2s;
}
.skill-tags span::before { 
    content: '›'; position: absolute; left: 0; color: var(--accent); 
}
.skill-tags span:hover { color: #fff; transform: translateX(5px); }

/* ============================================
   CAPABILITIES (Redesigned Cards)
   ============================================ */
.capabilities-section { background: #050505; padding: var(--section-gap) 0; position: relative; }
.section-subtitle { font-size: 1.2rem; color: var(--text-muted); margin-top: -2rem; margin-bottom: 4rem; font-style: italic; opacity: 0.8; }
.capabilities-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; 
    margin-bottom: 5rem;
}

.cap-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2.5rem;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}
.cap-card:hover { 
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(79, 125, 255, 0.4);
    transform: translateY(-2px); 
}
.cap-card::before {
    display: none;
}

.cap-title { 
    font-size: 24px; color: var(--text-primary); margin-bottom: 1.5rem; 
    font-weight: 600; text-transform: none; letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 12px;
}
.cap-title svg { width: 20px; height: 20px; color: var(--accent); }

.cap-list li {
    font-size: 1rem; color: var(--text-muted); margin-bottom: 1rem;
    display: flex; align-items: flex-start; gap: 0.8rem;
    line-height: 1.4;
}
.cap-list li::before { 
    content: '→'; color: var(--accent-hightlight); font-weight: bold; font-family: var(--font-mono); 
}

/* ============================================
   PROJECTS (Polished Layout)
   ============================================ */
.work-section { padding: var(--section-gap) 0; }
.projects-list { display: grid; gap: 6rem; }

.project-card {
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.06); 
    backdrop-filter: blur(12px);
    border-radius: 12px; padding: 3.5rem;
    position: relative; z-index: 1;
    transition: 0.3s ease;
}
.project-card:hover { 
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(79, 125, 255, 0.4); 
}

/* Header & Tags */
.project-header { 
    display: flex; justify-content: space-between; align-items: flex-start; 
    margin-bottom: 3rem; flex-wrap: wrap; gap: 1.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.06); 
    padding-bottom: 2rem; 
}
.project-title-group { display: flex; flex-direction: column; gap: 0.5rem; }
.project-title { font-size: 2.5rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.project-links { 
    display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; 
}
.link-item { 
    font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-hightlight);
    display: flex; align-items: center; gap: 6px; 
    border-bottom: 1px solid transparent; 
}
.link-item:hover { border-bottom-color: var(--accent-hightlight); }
.link-item svg { width: 14px; height: 14px; }
.link-divider { color: var(--border-bright); }
.company-tag { 
    font-family: var(--font-mono); font-size: 1rem; color: var(--text-muted); 
    font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.tech-tags span { 
    font-family: var(--font-main); font-size: 0.75rem; color: var(--text-secondary); 
    background: rgba(255,255,255,0.03); padding: 0.4rem 0.8rem; 
    border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
    transition: 0.2s; display: flex; align-items: center; gap: 6px;
}
.tech-tags span:hover { border-color: var(--accent); background: rgba(79, 125, 255, 0.1); color: var(--text-primary); }
.tech-tags svg { width: 12px; height: 12px; opacity: 0.8; }

/* Content Grid */
.project-content-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; }

.info-block { margin-bottom: 2.5rem; }
.info-block h4, .project-tech h4 { 
    font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); 
    text-transform: uppercase; margin-bottom: 1rem; letter-spacing: 0.1em; 
    font-weight: 700;
}
.info-block p { font-size: 1.05rem; color: #cbd5e1; line-height: 1.7; }

/* Engineering Highlights List */
.arch-list li { 
    position: relative; padding-left: 1.5rem; margin-bottom: 1rem; 
    color: #cbd5e1; line-height: 1.6;
}
.arch-list li::before { 
    content: '⚡'; position: absolute; left: 0; top: 2px; 
    font-size: 0.8rem; color: var(--accent-sec); 
}
.arch-list strong { color: #fff; font-weight: 600; }

/* ============================================
   EXPERIENCE
   ============================================ */
.experience-section { padding: var(--section-gap) 0; }
.timeline { position: relative; border-left: 2px solid var(--border); margin-left: 1rem; padding-left: 3rem; }
.timeline-item { margin-bottom: 4rem; position: relative; }
.timeline-marker { 
    position: absolute; left: -3.6rem; top: 6px; width: 16px; height: 16px; 
    background: var(--bg-dark); border: 2px solid var(--accent);
    border-radius: 50%; transition: 0.3s; 
    box-shadow: 0 0 0 4px var(--bg-dark); /* Fake gap */
}
.timeline-item:hover .timeline-marker { background: var(--accent); box-shadow: 0 0 0 4px var(--bg-dark), 0 0 10px rgba(79, 125, 255, 0.3); }

.role-title { font-size: 1.6rem; color: #fff; font-weight: 700; margin-bottom: 0.5rem; }
.company-name { font-family: var(--font-mono); color: var(--accent-hightlight); font-size: 1rem; font-weight: 600; }
.period { font-size: 0.9rem; color: var(--text-muted); margin-left: 1rem; }
.role-desc { margin-top: 1rem; font-size: 1.05rem; }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { padding: var(--section-gap) 0 120px; position: relative; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }

.contact-catchphrase { 
    font-size: 4rem; font-weight: 800; line-height: 1; margin-bottom: 2rem; 
    background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.contact-sub { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3.5rem; line-height: 1.7; }
.social-links { display: flex; gap: 2.5rem; }
.social-link { 
    font-family: var(--font-mono); text-transform: uppercase; 
    border-bottom: 2px solid var(--border); padding-bottom: 4px; 
    font-size: 1.1rem; color: #fff; transition: 0.3s;
}
.social-link:hover { color: var(--accent-hightlight); border-color: var(--accent-hightlight); }

.contact-glass-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    padding: 3rem; border-radius: 12px;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 0.8rem; color: var(--accent); font-weight: 600; letter-spacing: 0.05em; }
.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    padding: 1.2rem; color: #fff; border-radius: 8px; font-size: 1rem;
    transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,0.1); outline: none; background: rgba(0,0,0,0.5); }

#finalSendBtn {
    width: 100%; margin-top: 1rem; padding: 1rem;
    font-size: 1.1rem; border-radius: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-accent-line { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .mindset-grid, .capabilities-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .project-content-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-wrapper { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .cursor-dot, .cursor-outline { display: none; }
    html, body, a, button { cursor: auto; }
}
@media (max-width: 600px) {
    .skills-grid { grid-template-columns: 1fr; }
    .project-links { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .link-divider { display: none; }
}
