/* Enterprise 3D Resume Styles - Allan Riddel */
/* Cutting-edge CSS with advanced animations and modern design */

:root {
    --primary-color: #00ffff;
    --secondary-color: #ff0080;
    --accent-color: #88ff00;
    --bg-dark: #000011;
    --bg-darker: #000008;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 255, 255, 0.3);
    --shadow-intense: 0 0 40px rgba(0, 255, 255, 0.5);
}

/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    cursor: none; /* Hide default cursor for custom 3D cursor */
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-container {
    text-align: center;
}

.loading-cube {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    animation: loadingRotate 2s infinite linear;
    border-radius: 10px;
    box-shadow: var(--shadow-glow);
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

@keyframes loadingRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Three.js Canvas */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: auto;
}

/* Main Container */
#main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 0;
}

/* Navigation */
#nav-menu {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateX(-5px) scale(1.05);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 128, 0.1));
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-intense);
}

.nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Content Sections */
.content-section {
    display: none;
    min-height: 100vh;
    padding: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.section-header-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
    text-align: center;
    transition: all 0.3s ease;
}

.section-header-card:hover {
    box-shadow: var(--shadow-intense);
    transform: translateY(-5px);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* Profile Section */
.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: avatarPulse 3s infinite;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    box-shadow: var(--shadow-intense);
    overflow: hidden;
    position: relative;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: filter 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.avatar-primary {
    z-index: 2;
    opacity: 1;
    filter: url(#wizard-warp);
}

.avatar-glitch {
    z-index: 1;
    opacity: 0;
    filter: none;
}

.avatar-glitch.glitching {
    z-index: 3;
    opacity: 1;
    animation: glitchEffect 0.3s steps(2, end);
}

@keyframes glitchEffect {
    0% {
        transform: translate(0);
        filter: hue-rotate(45deg) brightness(1.1);
    }
    10% {
        transform: translate(-5px, 5px);
        filter: hue-rotate(180deg) saturate(3);
    }
    20% {
        transform: translate(5px, -5px);
        filter: hue-rotate(-90deg) contrast(2);
    }
    30% {
        transform: translate(-5px, -5px);
        filter: hue-rotate(90deg) brightness(1.5);
    }
    40% {
        transform: translate(5px, 5px);
        filter: hue-rotate(-45deg) saturate(2);
    }
    50% {
        transform: translate(0);
        filter: hue-rotate(135deg) contrast(1.5);
    }
    60% {
        transform: translate(-3px, 3px);
        filter: hue-rotate(-135deg) brightness(1.3);
    }
    70% {
        transform: translate(3px, -3px);
        filter: hue-rotate(225deg) saturate(2.5);
    }
    80% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(-225deg) contrast(1.8);
    }
    90% {
        transform: translate(2px, -2px);
        filter: hue-rotate(315deg) brightness(1.2);
    }
    100% {
        transform: translate(0);
        filter: hue-rotate(45deg) brightness(1.1);
    }
}

/* Hover effects handled by JavaScript - shows Allan.png on hover */

@keyframes avatarPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.7; }
}

/* Lightning Bolt Animations */
.lightning-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 10;
}

.lightning-bolt {
    position: absolute;
    width: 200px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.lightning-to-stat1 {
    animation: lightningFlash1 4s infinite;
    transform: translate(-59px, -50%) rotate(-15deg);
}

.lightning-to-stat2 {
    animation: lightningFlash2 4.5s infinite 1s;
    transform: translate(-59px, -50%) rotate(0deg);
}

.lightning-to-stat3 {
    animation: lightningFlash3 5s infinite 2s;
    transform: translate(-59px, -50%) rotate(15deg);
}

.lightning-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 15px currentColor);
}

.lightning-to-stat1 .lightning-path {
    animation: lightningStrike1 4s infinite;
}

.lightning-to-stat2 .lightning-path {
    animation: lightningStrike2 4.5s infinite 1s;
}

.lightning-to-stat3 .lightning-path {
    animation: lightningStrike3 5s infinite 2s;
}

@keyframes lightningFlash1 {
    0%, 85%, 100% { opacity: 0; }
    86%, 87% { opacity: 1; }
    88%, 89% { opacity: 0; }
    90%, 91% { opacity: 0.8; }
    92%, 93% { opacity: 0; }
    94% { opacity: 1; }
    95%, 100% { opacity: 0; }
}

