:root {
     --bg: #000;
     --panel: rgba(10, 10, 10, 0.95);
     --accent: #00d4ff;
     --text: #fff;
     --glow: 0 0 25px rgba(0, 212, 255, 0.6);
     --planet-glow: rgba(255, 255, 255, 0.15);
 }

 #loader {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: #000;
     z-index: 20000;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     font-family: 'Orbitron';
 }

 .load-bar {
     width: 300px;
     height: 4px;
     background: #111;
     border-radius: 10px;
     margin-top: 20px;
     overflow: hidden;
     border: 1px solid var(--accent);
 }

 .load-progress {
     width: 0%;
     height: 100%;
     background: var(--accent);
     box-shadow: 0 0 15px var(--accent);
     transition: 0.1s;
 }

 .load-text {
     color: var(--accent);
     font-size: 14px;
     letter-spacing: 2px;
 }

 body.mars-mode {
     --bg: #1a0505;
     --accent: #ff4500;
     --glow: 0 0 25px #ff4500;
     --planet-glow: #ff450066;
 }

 body.jupiter-mode {
     --bg: #0f0a05;
     --accent: #ffa500;
     --glow: 0 0 25px #ffa500;
     --planet-glow: #ffa50066;
 }

 body.sun-mode {
    --bg: #f4f6f9;
    --panel: rgba(255, 255, 255, 0.95);
    --accent: #d43f00;
    --text: #111;
    --glow: 0 8px 25px rgba(212, 63, 0, 0.3);
}

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 /* Custom cursor only on devices with a real mouse (fine pointer + hover).
    Touch devices keep their normal behavior. */
 @media (hover: hover) and (pointer: fine) {
     * {
         cursor: none !important;
     }
 }

 @media (hover: none), (pointer: coarse) {
     #custom-cursor {
         display: none;
     }
 }

 #custom-cursor {
     width: 28px;
     height: 28px;
     background: transparent;
     border: 1.5px solid var(--accent);
     border-radius: 50%;
     position: fixed;
     pointer-events: none;
     z-index: 10000;
     transform: translate(-50%, -50%);
     top: 0;
     left: 0;
     will-change: transform;
 }

 #custom-cursor::after {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     width: 6px;
     height: 6px;
     background: var(--accent);
     border-radius: 50%;
     box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
     transform: translate(-50%, -50%);
 }

 body {
     background: var(--bg);
     color: var(--text);
     transition: background 1s ease;
     font-family: 'Poppins', sans-serif;
     overflow: hidden;
     height: 100vh;
     width: 100vw;
 }

 #starfield {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 0;
     transition: opacity 1s;
 }

 body.sun-mode #starfield {
     opacity: 0;
 }

 .planet {
     position: fixed;
     top: 50%;
     right: 5%;
     transform: translateY(-50%) scale(0);
     width: 400px;
     height: 400px;
     border-radius: 50%;
     overflow: hidden;
     z-index: 1;
     transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
     opacity: 0;
     box-shadow: 0 0 60px var(--planet-glow);
 }

 .planet.active {
     transform: translateY(-50%) scale(1);
     opacity: 1;
 }

 .p-moon,
 .p-jupiter {
     background: #000;
 }

 .p-moon::before,
 .p-jupiter::before {
     content: '';
     position: absolute;
     top: -20%;
     left: -20%;
     width: 140%;
     height: 140%;
     background-position: center;
     background-size: cover;
     background-repeat: no-repeat;
 }

 .p-moon::before {
     background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/e1/FullMoon2010.jpg');
     animation: spin 60s linear infinite;
 }

 .p-mars {
     background: radial-gradient(circle at 30% 30%, #ff4500, #4b0000);
 }

 .p-jupiter::before {
     background-image: url('https://upload.wikimedia.org/wikipedia/commons/2/2b/Jupiter_and_its_shrunken_Great_Red_Spot.jpg');
     animation: spin 100s linear infinite;
 }

 .p-sun {
    background: radial-gradient(circle at 45% 45%, #ffffff 0%, #ffc837 25%, #ff8008 60%, #ff4500 100%);
    box-shadow: 0 0 35px rgba(255, 69, 0, 0.7);
    right: auto;
    left: 4%;
    width: 420px;
    height: 420px;
    transform: translate3d(0, calc(50vh + 230px), 0);
    opacity: 0;
    transition: transform 1.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: fixed;
    border-radius: 50%;
}

/* Radiant solar corona halo using GPU fragment shader */
.p-sun::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 110, 0, 0.5) 0%, rgba(255, 140, 0, 0.25) 45%, rgba(255, 69, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

.p-sun.active {
    transform: translate3d(0, -50%, 0);
    opacity: 1;
}

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

     to {
         transform: rotate(360deg);
     }
 }

 .era-btn {
     position: fixed;
     top: 25px;
     left: 50%;
     transform: translateX(-50%);
     z-index: 1000;
     padding: 12px 30px;
     background: var(--panel);
     color: var(--accent);
     border: 2px solid var(--accent);
     border-radius: 30px;
     font-family: Orbitron;
     font-weight: 900;
     box-shadow: var(--glow);
     transition: 0.3s;
 }

 .hamburger {
     position: fixed;
     top: 25px;
     right: 25px;
     z-index: 1001;
     background: var(--panel);
     padding: 12px;
     border: 1px solid var(--accent);
     border-radius: 10px;
     box-shadow: var(--glow);
     transition: 0.4s;
     display: flex;
     flex-direction: column;
     gap: 6px;
 }

 .hamburger div {
     width: 28px;
     height: 3px;
     background: var(--accent);
     border-radius: 2px;
     transition: 0.4s;
 }

 body.menu-open .hamburger div:nth-child(1) {
     transform: translateY(9px) rotate(45deg);
 }

 body.menu-open .hamburger div:nth-child(2) {
     opacity: 0;
 }

 body.menu-open .hamburger div:nth-child(3) {
     transform: translateY(-9px) rotate(-45deg);
 }

 .side-nav {
     position: fixed;
     top: 0;
     left: -320px;
     width: 300px;
     height: 100%;
     background: var(--panel);
     z-index: 999;
     display: flex;
     flex-direction: column;
     justify-content: center;
     border-right: 3px solid var(--accent);
     transition: 0.5s;
 }

 body.menu-open .side-nav {
     left: 0;
 }

 .side-nav a {
     padding: 20px 45px;
     color: var(--text);
     font-family: Orbitron;
     text-decoration: none;
     transition: 0.4s;
 }

 .side-nav a:hover {
     color: var(--accent);
     background: rgba(0, 212, 255, 0.1);
     padding-left: 60px;
 }

 .content-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    contain: layout;
}

