/* ==========================================================================
   Cybersecurity & Futuristic Portfolio Theme Stylesheet
   Designed for: Gokul Krishna G B
   Theme: Cyberpunk Terminal / Cyber Intelligence Dashboard
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS custom variables & fonts
   -------------------------------------------------------------------------- */
:root {
    --bg-dark: hsl(230, 25%, 5%);
    --bg-dark-secondary: hsl(230, 20%, 8%);
    --bg-card: rgba(14, 16, 27, 0.55);
    --bg-header: rgba(10, 11, 16, 0.75);
    --bg-cyber-card: rgba(12, 14, 24, 0.75);
    --border-color: rgba(0, 240, 255, 0.15);
    --border-color-glow: rgba(0, 240, 255, 0.3);
    --glass-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
    
    /* Neon Palettes */
    --neon-green: hsl(110, 100%, 53%);
    --neon-green-dim: hsl(110, 100%, 53%, 0.3);
    --neon-green-rgb: 57, 255, 20;
    --neon-cyan: hsl(185, 100%, 50%);
    --neon-cyan-dim: hsl(185, 100%, 50%, 0.3);
    --neon-cyan-rgb: 0, 240, 255;
    --neon-purple: hsl(285, 100%, 50%);
    --neon-purple-dim: hsl(285, 100%, 50%, 0.3);
    --neon-purple-rgb: 173, 0, 255;
    --neon-red: hsl(0, 100%, 60%);
    --neon-red-rgb: 255, 0, 95;
    --neon-yellow: hsl(50, 100%, 55%);
    
    /* Text Color variables */
    --text-primary: hsl(220, 15%, 95%);
    --text-secondary: hsl(220, 10%, 70%);
    --text-muted: hsl(220, 8%, 45%);
    
    /* Glow Shadows */
    --glow-green: 0 0 10px hsl(110, 100%, 53%, 0.45), 0 0 20px hsl(110, 100%, 53%, 0.2);
    --glow-cyan: 0 0 10px hsl(185, 100%, 50%, 0.45), 0 0 20px hsl(185, 100%, 50%, 0.2);
    --glow-purple: 0 0 10px hsl(285, 100%, 50%, 0.45), 0 0 20px hsl(285, 100%, 50%, 0.2);
    --glow-red: 0 0 10px hsl(0, 100%, 60%, 0.45);
    
    /* Font suites */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-header: 'Syne', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body.light-theme {
    --bg-dark: hsl(230, 25%, 96%);
    --bg-dark-secondary: hsl(230, 20%, 92%);
    --bg-card: rgba(255, 255, 255, 0.55);
    --bg-header: rgba(240, 242, 245, 0.85);
    --bg-cyber-card: rgba(255, 255, 255, 0.65);
    --border-color: rgba(0, 150, 255, 0.2);
    --border-color-glow: rgba(0, 150, 255, 0.45);
    --glass-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    
    /* Neon Palettes adapted for light backgrounds */
    --neon-green: hsl(110, 85%, 35%);
    --neon-green-dim: hsl(110, 85%, 35%, 0.15);
    --neon-green-rgb: 57, 204, 20;
    --neon-cyan: hsl(190, 95%, 40%);
    --neon-cyan-dim: hsl(190, 95%, 40%, 0.2);
    --neon-cyan-rgb: 0, 150, 255;
    --neon-purple: hsl(285, 80%, 45%);
    --neon-purple-dim: hsl(285, 80%, 45%, 0.2);
    --neon-purple-rgb: 160, 0, 220;
    --neon-red: hsl(0, 80%, 42%);
    --neon-red-rgb: 220, 0, 80;
    --neon-yellow: hsl(45, 85%, 40%);
    
    /* Text Color variables */
    --text-primary: hsl(230, 25%, 12%);
    --text-secondary: hsl(230, 15%, 32%);
    --text-muted: hsl(230, 10%, 50%);
    
    /* Glow Shadows adapted for light mode */
    --glow-green: 0 0 8px hsl(110, 85%, 35%, 0.25), 0 2px 10px rgba(0, 0, 0, 0.05);
    --glow-cyan: 0 0 8px hsl(190, 95%, 40%, 0.25), 0 2px 10px rgba(0, 0, 0, 0.05);
    --glow-purple: 0 0 8px hsl(285, 80%, 45%, 0.25), 0 2px 10px rgba(0, 0, 0, 0.05);
    --glow-red: 0 0 8px hsl(0, 80%, 42%, 0.25);
}

/* --------------------------------------------------------------------------
   1. Base Reset & Layout Properties
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: transparent;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
}

/* Base Typographic styling */
h1, h2, h3, h4, h5, h6, .glitch-text, .logo-text, .tab-btn, .progress-tab-btn {
    font-family: var(--font-header);
    letter-spacing: 0.5px;
}

/* Custom Webkit Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-secondary);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* Foreground Container styling */
main {
    position: relative;
    z-index: 1;
}

section {
    position: relative;
}

/* Matrix Background Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.38;
    transition: opacity var(--transition-slow);
}

body.light-theme #matrix-canvas {
    opacity: 0.15;
}

/* Global Cursor Spotlight Tracker */
.cursor-glow-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--neon-cyan-rgb), 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.light-theme .cursor-glow-spotlight {
    background: radial-gradient(circle, rgba(var(--neon-cyan-rgb), 0.14) 0%, transparent 70%);
}

