/* Modern Portfolio Styling - Retrowave/Vaporwave Edition */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@400;500;600;700;800&family=Share+Tech+Mono&family=JetBrains+Mono:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');

:root {
    --bg-color: #0b0214;
    --bg-card: rgba(26, 11, 46, 0.65);
    --bg-card-hover: rgba(43, 19, 74, 0.8);
    --text-primary: #faebff;
    --text-secondary: #d3c4e3;
    --text-muted: #8b76a6;
    --accent: #d946ef; /* Windows Plum Light */
    --accent-glow: rgba(217, 70, 239, 0.35);
    --accent-cyan: #06b6d4; /* Synthwave Cyan */
    --accent-cyan-glow: rgba(6, 182, 212, 0.35);
    --border: rgba(217, 70, 239, 0.15);
    --border-hover: rgba(217, 70, 239, 0.6);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-sans: 'Rajdhani', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: var(--font-heading);
}

.project-card, .personal-card, .contact-method-card, .contact-form-container {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-color);
    background-color: var(--bg-color);
}

body {
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* Static Background Grid Pattern */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(217, 70, 239, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.04) 0%, transparent 45%),
        linear-gradient(to right, rgba(217, 70, 239, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(217, 70, 239, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    background-attachment: fixed;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(217, 70, 239, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background-color: rgba(11, 2, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: transform var(--transition-normal), background-color var(--transition-normal), height var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.site-header.scrolled {
    height: 56px;
    background-color: rgba(11, 2, 20, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-fast);
    box-shadow: 0 0 8px var(--accent-glow);
}

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

/* Floating Navigation Pill */
.floating-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    z-index: 1000;
    background: rgba(10, 3, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--accent);
    border-radius: 9999px;
    padding: 0.375rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(217, 70, 239, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.25rem;
    transition: transform var(--transition-normal);
    overflow: hidden;
}

/* CRT Scanline Effect on Selector */
.floating-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 5, 34, 0.25) 50%, transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1; /* Positioned behind the nav text */
}

.floating-nav.visible {
    transform: translateX(-50%) translateY(0);
}

.floating-nav-item {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
    z-index: 2; /* Positioned in front of the scanlines */
}

.floating-nav-item:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.floating-nav-item.active {
    background-color: rgba(217, 70, 239, 0.25);
    border: 1px solid var(--accent);
    color: #ffffff;
    box-shadow: 0 0 12px var(--accent-glow);
    text-shadow: 0 0 8px rgba(217, 70, 239, 0.8);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-tag {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.4), 0 0 20px rgba(14, 165, 233, 0.2);
}

.hero-title .highlight {
    font-weight: 900;
    color: #ffffff; /* Saturated white name for max visibility */
    text-shadow: 0 0 10px rgba(219, 39, 119, 0.8), 0 0 20px rgba(219, 39, 119, 0.5);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: rgba(219, 39, 119, 0.15) !important;
    border: 2px solid #db2777 !important;
    border-radius: 8px;
    color: #db2777 !important;
    box-shadow: 0 0 10px rgba(219, 39, 119, 0.2) !important;
    text-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.05rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    isolation: isolate;
}

.btn-primary:hover {
    background: rgba(219, 39, 119, 0.35) !important;
    box-shadow: 0 0 18px rgba(219, 39, 119, 0.6) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

.btn-primary svg {
    fill: currentColor !important;
    stroke: currentColor !important;
    mix-blend-mode: normal;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%; /* circular link */
    background: rgba(14, 165, 233, 0.15) !important;
    border: 2px solid #0ea5e9 !important;
    color: #0ea5e9 !important;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.social-btn:hover {
    background: rgba(14, 165, 233, 0.35) !important;
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.6) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor !important;
    mix-blend-mode: normal;
}

/* 3D Spinning Cube */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cube-container {
    width: 440px;
    height: 440px;
    max-width: 90vw;
    max-height: 90vh;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube {
    width: 160px;
    height: 160px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(30deg);
    transition: transform 0.1s ease;
    cursor: grab;
}

.cube.auto-spinning {
    animation: rotate-cube 20s linear infinite;
}

.cube:active {
    cursor: grabbing;
}

.cube-face {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 2px solid var(--accent);
    background: rgba(26, 11, 46, 0.6);
    box-shadow: inset 0 0 25px rgba(217, 70, 239, 0.35), 0 0 15px rgba(217, 70, 239, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    user-select: none;
    backface-visibility: visible;
}

.cube-front  { transform: rotateY(  0deg) translateZ(80px); }
.cube-back   { transform: rotateY(180deg) translateZ(80px); }
.cube-right  { transform: rotateY( 90deg) translateZ(80px); }
.cube-left   { transform: rotateY(-90deg) translateZ(80px); }
.cube-top    { transform: rotateX( 90deg) translateZ(80px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(80px); }

@keyframes rotate-cube {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

/* Active Responsive Sidebar Section Tracker */
/* Active Responsive Sidebar Section Tracker */
.sections-sidebar {
    position: fixed;
    right: 2rem;
    top: 38%; /* Moved higher to stay above horizon */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 90;
    opacity: 0.7; /* Always visible but slightly transparent when idle */
    pointer-events: auto;
    transition: opacity 0.3s var(--transition-fast);
}

.sections-sidebar:hover {
    opacity: 1;
}

.sidebar-dots-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Larger gap */
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem; /* Slightly larger gap */
    cursor: pointer;
}

.sidebar-label {
    font-family: var(--font-mono);
    font-size: 0.82rem; /* Larger label font */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s var(--transition-fast), transform 0.3s var(--transition-fast);
    pointer-events: none;
}

/* Show labels when hovering sidebar OR when scrolling */
.sidebar-item:hover .sidebar-label,
body.scrolling .sidebar-item .sidebar-label {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-item.active .sidebar-label {
    color: var(--accent);
}

.sidebar-dot {
    width: 10px; /* Larger dot */
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.3s var(--transition-fast);
}

.sidebar-item:hover .sidebar-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
    transform: scale(1.3);
}

.sidebar-item.active .sidebar-dot {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.5);
}

/* Responsive dynamic scroll tracker caret pointer */
.sidebar-fluid-indicator {
    position: absolute;
    right: -18px; /* Adjusted for larger dots */
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    text-shadow: 0 0 8px var(--accent-cyan-glow);
    font-size: 0.9rem; /* Larger caret */
    pointer-events: none;
    z-index: 95;
    transform: translateY(-50%);
    transition: none;
}

/* Main Sections Layout */
.section {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 0 8px var(--accent-cyan-glow);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Symmetrical About Section layout */
/* Symmetrical About Section layout */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
    max-width: 960px; /* Pulls profile window and cards closer to the center */
    margin: 0 auto; /* Center alignment */
}

.about-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* Experience grid and right column alignments */
.experience-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.experience-right-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3.5rem; /* Align with left timeline start */
}

/* Folder-casing Custom PDA (Upright Vertical Casing) */
.pda-device {
    display: flex;
    flex-direction: column;
    background: #2b2b36;
    border: 4px solid #1c1c24;
    border-radius: 20px;
    padding: 10px; /* Slim bezels */
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(217, 70, 239, 0.15);
    width: 100%;
    min-height: 480px;
    position: relative;
    gap: 12px;
    margin-top: 36px; /* Space for the top tab */
}

/* Inner bezel outline */
.pda-device::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid #3c3d4e;
    border-radius: 16px;
    pointer-events: none;
    z-index: 10;
}

/* Top-Left Folder Tab Area (Holds the horizontal buttons column) */
.pda-folder-tab {
    position: absolute;
    top: -36px;
    left: 20px;
    height: 38px;
    width: 155px; /* Fits buttons cleanly */
    background: #2b2b36;
    border-top: 4px solid #1c1c24;
    border-left: 4px solid #1c1c24;
    border-top-left-radius: 12px;
    z-index: 15;
    padding-left: 6px;
    display: flex;
    align-items: center;
}

.pda-folder-tab::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -20px;
    width: 24px;
    height: 38px;
    background: #2b2b36;
    border-top: 4px solid #1c1c24;
    border-right: 4px solid #1c1c24;
    transform: skewX(45deg);
    border-top-right-radius: 8px; /* Smooth rounded 45-deg shoulder cut */
    transform-origin: bottom left;
    z-index: 14;
}

.pda-folder-tab::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: calc(100% + 18px);
    height: 8px;
    background: #2b2b36;
    z-index: 16;
}

.pda-tab-buttons {
    display: flex;
    flex-direction: row; /* Buttons run horizontally inside tab! */
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Main Body Container below the tab */
.pda-body-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    height: 410px; /* Upright screen height */
    align-items: stretch;
    z-index: 15;
}

/* Regular Rectangular screen inside PDA casing */
.pda-screen {
    flex: 1;
    height: 100%;
    background-color: #243029; /* LCD Matrix Green */
    background-image: linear-gradient(rgba(26, 36, 30, 0.15) 1px, transparent 1px);
    background-size: 100% 3px;
    border: 3px solid #181920;
    border-radius: 10px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    align-items: center;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.pda-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(80, 250, 123, 0) 0%, rgba(80, 250, 123, 0.04) 50%, rgba(80, 250, 123, 0) 100%);
    animation: pdaScanLine 5s linear infinite;
    pointer-events: none;
    z-index: 2;
}

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