.section {
    display: none;
    width: 100%;
    max-width: 600px;
    margin-left: 2%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 6px;
    transform: translate3d(0, 0, 0);
    transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    isolation: isolate;
}

.section.active {
    display: block;
    animation: sectionFadeIn 0.28s ease forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Sequenced shift to the right when entering Sun Mode (Desktop only) */
@media (min-width: 901px) {
    body.sun-mode .section {
        transform: translate3d(calc(86vw - 600px), 0, 0) !important;
        transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.28s !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

.glow-card {
     background: var(--panel);
     border: 2px solid var(--accent);
     padding: 20px;
     border-radius: 18px;
     box-shadow: var(--glow);
     margin-bottom: 20px;
     transition: 0.3s;
 }

 .typewriter-box {
     min-height: 80px;
     background: rgba(0, 0, 0, 0.3);
     border-radius: 10px;
     padding: 15px;
     font-family: 'Fira Code', monospace;
     color: #0f0;
     border-left: 3px solid #0f0;
 }

 .resume-terminal {
     background: #050505;
     border: 2px solid var(--accent);
     min-height: 300px;
     max-height: 400px;
     overflow-y: auto;
     padding: 20px;
     font-family: 'Fira Code', monospace;
     font-size: 13px;
     color: #0f0;
     box-shadow: inset 0 0 20px #000, var(--glow);
     border-radius: 12px;
     line-height: 1.6;
 }

 .resume-terminal span {
     display: block;
     margin-bottom: 5px;
 }

 .title {
     font-family: Orbitron;
     font-size: 2.5rem;
     margin-bottom: 15px;
 }

 .title span {
     color: transparent;
     -webkit-text-stroke: 1px var(--accent);
 }

 .name-tag {
     color: var(--accent);
     font-family: Orbitron;
     font-size: 20px;
     font-weight: 900;
     margin-bottom: 20px;
     display: block;
 }

 .skill-tag {
     display: inline-block;
     padding: 8px 14px;
     margin: 4px;
     border: 1px solid var(--accent);
     font-family: Orbitron;
     font-size: 9px;
     border-radius: 5px;
     color: var(--text);
     background: rgba(0, 212, 255, 0.05);
     transition: 0.4s;
 }

 .skill-tag:hover {
     background: var(--accent);
     color: #000;
     box-shadow: 0 0 20px var(--accent);
     transform: translateY(-5px);
 }

 .cert-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 10px;
 }

 .cert-link {
     display: block;
     padding: 10px;
     border: 1px solid var(--accent);
     border-radius: 8px;
     color: var(--text);
     font-family: Orbitron;
     font-size: 10px;
     text-decoration: none;
     text-align: center;
     background: rgba(0, 212, 255, 0.05);
     transition: 0.3s;
 }

 .cert-link:hover {
     background: var(--accent);
     color: #000;
     box-shadow: 0 0 15px var(--accent);
 }

 .reel-frame {
     height: 350px;
     overflow: hidden;
     border: 2px solid var(--accent);
     border-radius: 15px;
     background: rgba(0, 0, 0, 0.5);
     position: relative;
 }

 .reel-track {
     display: flex;
     flex-direction: column;
     animation: scrollDown 35s linear infinite;
 }

 .reel-frame:hover .reel-track {
     animation-play-state: paused;
 }

 @keyframes scrollDown {
     from {
         transform: translateY(0);
     }

     to {
         transform: translateY(-50%);
     }
 }

 .reel-item {
     height: 180px;
     border-bottom: 1px solid var(--accent);
     position: relative;
     display: block;
     text-decoration: none;
     overflow: hidden;
 }

 .reel-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     opacity: 0.7;
     transition: 0.4s;
 }

 .reel-item:hover img {
     opacity: 1;
     transform: scale(1.05);
 }

 .reel-item .label {
     position: absolute;
     bottom: 0;
     background: var(--accent);
     color: #000;
     width: 100%;
     text-align: center;
     font-family: Orbitron;
     font-size: 11px;
     padding: 8px;
     font-weight: 900;
 }

 input,
 textarea {
     width: 100%;
     padding: 12px;
     margin-bottom: 12px;
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid var(--accent);
     color: var(--text);
     border-radius: 8px;
     outline: none;
     font-size: 13px;
 }

 .direct-connect-card {
     padding: 14px;
     margin-bottom: 14px;
 }

 .direct-connect-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 10px;
 }

 .direct-btn {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 10px 12px;
     border-radius: 10px;
     text-decoration: none;
     font-family: 'Orbitron', sans-serif;
     transition: 0.3s;
     background: rgba(0, 0, 0, 0.4);
     border: 1px solid var(--accent);
 }

 .direct-btn i {
     font-size: 20px;
 }

 .direct-btn-text {
     display: flex;
     flex-direction: column;
 }

 .direct-label {
     font-size: 7px;
     color: var(--accent);
     letter-spacing: 1px;
 }

 .direct-val {
     font-size: 11px;
     font-weight: 700;
     color: #fff;
 }

 .direct-btn.whatsapp-btn {
     border-color: #25d366;
 }
 .direct-btn.whatsapp-btn i {
     color: #25d366;
 }
 .direct-btn.whatsapp-btn:hover {
     background: #25d366;
     box-shadow: 0 0 18px #25d366;
 }
 .direct-btn.whatsapp-btn:hover .direct-label,
 .direct-btn.whatsapp-btn:hover .direct-val,
 .direct-btn.whatsapp-btn:hover i {
     color: #000;
 }

 .direct-btn.email-btn {
     border-color: #ea4335;
 }
 .direct-btn.email-btn i {
     color: #ea4335;
 }
 .direct-btn.email-btn:hover {
     background: #ea4335;
     box-shadow: 0 0 18px #ea4335;
 }
 .direct-btn.email-btn:hover .direct-label,
 .direct-btn.email-btn:hover .direct-val,
 .direct-btn.email-btn:hover i {
     color: #fff;
 }

 .direct-btn.call-btn {
     border-color: var(--accent);
 }
 .direct-btn.call-btn i {
     color: var(--accent);
 }
 .direct-btn.call-btn:hover {
     background: var(--accent);
     box-shadow: 0 0 18px var(--accent);
 }
 .direct-btn.call-btn:hover .direct-label,
 .direct-btn.call-btn:hover .direct-val,
 .direct-btn.call-btn:hover i {
     color: #000;
 }

 @media (max-width: 600px) {
     .direct-connect-grid {
         grid-template-columns: 1fr;
     }
 }

 .floating-whatsapp {
     position: fixed;
     bottom: 22px;
     right: 25px;
     z-index: 10000;
     background: #25d366;
     color: #ffffff;
     padding: 10px 18px;
     border-radius: 30px;
     display: flex;
     align-items: center;
     gap: 8px;
     font-family: Orbitron, sans-serif;
     font-size: 11px;
     font-weight: 700;
     letter-spacing: 1px;
     text-decoration: none;
     box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
     transition: 0.3s;
 }

 .floating-whatsapp i {
     font-size: 20px;
     color: #ffffff;
 }

 .floating-whatsapp:hover {
     transform: translateY(-3px) scale(1.05);
     box-shadow: 0 6px 30px rgba(37, 211, 102, 0.8);
     color: #ffffff;
 }

 @media (max-width: 600px) {
     .floating-whatsapp span {
         display: none;
     }
     .floating-whatsapp {
         padding: 12px;
         border-radius: 50%;
         bottom: 18px;
         right: 18px;
     }
 }

 /* AI CYBER CHATBOT STYLING */
 .chatbot-card {
     padding: 0;
     overflow: hidden;
     display: flex;
     flex-direction: column;
     height: 380px;
     border: 1px solid var(--accent);
     background: rgba(8, 8, 14, 0.95);
     box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), var(--glow);
     border-radius: 12px;
 }

 .chatbot-header {
     background: rgba(15, 15, 26, 0.98);
     border-bottom: 1px solid rgba(0, 212, 255, 0.25);
     padding: 10px 14px;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .bot-status-wrap {
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .bot-avatar {
     width: 32px;
     height: 32px;
     background: rgba(0, 212, 255, 0.15);
     border: 1px solid var(--accent);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--accent);
     font-size: 14px;
     box-shadow: 0 0 10px var(--accent);
 }

 .bot-info {
     display: flex;
     flex-direction: column;
 }

 .bot-name {
     font-family: 'Orbitron', sans-serif;
     font-size: 11px;
     font-weight: 700;
     color: var(--text);
     letter-spacing: 1px;
 }

 .bot-status {
     font-size: 9px;
     font-family: 'Fira Code', monospace;
     color: #00ff88;
     display: flex;
     align-items: center;
     gap: 5px;
 }

 .status-pulse {
     width: 6px;
     height: 6px;
     background: #00ff88;
     border-radius: 50%;
     box-shadow: 0 0 8px #00ff88;
     animation: blink 1.5s infinite;
 }

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

 .bot-reset-btn {
     background: transparent;
     border: 1px solid rgba(255, 255, 255, 0.2);
     color: var(--text-muted);
     width: 28px;
     height: 28px;
     border-radius: 6px;
     cursor: pointer;
     font-size: 11px;
     transition: 0.2s;
 }

 .bot-reset-btn:hover {
     color: var(--accent);
     border-color: var(--accent);
 }

 .chatbot-messages {
     flex-grow: 1;
     overflow-y: auto;
     padding: 12px 14px;
     display: flex;
     flex-direction: column;
     gap: 10px;
     font-family: 'Poppins', sans-serif;
     font-size: 12px;
 }

 .chat-msg {
     display: flex;
     max-width: 88%;
     animation: msgFadeIn 0.3s ease;
 }

 @keyframes msgFadeIn {
     from { opacity: 0; transform: translateY(6px); }
     to { opacity: 1; transform: translateY(0); }
 }

 .chat-msg.bot {
     align-self: flex-start;
 }

 .chat-msg.user {
     align-self: flex-end;
 }

 .chat-msg.bot .msg-bubble {
     background: rgba(18, 18, 30, 0.95);
     border: 1px solid rgba(0, 212, 255, 0.3);
     color: #e2e8f0;
     border-radius: 12px 12px 12px 2px;
     padding: 9px 13px;
     line-height: 1.5;
     box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
 }

 .chat-msg.user .msg-bubble {
     background: var(--accent);
     color: #000;
     font-weight: 600;
     border-radius: 12px 12px 2px 12px;
     padding: 9px 13px;
     line-height: 1.4;
 }

 .chat-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 12px;
    background: rgba(10, 10, 18, 0.9);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
}