/* Common Glassmorphism Container with cursor spotlight hover overlay */
.glass-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 60%), var(--bg-card);
    backdrop-filter: blur(30px) saturate(210%);
    -webkit-backdrop-filter: blur(30px) saturate(210%);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), var(--glass-specular);
    border-radius: 14px;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(var(--neon-cyan-rgb), 0.12),
        transparent 40%
    );
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-container:hover::before {
    opacity: 1;
}

body.light-theme .glass-container::before {
    background: radial-gradient(
        600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(var(--neon-cyan-rgb), 0.08),
        transparent 40%
    );
}

.glass-container > * {
    position: relative;
    z-index: 1;
}

.glass-container:hover {
    border-color: var(--border-color-glow);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.25), var(--glass-specular);
}

body.light-theme .glass-container:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.06), var(--glass-specular);
}

/* Grid helper */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Text Highlights & Helper Utilities */
.highlight {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
}

.text-glow-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.text-glow-green {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

.success-text {
    color: var(--neon-green);
}

.percent-glow {
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    font-weight: bold;
}

.hidden {
    display: none !important;
}

/* Section Header Typography */
.section-padding {
    padding: 100px 0;
}

.section-header {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-number {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-size: 1.2rem;
    text-shadow: var(--glow-cyan);
}

.section-header h2 {
    font-family: var(--font-main);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-cyan-dim), transparent);
}

/* --------------------------------------------------------------------------
   2. Header Navigation
   -------------------------------------------------------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: var(--glow-green);
    animation: pulse 2s infinite;
}

#nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}



/* Mobile Toggle menu button */
.nav-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* --------------------------------------------------------------------------
   3. Hero Section & Cyber Terminal UI
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.security-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-shadow: var(--glow-cyan);
}