.pda-avatar-wrap {
    width: 32%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pda-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #3c4e42;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    filter: sepia(0.2) contrast(1.1) brightness(0.95);
    background-color: #1b251f;
}

.pda-bio-wrap {
    width: 68%;
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    align-items: center;
}

.pda-bio-wrap p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #a3c4b2;
    margin: 0;
    font-family: var(--font-mono);
    text-shadow: 0 0 2px rgba(163, 196, 178, 0.3);
}

/* Scrollbar inside PDA screen */
.pda-bio-wrap::-webkit-scrollbar {
    width: 4px;
}
.pda-bio-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.pda-bio-wrap::-webkit-scrollbar-thumb {
    background: #3e5347;
    border-radius: 2px;
}

/* Stylus Pen Slot Bezel (Far Right) */
.pda-stylus-holder {
    width: 14px;
    background: #24252f;
    border: 2px solid #1c1c24;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 15px 0;
    flex-shrink: 0;
    height: 100%;
}

.pda-stylus-pen {
    width: 5px;
    height: 85%;
    background: linear-gradient(to right, #3f404f, #22232c, #3f404f);
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8), 0 1px 1px rgba(255,255,255,0.1);
    position: relative;
}

/* Stylus tip and cap details */
.pda-stylus-pen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: #0ea5e9; /* Teal cap */
    border-radius: 2px 2px 0 0;
}

.pda-stylus-pen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: #0ea5e9; /* Teal tip */
    border-radius: 0 0 2px 2px;
}

/* Hardware Buttons styles */
.pda-hardware-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #353644;
    border: 2px solid #1c1c24;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 4px rgba(0,0,0,0.6);
    cursor: pointer;
    position: relative;
    transition: transform 0.08s, box-shadow 0.08s;
}

.pda-hardware-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #181920;
}

.pda-hardware-btn:active, .pda-hardware-btn.clicked {
    transform: translateY(1.5px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.8), 0 0px 1px rgba(0,0,0,0.2);
}

/* Scroll Rocker Button - horizontal side-by-side layout */
.pda-rocker-btn {
    display: flex;
    flex-direction: row; /* Horizontal side-by-side scroll rocker! */
    width: 44px;
    height: 24px;
    background: #353644;
    border: 2px solid #1c1c24;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.rocker-up, .rocker-down {
    flex: 1;
    height: 100%;
    cursor: pointer;
    position: relative;
    background: transparent;
    transition: background-color 0.1s;
}

.rocker-up:hover, .rocker-down:hover {
    background: rgba(255, 255, 255, 0.06);
}

.rocker-up::after, .rocker-down::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.rocker-up::after {
    left: 4px;
    border-right: 5px solid #181920; /* Arrow pointing left */
}

.rocker-down::after {
    right: 4px;
    border-left: 5px solid #181920; /* Arrow pointing right */
}

.rocker-up:active, .rocker-up.clicked {
    background: #1c1c24;
}

.rocker-down:active, .rocker-down.clicked {
    background: #1c1c24;
}

/* Power & LED container */
.pda-power-container {
    display: flex;
    flex-direction: row; /* Horizontal row inside the folder tab */
    align-items: center;
    gap: 6px;
}

.pda-led.green {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 6px #00ff66;
}

.pda-led.green.off {
    background: #11381c !important;
    box-shadow: none !important;
}

/* Teal Slide Switch - Horizontal slider */
.pda-teal-switch {
    width: 26px;
    height: 16px;
    background: #0ea5e9;
    border: 1.5px solid #1c1c24;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1.5px 3px rgba(0,0,0,0.5);
    transition: background-color 0.2s;
}

.pda-teal-switch .switch-nob {
    width: 10px;
    height: 12px;
    background: #e2e8f0;
    border-radius: 1.5px;
    position: absolute;
    left: 2px;
    top: 0.5px;
    box-shadow: 1px 0 1.5px rgba(0,0,0,0.6);
    transition: transform 0.2s;
}

.pda-teal-switch.off {
    background: #0284c7;
}

.pda-teal-switch.off .switch-nob {
    transform: translateX(11px); /* Slides horizontally! */
}

/* LCD screen states */
.screen-off {
    background-color: #111412 !important;
    background-image: none !important;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.95) !important;
}
.screen-off * {
    display: none !important;
}

.screen-active-glow {
    background-color: #2b3b32 !important;
    box-shadow: inset 0 0 28px rgba(80, 250, 123, 0.3) !important;
}

.screen-glitch {
    animation: pdaGlitchFlash 0.3s linear;
}

@keyframes pdaGlitchFlash {
    0% { filter: contrast(1) brightness(1); }
    30% { filter: contrast(1.8) brightness(1.5) hue-rotate(90deg); }
    60% { filter: contrast(0.6) brightness(0.6) hue-rotate(180deg); }
    100% { filter: contrast(1) brightness(1); }
}


.about-text-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent), var(--accent-cyan));
    opacity: 0.6;
}

.about-text-card:hover {
    border-color: rgba(217, 70, 239, 0.85);
    background-color: rgba(217, 70, 239, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(217, 70, 239, 0.35), inset 0 0 15px rgba(217, 70, 239, 0.2);
}

.about-text-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.about-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    justify-content: space-between;
}

/* Premium Project Cards Layout matching the screenshot */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background-color: rgba(15, 6, 28, 0.72);
    background-image: linear-gradient(rgba(217, 70, 239, 0.08) 1px, transparent 1px);
    background-size: 100% 4px;
    border: 1.5px solid rgba(217, 70, 239, 0.7);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.28), inset 0 0 12px rgba(217, 70, 239, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    position: relative;
    height: 100%;
}

.project-card:hover {
    border-color: rgba(217, 70, 239, 0.95);
    background-color: rgba(217, 70, 239, 0.1);
    box-shadow: 0 12px 30px rgba(217, 70, 239, 0.5), inset 0 0 20px rgba(217, 70, 239, 0.35);
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

.btn-details, .btn-visit {
    display: inline-block;
    text-align: center;
    padding: 0.6rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    flex: 1;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-details {
    border: 1px solid rgba(217, 70, 239, 0.4);
    color: var(--accent);
    background: transparent;
}

.btn-details:hover {
    background: rgba(217, 70, 239, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.25);
}

.btn-visit {
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: var(--accent-cyan);
    background: transparent;
}

.btn-visit:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.project-card-media {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card:hover .project-card-img {
    transform: scale(1.05);
}

.project-card-num {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
    z-index: 10;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.8);
}

.project-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1.25rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.project-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: -0.5rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-card-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(217, 70, 239, 0.08);
    border: 1px solid rgba(217, 70, 239, 0.2);
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    color: var(--accent);
}

.project-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.project-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* Experience Section (Timeline) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--accent-cyan); /* Neon blue line */
    box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    background: rgba(9, 21, 36, 0.75); /* Dark translucent blue */
    border: 1px solid rgba(14, 165, 233, 0.35); /* Neon blue border */
    border-radius: 12px;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

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

