/* ═══════════════════════════════════════════════════════════
   CYBER-NOIR PORTFOLIO — Design System
   Typography: Syne (display) + DM Sans (body)
   Palette: Deep black, electric cyan, violet accent
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
    --bg-void:     #050505;
    --bg-surface:  #0c0c14;
    --bg-elevated: #12121e;
    --bg-card:     rgba(18, 18, 30, 0.6);

    --border:      rgba(255,255,255,0.06);
    --border-lit:  rgba(0,240,255,0.15);

    --text-primary:   #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-dim:       #55556a;

    --cyan:    #00f0ff;
    --violet:  #7c3aed;
    --cyan-glow: rgba(0,240,255,0.25);
    --violet-glow: rgba(124,58,237,0.2);

    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --max-w: 1240px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cyan); color: var(--bg-void); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Utility ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section-label {
    font-family: var(--font-display);
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.75rem;
}
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.section-heading span { color: var(--cyan); }
.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.7;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 99px; }

/* ══════════════════ NAVIGATION ══════════════════ */
.nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
    background: rgba(5,5,5,0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s;
}
.nav-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
    height: 72px;
}
.nav-brand {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 800;
    letter-spacing: -1px;
}
.nav-brand em { font-style: normal; color: var(--cyan); }
.nav-menu { display: flex; gap: 2.4rem; }
.nav-menu a {
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary);
    position: relative; transition: color 0.3s;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--cyan); transition: width 0.3s var(--ease-out-expo);
}
.nav-menu a:hover { color: var(--text-primary); }
.nav-menu a:hover::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; cursor: pointer; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Overlay */
.mobile-overlay {
    position: fixed; inset: 0; background: rgba(5,5,5,0.95); backdrop-filter: blur(30px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-overlay a {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
    color: var(--text-secondary); transition: color 0.3s;
}
.mobile-overlay a:hover { color: var(--cyan); }

/* ══════════════════ HERO ══════════════════ */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
}
#particle-canvas {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 800px;
}
.hero-greeting {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-typed-wrapper {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    min-height: 2em;
}
.hero-typed-wrapper .typed-cursor {
    display: inline-block; width: 3px; height: 1em;
    background: var(--cyan); margin-left: 4px;
    animation: blink 0.7s infinite;
    vertical-align: text-bottom;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: 4px;
    font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
    letter-spacing: 1px; text-transform: uppercase;
    transition: all 0.35s var(--ease-out-expo);
    border: none; cursor: pointer;
}
.btn-primary {
    background: var(--cyan); color: var(--bg-void);
    box-shadow: 0 0 30px var(--cyan-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px var(--cyan-glow); filter: brightness(1.15); }
.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border-lit);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.75rem; }
.btn-ghost {
    background: transparent; color: var(--cyan); border: none;
    padding: 0.5rem 0; text-transform: uppercase; font-family: var(--font-display);
    font-weight: 600; font-size: 0.8rem; letter-spacing: 2px;
}
.btn-ghost:hover { opacity: 0.7; }

/* Decorative line */
.hero-line {
    position: absolute; right: 10%; top: 50%; width: 1px; height: 200px;
    background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
    transform: translateY(-50%); z-index: 1;
}

/* ══════════════════ STATS BAR ══════════════════ */
.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px; background: var(--border);
    border: 1px solid var(--border); margin: 0;
}
.stat-item {
    background: var(--bg-surface);
    padding: 2.5rem 2rem; text-align: center;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem; font-weight: 800;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.85rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 2px;
}

/* ══════════════════ SECTIONS (shared) ══════════════════ */
.section { padding: 7rem 0; }
.section-header { margin-bottom: 4rem; }

/* ══════════════════ ABOUT ══════════════════ */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}
.about-image-wrap {
    position: relative;
}
.about-image-wrap img {
    border-radius: 4px; width: 100%;
    border: 1px solid var(--border);
}
.about-image-wrap::before {
    content: ''; position: absolute;
    top: -12px; left: -12px; right: 12px; bottom: 12px;
    border: 1px solid var(--cyan); border-radius: 4px; z-index: -1;
    opacity: 0.4;
}
.about-text { color: var(--text-secondary); line-height: 1.9; font-size: 1.05rem; }
.about-text p + p { margin-top: 1.2rem; }