.chat-chips::-webkit-scrollbar {
    display: none;
}

.chip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 13px;
    height: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.chip-btn i {
    font-size: 11px;
    color: var(--accent);
    line-height: 1;
}

.chip-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
    transform: translateY(-1px);
}

.chip-btn:hover i {
    color: #000;
}

 .chat-input-bar {
     display: flex;
     padding: 8px 10px;
     background: rgba(15, 15, 25, 0.98);
     border-top: 1px solid rgba(0, 212, 255, 0.25);
     gap: 8px;
     align-items: center;
 }

 .chat-input-bar input {
     flex-grow: 1;
     margin: 0;
     padding: 9px 12px;
     background: rgba(0, 0, 0, 0.5);
     border: 1px solid rgba(0, 212, 255, 0.3);
     color: #fff;
     border-radius: 8px;
     font-size: 12px;
 }

 .chat-input-bar input:focus {
     border-color: var(--accent);
     box-shadow: 0 0 10px var(--accent-glow);
 }

 .chat-send-btn {
     background: var(--accent);
     color: #000;
     border: none;
     border-radius: 8px;
     width: 36px;
     height: 36px;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     font-size: 13px;
     transition: 0.2s;
 }

 .chat-send-btn:hover {
     box-shadow: 0 0 15px var(--accent);
     transform: scale(1.05);
 }

 .chat-btn-link {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     margin-top: 8px;
     padding: 6px 12px;
     background: #25d366;
     color: #fff !important;
     border-radius: 6px;
     text-decoration: none;
     font-size: 11px;
     font-weight: 700;
     font-family: 'Orbitron';
     box-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
     transition: 0.2s;
 }

 .chat-btn-link:hover {
     transform: translateY(-2px);
     box-shadow: 0 0 16px rgba(37, 211, 102, 0.7);
 }

 .btn {
     width: 100%;
     padding: 15px;
     background: var(--accent);
     border: none;
     font-family: Orbitron;
     font-weight: 900;
     color: #000;
     border-radius: 8px;
     cursor: pointer;
     transition: 0.3s;
     font-size: 14px;
 }

 .btn:hover {
     box-shadow: 0 0 30px var(--accent);
     transform: translateY(-2px);
 }

 .footer {
     position: fixed;
     bottom: 10px;
     width: 100%;
     text-align: center;
     font-family: Orbitron;
     font-size: 9px;
     color: var(--accent);
     z-index: 5;
 }

 @media (max-width: 900px) {

     .planet,
     #starfield {
         display: none;
     }

     .content-container {
         padding: 0 5%;
         transform: none !important;
         justify-content: center;
     }

     .section {
         max-width: 90%;
         margin-left: 0;
     }

     /* Prevent sun-mode content shift on tablet and mobile */
     body.sun-mode .section {
         transform: none !important;
         margin-left: auto !important;
         margin-right: auto !important;
         transition: none !important;
     }

     .cert-grid {
         grid-template-columns: 1fr;
     }

     .title {
         font-size: 2rem;
     }
 }