.timeline-item:hover {
    border-color: rgba(14, 165, 233, 0.7);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 2.2rem; /* Adjusted for card padding */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan-glow);
    transition: background-color var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-cyan);
}

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

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
}

.timeline-role span {
    color: var(--accent);
}

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

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

.timeline-desc ul {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 9999px;
    color: var(--accent-cyan) !important;
    font-family: var(--font-mono);
    font-size: 0.75rem !important;
    padding: 0.3rem 0.8rem !important;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.1);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
    transform: translateY(-1px);
}

/* Contact Page Styles */
.contact-layout {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.contact-standalone {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.contact-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
}

.contact-title .highlight {
    color: var(--accent);
    text-shadow: 0 0 25px var(--accent-glow);
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-method-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 2rem;
    background-color: rgba(15, 6, 28, 0.72);
    background-image: linear-gradient(rgba(217, 70, 239, 0.08) 1px, transparent 1px);
    background-size: 100% 4px;
    border: 1px solid rgba(217, 70, 239, 0.45);
    border-radius: 12px;
    transition: all var(--transition-fast);
    flex: 1;
    min-width: 250px;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.28), inset 0 0 12px rgba(217, 70, 239, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-method-card:hover {
    border-color: rgba(217, 70, 239, 0.95);
    background-color: rgba(217, 70, 239, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(217, 70, 239, 0.45), inset 0 0 18px rgba(217, 70, 239, 0.3);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    background: rgba(217, 70, 239, 0.1);
    border: 1px solid rgba(217, 70, 239, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-method-icon svg {
    width: 20px;
    height: 20px;
}

.contact-method-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

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

.contact-method-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Split Layout: PDA on Left, Details on Right */
.contact-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    text-align: left;
    align-items: start;
    margin-top: 2rem;
}

.contact-left-col {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.contact-right-col {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.contact-details-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), inset 0 0 10px rgba(255, 255, 255, 0.03);
    width: 410px;
    max-width: 100%;
}

.details-section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 8px var(--accent-cyan-glow);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin: 0;
}

.contact-methods-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-methods-vertical .contact-method-card {
    margin-top: 0;
    flex: none;
    width: 100%;
}

.contact-socials-vertical {
    display: flex;
    flex-direction: column;
}

.social-links-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

/* Contact Form Container on contact page */
.contact-form-container {
    width: 100%;
    max-width: 380px;
    margin: 1rem auto;
    background: var(--bg-card);
    border: 12px solid #140727;
    border-radius: 40px;
    padding: 3.5rem 1.5rem 2.5rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 10px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Retro PDA Chassis */
.contact-form-container.pda-device {
    width: 410px;
    max-width: 100%;
    background: 
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 3px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 1px, transparent 1px, transparent 4px),
        linear-gradient(135deg, #b0b5bc 0%, #e8ecef 25%, #828890 50%, #e2e6ea 75%, #6e737b 100%);
    border: 1px solid #7c828a;
    border-radius: 24px;
    padding: 0;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.8),
        inset 0 2px 2px rgba(255,255,255,0.6),
        inset 0 -2px 5px rgba(0,0,0,0.4),
        0 0 0 4px #b8bdc5,
        0 0 0 5px rgba(0,0,0,0.3);
    overflow: visible;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* PDA Top Bezel */
.pda-top-bezel {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    box-shadow: 0 1px 0 rgba(255,255,255,0.4);
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
}

.pda-led {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 
        0 0 8px #10b981, 
        0 0 15px #10b981,
        inset 0 1px 1px rgba(0,0,0,0.4);
    border: 1px solid rgba(0,0,0,0.3);
    outline: 1px solid rgba(255,255,255,0.5);
    animation: pda-led-pulse 2s infinite ease-in-out;
}

@keyframes pda-led-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.pda-led.transmitting {
    background-color: #ff3333;
    box-shadow: 0 0 12px #ff3333, 0 0 20px #ff3333;
    animation: pda-led-flash 0.2s infinite alternate;
}

@keyframes pda-led-flash {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.pda-logo {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #2b2c30;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.pda-ir-port {
    width: 45px;
    height: 8px;
    background: #400000;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.4);
    box-shadow: 
        inset 0 1px 2px rgba(0,0,0,0.8),
        0 1px 0 rgba(255,255,255,0.4);
    position: relative;
    overflow: hidden;
}

.pda-ir-port::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 0, 0, 0.4), transparent);
}

/* PDA Screen Container */
.pda-screen {
    margin: 0 1rem;
    background: var(--bg-card);
    border: 6px solid #140727;
    border-radius: 12px;
    padding: 2.25rem 1.25rem 2.05rem 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 4px 10px rgba(0,0,0,0.9),
        0 1px 1px rgba(255,255,255,0.6);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

/* PDA Screen Flash Effect Overlay */
.pda-screen.flash-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 100;
    pointer-events: none;
    animation: quick-flash 0.4s ease-out forwards;
}

@keyframes quick-flash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* PDA Bottom Bezel */
.pda-bottom-bezel {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(255,255,255,0.08), transparent);
    border-top: 1px solid rgba(0,0,0,0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
    width: 100%;
}

/* Symmetrical physical buttons container covering 80% width */
.pda-buttons-container {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Retro physical buttons (Moulded Plastic style) */
.pda-physical-btn {
    width: 46px;
    height: 38px;
    background: linear-gradient(to bottom, #3a3b3f 0%, #202124 100%);
    border: 1px solid #121314;
    border-radius: 8px;
    box-shadow: 
        0 4px 0 #08090a,
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 2px rgba(0,0,0,0.5),
        0 4px 8px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.05s ease, box-shadow 0.05s ease;
}

.pda-physical-btn:active,
.pda-physical-btn.clicked {
    transform: translateY(3px);
    box-shadow: 
        0 1px 0 #08090a,
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 -1px 1px rgba(0,0,0,0.4),
        0 1px 4px rgba(0,0,0,0.5);
}

.pda-btn-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.pda-btn-svg {
    transition: color 0.1s ease;
}

.pda-physical-btn.end-call {
    border-color: #291212;
}

.pda-physical-btn.end-call:hover {
    background: linear-gradient(to bottom, #4f2525 0%, #2e1212 100%);
    border-color: #ff5555;
    box-shadow: 
        0 4px 0 #1c0808,
        0 0 12px rgba(255, 85, 85, 0.4);
}

.pda-physical-btn.end-call:hover .pda-btn-svg {
    color: #ff3333 !important;
}

.pda-physical-btn.end-call:active,
.pda-physical-btn.end-call.clicked {
    transform: translateY(3px);
    box-shadow: 
        0 1px 0 #1c0808,
        0 0 8px rgba(255, 85, 85, 0.2);
}

.pda-physical-btn.pick-up {
    border-color: #12291a;
}

.pda-physical-btn.pick-up:hover {
    background: linear-gradient(to bottom, #1d402b 0%, #112419 100%);
    border-color: #00ff66;
    box-shadow: 
        0 4px 0 #081a0f,
        0 0 12px rgba(0, 255, 102, 0.4);
}

.pda-physical-btn.pick-up:hover .pda-btn-svg {
    color: #00ff66 !important;
}

.pda-physical-btn.pick-up:active,
.pda-physical-btn.pick-up.clicked {
    transform: translateY(3px);
    box-shadow: 
        0 1px 0 #081a0f,
        0 0 8px rgba(0, 255, 102, 0.2);
}

.pda-physical-btn#pda-btn-memo {
    border-color: #292612;
}

.pda-physical-btn#pda-btn-memo:hover {
    background: linear-gradient(to bottom, #4a4220 0%, #29240f 100%);
    border-color: #ffe600;
    box-shadow: 
        0 4px 0 #1c1a07,
        0 0 12px rgba(255, 230, 0, 0.4);
}

.pda-physical-btn#pda-btn-memo:hover .pda-btn-svg {
    color: #ffe600 !important;
}

.pda-physical-btn#pda-btn-memo:active,
.pda-physical-btn#pda-btn-memo.clicked {
    transform: translateY(3px);
    box-shadow: 
        0 1px 0 #1c1a07,
        0 0 8px rgba(255, 230, 0, 0.2);
}

/* Ping Messaging App Interface */
.ping-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(217, 70, 239, 0.2);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.ping-app-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ping-chat-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px var(--accent-cyan-glow));
}

.ping-app-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    text-shadow: 0 0 8px var(--accent-cyan-glow);
}