/* ══════════════════ SERVICES ══════════════════ */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem; border-radius: 4px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { border-color: var(--border-lit); transform: translateY(-4px); }
.service-icon {
    width: 48px; height: 48px; margin-bottom: 1.5rem;
    color: var(--cyan); font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
}
.service-card h3 {
    font-family: var(--font-display); font-size: 1.2rem;
    font-weight: 700; margin-bottom: 0.75rem;
}
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ══════════════════ EXPERIENCE TIMELINE ══════════════════ */
.timeline {
    position: relative; max-width: 800px;
    padding-left: 3rem;
}
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 1px; background: linear-gradient(to bottom, var(--cyan), var(--border), transparent);
}
.timeline-item {
    position: relative; margin-bottom: 3.5rem;
    padding: 2rem; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: 4px;
    transition: border-color 0.3s;
}
.timeline-item:hover { border-color: var(--border-lit); }
.timeline-dot {
    position: absolute; left: -3.55rem; top: 2.3rem;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-glow);
}
.timeline-item h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.timeline-item h4 { color: var(--cyan); font-size: 0.95rem; margin-top: 0.3rem; }
.timeline-date { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.5rem; }
.timeline-item p.desc { color: var(--text-secondary); margin-top: 1rem; line-height: 1.7; }

/* ══════════════════ SKILLS ══════════════════ */
.skills-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.skill-item {
    padding: 1.2rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.3s;
}
.skill-item:hover { border-color: var(--border-lit); }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.skill-header span:first-child { font-weight: 600; font-size: 0.95rem; }
.skill-header span:last-child { font-size: 0.8rem; color: var(--cyan); font-family: var(--font-display); }
.skill-bar { width: 100%; height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.skill-bar-fill {
    height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transition: width 1.5s var(--ease-out-expo);
    width: 0;
}
.skill-bar-fill.animated { /* JS sets width dynamically */ }

/* ══════════════════ PROJECTS ══════════════════ */
.projects-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.5rem;
}
.project-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-lit);
    box-shadow: 0 20px 50px rgba(0,240,255,0.07);
}
.project-thumb {
    width: 100%; height: 220px;
    background-size: cover; background-position: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.project-thumb-placeholder {
    width: 100%; height: 220px;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); font-size: 3rem;
    border-bottom: 1px solid var(--border);
}
.project-category-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(5,5,5,0.75); backdrop-filter: blur(10px);
    padding: 0.3rem 0.75rem; border-radius: 3px;
    font-size: 0.7rem; color: var(--cyan);
    font-family: var(--font-display); letter-spacing: 1px; text-transform: uppercase;
    border: 1px solid var(--border-lit);
}
.project-body { padding: 1.8rem; }
.project-body h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; }
.project-body p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1rem; }
.project-tech { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.project-tech span {
    font-size: 0.72rem; padding: 0.25rem 0.65rem;
    border: 1px solid var(--border); border-radius: 3px;
    color: var(--text-dim); letter-spacing: 0.5px;
}
.project-links { display: flex; gap: 0.75rem; }

/* ══════════════════ EDUCATION ══════════════════ */
.education-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.education-card {
    padding: 2rem; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: 4px;
    border-left: 3px solid var(--cyan);
    transition: border-color 0.3s;
}
.education-card:hover { border-color: var(--border-lit); border-left-color: var(--cyan); }
.education-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.education-card h4 { color: var(--cyan); font-size: 0.9rem; margin-top: 0.3rem; }
.education-card .year { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.4rem; }
.education-card p { color: var(--text-secondary); margin-top: 0.8rem; line-height: 1.6; font-size: 0.92rem; }

/* ══════════════════ CERTIFICATIONS ══════════════════ */
.cert-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.cert-card {
    padding: 1.5rem 2rem; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: 4px;
    display: flex; align-items: center; gap: 1.5rem;
    transition: border-color 0.3s; flex: 1 1 300px;
}
.cert-card:hover { border-color: var(--border-lit); }
.cert-badge { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 1.2rem; flex-shrink: 0; }
.cert-info h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.cert-info p { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* ══════════════════ TESTIMONIALS ══════════════════ */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.testimonial-card {
    padding: 2.5rem 2rem; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: 4px;
    position: relative;
}
.testimonial-card::before {
    content: '"'; position: absolute; top: 12px; left: 20px;
    font-family: var(--font-display); font-size: 4rem; color: var(--cyan); opacity: 0.15;
    line-height: 1;
}
.testimonial-card blockquote {
    font-style: italic; color: var(--text-secondary);
    line-height: 1.8; font-size: 1rem; margin-bottom: 1.5rem;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    overflow: hidden; flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-meta strong { font-family: var(--font-display); font-size: 0.95rem; }
.testimonial-meta span { display: block; font-size: 0.8rem; color: var(--text-dim); }
.testimonial-stars { color: var(--cyan); margin-bottom: 1rem; letter-spacing: 2px; }

/* ══════════════════ BLOG ══════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.blog-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: 4px;
    overflow: hidden; transition: all 0.4s var(--ease-out-expo);
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-lit); }
.blog-thumb {
    width: 100%; height: 180px; background-size: cover;
    background-position: center; border-bottom: 1px solid var(--border);
}
.blog-thumb-placeholder {
    width: 100%; height: 180px;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
    border-bottom: 1px solid var(--border);
}
.blog-body { padding: 1.8rem; }
.blog-body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.blog-body p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.blog-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.blog-tags span {
    font-size: 0.7rem; padding: 0.2rem 0.5rem;
    border: 1px solid var(--border); border-radius: 3px;
    color: var(--text-dim);
}
.blog-date { font-size: 0.78rem; color: var(--text-dim); }

/* ══════════════════ CONTACT ══════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
    font-size: 0.8rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 1px;
    font-family: var(--font-display); font-weight: 600;
}
.form-group input, .form-group textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px; padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-body); font-size: 0.95rem;
    transition: border-color 0.3s;
    outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--cyan); }
.form-group textarea { resize: vertical; min-height: 140px; }
.contact-info { display: flex; flex-direction: column; justify-content: center; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
    width: 44px; height: 44px; border-radius: 4px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan); font-size: 1.2rem; flex-shrink: 0;
}
.contact-item h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; }
.contact-item p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.2rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-link {
    width: 44px; height: 44px; border-radius: 4px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all 0.3s;
}
.social-link:hover { border-color: var(--cyan); color: var(--cyan); }

/* Toast */
.toast {
    position: fixed; bottom: 2rem; right: 2rem;
    background: var(--cyan); color: var(--bg-void);
    padding: 1rem 2rem; border-radius: 4px;
    font-family: var(--font-display); font-weight: 600;
    transform: translateY(120%); transition: transform 0.4s var(--ease-out-expo);
    z-index: 9999;
}
.toast.show { transform: translateY(0); }

/* ══════════════════ FOOTER ══════════════════ */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0; text-align: center;
    color: var(--text-dim); font-size: 0.85rem;
}

/* ══════════════════ REVEAL ANIMATIONS ══════════════════ */
.reveal {
    opacity: 0; transform: translateY(50px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Stagger children */
.stagger-children > * { opacity: 0; transform: translateY(30px); transition: all 0.6s var(--ease-out-expo); }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 900px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .hero-name { font-size: clamp(2.5rem, 10vw, 4rem); }
    .section-heading { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .hero-line { display: none; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .container { padding: 0 1.2rem; }
    .section { padding: 4.5rem 0; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .services-grid, .skills-grid, .education-grid, .testimonial-grid, .blog-grid { grid-template-columns: 1fr; }
    .cert-grid { flex-direction: column; }
    .hero-3d-element { display: none; }
}

/* ══════════════════ 3D EFFECTS & FUTURISTIC POLISH ══════════════════ */

/* ── Scanline Overlay ── */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: 9998;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.012) 2px,
        rgba(0, 240, 255, 0.012) 4px
    );
    mix-blend-mode: screen;
}

/* ── Floating 3D Wireframe Element (Hero) ── */
.hero-3d-element {
    position: absolute; right: 8%; top: 50%;
    width: 320px; height: 320px;
    transform: translateY(-50%);
    z-index: 1; pointer-events: none;
}
.wireframe-cube {
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    animation: floatRotate 20s linear infinite;
    position: relative;
}
.wireframe-cube .face {
    position: absolute;
    width: 200px; height: 200px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    background: transparent;
    top: 50%; left: 50%;
    margin-left: -100px; margin-top: -100px;
}
.wireframe-cube .face:nth-child(1) { transform: rotateY(0deg) translateZ(100px); }
.wireframe-cube .face:nth-child(2) { transform: rotateY(90deg) translateZ(100px); }
.wireframe-cube .face:nth-child(3) { transform: rotateY(180deg) translateZ(100px); }
.wireframe-cube .face:nth-child(4) { transform: rotateY(-90deg) translateZ(100px); }
.wireframe-cube .face:nth-child(5) { transform: rotateX(90deg) translateZ(100px); }
.wireframe-cube .face:nth-child(6) { transform: rotateX(-90deg) translateZ(100px); }

@keyframes floatRotate {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    50% { transform: rotateX(15deg) rotateY(180deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

/* ── 3D Perspective Tilt on Cards ── */
.project-card,
.service-card,
.testimonial-card,
.blog-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}
.project-card:hover {
    transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 25px 60px rgba(0, 240, 255, 0.08), 0 0 30px rgba(0, 240, 255, 0.04);
}
.service-card:hover {
    transform: translateY(-4px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.06);
}
.testimonial-card:hover {
    transform: translateY(-4px) rotateX(1deg) rotateY(-1.5deg);
}
.blog-card:hover {
    transform: translateY(-4px) rotateX(2deg) rotateY(1.5deg);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.06);
}

/* ── Enhanced Neon Glow Pulse on Key Elements ── */
.hero-name {
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.12);
}
.section-heading span {
    text-shadow: 0 0 20px var(--cyan-glow);
}
.btn-primary {
    animation: btnPulse 3s ease-in-out infinite;
}
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 30px var(--cyan-glow); }
    50% { box-shadow: 0 0 55px var(--cyan-glow), 0 0 80px rgba(0, 240, 255, 0.08); }
}

/* ── Timeline Dot Pulse ── */
.timeline-dot {
    animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 12px var(--cyan-glow); }
    50% { box-shadow: 0 0 24px var(--cyan-glow), 0 0 40px rgba(0, 240, 255, 0.1); }
}