/* ==========================================
   PRINT STYLESHEET — used by "PRINT HARDCOPY"
   ========================================== */
@media print {
    #loader, #starfield, #custom-cursor, #system-hud, .side-nav, .hamburger,
    .era-btn, .planet, #bgMusic, .floating-whatsapp,
    section:not(#resume), .footer {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        overflow: visible !important;
        height: auto !important;
    }

    #resume {
        display: block !important;
        position: static !important;
        transform: none !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .resume-terminal {
        color: #000 !important;
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
        font-family: 'Fira Code', monospace;
        max-height: none !important;
        overflow: visible !important;
    }

    .btn {
        display: none !important;
    }
}

/* ==========================================
   FUTURISTIC UI ADD-ONS
   ========================================== */

/* --- Keyboard accessibility: visible focus rings --- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 12px var(--accent);
    border-radius: 4px;
}

/* --- HUD corner brackets on panels (viewfinder look) --- */
.glow-card {
    position: relative;
}

.glow-card::before,
.glow-card::after,
.resume-terminal::before,
.resume-terminal::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent);
    opacity: 0.9;
    pointer-events: none;
}

.glow-card::before, .resume-terminal::before {
    top: -6px; left: -6px;
    border-right: none; border-bottom: none;
}

.glow-card::after, .resume-terminal::after {
    bottom: -6px; right: -6px;
    border-left: none; border-top: none;
}