.ping-send-btn {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
    box-shadow: 0 0 5px rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.ping-send-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ping-send-btn:hover {
    color: var(--accent);
    background: rgba(217, 70, 239, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: scale(1.03);
}

.ping-send-icon {
    width: 14px;
    height: 14px;
}

/* Retro green screen backlight mode */
.pda-screen.green-backlight {
    background-color: #0f2d19;
    border-color: #0c1a10;
    box-shadow: 
        inset 0 4px 10px rgba(0,0,0,0.9),
        0 0 15px rgba(16, 185, 129, 0.2);
}
.pda-screen.green-backlight .ping-app-name {
    color: #39ff14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}
.pda-screen.green-backlight .ping-send-btn {
    color: #39ff14;
    border-color: rgba(57, 255, 20, 0.3);
}
.pda-screen.green-backlight .ping-send-btn:hover {
    color: #39ff14;
    background: rgba(57, 255, 20, 0.15);
    border-color: #39ff14;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}
.pda-screen.green-backlight .ping-app-header {
    border-bottom-color: rgba(57, 255, 20, 0.25);
}
.pda-screen.green-backlight .form-input {
    color: #39ff14;
    border-color: rgba(57, 255, 20, 0.3);
    background: rgba(12, 43, 22, 0.6);
}
.pda-screen.green-backlight .form-input:focus {
    border-color: #39ff14;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    background: rgba(16, 61, 31, 0.8);
}
.pda-screen.green-backlight .form-label {
    color: #2e8b57;
}
.pda-screen.green-backlight .form-input:focus ~ .form-label,
.pda-screen.green-backlight .form-input:not(:placeholder-shown) ~ .form-label {
    color: #39ff14;
    background: #0f2d19;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(11, 2, 20, 0.65);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    background: rgba(21, 5, 38, 0.85);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -8px;
    left: 0.75rem;
    transform: translateY(0);
    font-size: 0.75rem;
    color: var(--accent);
    background: #110524;
    padding: 0 4px;
    font-weight: 600;
}

.form-input-textarea {
    min-height: 110px;
    resize: none;
}

.form-input-textarea ~ .form-label {
    top: 1.5rem;
}

/* Canvas-based Retro Grid Background */
#retro-grid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-color);
}

/* Retro Futuristic Loading Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0214;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

#intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Bypass loading overlay when returning from project details page */
html.came-from-details #intro-overlay,
html.came-from-details .scanline-reset-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.intro-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: var(--font-mono);
    max-width: 420px;
    width: 90%;
}

.intro-logo-glow {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.6), 0 0 20px rgba(6, 182, 212, 0.3);
    margin-bottom: 2rem;
    letter-spacing: 5px;
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 0 0 5px rgba(6, 182, 212, 0.5), 0 0 10px rgba(6, 182, 212, 0.3);
    }
    to {
        text-shadow: 0 0 15px rgba(6, 182, 212, 0.8), 0 0 25px rgba(6, 182, 212, 0.5), 0 0 35px rgba(6, 182, 212, 0.2);
    }
}

.intro-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(217, 70, 239, 0.3);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.15);
    margin-bottom: 1.25rem;
}

.intro-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent));
    box-shadow: 0 0 8px var(--accent);
    transition: width 0.1s linear;
}

.intro-status-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    height: 20px;
    font-weight: 500;
}

body.intro-running #content-container,
body.intro-running .site-header,
body.intro-running #sections-sidebar,
body.intro-running .floating-nav,
body.intro-tilting #content-container,
body.intro-tilting .site-header,
body.intro-tilting #sections-sidebar,
body.intro-tilting .floating-nav {
    opacity: 0;
    pointer-events: none;
}

body.intro-complete #content-container,
body.intro-complete .site-header,
body.intro-complete #sections-sidebar {
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Footer Section */
.site-footer {
    padding: 6rem 0 3rem 0;
    border-top: 1px solid var(--border);
    background-color: transparent;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.footer-hologram-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

/* Giant glowing retrowave sun with horizon slices */
.retrowave-sun {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #ffde17 0%, #db2777 100%);
    box-shadow: 0 0 60px rgba(219, 39, 119, 0.45), 0 0 20px rgba(255, 222, 23, 0.25);
    position: relative;
    overflow: hidden;
}

.sun-slice {
    position: absolute;
    left: 0;
    width: 100%;
    background-color: var(--bg-color); /* Cut color matches site background */
}

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

.footer-text span {
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent-glow);
}

/* Retro Scanline Page Transition Overlay */
.scanline-reset-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(217, 70, 239, 1); /* Solid Windows Plum Light */
    z-index: 99998;
    pointer-events: none;
    display: none;
    overflow: hidden;
}