/* ── Border Shimmer on Stat Items ── */
.stat-item {
    position: relative; overflow: hidden;
}
.stat-item::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 240, 255, 0.04),
        transparent
    );
    animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* ── Navbar Glow Line ── */
.nav {
    border-image: linear-gradient(90deg, transparent, rgba(0,240,255,0.15), transparent) 1;
}

/* ── Glowing Focus Ring on Form Inputs ── */
.form-group input:focus, .form-group textarea:focus {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1), inset 0 0 8px rgba(0, 240, 255, 0.03);
}

/* ── Skill Bar Glow ── */
.skill-bar-fill {
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

/* ── Hero Parallax Tilt (controlled by JS) ── */
.hero-content {
    transition: transform 0.3s ease-out;
}

/* ── Corner Accent Marks on Cards ── */
.project-card::after, .service-card::after {
    content: '';
    position: absolute; bottom: 0; right: 0;
    width: 40px; height: 40px;
    border-right: 1px solid rgba(0, 240, 255, 0.15);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    pointer-events: none;
    transition: all 0.4s var(--ease-out-expo);
}
.project-card:hover::after, .service-card:hover::after {
    width: 60px; height: 60px;
    border-color: rgba(0, 240, 255, 0.3);
}

/* ── Floating Orb Decoration ── */
.hero::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    top: 20%; left: -10%;
    z-index: 0;
    animation: orbFloat 8s ease-in-out infinite;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}