.resume-terminal { position: relative; }

/* --- Glitch effect on section headings --- */
.title {
    position: relative;
    display: inline-block;
}

.title:hover {
    animation: glitchShake 0.3s linear;
}

.title:hover::before,
.title:hover::after {
    content: attr(data-glitch);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    overflow: hidden;
    color: var(--accent);
    background: transparent;
    -webkit-text-stroke: 0;
}

.title:hover::before {
    animation: glitchTop 0.3s linear;
    clip-path: inset(0 0 60% 0);
    color: #ff2d75;
    transform: translate(-2px, -2px);
}

.title:hover::after {
    animation: glitchBottom 0.3s linear;
    clip-path: inset(60% 0 0 0);
    color: #00e5ff;
    transform: translate(2px, 2px);
}

@keyframes glitchShake {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, 2px); }
    80% { transform: translate(1px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitchTop {
    0% { transform: translate(-2px, -2px); }
    50% { transform: translate(2px, -1px); }
    100% { transform: translate(-2px, -2px); }
}

@keyframes glitchBottom {
    0% { transform: translate(2px, 2px); }
    50% { transform: translate(-2px, 1px); }
    100% { transform: translate(2px, 2px); }
}

/* --- Skill proficiency gauges (circular rings) --- */
.skill-gauge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.skill-gauge {
    width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.skill-gauge svg {
    width: 76px;
    height: 76px;
    transform: rotate(-90deg);
}

.skill-gauge .gauge-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.skill-gauge .gauge-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    stroke-dashoffset: 213.6;
    filter: drop-shadow(0 0 4px var(--accent));
    transition: stroke-dashoffset 1s ease-out;
}

.skill-gauge .gauge-value {
    position: absolute;
    top: 28px;
    font-family: Orbitron;
    font-size: 12px;
    font-weight: 900;
    color: var(--accent);
}

.skill-gauge .gauge-label {
    margin-top: 6px;
    font-family: Orbitron;
    font-size: 8px;
    letter-spacing: 0.5px;
    text-align: center;
    color: var(--text);
    opacity: 0.85;
}

/* --- Cursor click ripple/pulse --- */
.click-ripple {
    position: fixed;
    width: 48px;
    height: 48px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0) scale(0.2);
    animation: rippleOut 0.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes rippleOut {
    0% { transform: translate3d(-50%, -50%, 0) scale(0.2); opacity: 0.9; }
    100% { transform: translate3d(-50%, -50%, 0) scale(1.5); opacity: 0; }
}

/* --- System HUD panel --- */
#system-hud {
    position: fixed;
    bottom: 14px;
    left: 14px;
    z-index: 500;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 8px 12px;
    line-height: 1.6;
    pointer-events: none;
    opacity: 0.85;
}

.hud-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: hudPulse 1.4s infinite;
    margin-right: 4px;
}

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