/* Sweep Down Phase */
.scanline-reset-overlay.sweep {
    display: block;
    animation: sweep-down 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Keep fully covered when sweep finishes */
.scanline-reset-overlay.covered {
    display: block;
    height: 100%;
    background: rgba(217, 70, 239, 1);
}

/* Fade Away Phase */
.scanline-reset-overlay.fade-away {
    display: block;
    height: 100%;
    background: linear-gradient(rgba(217, 70, 239, 1), rgba(217, 70, 239, 1)),
                repeating-linear-gradient(rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 2px, transparent 2px, transparent 6px);
    background-blend-mode: multiply;
    animation: fade-away-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sweep-down {
    0% {
        height: 0%;
    }
    100% {
        height: 100%;
    }
}

@keyframes fade-away-reveal {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Glowing leading edge scanline selector inside parent overlay */
.scanline-reset-overlay .loader-scanline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: linear-gradient(to bottom, transparent, #ffffff, transparent);
    filter: drop-shadow(0 0 12px var(--accent));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.scanline-reset-overlay.sweep .loader-scanline {
    opacity: 1;
}

/* Personal Page Retrowave Specifics */
.personal-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
}

.personal-grid-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.personal-card {
    background-color: rgba(15, 6, 28, 0.72);
    background-image: linear-gradient(rgba(217, 70, 239, 0.08) 1px, transparent 1px);
    background-size: 100% 4px;
    border: 1.5px solid rgba(217, 70, 239, 0.7);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all var(--transition-normal);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.28), inset 0 0 12px rgba(217, 70, 239, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.personal-card:hover {
    border-color: rgba(217, 70, 239, 0.95);
    background-color: rgba(217, 70, 239, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.45), inset 0 0 20px rgba(217, 70, 239, 0.3);
}

.personal-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.personal-card-content {
    color: var(--text-secondary);
}

.personal-card-content ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.personal-card-content li {
    position: relative;
    padding-left: 1.5rem;
}

.personal-card-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    font-size: 0.75rem;
    color: var(--accent);
    top: 0.25rem;
}

/* Embedded Media Placeholders */
.media-embed {
    background: rgba(0,0,0,0.3);
    border: 1px dashed var(--border);
    border-radius: 8px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    transition: all var(--transition-fast);
}

.media-embed:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 3rem;
    }
    .hero-title {
        font-size: 3.25rem;
    }
    .columns-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .site-header {
        height: 70px;
    }
    .hero, .personal-hero {
        padding-top: 100px;
        min-height: auto;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-left {
        align-items: center;
    }
    .hero-desc {
        border-left: none;
        padding-left: 0;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        align-items: stretch;
    }
    .btn {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    .about-cards-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
    }
    .experience-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    .experience-right-col {
        margin-top: 0 !important; /* Reset timeline offset spacer on mobile */
    }
    .projects-grid, .personal-grid-sections {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .contact-info {
        text-align: center;
        align-items: center;
    }
    .sections-sidebar {
        display: none;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-left-col {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.25rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .main-nav {
        gap: 1.25rem;
    }
    .nav-link {
        font-size: 0.85rem;
    }
    .floating-nav-item {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    .contact-methods {
        flex-direction: column;
        gap: 1.25rem;
    }
    /* Responsive XP Profile Window stacking */
    .xp-profile-top-row {
        flex-direction: column !important;
        height: auto !important;
        align-items: center !important;
    }
    .xp-profile-avatar-col, .xp-profile-biodata-col {
        width: 100% !important;
    }
    .xp-profile-biodata-col {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
}

/* Contact Standalone positioning helper */
.contact-standalone {
    position: relative;
}

/* Neon Portal Styles */
.neon-portal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.75rem;
    user-select: none;
}

.portal-vortex {
    position: relative;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, transparent 20%, rgba(217, 70, 239, 0.1) 40%, rgba(6, 182, 212, 0.3) 70%, var(--accent) 100%);
    border: 2px dashed var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate-portal 4s linear infinite, pulse-portal 2s infinite ease-in-out;
    box-shadow: 0 0 15px var(--accent-cyan-glow), inset 0 0 15px var(--accent-glow);
}

.neon-portal.active .portal-vortex {
    border-color: var(--accent);
    border-style: solid;
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 25px var(--accent-cyan-glow);
    background: radial-gradient(circle, transparent 10%, rgba(6, 182, 212, 0.2) 40%, rgba(217, 70, 239, 0.4) 70%, var(--accent-cyan) 100%);
}

.neon-portal.absorbed .portal-vortex {
    animation: portal-splash 0.5s ease-out;
}

@keyframes portal-splash {
    0% {
        transform: scale(1.3);
        box-shadow: 0 0 50px #fff, inset 0 0 30px var(--accent);
        border-color: #fff;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px var(--accent-cyan-glow), inset 0 0 15px var(--accent-glow);
    }
}

.portal-core {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    filter: blur(2px);
    box-shadow: 0 0 10px #fff;
    opacity: 0.8;
}

@keyframes rotate-portal {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-portal {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.portal-label {
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.2);
}

/* Screen Scan Pink Overlay (Height grows downwards) */
.screen-scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    /* CRT Scanline pattern: uniform brightness + repeating linear stripes */
    background: 
        linear-gradient(rgba(217, 70, 239, 0.25), rgba(217, 70, 239, 0.25)),
        repeating-linear-gradient(rgba(0, 0, 0, 0.35) 0px, rgba(0, 0, 0, 0.35) 2px, transparent 2px, transparent 6px);
    background-blend-mode: multiply;
    z-index: 98;
    pointer-events: none;
    opacity: 1;
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.screen-scan-overlay.active {
    height: 100%;
    opacity: 1;
}

/* Scanline sits at the bottom edge of the growing pink area */
.card-scanline {
    position: absolute;
    bottom: -2px; /* Center on edge */
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffffff;
    box-shadow: 0 0 15px #ffffff, 0 0 30px var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.screen-scan-overlay.active .card-scanline {
    opacity: 1;
}

/* Concentric propagating radio waves */
.radio-wave {
    position: absolute;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 95;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 
        0 0 10px var(--accent-cyan-glow), 
        inset 0 0 10px var(--accent-cyan-glow);
}

.radio-wave.pulsing {
    animation: propagate-wave 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes propagate-wave {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.3);
        border-color: #ffffff;
        box-shadow: 0 0 15px #ffffff;
    }
    30% {
        opacity: 0.85;
        border-color: var(--accent);
        box-shadow: 0 0 20px var(--accent-glow), inset 0 0 10px var(--accent-glow);
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.2);
        border-color: var(--accent-cyan);
    }
}

/* Inline Form Submission Status */
.transmission-status {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-shadow: 0 0 8px var(--accent-cyan-glow);
    text-align: center;
    letter-spacing: 1px;
}

.transmission-status.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stacking Fixed Grid Dimmer Overlay */
#bg-dimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    opacity: 0;
    z-index: -1; /* Placed exactly above canvas but below everything else */
    pointer-events: none;
    transition: opacity 0.1s linear;
}

/* Custom Cursor Trails & Synthwave Sun */
.cursor-trail {
    position: fixed;
    width: 3px;
    height: 3px;
    background-color: #0ea5e9;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000001;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.6);
    display: none;
}

.cursor-trail-lead {
    position: fixed;
    width: 8px; /* Small blue dot */
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000002;
    transform: translate(-50%, -50%);
    background: #0ea5e9;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.9);
    display: none;
    transition: width 0.15s, height 0.15s, box-shadow 0.15s;
}

.cursor-trail-lead.hovering {
    width: 12px;
    height: 12px;
    background: #00ffff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 1);
}

/* Hide default cursor on desktop when trail is active */
@media (pointer: fine) {
    body.custom-cursor-active,
    body.custom-cursor-active * {
        cursor: none !important;
    }
}

/* Override custom cursor to allow system/XP pointer */
body.hide-custom-cursor .cursor-trail-lead {
    display: none !important;
}
.hide-system-cursor {
    cursor: none !important;
}

/* Stacking Fixed Grid Dimmer Overlay */
#bg-dimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    opacity: 0;
    z-index: -1; /* Placed exactly above canvas but below everything else */
    pointer-events: none;
    transition: opacity 0.1s linear;
}

/* Custom Cursor Trails & Synthwave Sun */
.cursor-trail {
    position: fixed;
    width: 3px;
    height: 3px;
    background-color: #0ea5e9;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000001;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.6);
    display: none;
}

.cursor-trail-lead {
    position: fixed;
    width: 8px; /* Small blue dot */
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000002;
    transform: translate(-50%, -50%);
    background: #0ea5e9;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.9);
    display: none;
    transition: width 0.15s, height 0.15s, box-shadow 0.15s;
}

.cursor-trail-lead.hovering {
    width: 12px;
    height: 12px;
    background: #00ffff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 1);
}

.tron-cursor-segment {
    position: fixed;
    background-color: #0ea5e9;
    pointer-events: none;
    z-index: 10000000; /* Just below lead cursor */
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.7);
    animation: tron-fade 0.25s linear forwards;
}

@keyframes tron-fade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* 3D Floppy Cards & Grabbing Hover Effect */
.floppy-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
    box-shadow: 
        1px 1px 0px #151515,
        2px 2px 0px #151515,
        3px 3px 0px #151515,
        4px 4px 0px #151515,
        5px 5px 0px #151515,
        0px 12px 30px rgba(0, 0, 0, 0.65);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.floppy-card:hover {
    transform: translate3d(-6px, -16px, 28px) rotateX(12deg) rotateY(-8deg) !important;
    box-shadow: 
        1px 1px 0px #151515,
        2px 2px 0px #151515,
        3px 3px 0px #151515,
        4px 4px 0px #151515,
        5px 5px 0px #151515,
        0 25px 45px rgba(0, 0, 0, 0.85),
        0 0 25px rgba(6, 182, 212, 0.5);
}

/* DOS Desktop Modal & CRT Monitor Overlay */
.dos-desktop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 2, 8, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.dos-desktop-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* CRT PC Chassis Monitor Box */
.crt-pc-chassis {
    width: 90%;
    max-width: 650px;
    background: linear-gradient(135deg, #e5dec9 0%, #ccc4b0 100%);
    border: 8px solid #b7ad97;
    border-radius: 20px;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.85),
        inset 0 4px 10px rgba(255,255,255,0.4),
        inset 0 -4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

/* CRT Screen Frame wrapper */
.crt-screen-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #1c1c1c;
    border: 15px solid #2d2d2d;
    border-radius: 12px;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.8), 0 2px 4px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* CRT Screen phosphor grid and glow */
.crt-screen-content {
    width: 100%;
    height: 100%;
    background: #050e05;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
    font-family: 'Share Tech Mono', monospace;
    color: #33ff33;
    text-shadow: 0 0 6px rgba(51, 255, 51, 0.7);
    overflow: hidden;
}

/* Scanlines overlay */
.crt-screen-content::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    animation: crt-flicker 0.15s infinite;
}