/* Glitch Title Text Effect */
.glitch-text {
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 1px;
    margin-bottom: 10px;
    white-space: nowrap;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch-text::before {
    left: 2px;
    color: var(--neon-red);
    -webkit-text-fill-color: var(--neon-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    color: var(--neon-cyan);
    -webkit-text-fill-color: var(--neon-cyan);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.subtitle-text {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.bio-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Badges / Milestones Container */
.milestones {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.milestone-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.milestone-badge.green-badge {
    border-color: rgba(57, 255, 20, 0.25);
}
.milestone-badge.green-badge:hover {
    border-color: var(--neon-green);
    box-shadow: var(--glow-green);
}

.milestone-badge.cyan-badge {
    border-color: rgba(0, 240, 255, 0.25);
}
.milestone-badge.cyan-badge:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.badge-title {
    color: var(--text-muted);
}

.badge-value {
    font-weight: 700;
}

.green-badge .badge-value {
    color: var(--neon-green);
}

.cyan-badge .badge-value {
    color: var(--neon-cyan);
}

/* Hacker Terminal Interface with high-end CRT effects */
.hacker-terminal {
    background: rgba(5, 6, 10, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-mono);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
}

/* Subtle CRT monitor scanlines overlay */
.hacker-terminal::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%), linear-gradient(90deg, rgba(0, 240, 255, 0.02), rgba(57, 255, 20, 0.01), rgba(189, 0, 255, 0.02));
    z-index: 5;
    background-size: 100% 3px, 4px 100%;
    pointer-events: none;
    opacity: 0.85;
}

/* Dynamic CRT scanline sweep light */
.hacker-terminal::after {
    content: " ";
    display: block;
    position: absolute;
    top: -100px; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.03) 50%, transparent);
    animation: scanline-sweep 7s linear infinite;
    pointer-events: none;
    z-index: 6;
}

@keyframes scanline-sweep {
    0% { top: -100px; }
    100% { top: 100%; }
}

.hacker-terminal:hover {
    border-color: rgba(0, 240, 255, 0.3);
}

.terminal-bar {
    background: rgba(20, 22, 33, 0.8);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-bar .dots {
    display: flex;
    gap: 6px;
}

.terminal-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-title {
    margin-left: 20px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 15px;
    height: 180px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.terminal-line {
    color: var(--text-primary);
    margin-bottom: 6px;
}

.prompt {
    color: var(--neon-cyan);
}

.terminal-response {
    margin-bottom: 6px;
    padding-left: 15px;
}

.terminal-response.success { color: var(--neon-green); }
.terminal-response.info { color: var(--text-secondary); }
.terminal-response.error { color: var(--neon-red); }

#typing-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--neon-cyan);
    animation: cursor-blink 1s infinite;
    vertical-align: middle;
}

.terminal-controls {
    display: flex;
    flex-wrap: wrap;
    background: rgba(14, 16, 27, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px;
    gap: 8px;
}

.terminal-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.terminal-btn:hover {
    background: var(--neon-cyan-dim);
    border-color: var(--neon-cyan);
    color: var(--text-primary);
    box-shadow: var(--glow-cyan);
}

/* --------------------------------------------------------------------------
   4. Cyber ID Card (Hero Right Panel)
   -------------------------------------------------------------------------- */
.hero-id-card {
    grid-column: span 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyber-card {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 60%), var(--bg-cyber-card);
    backdrop-filter: blur(30px) saturate(210%);
    -webkit-backdrop-filter: blur(30px) saturate(210%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), var(--glass-specular);
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    
    /* Flexbox layout to distribute content and push footer to the bottom */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.cyber-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 15px 40px rgba(57, 255, 20, 0.1), var(--glow-green), var(--glass-specular);
    transform: translateY(-5px);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.cyber-card:hover .card-glow {
    background: radial-gradient(circle, rgba(57, 255, 20, 0.05) 0%, transparent 60%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.id-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.cyber-bars {
    display: flex;
    gap: 4px;
}

.cyber-bars span {
    width: 12px;
    height: 4px;
    background-color: var(--border-color-glow);
}

.cyber-card:hover .cyber-bars span {
    background-color: var(--neon-green);
}

/* Avatar photo frame with rotating hud ring */
.avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 18px; /* Slightly reduced bottom margin to optimize vertical space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-cyan);
    position: relative;
    z-index: 2;
    background-color: var(--bg-dark-secondary);
    transition: all var(--transition-normal);
}

.cyber-card:hover .profile-avatar {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(var(--neon-green-rgb), 0.3);
}

/* Rotating SVG HUD Overlay Ring */
.hud-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px dashed var(--neon-cyan);
    border-radius: 50%;
    z-index: 1;
    animation: rotate 15s linear infinite;
}

.hud-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: calc(50% - 5px);
    width: 10px;
    height: 10px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
}

.cyber-card:hover .hud-ring {
    border-color: var(--neon-green);
    animation: rotate 6s linear infinite;
}

.cyber-card:hover .hud-ring::before {
    background-color: var(--neon-green);
    box-shadow: var(--glow-green);
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduced gap to improve breathing room */
    margin-bottom: 15px; /* Reduced bottom margin to balance spacing */
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.detail-row .label {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.detail-row .value {
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-top: auto; /* Push footer to the absolute bottom of the card content area */
}

.system-time, .status-indicator {
    display: flex;
    flex-direction: column;
}

.system-time .value {
    color: var(--text-secondary);
}

.status-indicator .value {
    text-align: right;
}

/* --------------------------------------------------------------------------
   5. Skills Section
   -------------------------------------------------------------------------- */
.skills-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 35px;
}

.skills-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 35px;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--neon-cyan);
}

.tab-btn.active {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    border-bottom: 2px solid var(--neon-cyan);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.skill-card {
    display: flex;
    flex-direction: column;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

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

.skill-percentage {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: rgba(var(--neon-cyan-rgb), 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

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

/* Skill Highlights Grid & Cards */
.skills-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.skill-highlight-card {
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.skill-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(var(--neon-cyan-rgb), 0.06),
        transparent 40%
    );
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.skill-highlight-card:hover::before {
    opacity: 1;
}

body.light-theme .skill-highlight-card::before {
    background: radial-gradient(
        400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(var(--neon-cyan-rgb), 0.04),
        transparent 40%
    );
}

.skill-highlight-card > * {
    position: relative;
    z-index: 1;
}

.skill-highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-glow);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.08);
}

.card-header-accent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.card-header-accent h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.accent-icon {
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(0, 240, 255, 0.04);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
    cursor: default;
}

/* Cyber Timeline Layout */
.cyber-timeline-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

.timeline-track {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 20px;
    transition: background var(--transition-normal), border var(--transition-normal);
}

body.light-theme .timeline-track {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.timeline-track:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-color);
}

body.light-theme .timeline-track:hover {
    background: rgba(0, 0, 0, 0.02);
}

.timeline-track-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.timeline-track-title .track-icon {
    font-size: 1.4rem;
}

.cyber-timeline {
    position: relative;
    padding-left: 30px;
    margin: 10px 0;
}

.cyber-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 4px,
        rgba(0, 240, 255, 0.2) 4px,
        rgba(0, 240, 255, 0.2) 8px
    );
}

.timeline-node {
    position: relative;
    margin-bottom: 30px;
}

.timeline-node:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 20px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-node:hover .timeline-marker {
    background: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan);
}