@media (max-width: 600px) {
    #system-hud { display: none; }
}

/* --- Profile photo frame (HOME section) --- */
.profile-photo-frame {
    width: 150px !important;
    height: 150px !important;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    box-shadow: 0 0 15px var(--accent), 0 0 30px rgba(0, 212, 255, 0.3);
    margin-bottom: 18px;
    position: relative;
    flex-shrink: 0;
}

.profile-photo-clip {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    border: 2px solid var(--accent);
    overflow: hidden !important;
    clip-path: circle(50%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.profile-photo-clip img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-photo-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent);
    font-size: 40px;
}

@media (max-width: 600px) {
    .profile-photo-frame { width: 110px !important; height: 110px !important; margin-bottom: 12px; }
    .profile-photo-placeholder { font-size: 32px; }
}

/* Floating Audio Toggle Button */
.audio-toggle-btn {
    position: fixed;
    top: 25px;
    right: 85px;
    z-index: 1001;
    background: var(--panel);
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow);
    cursor: pointer;
    transition: 0.3s;
    font-size: 15px;
}

.audio-toggle-btn:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
}

/* ==========================================
   MOBILE CONTROLS & NAVIGATION (<= 768px)
   ========================================== */
@media (max-width: 768px) {
    /* Era Toggle Button: Top-Left */
    .era-btn {
        top: 14px;
        left: 14px;
        right: auto;
        transform: none !important;
        padding: 0 14px;
        height: 38px;
        font-size: 11px;
        font-weight: 700;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: calc(100vw - 125px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }

    /* Sound Toggle Button: Top-Right (next to Hamburger) */
    .audio-toggle-btn {
        top: 14px;
        right: 60px;
        width: 38px;
        height: 38px;
        font-size: 13px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Hamburger Menu Button: Top-Right corner */
    .hamburger {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        padding: 9px 8px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        box-sizing: border-box;
    }

    .hamburger div {
        width: 20px;
        height: 2.5px;
    }

    body.menu-open .hamburger div:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    body.menu-open .hamburger div:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .hamburger div:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    /* Smoothly hide header action buttons when drawer is open */
    body.menu-open .era-btn,
    body.menu-open .audio-toggle-btn {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s;
    }

    /* Fullscreen Frosted Cyber Navigation Drawer */
    .side-nav {
        position: fixed;
        top: 0;
        left: -100% !important;
        width: 100% !important;
        height: 100vh;
        height: 100dvh;
        background: rgba(8, 8, 14, 0.97) !important;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-right: none !important;
        transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        padding: 50px 20px 20px 20px;
        box-sizing: border-box;
    }

    body.menu-open .side-nav {
        left: 0 !important;
    }

    .side-nav a {
        padding: 14px 24px !important;
        font-size: 15px !important;
        letter-spacing: 2px;
        text-align: center;
        width: 100%;
        max-width: 260px;
        border-radius: 8px;
        margin: 4px 0;
        transition: 0.3s;
    }

    .side-nav a:hover,
    .side-nav a[aria-current="page"] {
        color: var(--accent) !important;
        background: rgba(0, 212, 255, 0.12) !important;
        padding-left: 24px !important;
        border-left: none !important;
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
    }

    body.sun-mode .side-nav {
        background: rgba(245, 246, 250, 0.98) !important;
    }

    body.sun-mode .side-nav a:hover,
    body.sun-mode .side-nav a[aria-current="page"] {
        background: rgba(255, 68, 0, 0.12) !important;
        box-shadow: 0 0 15px rgba(255, 68, 0, 0.25);
    }

    /* Mobile Content Container and Section layout */
    .content-container {
        padding: 68px 16px 20px 16px !important;
        align-items: flex-start !important;
        height: 100vh;
        height: 100dvh;
        box-sizing: border-box;
    }

    .section {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        max-height: calc(100dvh - 88px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-right: 4px;
        padding-bottom: 40px;
    }
}

/* System HUD toast notification banner */
.hud-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(10, 10, 18, 0.96);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 25px;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5), inset 0 0 10px rgba(0, 212, 255, 0.2);
    z-index: 15000;
    pointer-events: none;
    opacity: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.hud-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Sun Mode Contrast & Readability Fixes */
body.sun-mode .skill-gauge .gauge-track {
    stroke: rgba(0, 0, 0, 0.12) !important;
}

body.sun-mode .typewriter-box {
    background: rgba(0, 0, 0, 0.88);
    color: #00ff66;
    border-left: 3px solid #d43f00;
}

body.sun-mode .resume-terminal {
    background: #0f0f15;
    color: #00ff66;
}

body.sun-mode .cert-link {
    background: rgba(0, 0, 0, 0.04);
}

body.sun-mode .service-box {
    background: rgba(0, 0, 0, 0.04);
}

/* Resume Dual Actions Grid */
.resume-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.resume-btn-primary {
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 12px;
    padding: 12px;
    border: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.resume-btn-primary:hover {
    box-shadow: 0 0 25px var(--accent);
    transform: translateY(-2px);
}

.resume-btn-secondary {
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    padding: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.resume-btn-secondary:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 25px var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .resume-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* Services / Specializations Card */
.services-card {
    padding: 18px;
    margin-bottom: 20px;
}

.section-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.service-box {
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    transition: 0.3s ease;
}

.service-box:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
}

.service-icon {
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 8px;
}

.service-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.service-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    color: #cbd5e1;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        gap: 6px;
    }

    .metric-item {
        padding: 8px 3px;
    }

    .metric-num {
        font-size: 16px;
    }

    .metric-lbl {
        font-size: 7px;
    }
}

/* Enhanced Reel Items */
.reel-item {
    height: 190px;
    border-bottom: 1px solid var(--accent);
    position: relative;
    display: block;
    overflow: hidden;
}

.reel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: 0.4s;
}