@keyframes lightningFlash2 {
    0%, 88%, 100% { opacity: 0; }
    89%, 90% { opacity: 0.9; }
    91% { opacity: 0; }
    92%, 93% { opacity: 1; }
    94%, 95% { opacity: 0; }
    96% { opacity: 0.7; }
    97%, 100% { opacity: 0; }
}

@keyframes lightningFlash3 {
    0%, 80%, 100% { opacity: 0; }
    81%, 82% { opacity: 0.8; }
    83% { opacity: 0; }
    84%, 85% { opacity: 1; }
    86%, 87% { opacity: 0; }
    88% { opacity: 0.9; }
    89%, 100% { opacity: 0; }
}

@keyframes lightningStrike1 {
    0%, 85%, 100% { stroke-dashoffset: 200; }
    86% { stroke-dashoffset: 0; }
    87% { stroke-dashoffset: 200; }
    88% { stroke-dashoffset: 0; }
    89% { stroke-dashoffset: 200; }
    90% { stroke-dashoffset: 0; }
    91% { stroke-dashoffset: 200; }
    92% { stroke-dashoffset: 0; }
    93% { stroke-dashoffset: 200; }
    94% { stroke-dashoffset: 0; }
    95%, 100% { stroke-dashoffset: 200; }
}

@keyframes lightningStrike2 {
    0%, 88%, 100% { stroke-dashoffset: 200; }
    89% { stroke-dashoffset: 0; }
    90% { stroke-dashoffset: 200; }
    91% { stroke-dashoffset: 0; }
    92% { stroke-dashoffset: 200; }
    93% { stroke-dashoffset: 0; }
    94% { stroke-dashoffset: 200; }
    95% { stroke-dashoffset: 0; }
    96% { stroke-dashoffset: 200; }
    97%, 100% { stroke-dashoffset: 200; }
}

@keyframes lightningStrike3 {
    0%, 80%, 100% { stroke-dashoffset: 200; }
    81% { stroke-dashoffset: 0; }
    82% { stroke-dashoffset: 200; }
    83% { stroke-dashoffset: 0; }
    84% { stroke-dashoffset: 200; }
    85% { stroke-dashoffset: 0; }
    86% { stroke-dashoffset: 200; }
    87% { stroke-dashoffset: 0; }
    88% { stroke-dashoffset: 200; }
    89%, 100% { stroke-dashoffset: 200; }
}