.timeline-content {
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.timeline-node:hover .timeline-content {
    border-color: var(--border-color-glow);
    background: var(--bg-dark-secondary);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.timeline-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.badge-experience {
    background: rgba(240, 0, 255, 0.08);
    color: #f000ff;
    border: 1px solid rgba(240, 0, 255, 0.2);
}

.badge-education {
    background: rgba(0, 240, 255, 0.08);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.badge-volunteer {
    background: rgba(57, 255, 20, 0.08);
    color: var(--neon-green);
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.timeline-content h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.timeline-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Languages Registry Grid */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.language-card {
    padding: 20px;
    border-radius: 12px;
}

.language-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* --------------------------------------------------------------------------
   6. Proof of Progress Section (Certifications & Badges)
   -------------------------------------------------------------------------- */
.proof-of-progress-section {
    position: relative;
    z-index: 5;
}

.progress-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px;
}

.progress-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 35px;
    gap: 15px;
    flex-wrap: wrap;
}

.progress-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    padding: 12px 24px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    border-bottom: 2px solid transparent;
}

.progress-tab-btn:hover {
    color: var(--neon-cyan);
}

.progress-tab-btn.active {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    border-bottom: 2px solid var(--neon-cyan);
}

/* Certifications Layout */
.cert-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.filter-btn.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: var(--neon-cyan-dim);
    box-shadow: var(--glow-cyan);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.cert-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 60%), var(--bg-card);
    backdrop-filter: blur(30px) saturate(210%);
    -webkit-backdrop-filter: blur(30px) saturate(210%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.cert-card > * {
    position: relative;
    z-index: 2;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0%;
    background-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transition: height var(--transition-normal);
    border-radius: 12px 0 0 12px;
    z-index: 3;
}

.cert-card:hover::before {
    height: 100%;
}

/* Cursor spotlight overlay on cert-card */
.cert-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(var(--neon-cyan-rgb), 0.12),
        transparent 40%
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cert-card:hover::after {
    opacity: 1;
}

body.light-theme .cert-card::after {
    background: radial-gradient(
        600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(var(--neon-cyan-rgb), 0.08),
        transparent 40%
    );
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-glow);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), var(--glass-specular);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.cert-issuer {
    font-weight: 700;
}

.cert-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
}

.cert-status.secure {
    background: rgba(57, 255, 20, 0.08);
    color: var(--neon-green);
    border: 1px solid rgba(57, 255, 20, 0.15);
}

.cert-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.cert-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
}

.cert-footer {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(var(--neon-cyan-rgb), 0.3);
    border-radius: 4px;
    background: rgba(var(--neon-cyan-rgb), 0.02);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    z-index: 10;
}

.cert-link:hover {
    border-color: var(--neon-cyan);
    color: #fff;
    background: var(--neon-cyan-dim);
    box-shadow: var(--glow-cyan);
    transform: translateY(-1px);
}

.cert-link .cert-link-laser {
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    pointer-events: none;
}

.cert-link:hover .cert-link-laser {
    animation: sweep 1.5s infinite linear;
}


/* Achievement Badges Layout */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    justify-items: center;
    padding-bottom: 40px;
}

.badge-item {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1 / 1;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    cursor: help;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    overflow: visible;
}

.badge-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    transition: transform var(--transition-normal);
}

.badge-item h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.badge-item:hover {
    z-index: 10;
}

.badge-item:hover .badge-icon {
    transform: scale(1.15);
}

/* Tooltip implementation */
.badge-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 180px;
    background: rgba(5, 6, 12, 0.95);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-primary);
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.badge-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(5, 6, 12, 0.95);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.badge-item:hover .badge-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Custom glow classes per badge rank */
.badge-item[data-glow="green"]:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green-dim);
}
.badge-item[data-glow="green"]:hover h4 { color: var(--neon-green); }
.badge-item[data-glow="green"] .badge-tooltip { border-color: var(--neon-green); }
.badge-item[data-glow="green"] .badge-tooltip::before { border-color: var(--neon-green); }

.badge-item[data-glow="cyan"]:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-dim);
}
.badge-item[data-glow="cyan"]:hover h4 { color: var(--neon-cyan); }
.badge-item[data-glow="cyan"] .badge-tooltip { border-color: var(--neon-cyan); }
.badge-item[data-glow="cyan"] .badge-tooltip::before { border-color: var(--neon-cyan); }

.badge-item[data-glow="purple"]:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple-dim);
}
.badge-item[data-glow="purple"]:hover h4 { color: var(--neon-purple); }
.badge-item[data-glow="purple"] .badge-tooltip { border-color: var(--neon-purple); }
.badge-item[data-glow="purple"] .badge-tooltip::before { border-color: var(--neon-purple); }

.badge-item[data-glow="red"]:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.25);
}
.badge-item[data-glow="red"]:hover h4 { color: var(--neon-red); }
.badge-item[data-glow="red"] .badge-tooltip { border-color: var(--neon-red); }
.badge-item[data-glow="red"] .badge-tooltip::before { border-color: var(--neon-red); }

