/* ============================================
   PORTFOLIO STYLES — Pratik Anil Pawar
   Electric Blue + Alert Amber on Dark
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    /* Dark Theme (default) */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-surface: #1a2332;
    --bg-surface-hover: #1f2b3d;
    --accent-blue: #3b82f6;
    --accent-blue-rgb: 59, 130, 246;
    --accent-amber: #f59e0b;
    --accent-amber-rgb: 245, 158, 11;
    --accent-green: #22c55e;
    --accent-green-rgb: 34, 197, 94;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border-color: #1e293b;
    --border-color-light: #2d3a4f;
    --navbar-bg: rgba(10, 14, 26, 0.8);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --card-glow: 0 0 20px rgba(var(--accent-blue-rgb), 0.15);
    --card-glow-hover: 0 0 30px rgba(var(--accent-blue-rgb), 0.3);
    --gradient-blue-amber: linear-gradient(135deg, var(--accent-blue), var(--accent-amber));
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.35s ease;
    --transition-slow: 0.5s ease;
    --section-padding: 6rem 0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-surface: #f1f5f9;
    --bg-surface-hover: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --border-color: #e2e8f0;
    --border-color-light: #cbd5e1;
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --card-glow: 0 0 20px rgba(var(--accent-blue-rgb), 0.1);
    --card-glow-hover: 0 0 30px rgba(var(--accent-blue-rgb), 0.2);
}

/* ---- Cursor Particle Trail ---- */
#cursorParticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

/* ---- Cursor Glow Spotlight ---- */
.cursor-glow {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    opacity: 0;
    mix-blend-mode: screen;
    will-change: left, top;
}

/* Dark mode: Electric cyan spotlight */
[data-theme="dark"] .cursor-glow,
.cursor-glow {
    background: radial-gradient(circle,
        rgba(56, 189, 248, 0.75) 0%,
        rgba(56, 189, 248, 0.3) 35%,
        rgba(56, 189, 248, 0) 70%);
}

/* Light mode: Warm amber/gold spotlight */
[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle,
        rgba(245, 158, 11, 0.7) 0%,
        rgba(245, 158, 11, 0.25) 35%,
        rgba(245, 158, 11, 0) 70%);
    mix-blend-mode: multiply;
}

.cursor-glow.visible {
    opacity: 1;
}

.cursor-glow.hovering-interactive {
    width: 60px;
    height: 60px;
}

[data-theme="dark"] .cursor-glow.hovering-interactive,
.cursor-glow.hovering-interactive {
    background: radial-gradient(circle,
        rgba(56, 189, 248, 0.55) 0%,
        rgba(56, 189, 248, 0.15) 40%,
        rgba(56, 189, 248, 0) 70%);
}

[data-theme="light"] .cursor-glow.hovering-interactive {
    background: radial-gradient(circle,
        rgba(245, 158, 11, 0.5) 0%,
        rgba(245, 158, 11, 0.12) 40%,
        rgba(245, 158, 11, 0) 70%);
}

/* Click burst — expands and fades */
.cursor-click-burst {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

[data-theme="dark"] .cursor-click-burst,
.cursor-click-burst {
    background: radial-gradient(circle,
        rgba(56, 189, 248, 0.6) 0%,
        rgba(56, 189, 248, 0) 70%);
}

[data-theme="light"] .cursor-click-burst {
    background: radial-gradient(circle,
        rgba(245, 158, 11, 0.5) 0%,
        rgba(245, 158, 11, 0) 70%);
}

.cursor-click-burst.active {
    animation: clickBurst 0.5s ease-out forwards;
}

@keyframes clickBurst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
    }
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) and (hover: none) {
    .cursor-glow,
    .cursor-click-burst {
        display: none !important;
    }
}

/* ---- Base Reset & Typography ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(var(--accent-blue-rgb), 0.3);
    color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5b9bf7;
}

/* Firefox scrollbar */
@supports (scrollbar-width: thin) {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--accent-blue) var(--bg-primary);
    }
}