.name-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--text-light), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.job-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Quantum Music Player */
.quantum-music-player {
    margin: 25px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.quantum-music-player audio {
    display: none;
}

.player-display {
    background: linear-gradient(135deg, var(--glass-bg), rgba(0, 255, 255, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 20px 25px 15px 25px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    grid-template-rows: 1fr auto;
    gap: 15px 20px;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.player-display:hover::before {
    left: 100%;
}

.player-display:hover {
    box-shadow: var(--shadow-intense), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Quantum Visualizer */
.quantum-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

/* Beat Spectrum Analyzer */
.beat-spectrum-analyzer {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.spectrum-line {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.02s linear;
    opacity: 0.6;
    transform-origin: center center;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(128, 128, 128, 0.2) 40%,
        rgba(128, 128, 128, 0.3) 50%,
        rgba(128, 128, 128, 0.2) 60%,
        transparent 100%);
}

/* Frequency range gradients - each line gets unique beautiful gradients */
.bass-line {
    background: linear-gradient(90deg, #8B0000, #DC143C, #FF6347, #FF4500, #DC143C, #8B0000);
    box-shadow: 0 0 3px rgba(220, 20, 60, 0.5);
}

.low-mid-line {
    background: linear-gradient(90deg, #FF1493, #FF69B4, #FFB6C1, #FF69B4, #FF1493);
    box-shadow: 0 0 3px rgba(255, 20, 147, 0.5);
}

.mid-line {
    background: linear-gradient(90deg, #32CD32, #00FF7F, #98FB98, #00FF7F, #32CD32);
    box-shadow: 0 0 3px rgba(50, 205, 50, 0.5);
}

.high-mid-line {
    background: linear-gradient(90deg, #00CED1, #40E0D0, #AFEEEE, #40E0D0, #00CED1);
    box-shadow: 0 0 3px rgba(0, 206, 209, 0.5);
}

.treble-line {
    background: linear-gradient(90deg, #1E90FF, #4169E1, #87CEEB, #4169E1, #1E90FF);
    box-shadow: 0 0 3px rgba(30, 144, 255, 0.5);
}

.high-line {
    background: linear-gradient(90deg, #9370DB, #8A2BE2, #DDA0DD, #8A2BE2, #9370DB);
    box-shadow: 0 0 3px rgba(147, 112, 219, 0.5);
}

.ultra-high-line {
    background: linear-gradient(90deg, #FF8C00, #FFA500, #FFD700, #FFA500, #FF8C00);
    box-shadow: 0 0 3px rgba(255, 140, 0, 0.5);
}

.presence-line {
    background: linear-gradient(90deg, #FF00FF, #DA70D6, #EE82EE, #DA70D6, #FF00FF);
    box-shadow: 0 0 3px rgba(255, 0, 255, 0.5);
}

.wave-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 32px;
}

.wave-bars .bar {
    width: 3px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: quantumWave 1.5s ease-in-out infinite;
    opacity: 0.7;
    box-shadow: 0 0 6px currentColor;
}

.wave-bars .bar:nth-child(1) { height: 12px; animation-delay: -0.1s; }
.wave-bars .bar:nth-child(2) { height: 20px; animation-delay: -0.2s; }
.wave-bars .bar:nth-child(3) { height: 28px; animation-delay: -0.3s; }
.wave-bars .bar:nth-child(4) { height: 16px; animation-delay: -0.4s; }
.wave-bars .bar:nth-child(5) { height: 32px; animation-delay: -0.5s; }
.wave-bars .bar:nth-child(6) { height: 24px; animation-delay: -0.6s; }
.wave-bars .bar:nth-child(7) { height: 18px; animation-delay: -0.7s; }
.wave-bars .bar:nth-child(8) { height: 26px; animation-delay: -0.8s; }
.wave-bars .bar:nth-child(9) { height: 14px; animation-delay: -0.9s; }
.wave-bars .bar:nth-child(10) { height: 22px; animation-delay: -1.0s; }

@keyframes quantumWave {
    0%, 100% {
        transform: scaleY(0.4);
        opacity: 0.6;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Track Info */
.track-info {
    text-align: center;
    overflow: hidden;
}

.track-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    white-space: nowrap;
}

.track-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    opacity: 0.8;
    animation: subtitleGlow 3s ease-in-out infinite alternate;
}

@keyframes subtitleGlow {
    0% {
        opacity: 0.6;
        text-shadow: 0 0 5px rgba(255, 0, 128, 0.2);
    }
    100% {
        opacity: 0.9;
        text-shadow: 0 0 10px rgba(255, 0, 128, 0.4);
    }
}

/* Player Controls */
.player-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.control-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary-color), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    opacity: 0;
}

.control-btn:hover::before {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.control-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
    z-index: 1;
    transition: all 0.2s ease;
}

.control-btn:hover svg {
    fill: var(--text-light);
}

/* Hide pause icon by default */
.control-btn .pause-icon {
    display: none;
}

.control-btn.playing .play-icon {
    display: none;
}

.control-btn.playing .pause-icon {
    display: block;
}

/* Quantum Glow Ring */
.quantum-glow-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 29px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    animation: quantumRing 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes quantumRing {
    0%, 100% {
        opacity: 0;
        transform: rotate(0deg) scale(1);
    }
    25% {
        opacity: 0.6;
        transform: rotate(90deg) scale(1.02);
    }
    50% {
        opacity: 0.8;
        transform: rotate(180deg) scale(1.05);
    }
    75% {
        opacity: 0.4;
        transform: rotate(270deg) scale(1.02);
    }
}

.location {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Animated Infinity Symbol */
.infinity-stat {
    position: relative;
    overflow: visible;
}

.infinity-symbol {
    display: inline-block;
    animation: infinityPulse 3s ease-in-out infinite, infinityRotate 8s linear infinite;
    color: var(--primary-color);
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
    transform-origin: center;
}

.infinity-stat::before {
    content: '∞';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
    animation: infinityGlow 2s ease-in-out infinite alternate;
    z-index: -1;
}

.infinity-stat::after {
    content: '∞';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #ff6600;
    opacity: 0.2;
    animation: infinityGlow 2.5s ease-in-out infinite alternate-reverse;
    z-index: -2;
}

@keyframes infinityPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.5);
    }
}

@keyframes infinityRotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes infinityGlow {
    0% {
        opacity: 0.1;
        transform: translateX(-50%) scale(0.8);
    }
    100% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1.2);
    }
}

/* Animated Counter Numbers */
.experience-stat, .projects-stat {
    position: relative;
    overflow: visible;
}

.counter-number {
    display: inline-block;
    animation: counterPulse 2.5s ease-in-out infinite;
    color: var(--primary-color);
    text-shadow:
        0 0 5px currentColor,
        0 0 10px currentColor;
}

.plus-sign {
    display: inline-block;
    animation: plusBounce 2s ease-in-out infinite;
    color: var(--secondary-color);
    text-shadow:
        0 0 8px currentColor,
        0 0 15px currentColor;
    margin-left: 2px;
}

.experience-stat .counter-number {
    animation: counterPulse 2.5s ease-in-out infinite, 
               experienceGlow 4s ease-in-out infinite alternate;
}

.projects-stat .counter-number {
    animation: counterPulse 2.5s ease-in-out infinite 0.5s,
               projectsGlow 3.5s ease-in-out infinite alternate;
}

@keyframes counterPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.3);
    }
}

@keyframes plusBounce {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-3px) scale(1.1);
    }
    75% {
        transform: translateY(1px) scale(0.95);
    }
}

@keyframes experienceGlow {
    0% {
        color: var(--primary-color);
        text-shadow:
            0 0 5px currentColor,
            0 0 10px currentColor;
    }
    100% {
        color: #00ff88;
        text-shadow:
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor;
    }
}

@keyframes projectsGlow {
    0% {
        color: var(--primary-color);
        text-shadow:
            0 0 5px currentColor,
            0 0 10px currentColor;
    }
    100% {
        color: #ff3366;
        text-shadow:
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor;
    }
}

/* Glitch Text Effect for Name */
.glitch-text {
    position: relative;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    color: var(--text-light);
    animation: glitchChaos 8s infinite;
}

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

.glitch-text::before {
    animation: glitchSliceRed 6s infinite;
    color: #ff0040;
    z-index: -1;
    mix-blend-mode: multiply;
    opacity: 0;
}

.glitch-text::after {
    animation: glitchSliceCyan 7s infinite 2s;
    color: #00ffff;
    z-index: -2;
    mix-blend-mode: screen;
    opacity: 0;
}

@keyframes glitchChaos {
    0%, 97%, 100% {
        transform: translate(0);
        filter: brightness(1);
    }
    97.5% {
        transform: translate(-6px, 4px);
        filter: brightness(2) hue-rotate(180deg);
    }
    98% {
        transform: translate(8px, -3px);
        filter: brightness(0.5) hue-rotate(270deg);
    }
    98.5% {
        transform: translate(-5px, -7px);
        filter: brightness(1.8) hue-rotate(90deg);
    }
    99% {
        transform: translate(9px, 2px);
        filter: brightness(0.3) hue-rotate(360deg);
    }
    99.5% {
        transform: translate(-2px, -5px);
        filter: brightness(2.2) hue-rotate(45deg);
    }
}

@keyframes glitchShake {
    0% { transform: translateX(0px); }
    10% { transform: translateX(-1px); }
    20% { transform: translateX(1px); }
    30% { transform: translateX(0px); }
    40% { transform: translateX(1px); }
    50% { transform: translateX(-1px); }
    60% { transform: translateX(0px); }
    70% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    90% { transform: translateX(0px); }
    100% { transform: translateX(0px); }
}

@keyframes glitchSliceRed {
    0%, 70%, 100% {
        transform: translate(0);
        clip-path: inset(0);
    }
    71% {
        transform: translate(-5px, 3px);
        clip-path: inset(15% 0 70% 0);
    }
    72% {
        transform: translate(4px, -2px);
        clip-path: inset(80% 0 10% 0);
    }
    73% {
        transform: translate(-2px, 4px);
        clip-path: inset(45% 0 35% 0);
    }
    74% {
        transform: translate(6px, -1px);
        clip-path: inset(25% 0 55% 0);
    }
    75% {
        transform: translate(-3px, -3px);
        clip-path: inset(60% 0 25% 0);
    }
}

@keyframes glitchSliceCyan {
    0%, 75%, 100% {
        transform: translate(0);
        clip-path: inset(0);
    }
    76% {
        transform: translate(7px, -4px);
        clip-path: inset(5% 0 85% 0);
    }
    77% {
        transform: translate(-6px, 5px);
        clip-path: inset(90% 0 5% 0);
    }
    78% {
        transform: translate(3px, 2px);
        clip-path: inset(35% 0 45% 0);
    }
    79% {
        transform: translate(-4px, -5px);
        clip-path: inset(65% 0 15% 0);
    }
    80% {
        transform: translate(2px, 3px);
        clip-path: inset(20% 0 65% 0);
    }
}

@keyframes glitchJitter {
    0% { transform: translate(0px, 0px); }
    2% { transform: translate(-1px, 1px); }
    4% { transform: translate(2px, -1px); }
    6% { transform: translate(-2px, 2px); }
    8% { transform: translate(1px, -2px); }
    10% { transform: translate(0px, 0px); }
    12% { transform: translate(-1px, -1px); }
    14% { transform: translate(2px, 1px); }
    16% { transform: translate(-1px, 0px); }
    18% { transform: translate(1px, 2px); }
    20% { transform: translate(0px, 0px); }
    22% { transform: translate(-2px, -1px); }
    24% { transform: translate(1px, -1px); }
    26% { transform: translate(0px, 1px); }
    28% { transform: translate(-1px, -2px); }
    30% { transform: translate(2px, 0px); }
    32% { transform: translate(0px, 0px); }
    100% { transform: translate(0px, 0px); }
}

@keyframes glitchTwitch {
    0% { transform: skew(0deg, 0deg); }
    5% { transform: skew(2deg, -1deg); }
    10% { transform: skew(-1deg, 2deg); }
    15% { transform: skew(0deg, 0deg); }
    20% { transform: skew(-2deg, 1deg); }
    25% { transform: skew(1deg, -2deg); }
    30% { transform: skew(0deg, 0deg); }
    35% { transform: skew(3deg, 0deg); }
    40% { transform: skew(0deg, -3deg); }
    45% { transform: skew(0deg, 0deg); }
    50% { transform: skew(-1deg, 2deg); }
    55% { transform: skew(2deg, -1deg); }
    60% { transform: skew(0deg, 0deg); }
    100% { transform: skew(0deg, 0deg); }
}

@keyframes glitchSliceRed {
    0%, 94%, 100% {
        transform: translate(0);
        clip-path: inset(0);
        opacity: 0;
    }
    94.2% {
        transform: translate(-12px, 8px);
        clip-path: inset(23% 0 61% 0);
        opacity: 0.9;
    }
    94.8% {
        transform: translate(15px, -5px);
        clip-path: inset(78% 0 12% 0);
        opacity: 0.8;
    }
    95.1% {
        transform: translate(-8px, 11px);
        clip-path: inset(45% 0 38% 0);
        opacity: 0.7;
    }
    95.6% {
        transform: translate(0);
        clip-path: inset(0);
        opacity: 0;
    }
}

@keyframes glitchSliceCyan {
    0%, 92%, 100% {
        transform: translate(0);
        clip-path: inset(0);
        opacity: 0;
    }
    92.3% {
        transform: translate(18px, -12px);
        clip-path: inset(8% 0 82% 0);
        opacity: 0.9;
    }
    93.1% {
        transform: translate(-14px, 9px);
        clip-path: inset(67% 0 21% 0);
        opacity: 0.8;
    }
    93.7% {
        transform: translate(0);
        clip-path: inset(0);
        opacity: 0;
    }
}

.summary-card {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95) 0%, rgba(0, 40, 80, 0.85) 100%);
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 8px 32px rgba(0, 255, 255, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(0, 255, 255, 0.4) 0%,
        rgba(255, 0, 255, 0.3) 50%,
        rgba(0, 255, 255, 0.4) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    z-index: -1;
}