.badge-item[data-glow="blue"]:hover {
    border-color: hsl(220, 100%, 55%);
    box-shadow: 0 0 15px rgba(0, 100, 255, 0.25);
}
.badge-item[data-glow="blue"]:hover h4 { color: hsl(220, 100%, 55%); }
.badge-item[data-glow="blue"] .badge-tooltip { border-color: hsl(220, 100%, 55%); }
.badge-item[data-glow="blue"] .badge-tooltip::before { border-color: hsl(220, 100%, 55%); }


/* --------------------------------------------------------------------------
   7. Wall of Fame Section (Honors & Awards)
   -------------------------------------------------------------------------- */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.award-card {
    padding: 35px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.award-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    opacity: 0.5;
    transition: opacity var(--transition-normal);
    z-index: 2;
}

.award-card:hover::after {
    opacity: 1;
}

.award-card:hover {
    transform: translateY(-5px);
    border-color: rgba(189, 0, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(189, 0, 255, 0.08);
}

.award-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

.award-icon {
    color: var(--neon-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.award-card:hover .award-icon {
    color: var(--neon-purple);
    background: rgba(189, 0, 255, 0.05);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.award-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.award-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.award-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.award-authority {
    font-size: 0.8rem;
    color: var(--neon-cyan);
    font-weight: 500;
}

.award-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.award-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Contact Us Section
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.contact-details {
    grid-column: span 5;
    padding: 35px;
    display: flex;
    flex-direction: column;
}

.contact-details h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.method-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8px;
}

.method-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.method-val {
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 4px;
}

/* Encryption Key HUD Graphic */
.encryption-hud {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

body.light-theme .encryption-hud {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.encryption-key {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.hud-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.hud-code {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 4px;
}

/* Simulated rotating sonar/radar scanning HUD widget */
.radar-scan {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.radar-line {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(57, 255, 20, 0.2) 0%, transparent 50%);
    transform-origin: center center;
    animation: rotate 3s linear infinite;
}

/* Secure Transmission Form elements */
.contact-form-container {
    grid-column: span 7;
    padding: 35px;
}

#secure-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.form-group input, .form-group textarea {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: var(--glow-green);
}

/* Form Status Console block */
.form-console {
    background: rgba(5, 6, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 10px 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#form-status-line {
    color: var(--text-secondary);
}

#form-status-line.transmission-active {
    color: var(--neon-cyan);
}

#form-status-line.transmission-success {
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

.form-console .progress-bar-container {
    margin-top: 8px;
    margin-bottom: 0;
}

/* Submit Secure Handshake Button styling */
.submit-btn {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: bold;
    padding: 14px 20px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.submit-btn:hover {
    background: var(--neon-cyan-dim);
    box-shadow: var(--glow-cyan);
    color: var(--text-primary);
}

/* Visual scanline sweep effect on button hover */
.btn-scanner {
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
    pointer-events: none;
}

.submit-btn:hover .btn-scanner {
    animation: sweep 1.5s infinite linear;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
#main-footer {
    background: rgba(8, 9, 13, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-left .status-msg {
    margin-top: 5px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.footer-right .social-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.social-links a {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

/* --------------------------------------------------------------------------
   10. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 5px var(--neon-green-dim); }
    50% { transform: scale(1.1); opacity: 0.6; box-shadow: 0 0 15px var(--neon-green); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 5px var(--neon-green-dim); }
}

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

@keyframes cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes sweep {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* Cyber Title Glitch Keyframes */
@keyframes glitch-anim {
    0% { clip: rect(110px, 9999px, 86px, 0); }
    5% { clip: rect(16px, 9999px, 140px, 0); }
    10% { clip: rect(122px, 9999px, 126px, 0); }
    15% { clip: rect(81px, 9999px, 12px, 0); }
    20% { clip: rect(13px, 9999px, 75px, 0); }
    25% { clip: rect(93px, 9999px, 126px, 0); }
    30% { clip: rect(41px, 9999px, 137px, 0); }
    35% { clip: rect(104px, 9999px, 90px, 0); }
    40% { clip: rect(138px, 9999px, 20px, 0); }
    45% { clip: rect(2px, 9999px, 71px, 0); }
    50% { clip: rect(69px, 9999px, 142px, 0); }
    55% { clip: rect(112px, 9999px, 32px, 0); }
    60% { clip: rect(96px, 9999px, 77px, 0); }
    65% { clip: rect(67px, 9999px, 125px, 0); }
    70% { clip: rect(54px, 9999px, 132px, 0); }
    75% { clip: rect(97px, 9999px, 141px, 0); }
    80% { clip: rect(60px, 9999px, 66px, 0); }
    85% { clip: rect(50px, 9999px, 101px, 0); }
    90% { clip: rect(138px, 9999px, 147px, 0); }
    95% { clip: rect(74px, 9999px, 15px, 0); }
    100% { clip: rect(40px, 9999px, 75px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(76px, 9999px, 116px, 0); }
    11% { clip: rect(121px, 9999px, 6px, 0); }
    22% { clip: rect(43px, 9999px, 108px, 0); }
    33% { clip: rect(125px, 9999px, 133px, 0); }
    44% { clip: rect(17px, 9999px, 86px, 0); }
    55% { clip: rect(81px, 9999px, 137px, 0); }
    66% { clip: rect(92px, 9999px, 114px, 0); }
    77% { clip: rect(10px, 9999px, 20px, 0); }
    88% { clip: rect(55px, 9999px, 76px, 0); }
    100% { clip: rect(139px, 9999px, 112px, 0); }
}

/* --------------------------------------------------------------------------
   11. Responsive Styles (Mobile & Tablet Adjustments)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .cyber-timeline-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-content {
        grid-column: span 12;
        text-align: center;
        align-items: center;
    }
    
    .hero-socials-container {
        justify-content: center;
    }
    
    .hero-id-card {
        grid-column: span 12;
        margin-top: 40px;
    }
    
    .glitch-text {
        font-size: clamp(1.5rem, 5.2vw, 2.5rem);
        white-space: nowrap;
    }
    
    .security-badge {
        justify-content: center;
    }
    
    .milestones {
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }

    
    .contact-details {
        grid-column: span 12;
    }
    
    .contact-form-container {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Navigation burger menu toggle */
    .nav-toggle {
        display: flex;
    }
    
    #nav-menu {
        position: fixed;
        top: 73px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 73px);
        background: var(--bg-dark-secondary);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-left: 1px solid var(--border-color);
        padding: 50px;
        transition: right var(--transition-normal);
        z-index: 99;
    }
    
    #nav-menu.active {
        right: 0;
    }
    
    #nav-menu ul {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    #nav-menu ul li a {
        font-size: 1.2rem;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* Styled SVG icons to replace emojis for professional looks */
.cyber-svg-icon {
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease, stroke var(--transition-normal);
}

.timeline-track-title .cyber-svg-icon {
    margin-right: 8px;
    color: var(--neon-cyan);
}

.card-header-accent .cyber-svg-icon {
    color: var(--neon-cyan);
    margin-right: 8px;
    flex-shrink: 0;
}

.badge-icon .cyber-svg-icon {
    color: var(--neon-cyan);
    transition: transform 0.3s ease, color var(--transition-normal);
}

.badge-item:hover .badge-icon .cyber-svg-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Tooltip & active glow hover states for SVGs in badges */
.badge-item[data-glow="green"]:hover .cyber-svg-icon { color: var(--neon-green); }
.badge-item[data-glow="cyan"]:hover .cyber-svg-icon { color: var(--neon-cyan); }
.badge-item[data-glow="purple"]:hover .cyber-svg-icon { color: var(--neon-purple); }
.badge-item[data-glow="red"]:hover .cyber-svg-icon { color: var(--neon-red); }
.badge-item[data-glow="blue"]:hover .cyber-svg-icon { color: hsl(220, 100%, 55%); }

.timeline-track-title {
    display: flex;
    align-items: center;
}

.card-header-accent {
    display: flex;
    align-items: center;
}

/* Skill Tags readability adjustment in bright theme */
body.light-theme .skill-tag {
    background: rgba(0, 150, 255, 0.08);
    border-color: rgba(0, 150, 255, 0.25);
    color: hsl(190, 95%, 30%); /* darker cyan for better contrast */
    text-shadow: none;
}

/* Modern Gradient Typography with Shadows */
h1.glitch-text,
.section-header h2,
.timeline-track-title,
.timeline-content h3,
.cert-card h3,
.award-card h3,
.project-card h3,
.skill-highlight-card h3 {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(var(--neon-cyan-rgb), 0.35));
    width: fit-content;
}

/* --------------------------------------------------------------------------
   9. R&D Projects Section Styles (Professional Honors Layout)
   -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%), var(--bg-cyber-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    opacity: 0.5;
    transition: opacity var(--transition-normal);
    z-index: 2;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(189, 0, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(189, 0, 255, 0.08);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

.project-card-icon {
    color: var(--neon-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.project-card:hover .project-card-icon {
    color: var(--neon-purple);
    background: rgba(189, 0, 255, 0.05);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.project-card-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.project-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.project-card-category {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.project-card-tagline {
    font-size: 0.82rem;
    color: var(--neon-cyan);
    font-weight: 500;
}

.project-card h3 {
    font-family: var(--font-header);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-card-tagline-main {
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.project-card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 22px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 18px;
}

/* Detail Box inside Cards */
.project-details-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
}

.detail-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-section strong {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-left: 2px solid var(--neon-purple);
    padding-left: 8px;
    margin-bottom: 4px;
}

.tech-step {
    font-size: 0.84rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 14px;
    line-height: 1.5;
}

.tech-step::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
}

.tech-step .step-lbl {
    color: var(--text-primary);
    font-weight: 600;
}

.sub-step {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 15px;
    position: relative;
    margin-top: 4px;
}

.sub-step::before {
    content: '-';
    position: absolute;
    left: 4px;
    color: var(--neon-green);
}

.tech-uses-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tech-use {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(var(--neon-cyan-rgb), 0.03);
    border: 1px solid rgba(var(--neon-cyan-rgb), 0.12);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.project-card:hover .tech-use {
    background: rgba(var(--neon-purple-rgb), 0.04);
    border-color: rgba(var(--neon-purple-rgb), 0.2);
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   10. High-End Scrolling Reveal Animations
   -------------------------------------------------------------------------- */
.reveal-element {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-element.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger reveals slightly for grid layouts to feel organic */
.reveal-element.in-view:nth-child(2n) {
    transition-delay: 0.08s;
}

.reveal-element.in-view:nth-child(3n) {
    transition-delay: 0.15s;
}

/* --------------------------------------------------------------------------
   11. Quick Hero Social Buttons
   -------------------------------------------------------------------------- */
.hero-socials-container {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.cyber-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    z-index: 10;
}

.linkedin-btn {
    border: 1px solid rgba(0, 119, 181, 0.4);
    color: hsl(200, 100%, 65%);
    background: rgba(0, 119, 181, 0.03);
}
.linkedin-btn:hover {
    border-color: #0077B5;
    color: #fff;
    background: rgba(0, 119, 181, 0.15);
    box-shadow: 0 0 15px rgba(0, 119, 181, 0.35);
}

.tryhackme-btn {
    border: 1px solid rgba(var(--neon-cyan-rgb), 0.4);
    color: var(--neon-cyan);
    background: rgba(var(--neon-cyan-rgb), 0.03);
}
.tryhackme-btn:hover {
    border-color: var(--neon-cyan);
    color: #fff;
    background: var(--neon-cyan-dim);
    box-shadow: var(--glow-cyan);
}

.instagram-btn {
    border: 1px solid rgba(225, 48, 108, 0.4);
    color: hsl(340, 85%, 65%);
    background: rgba(225, 48, 108, 0.03);
}
.instagram-btn:hover {
    border-color: #E1306C;
    color: #fff;
    background: rgba(225, 48, 108, 0.15);
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.35);
}

.cyber-social-btn .btn-laser {
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    pointer-events: none;
}

.cyber-social-btn:hover .btn-laser {
    animation: sweep 1.5s infinite linear;
}

.cyber-social-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.cyber-social-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   12. Smartphone Responsiveness Adjustments (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .project-card, .award-card, .cyber-card {
        padding: 22px 20px;
    }
    
    .glitch-text {
        font-size: clamp(1.05rem, 5vw, 1.45rem);
        white-space: nowrap;
        letter-spacing: 0.5px;
    }
    
    .subtitle-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-socials-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin: 20px auto;
    }
    
    .cyber-social-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.82rem;
    }
    
    .milestones {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin-bottom: 25px;
    }
    
    .milestone-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        font-size: 0.78rem;
        padding: 6px 12px;
    }
    
    .project-card h3, .award-card h3 {
        font-size: 1.30rem;
    }
    
    .hacker-terminal {
        font-size: 0.78rem;
    }
    
    .terminal-bar {
        padding: 6px 12px;
    }
    
    .terminal-body {
        padding: 12px;
    }
}

/* --------------------------------------------------------------------------
   13. Creative 3D Visual Effects (Tilt & Flipper ID Card)
   -------------------------------------------------------------------------- */

/* 3D Flipping Cyber ID Card */
.hero-id-card {
    perspective: 1500px;
}

.hero-id-card-wrapper {
    width: 100%;
    max-width: 380px;
    height: 590px; /* Increased height to accommodate the biometric fingerprint scanner */
    cursor: pointer;
    perspective: 1500px;
    transition: transform var(--transition-normal);
    background: rgba(0, 0, 0, 0.001); /* Flat stable click hit area to prevent 3D rotation hover glitches */
}

.hero-id-card-wrapper:hover {
    transform: translateY(-5px); /* Lift the entire wrapper on hover */
}

/* Disable inner card hover transform/shadow to prevent double transform conflicts */
.hero-id-card-wrapper .cyber-card:hover {
    transform: none !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), var(--glass-specular) !important;
}

/* Back side hover specifically updates borders/neon glows without scaling */
.hero-id-card-wrapper .cyber-card-back:hover {
    transform: rotateY(180deg) !important;
    border-color: var(--neon-purple) !important;
    box-shadow: 0 15px 40px rgba(160, 0, 220, 0.2), var(--glow-purple), var(--glass-specular) !important;
}

.cyber-card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Flip trigger strictly state-driven by .flipped class via clicking/tapping */
.hero-id-card-wrapper.flipped .cyber-card-flipper {
    transform: rotateY(180deg);
}

.cyber-card-front,
.cyber-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    margin: 0 !important;
}

.cyber-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 60%), var(--bg-cyber-card);
    border-color: rgba(160, 0, 220, 0.25);
}