/* ---- Utility Classes ---- */
.hidden {
    display: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.honeypot-container {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.section-padding {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    z-index: 10;
}

.heading-accent {
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-weight: 500;
}

.section-subheading {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
    position: relative;
    z-index: 10;
}

.section-label {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Scroll Reveal ---- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.7s ease;
    filter: blur(3px);
    will-change: opacity, transform, filter;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0);
    filter: blur(0);
}

/* Direction-aware reveals — all use identical vertical movement to prevent grid misalignment */
.scroll-reveal[data-reveal-dir="left"],
.scroll-reveal[data-reveal-dir="right"],
.scroll-reveal[data-reveal-dir="up"],
.scroll-reveal[data-reveal-dir="scale"] {
    transform: translateY(30px);
}

/* Stagger delays — kept very tight so grid row items appear near-simultaneously */
.scroll-reveal[data-reveal-delay="1"] { transition-delay: 0.06s; }
.scroll-reveal[data-reveal-delay="2"] { transition-delay: 0.12s; }
.scroll-reveal[data-reveal-delay="3"] { transition-delay: 0.12s; }
.scroll-reveal[data-reveal-delay="4"] { transition-delay: 0.18s; }
.scroll-reveal[data-reveal-delay="5"] { transition-delay: 0.18s; }
.scroll-reveal[data-reveal-delay="6"] { transition-delay: 0.24s; }

/* Cyber scanner flash on reveal */
.scroll-reveal.revealed.scanner-flash {
    animation: cyberScannerFlash 0.6s ease-out;
}

@keyframes cyberScannerFlash {
    0% {
        box-shadow: inset 0 0 0 0 rgba(56, 189, 248, 0);
    }
    30% {
        box-shadow: inset 0 2px 0 0 rgba(56, 189, 248, 0.6),
                    0 0 20px rgba(56, 189, 248, 0.15);
    }
    100% {
        box-shadow: inset 0 0 0 0 rgba(56, 189, 248, 0),
                    0 0 0 rgba(56, 189, 248, 0);
    }
}

/* Section headings get a subtle glow pulse on reveal */
.section-heading.scroll-reveal.revealed {
    animation: headingGlowPulse 0.8s ease-out 0.2s both;
}

@keyframes headingGlowPulse {
    0% {
        text-shadow: 0 0 0 transparent;
    }
    40% {
        text-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
    }
    100% {
        text-shadow: 0 0 0 transparent;
    }
}

/* Cards get a slight scale entrance too */
.scroll-reveal .project-card,
.scroll-reveal .cert-card,
.scroll-reveal .casefile-card,
.scroll-reveal .blog-card,
.scroll-reveal .education-card,
.scroll-reveal .achievement-card,
.scroll-reveal .contact-card {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, opacity 0.5s ease;
}

/* ---- NAVBAR ---- */
#mainNavbar {
    background: var(--navbar-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-medium), box-shadow var(--transition-medium), background var(--transition-medium);
    padding: 0.75rem 0;
    z-index: 1050;
}

#mainNavbar.scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] #mainNavbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.brand-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none !important;
}

.brand-name {
    color: var(--text-primary);
}

.brand-dot {
    color: var(--accent-blue);
}

#mainNavbar .nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    transition: color var(--transition-fast);
    position: relative;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
    color: var(--accent-blue);
}

#mainNavbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 1px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: border-color var(--transition-medium), box-shadow var(--transition-medium), transform var(--transition-fast);
    padding: 0;
    position: relative;
}

.theme-toggle-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-amber);
    box-shadow: 0 0 16px rgba(var(--accent-amber-rgb), 0.35);
    transform: scale(1.08);
}

.theme-toggle-btn:hover::after {
    border-color: rgba(var(--accent-amber-rgb), 0.2);
    transform: scale(1.1);
}

/* --- Shared shape styles --- */
.theme-shape {
    position: absolute;
    inset: 0;
    margin: auto;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

/* --- CSS Moon (realistic crescent with craters) --- */
.moon-shape {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 40%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.18) 20%, transparent 21%),
        radial-gradient(circle at 60% 60%, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.14) 14%, transparent 15%),
        radial-gradient(circle at 50% 20%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.10) 10%, transparent 11%),
        radial-gradient(circle at 25% 65%, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.08) 8%, transparent 9%),
        radial-gradient(circle at 70% 30%, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.06) 7%, transparent 8%),
        linear-gradient(145deg, #f0f0f4 0%, #d8d8dc 40%, #c0c0c8 100%);
    box-shadow: 0 0 6px 1px rgba(224, 224, 230, 0.25);
    opacity: 1;
    transform: rotate(0deg) scale(1);
    top: 1px;
    left: -1px;
}

/* Crescent overlay — masks part of the moon */
.moon-shape::before {
    content: '';
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--bg-surface);
    top: -3px;
    right: -4px;
}

/* Moon glow on hover in dark mode */
html:not([data-theme="light"]) .theme-toggle-btn:hover .moon-shape {
    box-shadow: 0 0 10px 3px rgba(224, 224, 230, 0.35);
    animation: moonRock 2s ease-in-out infinite;
}

@keyframes moonRock {
    0%   { transform: rotate(0deg) scale(1); }
    25%  { transform: rotate(8deg) scale(1.06); }
    50%  { transform: rotate(-5deg) scale(1); }
    75%  { transform: rotate(5deg) scale(1.06); }
    100% { transform: rotate(0deg) scale(1); }
}

/* --- CSS Sun (circle + rays via box-shadow) --- */
.sun-shape {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-amber);
    box-shadow:
        0 0 0 2px var(--accent-amber),
        0 0 6px 1px rgba(var(--accent-amber-rgb), 0.3),
        0 -11px 0 -4px var(--accent-amber),
        0 11px 0 -4px var(--accent-amber),
        11px 0 0 -4px var(--accent-amber),
        -11px 0 0 -4px var(--accent-amber),
        8px -8px 0 -4.5px var(--accent-amber),
        -8px 8px 0 -4.5px var(--accent-amber),
        8px 8px 0 -4.5px var(--accent-amber),
        -8px -8px 0 -4.5px var(--accent-amber);
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* --- Dark mode: show moon, hide sun --- */
/* (default state — moon visible, sun hidden) */