.reel-item:hover img {
    opacity: 1;
    transform: scale(1.04);
}

.reel-top-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.reel-badge {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.reel-label-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 12, 0.95);
    border-top: 1px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    box-sizing: border-box;
    z-index: 2;
}

.reel-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
}

.reel-links {
    display: flex;
    gap: 6px;
}

.reel-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    transition: 0.25s;
    letter-spacing: 0.5px;
}

.reel-btn.live-btn {
    background: var(--accent);
    color: #000;
}

.reel-btn.live-btn:hover {
    box-shadow: 0 0 10px var(--accent);
    transform: translateY(-1px);
}

.reel-btn.code-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.reel-btn.code-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-1px);
}

/* ==========================================
   1. CUSTOM CYBER NEON SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.45);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent);
}
::-webkit-scrollbar-thumb:hover {
    background: #fff;
    box-shadow: 0 0 16px var(--accent);
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(0, 0, 0, 0.4);
}
body.sun-mode ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
}
body.sun-mode * {
    scrollbar-color: var(--accent) rgba(0, 0, 0, 0.08);
}

/* ==========================================
   2. SIDE NAV ACTIVE PAGE GLOW
   ========================================== */
.side-nav a[aria-current="page"] {
    color: var(--accent) !important;
    background: var(--planet-glow) !important;
    border-left: 4px solid var(--accent) !important;
    padding-left: 50px !important;
    font-weight: 700;
    text-shadow: 0 0 10px var(--accent);
}
body.sun-mode .side-nav a[aria-current="page"] {
    background: rgba(212, 63, 0, 0.12) !important;
    text-shadow: none;
}