/* Pulsing cyber click instructions */
.click-hint {
    font-size: 0.65rem;
    color: var(--neon-cyan);
    opacity: 0.6;
    margin-left: 8px;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
    animation: click-hint-pulse 1.8s infinite alternate ease-in-out;
}

@keyframes click-hint-pulse {
    0% {
        opacity: 0.3;
        text-shadow: none;
    }
    100% {
        opacity: 0.85;
        text-shadow: var(--glow-cyan);
    }
}

/* Animated Radar HUD on back of ID Card */
.stats-radar-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 10px auto 18px; /* Slightly reduced margins to optimize vertical space */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.02);
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.radar-hud {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-circle {
    position: absolute;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 50%;
}

.radar-circle.rc-1 { width: 33%; height: 33%; }
.radar-circle.rc-2 { width: 66%; height: 66%; }
.radar-circle.rc-3 { width: 95%; height: 95%; }

.radar-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(0, 240, 255, 0.1);
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: conic-gradient(from 0deg at 0% 0%, rgba(0, 240, 255, 0.25) 0%, transparent 40%);
    transform-origin: 0% 0%;
    border-top-left-radius: 100%;
    animation: radar-sweep-anim 3s infinite linear;
}

@keyframes radar-sweep-anim {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.radar-ping {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    top: 35%;
    left: 60%;
    animation: radar-ping-anim 2s infinite ease-out;
}

@keyframes radar-ping-anim {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; transform: scale(1.3); }
}