/* Curved screen edge glare */
.crt-glare {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 15%, rgba(255,255,255,0.08) 0%, transparent 60%);
    z-index: 11;
    pointer-events: none;
}

/* Console text print logs */
.dos-console-log {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    text-align: left;
}

/* DOS Video player container */
.dos-player-window {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: #000;
    border: 2px solid #33ff33;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    z-index: 5;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dos-player-window.active {
    opacity: 1;
    transform: scale(1);
}

.dos-player-header {
    background: #33ff33;
    color: #000;
    font-weight: bold;
    padding: 4px 8px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: none;
}

.dos-player-close {
    cursor: pointer;
    font-weight: 900;
}

.dos-player-video {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

/* FDD Console drive slot container */
.fdd-drive-console {
    width: 100%;
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #bcb39e;
    border: 3px solid #9e937d;
    border-radius: 8px;
    padding: 12px 20px;
    box-sizing: border-box;
}

/* Floppy Slot slit */
.fdd-drive-slot-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fdd-drive-slot {
    width: 260px;
    height: 14px;
    background: #0a0a0a;
    border: 3px solid #7c725d;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.9);
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 2px;
}

/* FDD Activity LED indicator */
.fdd-indicator-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2b2b2b;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
    transition: background 0.15s, box-shadow 0.15s;
}

.fdd-indicator-led.active {
    background: #39ff14;
    box-shadow: 0 0 8px #39ff14, inset 0 1px 1px rgba(255,255,255,0.5);
}

.fdd-indicator-led.reading {
    background: #ffaa00;
    box-shadow: 0 0 8px #ffaa00, inset 0 1px 1px rgba(255,255,255,0.5);
    animation: fdd-blink 0.1s infinite;
}

.fdd-eject-btn {
    width: 45px;
    height: 20px;
    background: #8e826b;
    border: 2px solid #5a503f;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 2px 2px rgba(0,0,0,0.3);
    transition: transform 0.1s, box-shadow 0.1s;
}

.fdd-eject-btn:active {
    transform: translate(0, 2px);
    box-shadow: 0 0px 1px rgba(0,0,0,0.3);
}

/* Animations */
@keyframes fdd-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes crt-flicker {
    0% { opacity: 0.995; }
    50% { opacity: 1; }
    100% { opacity: 0.998; }
}

/* Flying anim clone floppy */
.flying-floppy {
    position: fixed;
    z-index: 100000000;
    pointer-events: none;
    transition: transform 0.75s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.75s ease;
    transform-style: preserve-3d;
}

/* Active Responsive Sidebar Section Tracker - Overview expansion */
body.overview-active .sidebar-label {
    opacity: 1 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
}

/* Floppy Spin and Glow Transformation - Starts Slow, Speeds Up Exponentially */
@keyframes spin-up-glow {
    0% {
        transform: rotateY(0deg) scale(1);
        filter: brightness(1) drop-shadow(0 0 0 rgba(255, 43, 109, 0));
    }
    25% {
        transform: rotateY(90deg) scale(1.02);
        filter: brightness(1.5) drop-shadow(0 0 15px rgba(255, 43, 109, 0.4));
    }
    50% {
        transform: rotateY(720deg) scale(1.12);
        filter: brightness(8) drop-shadow(0 0 70px rgb(255, 255, 255)) drop-shadow(0 0 50px rgba(255, 43, 109, 0.9));
        opacity: 1;
    }
    75% {
        transform: rotateY(2000deg) scale(0.6);
        filter: brightness(20) drop-shadow(0 0 150px rgb(255, 255, 255));
        opacity: 0.8;
    }
    100% {
        transform: rotateY(3200deg) scale(0);
        filter: brightness(20) drop-shadow(0 0 150px rgb(255, 255, 255));
        opacity: 0;
    }
}

.floppy-card-animating {
    animation: spin-up-glow 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards !important;
    pointer-events: none !important;
}

/* Convex CRT Glass Overlay (bulging center glaze and bezel shadow) */
.crt-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.95); /* Heavy inner vignette shadow to create convex feel */
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%),
                radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 12;
    border-radius: 16px;
}

/* Holographic Media Player Modal - Floating, Frameless Convex CRT Screen */
/* Holographic Media Player Modal - Backdrop Overlay */
/* Holographic Media Player Modal - Backdrop Overlay */
/* Holographic Media Player Modal - Backdrop Overlay */
.holo-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200000;
    opacity: 0;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    cursor: default;
}

.holo-player-modal.active {
    display: flex;
    opacity: 1;
}

/* WMP-style Thin Pink Holographic Frame */
.holo-player-frame {
    position: relative;
    width: 1000px;
    background: rgba(11, 2, 20, 0.7);
    border: 1px solid var(--accent); /* Thin pink outline */
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.25), inset 0 0 15px rgba(217, 70, 239, 0.15);
    border-radius: 6px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease;
}

.holo-player-modal.active .holo-player-frame {
    animation: crt-turn-on 0.65s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    transform-origin: center center;
}

/* Maximized window layout covering the full viewport */
.holo-player-frame.maximized {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    animation: none !important;
    opacity: 1 !important;
}

.holo-player-frame.maximized .holo-player-body {
    height: calc(100vh - 36px) !important;
}

/* Minimized Picture-in-Picture style floating window */
.holo-player-frame.minimized {
    width: 320px !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 200000 !important;
    border-radius: 6px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
    animation: none !important;
    opacity: 1 !important;
}

.holo-player-frame.minimized .holo-player-sidebar-col {
    display: none !important;
}

.holo-player-frame.minimized .holo-video-display {
    height: 180px !important;
}

.holo-player-frame.minimized .holo-wmp-controls {
    padding: 6px 10px !important;
}

.holo-player-frame.minimized .holo-seekbar-container {
    display: none !important;
}

.holo-player-frame.minimized .wmp-controls-row {
    flex-direction: column !important;
    gap: 6px !important;
    align-items: center !important;
}

.holo-player-frame.minimized .wmp-right-cluster {
    display: none !important;
}

.holo-player-frame.minimized .wmp-title-row {
    display: none !important;
}

/* Holographic Titlebar Header */
.holo-player-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(217, 70, 239, 0.08);
    border-bottom: 1px solid rgba(217, 70, 239, 0.3);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    text-shadow: 0 0 6px var(--accent-glow);
    font-weight: bold;
    letter-spacing: 1px;
}

.titlebar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wmp-logo-icon {
    font-size: 0.95rem;
    filter: drop-shadow(0 0 4px var(--accent-glow));
}

.titlebar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.titlebar-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    line-height: 1;
}

.titlebar-btn:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan-glow);
}

.titlebar-btn.close-btn-red:hover {
    color: #ff4d6a;
    text-shadow: 0 0 6px rgba(255,77,106,0.6);
}

/* 2-Column Body Layout */
.holo-player-body {
    display: flex;
    width: 100%;
    align-items: stretch;
    height: 480px;
}

/* Left Screen & Controls Column */
.holo-player-screen-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    border-right: 1px solid rgba(217, 70, 239, 0.25);
    background: rgba(0, 0, 0, 0.2);
}

/* Screen area */
.holo-video-display {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    overflow: hidden;
    cursor: none !important;
    border-bottom: 1px solid rgba(217, 70, 239, 0.25);
    opacity: 1; /* Visible by default when parent frame animates */
}

/* YouTube style Action Flash Overlay */
.wmp-action-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 64px;
    height: 64px;
    background: rgba(11, 2, 20, 0.65);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
    opacity: 0;
    pointer-events: none;
    z-index: 99;
}

.wmp-action-flash.animate-flash {
    animation: wmp-flash-anim 0.5s ease forwards;
}

@keyframes wmp-flash-anim {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

/* Fullscreen Floating Controls */
.wmp-fullscreen-controls {
    display: none; /* Only visible in native fullscreen container */
}

.holo-video-display.fullscreen-active .wmp-fullscreen-controls {
    display: flex;
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(11, 2, 20, 0.85);
    border: 1px solid var(--accent);
    border-radius: 30px;
    padding: 8px 20px;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
}

.wmp-fs-clip-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan-glow);
    font-weight: bold;
    text-transform: uppercase;
}