/* ==========================================
   3. DATA VAULT CLEAN BUTTONS & ICONS
   ========================================== */
.cert-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 10px !important;
    border: 1px solid var(--accent) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    font-family: Orbitron !important;
    font-size: 10px !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    text-align: center !important;
    background: rgba(0, 212, 255, 0.05) !important;
    transition: 0.3s ease !important;
}
.cert-link i {
    font-size: 13px;
    color: var(--accent);
    transition: 0.3s;
}
.cert-link:hover {
    background: var(--accent) !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--accent) !important;
    transform: translateY(-2px);
}
.cert-link:hover i {
    color: #000 !important;
}
body.sun-mode .cert-link {
    background: rgba(0, 0, 0, 0.04) !important;
}

/* ==========================================
   4. HOME TRUST METRICS (6+ LIVE, 8+ CISCO, 100%)
   ========================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}
.metric-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.metric-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--planet-glow);
}
.metric-num {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent);
    line-height: 1.1;
    margin-bottom: 4px;
}
.metric-lbl {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 8.5px;
    letter-spacing: 0.5px;
    color: var(--text);
    opacity: 0.85;
}
.metric-lbl i {
    color: var(--accent);
    margin-right: 3px;
}
body.sun-mode .metric-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}
body.sun-mode .metric-num {
    text-shadow: none;
}

/* ==========================================
   5. PROFILE PHOTO DYNAMIC PLANET GLOW
   ========================================== */
.profile-photo-frame {
    box-shadow: 0 0 15px var(--accent), 0 0 35px var(--planet-glow) !important;
    transition: box-shadow 0.6s ease;
}
.profile-photo-placeholder {
    background: var(--planet-glow) !important;
}
/* ==========================================
   LEGENDARY-TIER ADD-ONS
   ========================================== */

/* --- Time-based greeting --- */
.greeting-line {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--accent);
    opacity: 0.8;
    margin-top: 4px;
    margin-bottom: 6px;
    min-height: 16px;
}

/* --- Reveal-on-scroll --- */
.reveal-item {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.reveal-item.revealed {
    opacity: 1;
}

/* --- Cursor magnetic hover state --- */
#custom-cursor.cursor-hover {
    width: 46px !important;
    height: 46px !important;
    background: rgba(0, 212, 255, 0.08);
    border-width: 1px;
}

#custom-cursor.cursor-hover::after {
    width: 9px;
    height: 9px;
}

/* --- GitHub live stats --- */
.github-stats-img {
    width: 100%;
    max-width: 100%;
    display: block;
    border-radius: 10px;
}

/* --- Project gallery: native scroll + arrow controls --- */
.reel-wrapper {
    position: relative;
}

.reel-frame {
    height: 350px;
    overflow-y: auto;
    border: 2px solid var(--accent);
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    scrollbar-width: none;
}

.reel-frame::-webkit-scrollbar {
    display: none;
}

.reel-track {
    display: flex;
    flex-direction: column;
}

.reel-nav-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 34px;
    height: 22px;
    border: 1px solid var(--accent);
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.reel-nav-btn:hover {
    background: var(--accent);
    color: #000;
}

.reel-nav-up { top: -28px; }
.reel-nav-down { bottom: -28px; }

.reel-btn.details-btn {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.reel-btn.details-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Case study modal --- */
.case-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.case-modal-overlay.open {
    display: flex;
}

.case-modal-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--panel);
    border: 2px solid var(--accent);
    border-radius: 16px;
    box-shadow: var(--glow);
    animation: caseModalIn 0.3s ease;
}

@keyframes caseModalIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.case-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: rgba(0, 0, 0, 0.6);
    color: var(--accent);
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
}

.case-modal-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 14px 14px 0 0;
}

.case-modal-body {
    padding: 20px;
}

.case-modal-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    margin-bottom: 10px;
}

.case-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.case-modal-badges span {
    font-size: 10px;
    font-family: 'Orbitron', sans-serif;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 6px;
}

.case-modal-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 16px;
}

.case-modal-links {
    display: flex;
    gap: 10px;
}

/* --- Konami easter egg flash --- */
@keyframes konamiFlash {
    0%, 100% { filter: none; }
    50% { filter: hue-rotate(180deg) saturate(2); }
}

body.konami-active {
    animation: konamiFlash 0.6s ease 3;
}

@media (max-width: 600px) {
    .reel-nav-btn { display: none; }
}

.github-stats-fallback {
    display: none;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text);
    opacity: 0.7;
    text-align: center;
    padding: 20px 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.github-stats-fallback a {
    color: var(--accent);
}