/* 3D Card tilt parallax elements */
.project-card, .award-card, .cert-card, .skill-highlight-card, .language-card, .timeline-content {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card h3, 
.award-card h3, 
.cert-card h3,
.skill-highlight-card h3,
.language-card h3,
.timeline-content h3,
.project-card .project-tags,
.award-card .organization,
.cert-card .cert-issuer,
.cert-card .card-footer {
    transform: translateZ(35px);
}

.project-card .project-desc,
.award-card .award-desc,
.cert-card .cert-desc,
.skill-highlight-card p,
.language-card p,
.timeline-content p {
    transform: translateZ(20px);
}

/* Biometric Fingerprint Scanner Trigger */
.biometric-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 15px auto 10px;
    cursor: pointer;
    z-index: 10;
}

.fingerprint-scanner {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: rgba(0, 240, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
    overflow: hidden;
    animation: fingerprint-pulse-cyan 2s infinite alternate ease-in-out;
}

.fingerprint-icon {
    width: 28px;
    height: 28px;
    color: var(--neon-cyan);
    opacity: 0.8;
    transition: all var(--transition-normal);
}

.fingerprint-scan-line {
    position: absolute;
    top: 10%;
    left: 15%;
    width: 70%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    opacity: 0.8;
    animation: fingerprint-sweep 2s infinite ease-in-out;
    pointer-events: none;
}

.fingerprint-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    text-align: center;
}