.wmp-clock-display-fs {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #00ff66;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.4);
}

@keyframes crt-turn-on {
    0% {
        transform: scaleX(0) scaleY(0.005);
        filter: brightness(5) contrast(2);
        opacity: 0;
    }
    35% {
        transform: scaleX(1) scaleY(0.005);
        filter: brightness(5) contrast(2);
        opacity: 1;
    }
    70% {
        transform: scaleX(1) scaleY(1);
        filter: brightness(2) contrast(1.2);
        opacity: 1;
    }
    100% {
        transform: scaleX(1) scaleY(1);
        filter: brightness(1) contrast(1);
        opacity: 1;
    }
}

.holo-player-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.holo-scanlines-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.32) 50%);
    background-size: 100% 3px;
    z-index: 10;
    opacity: 0.22;
    animation: holo-flicker 0.15s infinite;
}

@keyframes holo-flicker {
    0% { opacity: 0.23; }
    50% { opacity: 0.19; }
    100% { opacity: 0.24; }
}

/* Disable body scroll when modal overlay active */
body.noscroll {
    overflow: hidden !important;
}

/* WMP Fixed Controls Deck style */
.holo-wmp-controls {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    background: rgba(11, 2, 20, 0.5);
    box-sizing: border-box;
}

.holo-seekbar-container {
    width: 100%;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.holo-seekbar {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.holo-seekbar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan-glow);
    cursor: pointer;
}

.wmp-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.wmp-btn-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wmp-btn {
    background: rgba(217, 70, 239, 0.04);
    border: 1px solid rgba(217, 70, 239, 0.35);
    border-radius: 3px;
    color: var(--accent);
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: bold;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wmp-btn:hover {
    background: rgba(217, 70, 239, 0.15);
    color: #fff;
    box-shadow: 0 0 8px var(--accent-glow);
    border-color: var(--accent);
}

.wmp-btn.active {
    color: #00ff66;
    border-color: #00ff66;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.5);
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.15);
}

.wmp-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    pointer-events: none;
    margin: 0 2px;
}

/* WMP Title Screen repositioned to Row 3 */
.wmp-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(217, 70, 239, 0.15);
}

.holo-video-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan-glow);
    margin: 0;
    line-height: 1.2;
    width: 100%;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wmp-right-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom Rising volume bar styling */
.wmp-volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wmp-volume-icon {
    font-size: 0.72rem;
    color: var(--accent);
    text-shadow: 0 0 4px var(--accent-glow);
    pointer-events: none;
    user-select: none;
}

.wmp-volume-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    cursor: pointer;
    height: 18px;
    padding: 0 2px;
}

.wmp-vol-bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.15s ease, box-shadow 0.15s ease;
    border-radius: 1px;
}

.wmp-vol-bar:nth-child(1) { height: 3px; }
.wmp-vol-bar:nth-child(2) { height: 5px; }
.wmp-vol-bar:nth-child(3) { height: 7px; }
.wmp-vol-bar:nth-child(4) { height: 9px; }
.wmp-vol-bar:nth-child(5) { height: 11px; }
.wmp-vol-bar:nth-child(6) { height: 13px; }
.wmp-vol-bar:nth-child(7) { height: 15px; }
.wmp-vol-bar:nth-child(8) { height: 17px; }

.wmp-vol-bar.filled {
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan-glow);
}

.wmp-vol-bar:hover {
    background: rgba(6, 182, 212, 0.6);
}

.wmp-clock-display {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #00ff66;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.4);
}

/* Right Side: Tabbed Details Sidebar Column */
.holo-player-sidebar-col {
    width: 280px;
    display: flex;
    flex-direction: column;
    background: rgba(18, 18, 22, 0.4);
}

.holo-sidebar-tabs {
    display: flex;
    border-bottom: 1px solid rgba(217, 70, 239, 0.25);
    background: rgba(217, 70, 239, 0.03);
}

.holo-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.holo-tab-btn:hover {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
}

.holo-tab-btn.active {
    color: var(--accent);
    background: rgba(217, 70, 239, 0.08);
    border-bottom: 2px solid var(--accent);
    text-shadow: 0 0 5px var(--accent-glow);
}

.holo-sidebar-content-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.holo-tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.holo-tab-panel.active {
    display: flex;
}

.holo-thumbs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.holo-thumb-item {
    position: relative;
    width: 100%;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #000;
}

.holo-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.holo-thumb-item:hover img, .holo-thumb-item.active img {
    opacity: 0.95;
}

.holo-thumb-item:hover, .holo-thumb-item.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
    transform: translateY(-1px);
}

.holo-thumb-scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%);
    background-size: 100% 4px;
    opacity: 0.3;
}

.holo-thumb-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 24px; height: 24px;
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 9px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.holo-thumb-item:hover .holo-thumb-play-btn, .holo-thumb-item.active .holo-thumb-play-btn {
    opacity: 1;
}

.holo-caption-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.6;
    color: #00ff66;
    text-shadow: 0 0 4px rgba(0, 255, 102, 0.25);
    white-space: pre-wrap;
    padding-right: 4px;
}

/* Windows XP Pixelated Custom Cursor inside display */
.holo-player-cursor {
    position: absolute;
    width: 17px;
    height: 27px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='27' viewBox='0 0 24 27'><path d='M0 0v17l4.5-4.5 3 6.5 3-1.5-3.5-6 6.5-1.5z' fill='white' stroke='black' stroke-width='1.5' stroke-linejoin='round'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9; /* Sits below scanlines (z-index 10) & glass (z-index 12) so they render over it */
    display: none;
    transform: translate(0, 0); /* Top-left alignment */
}

/* Pink Page-Limit Sidebar Arrows */
.sidebar-limit-arrow {
    position: absolute;
    right: -2px; /* Centered horizontally with the dots */
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent); /* Plum/Pink accent */
    text-shadow: 0 0 8px var(--accent-glow);
    font-size: 0.78rem; /* Clean text rendering size */
    pointer-events: none;
    z-index: 95;
}

.sidebar-limit-arrow.top-arrow {
    top: -24px;
    transform: translateY(-50%);
}

.sidebar-limit-arrow.bottom-arrow {
    bottom: -24px;
    transform: translateY(50%);
}

/* Contact Page 3D PDA Layout & Form Overlays */
.contact-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .contact-hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    .contact-hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.pda-3d-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 520px;
    margin: 0 auto;
    perspective: 1000px;
    transform-style: preserve-3d;
}

#contact3dCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: block;
    outline: none;
}

.pda-screen-overlay {
    position: absolute;
    top: 13.5%;
    left: 11.2%;
    width: 77.6%;
    height: 61.8%;
    z-index: 10;
    background: #ece9d8;
    box-sizing: border-box;
    border-radius: 3px;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5), inset -2px -2px 5px rgba(255,255,255,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
}

.pda-buttons-overlay {
    position: absolute;
    bottom: 8.5%;
    left: 20%;
    width: 60%;
    height: 11%;
    z-index: 11;
    display: flex;
    justify-content: space-around;
    align-items: center;
    pointer-events: auto;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
}

/* Transparent clickable buttons on top of 3D model buttons */
.pda-buttons-overlay .pda-physical-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.01) !important;
    border: 2px solid transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}

.pda-buttons-overlay .pda-physical-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.05);
}

.pda-buttons-overlay .pda-physical-btn:active {
    transform: scale(0.95);
}

/* Direct custom cursor override on PDA screen overlay */
.pda-screen-overlay,
.pda-screen-overlay * {
    cursor: url('../assets/cursors/default_arrow.cur'), auto !important;
}

/* 3D PDA Form styling */
.pda-screen-overlay .contact-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    gap: 8px;
    box-sizing: border-box;
    background: #ece9d8;
    position: relative;
}