/* --- Light mode: show sun, hide moon --- */
[data-theme="light"] .moon-shape {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .sun-shape {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* --- Click animation --- */
.theme-toggle-btn.theme-spinning {
    animation: btnPulseGlow 0.6s ease;
}

.theme-toggle-btn.theme-spinning .moon-shape,
.theme-toggle-btn.theme-spinning .sun-shape {
    animation: iconMorphSwap 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes btnPulseGlow {
    0%   { box-shadow: 0 0 0 0 rgba(var(--accent-amber-rgb), 0.4); }
    30%  { box-shadow: 0 0 20px 6px rgba(var(--accent-amber-rgb), 0.35); }
    60%  { box-shadow: 0 0 30px 10px rgba(var(--accent-blue-rgb), 0.25); }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes iconMorphSwap {
    0%   { transform: rotate(0deg) scale(1); opacity: 1; }
    25%  { transform: rotate(120deg) scale(0.4); opacity: 0.3; }
    45%  { transform: rotate(200deg) scale(0); opacity: 0; }
    55%  { transform: rotate(240deg) scale(0); opacity: 0; }
    75%  { transform: rotate(310deg) scale(0.6); opacity: 0.5; }
    90%  { transform: rotate(350deg) scale(1.15); opacity: 1; }
    100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

/* --- Light mode button border --- */
[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(var(--accent-amber-rgb), 0.3);
}

[data-theme="light"] .theme-toggle-btn:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 16px rgba(var(--accent-blue-rgb), 0.35);
}

[data-theme="light"] .theme-toggle-btn:hover::after {
    border-color: rgba(var(--accent-blue-rgb), 0.2);
}

/* Sun rays spin on hover in light mode */
[data-theme="light"] .theme-toggle-btn:hover .sun-shape {
    animation: sunRaysSpin 6s linear infinite;
}

@keyframes sunRaysSpin {
    from { transform: rotate(0deg) scale(1); }
    to   { transform: rotate(360deg) scale(1); }
}

[data-theme="light"] #mainNavbar {
    --navbar-bg: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .navbar-toggler-icon {
    filter: invert(1);
}

/* ---- HERO SECTION ---- */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--accent-blue-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-blue-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridFloat 20s linear infinite;
    z-index: 0;
}

@keyframes gridFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* SOC Dashboard Ambiance */
.soc-dashboard-ambiance {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    overflow: hidden;
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.5), transparent);
    mask-image: linear-gradient(to left, rgba(0,0,0,0.5), transparent);
}

[data-theme="light"] .soc-dashboard-ambiance {
    opacity: 0.04;
}

.soc-log-lines {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    animation: scrollLogs 30s linear infinite;
}

.log-line {
    padding: 3px 0;
    line-height: 1.6;
}

.log-level {
    font-weight: 500;
    padding: 0 4px;
    border-radius: 2px;
}

.log-info { color: var(--accent-blue); }
.log-warn { color: var(--accent-amber); }
.log-alert { color: #ef4444; }

@keyframes scrollLogs {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.hero-content {
    padding-top: 2rem;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.hero-name {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle-wrapper {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    min-height: 2rem;
}

.hero-subtitle-static {
    color: var(--text-secondary);
}

.hero-subtitle-typed {
    color: var(--accent-amber);
    font-weight: 600;
}

.typed-cursor {
    color: var(--accent-amber);
    animation: cursorBlink 1s step-end infinite;
    font-weight: 300;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.btn-cta {
    padding: 0.65rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-medium);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

.btn-primary:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 20px rgba(var(--accent-blue-rgb), 0.4);
    transform: translateY(-2px);
}

.btn-outline-amber {
    color: var(--accent-amber);
    border: 2px solid var(--accent-amber);
    background: transparent;
}

.btn-outline-amber:hover {
    background: var(--accent-amber);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(var(--accent-amber-rgb), 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

.btn-outline-primary:hover {
    background: var(--accent-blue) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.social-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    border: 1.5px solid var(--border-color);
    z-index: 1;
}

/* Icon must sit above the ripple layer */
.social-icon-link i {
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
}

/* Logo images inside social circles */
.social-icon-link .social-logo {
    position: relative;
    z-index: 3;
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.7);
}

.social-icon-link:hover .social-logo {
    filter: brightness(1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

/* Make logos white/bright on hover to match brand fill */
.social-linkedin:hover .social-logo {
    filter: brightness(10) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.social-github:hover .social-logo {
    filter: brightness(10) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.social-contact:hover .social-logo {
    filter: brightness(0) drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
}

/* Glow ring behind icon — appears on hover */
.social-icon-link::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: transparent;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.8);
}

.social-icon-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Ripple element for click animation */
.social-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.social-icon-link.clicked .social-ripple {
    animation: socialRippleOut 0.6s ease-out forwards;
}

/* Tooltip label — hidden */
.social-tooltip {
    display: none;
}

/* (tooltip removed) */

/* --- Base hover (shared) --- */
.social-icon-link:hover {
    transform: translateY(-5px) scale(1.12);
    border-color: transparent;
}

.social-icon-link:active {
    transform: translateY(-2px) scale(0.95);
    transition-duration: 0.1s;
}

/* --- LinkedIn Brand --- */
.social-linkedin:hover {
    background: #0077B5;
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(0, 119, 181, 0.45), 0 0 15px rgba(0, 119, 181, 0.2);
}
.social-linkedin::before {
    background: radial-gradient(circle, rgba(0, 119, 181, 0.3), transparent 70%);
}

/* --- GitHub Brand --- */
.social-github:hover {
    background: #6e5494;
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(110, 84, 148, 0.45), 0 0 15px rgba(110, 84, 148, 0.2);
}
.social-github::before {
    background: radial-gradient(circle, rgba(110, 84, 148, 0.3), transparent 70%);
}

/* --- Contact/Email Brand --- */
.social-contact:hover {
    background: var(--accent-amber);
    color: #0a0e1a;
    box-shadow: 0 6px 25px rgba(var(--accent-amber-rgb), 0.45), 0 0 15px rgba(var(--accent-amber-rgb), 0.2);
}
.social-contact::before {
    background: radial-gradient(circle, rgba(var(--accent-amber-rgb), 0.3), transparent 70%);
}

/* Icon bounce on hover */
.social-icon-link:hover i,
.social-icon-link:hover .social-logo {
    animation: socialIconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Keyframes --- */
@keyframes socialRippleOut {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes socialIconBounce {
    0% { transform: scale(1); }
    30% { transform: scale(0.8) rotate(-8deg); }
    60% { transform: scale(1.15) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Hero Photo */
.hero-photo-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo-wrapper {
    position: relative;
    display: inline-block;
    width: 300px;
    height: 300px;
}

.photo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-blue-rgb), 0.15);
}

.ring-1 {
    inset: -15px;
    animation: ringPulse 3s infinite ease-in-out;
}

.ring-2 {
    inset: -35px;
    animation: ringPulse 3s infinite ease-in-out 0.5s;
    border-color: rgba(var(--accent-blue-rgb), 0.1);
}

.ring-3 {
    inset: -55px;
    animation: ringPulse 3s infinite ease-in-out 1s;
    border-color: rgba(var(--accent-blue-rgb), 0.05);
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: 0.5; }
}

.profile-photo-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(var(--accent-blue-rgb), 0.3);
    box-shadow: 0 0 40px rgba(var(--accent-blue-rgb), 0.2);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: default;
}

.profile-photo-container::after {
    content: '\00A9 Pratik Anil Pawar';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.15);
    font-family: var(--font-mono);
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-indicator-inner {
    animation: scrollBounce 2s infinite;
    color: var(--text-tertiary);
    font-size: 1.5rem;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ---- HIRE ME SECTION ---- */
.hire-me-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.hire-me-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.hire-me-list {
    list-style: none;
    padding: 0;
}

.hire-me-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.hire-me-list li i {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.core-tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tool-badge:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--card-glow);
}

.tool-badge i {
    color: var(--accent-blue);
}

/* ---- TERMINAL ABOUT ME ---- */
.terminal-window {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.terminal-header {
    background: #1a1a2e;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="light"] .terminal-header {
    background: #2d2d3f;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.terminal-title {
    margin-left: 0.5rem;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.terminal-body {
    background: #0d1117;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    min-height: 280px;
    color: var(--accent-green);
}

[data-theme="light"] .terminal-body {
    background: #1a1a2e;
    color: var(--accent-green);
}

.terminal-prompt {
    color: var(--accent-blue);
    font-weight: 500;
    margin-right: 0.5rem;
    -webkit-user-select: none;
    user-select: none;
}

.terminal-command {
    color: #e2e8f0;
}

.terminal-key {
    display: inline-block;
    min-width: 160px;
    color: var(--accent-amber);
    -webkit-user-select: none;
    user-select: none;
}

.terminal-val {
    color: var(--accent-green);
}

.terminal-row {
    padding: 1px 0;
}

.terminal-status-text {
    color: var(--accent-green);
}

.terminal-cursor-blink {
    animation: cursorBlink 1s step-end infinite;
    color: var(--accent-green);
}

.about-text-fallback {
    max-width: 700px;
    margin: 2rem auto 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
}

/* ---- SKILLS SECTION ---- */
.radar-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#radarChart {
    max-width: 100%;
    height: auto;
}

.skill-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-medium);
}

.skill-card:hover {
    border-color: rgba(var(--accent-blue-rgb), 0.3);
    box-shadow: var(--card-glow-hover);
    transform: translateY(-3px);
}

.skill-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-card-title i {
    font-size: 1.1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* ---- MITRE ATT&CK HEATMAP ---- */
.mitre-heatmap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mitre-cell {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 0.75rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all var(--transition-medium);
    position: relative;
    color: var(--text-tertiary);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mitre-cell.active {
    background: rgba(var(--accent-blue-rgb), 0.12);
    border-color: rgba(var(--accent-blue-rgb), 0.4);
    color: var(--accent-blue);
}

.mitre-cell.active:hover {
    background: rgba(var(--accent-blue-rgb), 0.2);
    box-shadow: 0 0 15px rgba(var(--accent-blue-rgb), 0.3);
    transform: translateY(-2px);
}

.mitre-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 400;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mitre-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--accent-blue);
}

.mitre-cell.active:hover .mitre-tooltip {
    opacity: 1;
}

/* ---- CERTIFICATIONS ---- */
.cert-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    transition: all var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-card:hover {
    border-color: rgba(var(--accent-blue-rgb), 0.3);
    box-shadow: var(--card-glow-hover);
    transform: translateY(-4px);
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.cert-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-badge-completed {
    background: rgba(var(--accent-green-rgb), 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(var(--accent-green-rgb), 0.3);
}

.cert-badge-progress {
    background: rgba(var(--accent-amber-rgb), 0.12);
    color: var(--accent-amber);
    border: 1px solid rgba(var(--accent-amber-rgb), 0.3);
    animation: progressPulse 2s infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ---- PROJECTS ---- */
.project-showcase {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.project-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue-amber);
}

.project-showcase:hover {
    box-shadow: 0 8px 25px rgba(var(--accent-blue-rgb), 0.2);
    z-index: 2;
}

.project-showcase-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-showcase-title i {
    color: var(--accent-amber);
}

.project-showcase-subtitle {
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(var(--accent-blue-rgb), 0.1);
    border: 1px solid rgba(var(--accent-blue-rgb), 0.25);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.mitre-tag {
    background: rgba(var(--accent-amber-rgb), 0.1);
    border-color: rgba(var(--accent-amber-rgb), 0.25);
    color: var(--accent-amber);
}

/* Before/After metric visual */
.metric-visual {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.metric-visual-title {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.metric-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 120px;
    font-weight: 500;
}

.metric-bar-track {
    flex: 1;
    height: 28px;
    background: rgba(var(--accent-blue-rgb), 0.1);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    transition: width 1.5s ease-out;
}

.metric-bar-fill.bar-before {
    background: var(--text-tertiary);
    width: 0;
}

.metric-bar-fill.bar-after {
    background: var(--accent-amber);
    width: 0;
}

.metric-bar-fill.animated.bar-before {
    width: 100%;
}

.metric-bar-fill.animated.bar-after {
    width: 50%;
}

.metric-reduction {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-amber);
}

/* Architecture diagram placeholder */
.arch-placeholder {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    color: var(--text-tertiary);
    margin: 1rem 0;
}

.arch-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* Coming Soon project cards */
.project-card-coming-soon {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    height: 100%;
}

.coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: var(--radius-md);
}

[data-theme="light"] .coming-soon-overlay {
    background: rgba(241, 245, 249, 0.7);
}

.coming-soon-overlay i {
    font-size: 2rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.coming-soon-overlay span {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-card-desc {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ---- CASEFILES ---- */
.casefile-card {
    background: var(--bg-surface);
    border: 2px solid rgba(var(--accent-amber-rgb), 0.25);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.casefile-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.casefile-card-title i {
    color: var(--accent-amber);
}

.casefile-steps {
    list-style: none;
    padding: 0;
}

.casefile-steps li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.casefile-steps li i {
    color: var(--accent-amber);
    font-size: 0.75rem;
}

.casefile-coming-soon {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.7);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

[data-theme="light"] .casefile-coming-soon {
    background: rgba(241, 245, 249, 0.75);
}

.casefile-coming-soon i {
    font-size: 2.5rem;
    color: var(--accent-amber);
    margin-bottom: 0.5rem;
}

.casefile-coming-soon span {
    color: var(--accent-amber);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- ALERT TRIAGE DEMO ---- */
.triage-demo-widget {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.triage-step {
    display: none;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--accent-blue);
    background: var(--bg-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    animation: fadeSlideIn 0.4s ease forwards;
}

.triage-step.visible {
    display: block;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

.triage-step-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.triage-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.triage-step-title {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.triage-step-content {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding-left: 2.15rem;
    line-height: 1.65;
}

.triage-step.verdict {
    border-left-color: var(--accent-amber);
}

.triage-step.verdict .triage-step-number {
    background: var(--accent-amber);
}

.triage-step.verdict .triage-step-title {
    color: var(--accent-amber);
}

/* ---- EXPERIENCE TIMELINE ---- */
.experience-timeline {
    max-width: 700px;
    margin: 2rem auto 0;
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.55rem;
    top: 0.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 0.9rem;
    z-index: 2;
}

.timeline-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-item-period {
    font-size: 0.8rem;
    color: var(--accent-amber);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-item-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ---- EDUCATION ---- */
.edu-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    transition: all var(--transition-medium);
    text-align: center;
}

.edu-card:hover {
    border-color: rgba(var(--accent-blue-rgb), 0.3);
    box-shadow: var(--card-glow-hover);
    transform: translateY(-3px);
}

.edu-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.edu-degree {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.edu-institution {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.edu-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 0.25rem;
}

.edu-period {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ---- ACHIEVEMENT ---- */
.achievement-card {
    background: var(--bg-surface);
    border: 1px solid rgba(var(--accent-amber-rgb), 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 600px;
    text-align: center;
    transition: all var(--transition-medium);
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(var(--accent-amber-rgb), 0.2);
}

.achievement-icon {
    font-size: 3rem;
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.achievement-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.achievement-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---- BLOG ---- */
.blog-placeholder-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.blog-placeholder-card i {
    font-size: 3rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    display: block;
}

.blog-placeholder-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    transition: all var(--transition-medium);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-glow-hover);
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.blog-card-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

/* ---- CONTACT ---- */
.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    display: block;
}

.contact-card:hover {
    border-color: rgba(var(--accent-blue-rgb), 0.3);
    box-shadow: var(--card-glow-hover);
    transform: translateY(-4px);
}

/* Clickable cards get cursor pointer + subtle arrow hint */
.contact-card-clickable {
    cursor: pointer;
    position: relative;
}

.contact-card-clickable:hover {
    border-color: var(--accent-blue);
}

.contact-card-clickable:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

.contact-card-clickable .contact-card-value span {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.contact-card-icon {
    font-size: 1.75rem;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
}

.contact-card-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Clickable cards AND email-reveal card — make label the primary text */
.contact-card-clickable .contact-card-label,
.email-reveal-card .contact-card-label {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: 0.8px;
    font-weight: 700;
}

/* Override browser link/visited color on clickable contact cards */
a.contact-card-clickable .contact-card-label,
a.contact-card-clickable:visited .contact-card-label,
a.contact-card-clickable:link .contact-card-label {
    color: var(--text-primary);
}

.contact-card-value {
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ── EMAIL REVEAL CARD ─────────────────────────────────────── */
.email-reveal-card {
    position: relative;
}

/* Eye button — hidden by default, slides in on card hover */
.eye-reveal-btn {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(var(--accent-blue-rgb), 0.1);
    border: 1px solid rgba(var(--accent-blue-rgb), 0.3);
    color: var(--accent-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5) translateY(-6px);
    transition: opacity 0.28s ease,
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    line-height: 1;
}

/* Show eye on card hover */
.email-reveal-card:hover .eye-reveal-btn {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

/* ── EYE ANIMATIONS ──────────────────────────────────────── */

/* Opening burst: scale up → overshoot → settle + electric glow radiates */
@keyframes eyeOpenBurst {
    0%   {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
    25%  {
        transform: scale(1.5) rotate(-8deg);
        box-shadow: 0 0 22px 4px rgba(56, 189, 248, 0.9),
                    0 0 50px 10px rgba(56, 189, 248, 0.45);
    }
    55%  {
        transform: scale(0.82) rotate(5deg);
        box-shadow: 0 0 14px 2px rgba(56, 189, 248, 0.7);
    }
    75%  {
        transform: scale(1.12) rotate(-2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 14px 3px rgba(56, 189, 248, 0.55),
                    0 0 30px 6px rgba(56, 189, 248, 0.2);
    }
}

.eye-reveal-btn.eye-opening {
    animation: eyeOpenBurst 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Idle glow pulse while eye is open */
@keyframes eyeOpenGlow {
    0%, 100% {
        box-shadow: 0 0 12px 2px rgba(56, 189, 248, 0.55),
                    0 0 26px 4px rgba(56, 189, 248, 0.2);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(56, 189, 248, 0.85),
                    0 0 44px 10px rgba(56, 189, 248, 0.35);
    }
}

.eye-reveal-btn.eye-open {
    color: var(--accent-blue);
    animation: eyeOpenGlow 1.6s ease-in-out infinite;
}

/* Closing animation: squish + spin + implode */
@keyframes eyeCloseBurst {
    0%   {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 14px 3px rgba(56, 189, 248, 0.55);
    }
    20%  {
        transform: scale(1.2) rotate(10deg);
        box-shadow: 0 0 22px 6px rgba(255, 165, 0, 0.7);
    }
    50%  {
        transform: scale(0.65) rotate(-12deg);
        box-shadow: 0 0 8px 2px rgba(255, 165, 0, 0.4);
    }
    75%  {
        transform: scale(1.06) rotate(4deg);
        box-shadow: none;
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: none;
    }
}

.eye-reveal-btn.eye-closing {
    animation: eyeCloseBurst 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── EMAIL TEXT REVEAL ───────────────────────────────────── */
.email-text-reveal {
    font-size: 0.8rem;
    font-family: 'Courier New', Courier, monospace;
    color: var(--accent-blue);
    font-weight: 700;
    word-break: break-all;
    min-height: 1.3em;
    margin-top: 0.55rem;
    opacity: 0;
    transform: translateY(5px) scale(0.95);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
    letter-spacing: 0.02em;
    /* Prevent text selection / copying */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Text slides in when revealed */
.email-text-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Decrypt flash: multi-colour glitch as text settles */
@keyframes emailDecryptFlash {
    0%   {
        text-shadow: 0 0 0 transparent;
        color: rgba(56, 189, 248, 0.25);
        letter-spacing: 0.3em;
    }
    35%  {
        text-shadow: 3px 0 10px rgba(255, 50, 50, 0.7),
                     -3px 0 10px rgba(56, 189, 248, 0.7);
        color: #fff;
        letter-spacing: 0.08em;
    }
    65%  {
        text-shadow: 0 0 18px rgba(56, 189, 248, 0.9),
                     0 0 6px rgba(255, 255, 255, 0.5);
        color: #fff;
        letter-spacing: 0.03em;
    }
    100% {
        text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
        color: var(--accent-blue);
        letter-spacing: 0.02em;
    }
}

.email-text-reveal.decrypting {
    animation: emailDecryptFlash 0.75s ease forwards;
}

/* Encrypt glitch: displacement flicker before vanishing */
@keyframes emailEncryptGlitch {
    0%   {
        clip-path: inset(0 0 0 0);
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    18%  {
        clip-path: inset(15% 0 0 0);
        transform: translateX(-4px);
        color: rgba(255, 80, 80, 0.9);
    }
    36%  {
        clip-path: inset(0 25% 0 0);
        transform: translateX(4px) skewX(-4deg);
    }
    54%  {
        clip-path: inset(0 0 30% 0);
        transform: translateX(-3px);
        opacity: 0.7;
    }
    72%  {
        clip-path: inset(0 0 0 55%);
        transform: translateX(2px) skewX(3deg);
        opacity: 0.4;
    }
    90%  {
        clip-path: inset(0 95% 0 0);
        opacity: 0.15;
    }
    100% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
        transform: translateX(0);
    }
}

.email-text-reveal.encrypting {
    animation: emailEncryptGlitch 0.65s ease forwards;
}

/* ── COUNTDOWN BAR ────────────────────────────────────────── */
.email-countdown {
    height: 2px;
    background: rgba(var(--accent-blue-rgb), 0.15);
    border-radius: 2px;
    margin-top: 0.45rem;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-countdown.active {
    opacity: 1;
}

.email-countdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-amber));
    border-radius: 2px;
    transition: width 0.1s linear;
    width: 100%;
}

/* ---- RESUME MODAL ---- */
.resume-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.resume-modal-content .modal-header {
    border-bottom-color: var(--border-color);
}

.resume-modal-content .modal-body {
    position: relative;
    min-height: 400px;
}

.resume-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    color: var(--text-tertiary);
}

.resume-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.resume-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: default;
}

#resumeContent {
    text-align: center;
}

#resumeContent img {
    max-width: 100%;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    border: 1px solid var(--border-color);
    z-index: 1;
    overflow: visible;
}

/* Glow ring behind footer social icons — mirrors hero style */
.footer-social a::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: transparent;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.8);
}
.footer-social a:hover::before {
    opacity: 1;
    transform: scale(1);
}
.footer-social a.social-linkedin::before {
    background: radial-gradient(circle, rgba(0, 119, 181, 0.3), transparent 70%);
}
.footer-social a.social-github::before {
    background: radial-gradient(circle, rgba(110, 84, 148, 0.3), transparent 70%);
}
.footer-social a.social-contact::before {
    background: radial-gradient(circle, rgba(var(--accent-amber-rgb), 0.3), transparent 70%);
}

/* Ripple element inside footer social buttons */
.footer-social a .social-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}
.footer-social a.clicked .social-ripple {
    animation: socialRippleOut 0.6s ease-out forwards;
}

/* Logo z-index above ripple */
.footer-social a .social-logo {
    position: relative;
    z-index: 3;
}

.footer-social a:hover {
    transform: translateY(-4px) scale(1.1);
    border-color: transparent;
}

.footer-social a.social-linkedin:hover {
    background: #0077B5;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 119, 181, 0.4);
}
.footer-social a.social-linkedin:hover .social-logo {
    filter: brightness(10) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.footer-social a.social-github:hover {
    background: #6e5494;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(110, 84, 148, 0.4);
}
.footer-social a.social-github:hover .social-logo {
    filter: brightness(10) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.footer-social a.social-contact:hover {
    background: var(--accent-amber);
    color: #0a0e1a;
    box-shadow: 0 4px 18px rgba(var(--accent-amber-rgb), 0.4);
}
.footer-social a.social-contact:hover .social-logo {
    filter: brightness(0) drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
}

.footer-social a:hover i,
.footer-social a:hover .social-logo {
    animation: socialIconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

.footer-meta {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Dark mode: Electric cyan */
[data-theme="dark"] .back-to-top,
.back-to-top {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0a0e1a;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4),
                0 0 40px rgba(56, 189, 248, 0.1);
}

/* Light mode: Vibrant coral-orange */
[data-theme="light"] .back-to-top {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4),
                0 0 40px rgba(249, 115, 22, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: backToTopFloat 3s ease-in-out infinite;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    animation: none;
}

[data-theme="dark"] .back-to-top:hover,
.back-to-top:hover {
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.55),
                0 0 50px rgba(56, 189, 248, 0.15);
}

[data-theme="light"] .back-to-top:hover {
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.55),
                0 0 50px rgba(249, 115, 22, 0.15);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.95);
    transition-duration: 0.1s;
}

@keyframes backToTopFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ---- PRINT STYLES ---- */
/* ---- GLOBAL MAGNETIC HOVER EFFECT ---- */
/* Subtle 3D tilt on cards when hovered — cybersecurity "data panel" feel */
.tilt-hover {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.tilt-hover:hover {
    box-shadow: var(--card-glow-hover);
}

/* Smooth glow follow on interactive elements */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-blue-rgb), 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.glow-on-hover:hover::after {
    opacity: 1;
}

/* Hover lift for all major cards (project cards, cert cards, etc.) */
.project-card,
.cert-card,
.casefile-card,
.blog-card,
.education-card,
.achievement-card,
.contact-card,
.hire-me-card,
.experience-item {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.project-card:hover,
.cert-card:hover,
.casefile-card:hover,
.blog-card:hover,
.education-card:hover,
.achievement-card:hover,
.contact-card:hover,
.experience-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-glow-hover);
}

/* Nav links — subtle underline slide animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link.active::after {
    width: 70%;
    background: var(--accent-amber);
}

/* CTA buttons — enhanced pulse on hover */
.btn-cta {
    position: relative;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-cta:hover::after {
    opacity: 1;
}

/* ============================================
   CYBER SCROLL PROGRESS INDICATOR
   ============================================ */
.scroll-progress-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        var(--accent-blue),
        #38bdf8,
        var(--accent-amber),
        #38bdf8,
        var(--accent-blue));
    background-size: 300% 100%;
    animation: progressGradientShift 3s linear infinite;
    transition: width 0.15s ease-out;
    border-radius: 0 2px 2px 0;
}

.scroll-progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 3px;
    background: radial-gradient(ellipse at right, rgba(56, 189, 248, 0.8), transparent);
    filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scroll-progress-track.active .scroll-progress-glow {
    opacity: 1;
}

@keyframes progressGradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ============================================
   SECTION REVEAL GLOW (scan line across section)
   ============================================ */
section.section-padding {
    position: relative;
}

section.section-padding::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(56, 189, 248, 0.5) 40%,
        rgba(56, 189, 248, 0.8) 50%,
        rgba(56, 189, 248, 0.5) 60%,
        transparent 100%);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: none;
}

section.section-padding.scan-active::before {
    animation: sectionScanLine 1s ease-out forwards;
}

@keyframes sectionScanLine {
    0% {
        left: -100%;
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Subtle ambient glow when section enters view */
section.section-padding.glow-active {
    animation: sectionAmbientGlow 1.5s ease-out;
}

@keyframes sectionAmbientGlow {
    0% {
        box-shadow: inset 0 0 0 rgba(56, 189, 248, 0);
    }
    20% {
        box-shadow: inset 0 0 60px rgba(56, 189, 248, 0.03);
    }
    100% {
        box-shadow: inset 0 0 0 rgba(56, 189, 248, 0);
    }
}

@media print {
    #contact,
    .resume-modal-content,
    #resumeModal,
    .back-to-top,
    .soc-dashboard-ambiance,
    .hero-grid-bg,
    #mainNavbar {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ---- RESPONSIVE ---- */

/* <= 1199px */
@media (max-width: 1199.98px) {
    .hero-photo-wrapper {
        width: 260px;
        height: 260px;
    }
    .profile-photo-container {
        width: 260px;
        height: 260px;
    }
}

/* Tablet: <= 991px */
@media (max-width: 991.98px) {
    .hero-content {
        text-align: center;
        padding-top: 1rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
        display: flex;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-photo-col {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-photo-wrapper {
        width: 220px;
        height: 220px;
    }

    .profile-photo-container {
        width: 220px;
        height: 220px;
    }

    .navbar-collapse {
        background: var(--navbar-bg);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.5rem;
        border: 1px solid var(--border-color);
    }

    .section-padding {
        padding: 4rem 0;
    }

    .hire-me-card {
        padding: 1.5rem;
    }

    .mitre-heatmap {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

/* Mobile: <= 767px */
@media (max-width: 767.98px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-subtitle-wrapper {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 1.6rem;
    }

    .hero-photo-wrapper {
        width: 180px;
        height: 180px;
    }

    .profile-photo-container {
        width: 180px;
        height: 180px;
    }

    .terminal-body {
        font-size: 0.72rem;
        padding: 1rem;
    }

    .terminal-key {
        min-width: 110px;
    }

    .project-showcase {
        padding: 1.5rem;
    }

    .triage-demo-widget {
        padding: 1.25rem;
    }

    .hire-me-card {
        padding: 1.25rem;
    }

    .experience-timeline {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -2rem;
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .mitre-heatmap {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
        gap: 0.5rem;
    }

    .mitre-cell {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
        min-height: 55px;
    }

    .metric-bar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .metric-label {
        min-width: auto;
    }

    .metric-bar-track {
        width: 100%;
    }
}

/* Small mobile: <= 575px */
@media (max-width: 575.98px) {
    .hero-name {
        font-size: 1.65rem;
    }

    .hero-cta .btn-cta {
        font-size: 0.85rem;
        padding: 0.55rem 1.1rem;
    }

    .hero-cta .me-3 {
        margin-right: 0.5rem !important;
    }

    .terminal-key {
        min-width: 85px;
        font-size: 0.7rem;
    }

    .terminal-val {
        font-size: 0.7rem;
    }

    .mitre-tooltip {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   REDUCED MOTION — Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    .scroll-reveal.revealed.scanner-flash {
        animation: none !important;
    }
    .section-heading.scroll-reveal.revealed {
        animation: none !important;
    }
    section.section-padding::before {
        display: none !important;
    }
    section.section-padding.glow-active {
        animation: none !important;
    }
    .scroll-progress-fill {
        animation: none !important;
    }
    #scrollParticleCanvas {
        display: none !important;
    }
}

/* ============================================
   CERTIFICATION VERIFY HINT
   ============================================ */
.cert-verify-hint {
    font-size: 0.75rem;
    color: var(--accent-blue, #3b82f6);
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cert-card:hover .cert-verify-hint {
    opacity: 1;
}
.cert-card-link:focus .cert-verify-hint {
    opacity: 1;
}

/* ============================================
   RESUME CANVAS PROTECTION
   ============================================ */
.resume-page-wrapper {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-touch-callout: none;
    user-select: none !important;
}
.resume-page-wrapper canvas {
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}
#resumeContent {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
/* Discourage print/screenshot of resume */
@media print {
    #resumeModal,
    #resumeModalBody,
    #resumeContent,
    .resume-page-wrapper {
        display: none !important;
    }
}

/* ============================================
   ACHIEVEMENT VERIFY HINT
   ============================================ */
.achievement-verify-hint {
    font-size: 0.75rem;
    color: var(--accent-blue, #3b82f6);
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.achievement-card:hover .achievement-verify-hint {
    opacity: 1;
}
.achievement-card-link:focus .achievement-verify-hint {
    opacity: 1;
}

/* ============================================
   CERTIFICATION & ACHIEVEMENT VERIFY HINTS
   ============================================ */
.cert-verify-hint,
.achievement-verify-hint {
    font-size: 0.75rem;
    color: var(--accent-blue, #3b82f6);
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cert-card:hover .cert-verify-hint,
.cert-card-link:focus .cert-verify-hint,
.achievement-card:hover .achievement-verify-hint,
.achievement-card-link:focus .achievement-verify-hint {
    opacity: 1;
}

/* ============================================
   RESUME CANVAS PROTECTION
   ============================================ */
.resume-page-wrapper {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none;
}
.resume-page-wrapper canvas {
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}
@media print {
    #resumeModal,
    #resumeModalBody,
    #resumeContent,
    .resume-page-wrapper {
        display: none !important;
    }
}