/* Hover highlights */
.hero-id-card-wrapper:hover .fingerprint-scanner {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), var(--glow-cyan);
}

.hero-id-card-wrapper:hover .fingerprint-icon {
    opacity: 1;
    transform: scale(1.05);
}

.hero-id-card-wrapper:hover .fingerprint-label {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

/* Back side specific themes (purple overlay) */
.cyber-card-back .fingerprint-scanner {
    background: rgba(160, 0, 220, 0.03);
    border-color: rgba(160, 0, 220, 0.25);
    box-shadow: 0 0 10px rgba(160, 0, 220, 0.05);
    animation: fingerprint-pulse-purple 2s infinite alternate ease-in-out;
}

.cyber-card-back .fingerprint-icon {
    color: var(--neon-purple);
}

.cyber-card-back .fingerprint-scan-line {
    background: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.hero-id-card-wrapper.flipped:hover .fingerprint-scanner {
    border-color: var(--neon-purple);
    background: rgba(160, 0, 220, 0.08);
    box-shadow: 0 0 15px rgba(160, 0, 220, 0.3), var(--glow-purple);
}

.hero-id-card-wrapper.flipped:hover .fingerprint-label {
    color: var(--neon-purple);
    text-shadow: var(--glow-purple);
}

/* Keyframe animations */
@keyframes fingerprint-pulse-cyan {
    0% {
        box-shadow: 0 0 8px rgba(0, 240, 255, 0.15), inset 0 0 4px rgba(0, 240, 255, 0.1);
        border-color: rgba(0, 240, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 16px rgba(0, 240, 255, 0.45), inset 0 0 8px rgba(0, 240, 255, 0.2);
        border-color: var(--neon-cyan);
    }
}

@keyframes fingerprint-pulse-purple {
    0% {
        box-shadow: 0 0 8px rgba(160, 0, 220, 0.15), inset 0 0 4px rgba(160, 0, 220, 0.1);
        border-color: rgba(160, 0, 220, 0.3);
    }
    100% {
        box-shadow: 0 0 16px rgba(160, 0, 220, 0.45), inset 0 0 8px rgba(160, 0, 220, 0.2);
        border-color: var(--neon-purple);
    }
}

@keyframes fingerprint-sweep {
    0%, 100% {
        top: 15%;
    }
    50% {
        top: 80%;
    }
}