.pda-screen-overlay .ping-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #0052e2 0%, #348eff 50%, #0052e2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pda-screen-overlay .ping-app-title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Tahoma', sans-serif;
    font-size: 0.72rem;
    font-weight: bold;
}

.pda-screen-overlay .ping-send-btn {
    background: linear-gradient(to bottom, #388a08 0%, #63c618 100%) !important;
    border: 1px solid #2c6d04 !important;
    color: white !important;
    padding: 2px 8px !important;
    font-family: 'Tahoma', sans-serif;
    font-size: 0.65rem !important;
    font-weight: bold !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.4);
}

.pda-screen-overlay .ping-send-btn:hover {
    background: linear-gradient(to bottom, #4caf50 0%, #81c784 100%) !important;
}

.pda-screen-overlay .form-group-3d {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.pda-screen-overlay .form-label-3d {
    font-family: 'Tahoma', sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    color: #0054e3;
    user-select: none;
}

.pda-screen-overlay .form-input-3d {
    width: 100%;
    background: #ffffff !important;
    border-top: 2px solid #7a7a7a !important;
    border-left: 2px solid #7a7a7a !important;
    border-right: 1px solid #d4d0c8 !important;
    border-bottom: 1px solid #d4d0c8 !important;
    padding: 3px 6px !important;
    font-size: 0.75rem !important;
    color: #000000 !important;
    font-family: 'Tahoma', sans-serif !important;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.15);
    border-radius: 0 !important;
    box-sizing: border-box;
}

.pda-screen-overlay .form-input-3d:focus {
    border: 1px solid #0054e3 !important;
    outline: none !important;
}

.pda-screen-overlay .form-textarea-3d {
    height: 100px !important;
    resize: none !important;
}

.pda-screen-overlay .green-backlight {
    background: #00ff66d0 !important;
}

.pda-screen-overlay .green-backlight .contact-form {
    background: #00ff66c0 !important;
}

.pda-screen-overlay .green-backlight .form-input-3d {
    background: #e6ffe6 !important;
}

/* Double column styling for more links section */
.more-links-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.direct-channels-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .direct-channels-row {
        grid-template-columns: 1fr;
    }
}

.socials-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.socials-box-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* PDA Debugger Panel Styles */
.pda-debugger-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    max-height: 480px;
    background: rgba(11, 2, 20, 0.95);
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-glow), inset 0 0 10px rgba(217, 70, 239, 0.2);
    border-radius: 6px;
    z-index: 10000;
    color: var(--text-primary);
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pda-debugger-panel.collapsed {
    max-height: 38px;
}

.debugger-header {
    background: linear-gradient(to right, #0052e2 0%, #348eff 50%, #0052e2 100%);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
    border-bottom: 2px solid var(--accent);
}

.debugger-collapse-btn {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.debugger-body {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.debugger-section-title {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--accent-cyan);
    border-bottom: 1px solid rgba(6, 182, 212, 0.3);
    padding-bottom: 2px;
    margin-top: 6px;
    margin-bottom: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 5px var(--accent-cyan-glow);
}

.debugger-row {
    display: grid;
    grid-template-columns: 90px 1fr 45px;
    gap: 8px;
    align-items: center;
    font-size: 0.72rem;
}

.debugger-row.toggle-row {
    grid-template-columns: 160px 1fr;
}

.debugger-row label {
    text-align: left;
    color: var(--text-secondary);
}

.debugger-row input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

.debugger-row span {
    text-align: right;
    font-weight: bold;
    color: var(--accent);
}

.debugger-textarea {
    width: 100%;
    height: 90px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.65rem;
    padding: 4px;
    resize: none;
    box-sizing: border-box;
    margin-top: 4px;
}

/* CRT Frame component styles */
.crt-media-frame {
    position: relative;
    width: 100%;
    max-width: 680px; /* Wider to show iframe comfortably */
    aspect-ratio: 4 / 3;
    background: #000 !important;
    border-radius: 14px; /* slightly rounded corners */
    overflow: hidden;
    box-shadow: none !important; /* Removed outer shadow on edges */
    border: none !important; /* no outline */
    padding: 0 !important; /* borderless feel */
    box-sizing: border-box;
}

.crt-frame-display {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000 !important;
    border-radius: 14px;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
}

.crt-frame-media-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px; /* ensure nested iframes clip correctly */
    background: #000 !important;
}

.crt-frame-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Specific styling for iframe website renderers */
.crt-frame-iframe {
    width: 100%;
    height: 100%;
    border: none !important;
    background: #fff;
    display: block;
    transform: scale(1.02); /* zoom slightly to crop browser borders */
}

/* Vignette shadow disabled as requested */
.crt-glass-overlay {
    display: none !important;
}

/* Holographic scanlines overlay */
.holo-scanlines-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.22) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 21;
}

/* Glass glare sheen */
.crt-glare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.02) 18%, 
        rgba(255, 255, 255, 0) 35%
    );
    pointer-events: none;
    z-index: 22;
}

/* Nav Buttons */
.crt-frame-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 2, 20, 0.65);
    border: 1px solid rgba(255, 0, 127, 0.4);
    border-radius: 50%;
    color: #ff007f;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    z-index: 25;
    outline: none;
}

.crt-frame-nav-btn:hover {
    background: rgba(255, 0, 127, 0.2);
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.6);
    border-color: #ff007f;
}

.crt-frame-nav-btn.prev-btn {
    left: 10px;
}

.crt-frame-nav-btn.next-btn {
    right: 10px;
}

/* Indicators */
.crt-frame-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 25;
}

.crt-frame-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
}

.crt-frame-dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan-glow);
    transform: scale(1.2);
}

/* Disintegration and Laser Border Burn Overlay for Professional Project Cards */
.project-card.card-disintegrating {
    pointer-events: none !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Inner wrap containing all card contents to apply the clipping mask */
.project-card-inner-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    clip-path: inset(0px 0px 0px 0px);
    transition: clip-path 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

/* Crop/Slice everything outside the laser outline as it shrinks towards the button */
.project-card.card-disintegrating .project-card-inner-wrap {
    clip-path: inset(
        var(--clip-top, 0px) 
        var(--clip-right, 0px) 
        var(--clip-bottom, 0px) 
        var(--clip-left, 0px) 
        round 4px
    );
}

/* Fade out internal details within the clipped zone to look like ash */
.project-card.card-disintegrating .project-card-media,
.project-card.card-disintegrating .project-card-content > *:not(.project-actions),
.project-card.card-disintegrating .project-actions > *:not(.btn-details) {
    transform-origin: var(--burn-x, 50%) var(--burn-y, 50%);
    transform: scale(0.3) rotate(2deg);
    opacity: 0;
    filter: blur(6px) brightness(2.5);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                filter 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* The laser burning border overlay */
.project-card .burn-glow-overlay {
    position: absolute;
    top: -1.5px; /* Offset the 1.5px card border for perfect alignment */
    left: -1.5px;
    width: calc(100% + 3px);
    height: calc(100% + 3px);
    border: 2px solid var(--accent-cyan);
    border-radius: 12px;
    box-shadow: 0 0 25px var(--accent-cyan), inset 0 0 15px var(--accent-cyan);
    background: rgba(15, 6, 28, 0.85); /* Mimics the card background */
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

.project-card.card-disintegrating .burn-glow-overlay {
    opacity: 1;
    top: var(--btn-top, 0) !important;
    left: var(--btn-left, 0) !important;
    width: var(--btn-width, 100%) !important;
    height: var(--btn-height, 100%) !important;
    border-radius: 4px;
    box-shadow: 0 0 35px var(--accent-cyan), 0 0 15px var(--accent-cyan);
    border-color: var(--accent-cyan) !important; /* remains cyber blue */
    background: transparent !important; /* Fades out background at the end to reveal button */
}

/* Global Windows XP Cursor Constraint inside CRT Frames */
.crt-media-frame,
.crt-media-frame *,
.crt-media-frame img,
.crt-media-frame button,
.crt-media-frame a,
.crt-media-frame input,
.crt-media-frame textarea,
.crt-media-frame label {
    cursor: url('../assets/cursors/default_arrow.cur'), auto !important;
}