.summary-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 48px rgba(0, 255, 255, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

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

.summary-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ffff 0%, #00ccff 50%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
}

.summary-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.summary-card h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 600;
    color: #00ccff;
    margin: 35px 0 20px 0;
    padding-left: 20px;
    border-left: 4px solid #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    letter-spacing: 1px;
}

.summary-card p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.summary-card ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.summary-card ul li {
    position: relative;
    padding: 12px 20px 12px 45px;
    margin-bottom: 12px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(0, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    transition: all 0.3s ease;
}

.summary-card ul li::before {
    content: '▸';
    position: absolute;
    left: 18px;
    color: #00ffff;
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.summary-card ul li:hover {
    background: rgba(0, 255, 255, 0.1);
    border-left-color: #00ffff;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.15);
}

/* Professional Summary Section Enhancements */
.summary-section {
    position: relative;
}

.summary-card h4::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #00ffff, #00ccff);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    transition: height 0.4s ease;
}

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

.summary-card p:first-of-type::first-letter {
    font-size: 2.2em;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin: 0.05em 0.1em 0 0;
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.summary-card ul li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 45px;
    right: 20px;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-card ul li:hover::after {
    opacity: 1;
}

/* Smooth scroll reveal animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-card.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Subtle text highlight on selection */
.summary-card ::selection {
    background: rgba(0, 255, 255, 0.3);
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.summary-card ::-moz-selection {
    background: rgba(0, 255, 255, 0.3);
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

/* Refined spacing and rhythm */
.summary-card > *:last-child {
    margin-bottom: 0;
}

.summary-card h4 + p {
    margin-top: 15px;
}

.summary-card p + ul {
    margin-top: -10px;
}

/* Subtle parallax effect for depth */
@media (prefers-reduced-motion: no-preference) {
    .summary-card {
        transform-style: preserve-3d;
    }

    .summary-card:hover h3 {
        transform: translateZ(20px);
    }

    .summary-card:hover h4 {
        transform: translateZ(10px);
    }
}

/* Responsive typography scaling */
@media (min-width: 1400px) {
    .summary-card {
        padding: 60px;
    }

    .summary-card h3 {
        font-size: 2.4rem;
    }

    .summary-card h4 {
        font-size: 1.5rem;
    }

    .summary-card p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .summary-card {
        padding: 30px 25px;
    }

    .summary-card h3 {
        font-size: 1.8rem;
    }

    .summary-card h4 {
        font-size: 1.2rem;
        padding-left: 15px;
    }

    .summary-card ul li {
        padding-left: 35px;
    }

    .summary-card ul li::before {
        left: 12px;
    }
}

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

.expertise-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.expertise-icon {
    font-size: 1.5rem;
}

/* Experience Section */
.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline {
    position: relative;
    margin-top: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
}

.timeline-marker {
    position: absolute;
    left: 40px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--bg-dark), 0 0 20px var(--primary-color);
    z-index: 2;
}

.timeline-content {
    margin-left: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-intense);
    transform: translateY(-5px);
}

.job-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.company {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 5px;
}

.duration {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.achievements {
    list-style: none;
    padding: 0;
}

.achievements li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Skills Section */
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.skill-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.skill-category:hover {
    box-shadow: var(--shadow-intense);
    transform: translateY(-5px);
}

.skill-category h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,255,255,0.2), rgba(255,0,128,0.1));
    transition: width 0.3s ease;
    z-index: 0;
}