/* ── Hero Glitch Effect ── */
.hero-glitch {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 80px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: var(--cyan-glow);
    mix-blend-mode: screen;
    filter: blur(2px);
    opacity: 0.6;
    animation: glitchPulse 3s infinite ease-in-out;
}
@keyframes glitchPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}
/* Optional overlay text glitch */
.hero-name::before {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    color: var(--cyan-glow);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitchAnim 2s infinite linear alternate-reverse;
}
@keyframes glitchAnim {
    0% { clip: rect(0, 9999px, 0, 0); transform: translate(0); }
    20% { clip: rect(10px, 9999px, 30px, 0); transform: translate(-2px, -2px); }
    40% { clip: rect(20px, 9999px, 40px, 0); transform: translate(2px, 2px); }
    60% { clip: rect(30px, 9999px, 50px, 0); transform: translate(-2px, 2px); }
    80% { clip: rect(40px, 9999px, 60px, 0); transform: translate(2px, -2px); }
    100% { clip: rect(0, 9999px, 0, 0); transform: translate(0); }
}
/* ── Cyber HUD Rings ── */
.cyber-hud {
    position: absolute; right: 8%; top: 50%;
    width: 320px; height: 320px;
    transform: translateY(-50%);
    z-index: 1; pointer-events: none;
    display: flex; justify-content: center; align-items: center;
}
.hud-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
}
.ring-1 {
    width: 100%; height: 100%;
    border-top: 1px solid var(--cyan-glow);
    border-bottom: 1px solid var(--cyan-glow);
    animation: spin 10s linear infinite;
    opacity: 0.6;
}
.ring-2 {
    width: 80%; height: 80%;
    border-left: 1px dashed var(--violet-glow);
    border-right: 1px dashed var(--violet-glow);
    animation: spin-reverse 15s linear infinite;
    opacity: 0.4;
}
.ring-3 {
    width: 60%; height: 60%;
    border-top: 3px dotted rgba(0, 240, 255, 0.8);
    border-bottom: 3px dotted rgba(0, 240, 255, 0.8);
    animation: spin 8s linear infinite;
    opacity: 0.7;
}
.hud-crosshair {
    position: absolute;
    width: 20%; height: 20%;
    border: 1px solid var(--cyan-glow);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--cyan-glow);
    animation: pulseHud 3s ease-in-out infinite;
}
.hud-crosshair::before, .hud-crosshair::after {
    content: ''; position: absolute;
    background: var(--cyan-glow);
    opacity: 0.5;
}
.hud-crosshair::before { top: 50%; left: -20px; width: calc(100% + 40px); height: 1px; transform: translateY(-50%); }
.hud-crosshair::after { left: 50%; top: -20px; height: calc(100% + 40px); width: 1px; transform: translateX(-50%); }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }
@keyframes pulseHud {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px var(--cyan-glow); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px var(--cyan-glow); }
}