.skill-item:hover::before {
    width: 100%;
}

.skill-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
    transform: translateX(5px);
}

.skill-item.expert {
    border-left: 4px solid var(--primary-color);
}

.skill-item.advanced {
    border-left: 4px solid var(--accent-color);
}

.skill-item.intermediate {
    border-left: 4px solid var(--secondary-color);
}

.certifications {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
    text-align: center;
}

.certifications h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cert-item {
    padding: 15px 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-3px);
}

.automation-highlights {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
    text-align: center;
}

.automation-highlights h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(136, 255, 0, 0.3);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.highlight-item {
    background: rgba(136, 255, 0, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 15px;
    padding: 25px 20px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(136, 255, 0, 0.2);
    box-shadow: 0 10px 20px rgba(136, 255, 0, 0.3);
    transform: translateY(-5px);
}

.highlight-metric {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(136, 255, 0, 0.5);
}

.highlight-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Certifications Section */
.certs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.certs-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.featured-cert {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    text-align: center;
}

.featured-cert:hover {
    box-shadow: var(--shadow-intense);
    transform: translateY(-5px);
}

.cert-badge {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.cert-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.cert-category-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.cert-category-card:hover {
    box-shadow: var(--shadow-intense);
    transform: translateY(-3px);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.category-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.category-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-badge-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 18px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.cert-badge-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.cert-vendor {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 8px;
}

.professional-development {
    margin-top: 50px;
}

.professional-development h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.development-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.development-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    text-align: center;
}

.development-card:hover {
    box-shadow: var(--shadow-intense);
    transform: translateY(-5px);
}

.dev-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.development-card h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.development-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Redesigned Certification Showcase */
.certification-showcase {
    margin-bottom: 60px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.certification-group {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.certification-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certification-group:hover::before {
    opacity: 1;
}

.certification-group:hover {
    box-shadow: var(--shadow-intense);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.group-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.group-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.group-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.group-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cert-achievements {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cert-badge-item.premium {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 128, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 18px 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.cert-badge-item.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.cert-badge-item.premium:hover::before {
    left: 100%;
}

.cert-badge-item.premium:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 128, 0.2));
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

/* Continuous Learning Section */
.continuous-learning {
    margin-top: 60px;
}

.learning-header {
    text-align: center;
    margin-bottom: 50px;
}

.learning-header h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.learning-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.learning-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.learning-track {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    text-align: center;
}

.learning-track:hover {
    box-shadow: var(--shadow-intense);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.track-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.learning-track h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.track-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.02);
}

/* Contact Section */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.contact-card:hover {
    box-shadow: var(--shadow-intense);
    transform: translateY(-10px) scale(1.02);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.contact-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.availability-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-indicator.available {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #nav-menu {
        position: fixed;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        top: auto;
        flex-direction: row;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 50px;
        padding: 10px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item {
        padding: 12px;
        min-width: 48px;
        justify-content: center;
    }
    
    .content-section {
        padding: 20px;
        padding-bottom: 100px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 10px;
    }
    
    .timeline-content {
        margin-left: 50px;
        padding: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .name-title {
        font-size: 2.2rem;
    }
    
    .job-title {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .profile-card,
    .summary-card,
    .skill-category,
    .contact-card {
        padding: 20px;
    }
}

/* Advanced Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 255, 0.6); }
}

@keyframes slideInFromLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}

/* Print Styles */
@media print {
    #three-canvas,
    #nav-menu,
    #loading-screen {
        display: none !important;
    }
    
    .content-section {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        page-break-inside: avoid;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .profile-card,
    .summary-card,
    .skill-category,
    .contact-card,
    .timeline-content {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* Quantum Cursor Canvas Styles */
#quantum-cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}
/* ========================================
   3D SKILLS GLOBE DESIGN
   ======================================== */

.skills-instruction {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-align: center;
    font-family: 'Orbitron', monospace;
    opacity: 0.8;
}

.skills-globe-card {
    background: linear-gradient(135deg, rgba(0, 0, 17, 0.95), rgba(0, 0, 8, 0.98));
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.15), inset 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.skills-globe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.05), transparent 70%);
    border-radius: 20px;
    z-index: 0;
    pointer-events: none;
}

.skills-globe-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 20px;
    opacity: 0.15;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

#skills-globe-canvas {
    width: 100% !important;
    height: auto !important;
    min-height: 600px !important;
    max-height: 800px !important;
    display: block !important;
    cursor: grab;
    position: relative;
    z-index: 1;
    background: transparent;
}

#skills-globe-canvas:active {
    cursor: grabbing;
}

.globe-legend {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.legend-title {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.legend-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 0.4rem 0.6rem;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.legend-item.active {
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Skills Controls Container - 2 Row Layout */
.skills-controls-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.skills-search-row {
    width: 100%;
}

.skills-legend-row {
    width: 100%;
}

/* Skills Search Styling */
.skills-search-container {
    background: rgba(15, 30, 60, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00ffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 0.75rem;
}

.skills-search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    outline: none;
}

.skills-search-input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.skills-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.search-clear-btn.visible {
    opacity: 1;
    pointer-events: all;
}

.search-clear-btn:hover {
    background: rgba(255, 0, 128, 0.2);
    color: #ff0080;
}

.search-stats {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.search-count {
    display: inline-block;
}

.search-count strong {
    color: #00ffff;
    font-weight: 700;
}

.search-suggestions {
    margin-top: 0.5rem;
}

.suggestions-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.suggestions-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.suggestion-chip {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.suggestion-chip:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hidden data structure */
.skills-compact-grid {
    display: none;
}

.skill-domain {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-globe-card {
        padding: 1rem;
    }

    #skills-globe-canvas {
        min-height: 400px !important;
        max-height: 500px !important;
    }

    .legend-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .legend-item {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .legend-color {
        width: 12px;
        height: 12px;
    }

    .legend-title {
        font-size: 0.9rem;
    }

    .skills-instruction {
        font-size: 0.8rem;
    }

    .skills-controls-container {
        gap: 1rem;
    }

    .skills-search-row,
    .skills-legend-row {
        width: 100%;
    }

    .skills-search-input {
        font-size: 0.9rem;
        padding: 0.5rem 2rem 0.5rem 0.75rem;
    }

    .search-clear-btn {
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }

    .legend-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .search-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .suggestions-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .suggestion-chip {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* AI Innovation Card - Optimized for Performance */
.ai-innovation-card {
    margin-top: 2rem;
    border: 3px solid rgba(0, 255, 255, 0.5);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.4),
        0 0 60px rgba(0, 255, 255, 0.2);
    background: linear-gradient(
        135deg,
        rgba(0, 20, 40, 0.8) 0%,
        rgba(0, 40, 60, 0.6) 50%,
        rgba(0, 20, 40, 0.8) 100%
    );
    animation: card-pulse-optimized 6s ease-in-out infinite;
    will-change: box-shadow;
}

.ai-innovation-card h3 {
    font-size: 1.8rem;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

@keyframes card-pulse-optimized {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(0, 255, 255, 0.4),
            0 0 60px rgba(0, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 40px rgba(0, 255, 255, 0.5),
            0 0 80px rgba(0, 255, 255, 0.3);
    }
}

/* AI Innovation Section Glow - Performance Optimized */
.ai-innovation-glow {
    animation: glow-pulse-optimized 4s ease-in-out infinite;
    will-change: text-shadow;
}

@keyframes glow-pulse-optimized {
    0%, 100% {
        text-shadow:
            0 0 15px rgba(0, 255, 255, 0.5),
            0 0 30px rgba(0, 255, 255, 0.3);
    }
    50% {
        text-shadow:
            0 0 25px rgba(0, 255, 255, 0.7),
            0 0 50px rgba(0, 255, 255, 0.4);
    }
}


/* CSP-Compliant Utility Classes */
.svg-defs-hidden {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.hidden {
    display: none;
}

.clickable {
    cursor: pointer;
}

/* Legend color classes */
.legend-all-domains {
    background: linear-gradient(45deg, #00ffff, #ff0080, #88ff00, #ffaa00);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.legend-security {
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

.legend-ai-ml {
    background: #ff0080;
    box-shadow: 0 0 10px #ff0080;
}

.legend-systems {
    background: #88ff00;
    box-shadow: 0 0 10px #88ff00;
}

.legend-frontend {
    background: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
}

.legend-infrastructure {
    background: #00ffaa;
    box-shadow: 0 0 10px #00ffaa;
}

.legend-devops {
    background: #aa00ff;
    box-shadow: 0 0 10px #aa00ff;
}

.legend-database {
    background: #ff00aa;
    box-shadow: 0 0 10px #ff00aa;
}

.legend-networking {
    background: #00aaff;
    box-shadow: 0 0 10px #00aaff;
}

.legend-monitoring {
    background: #ffff00;
    box-shadow: 0 0 10px #ffff00;
}

.legend-business {
    background: #ff5500;
    box-shadow: 0 0 10px #ff5500;
}

.legend-optimization {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.legend-leadership {
    background: #ff6600;
    box-shadow: 0 0 10px #ff6600;
}

/* Prompt pulse animation for music player */
@keyframes promptPulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}
