* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            height: 89vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: radial-gradient(circle, #1d2b3a, #0a0e17);
            font-family: 'Courier New', monospace;
            color: #c5d4e2;
            overflow: hidden;
            letter-spacing: 0.05em;
            transition: all 0.5s ease; 
            position: relative;
        }

        .container {
            text-align: center;
            z-index: 1;
            max-width: 1597px; 
            width: 100%; 
            margin: 0 auto; 
            padding: 0 21px; 
            height: auto;
        }

        h1 {
            font-size: 3rem;
            margin-bottom: 21px;
            letter-spacing: 0.1em;
            font-weight: 233;
            opacity: 0;
            transform: translateY(-20px);
            animation: fadeIn 1s forwards 0.5s, pulse 2s infinite;
        }

        #terminal {
            font-size: 1.2rem;
            margin-bottom: 13px;
            color: #96a1af;
            height: 3em;
            overflow: hidden;
            height: auto; 
        }

        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            padding: 21px;
            z-index: 2;
        }

        .menu-left, .menu-right {
            display: flex;
            align-items: center;
        }
      
        .menu-right {
            margin-left: auto; 
        }

        .menu-item {
            margin: 0 21px;
            text-decoration: none;
            color: #c5d4e2;
            position: relative;
            cursor: pointer;
        }

        .menu-item::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: #c5d4e2;
            transition: width 0.3s ease;
        }

        .menu-item:hover::after {
            width: 89%;
        }

        .icon-container {
            display: flex;
            gap: 21px; 
        }
      
        .icon {
            width: 21px;
            height: 21px;
            margin: 0 13px;
            cursor: pointer;
            display: flex; 
            justify-content: center; 
            align-items: center; 
        }

        #searchIcon {
            width: 21px;
            height: 21px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23c5d4e2"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat;
            background-size: cover;
        }

        #themeToggle {
            margin-left: 89px; 
            width: 34px;
            height: 34px;
            background-color: #c5d4e2;
            margin-right: 21px;
            border: none;
            cursor: pointer;
            clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
        }
        
        .light-theme {
            background: radial-gradient(circle, #f0f0f0, #d3d3d3);
            color: #1d2b3a;
        }

        .light-theme .menu-item, .light-theme #terminal {
            color: #1d2b3a;
        }

        .light-theme .menu-item::after {
            background-color: #1d2b3a;
        }

        .light-theme #themeToggle {
            background-color: #1d2b3a;
        }

        .light-theme #searchIcon {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231d2b3a"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
        }

        .light-theme .icon svg {
            stroke: #1d2b3a; 
        }

        .light-theme #cursor {
            background-color: #1d2b3a;
        }

        @keyframes fadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .visual-effect {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.016));
            pointer-events: none;
            animation: scanEffect 0.1618s linear infinite;
        }

        @keyframes scanEffect {
            0% { transform: translateY(-100%); }
            100% { transform: translateY(100%); }
        }

        #cursor {
            display: inline-block;
            width: 13px;
            height: 21px;
            background-color: #c5d4e2;
            animation: blink 0.8s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 0; }
            50% { opacity: 1; }
        }

        #searchModal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            z-index: 1000;
        }

        #searchModal input {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 70%;
            padding: 13px;
            font-size: 1rem;
        }

        .glow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 377px;
            height: 377px;
            background: radial-gradient(circle, rgba(197,212,226,0.05) 0%, rgba(10,14,23,0) 55%);
            pointer-events: none;
        }
      
        .light-theme .visual-effect {
            background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.016));
            animation: scanEffect 0.1618s linear infinite;
        }

        .light-theme .glow {
            background: radial-gradient(circle, rgba(29, 43, 58, 0.1) 0%, rgba(240, 240, 240, 0) 70%);
        }

        @keyframes scanEffect {
            0% { transform: translateY(-100%); background-position: 0% 0%; }
            100% { transform: translateY(100%); background-position: 0% 100%; }
        }
      
        .icon svg {
            fill: currentColor;
            transition: fill 0.3s ease;
        }

        body:not(.light-theme) .icon svg {
            fill: #c5d4e2; 
        }

        .light-theme .icon svg {
            fill: #1d2b3a; 
        }

        .icon:hover svg {
            opacity: 0.8;
        }
      
        .icon:focus {
            outline: none; 
            box-shadow: 0 0 0 2px currentColor; 
            border-radius: 50%; 
            padding: 5px; 
            transition: box-shadow 0.3s ease;
        }

        body:not(.light-theme) .icon:focus {
            box-shadow: 0 0 0 2px #c5d4e2;
        }

        .light-theme .icon:focus {
            box-shadow: 0 0 0 2px #1d2b3a;
        }

        .icon:focus:not(:focus-visible) {
            box-shadow: none;
        }      
      
        * {
            transition: all 0.3s ease;
        }
      
        a:hover, button:hover {
            transform: translateY(-2px);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        }

        .light-theme a:hover, .light-theme button:hover {
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        }      
      
        *:focus {
            outline: none;
            box-shadow: 0 0 0 3px #51a7e8;
        }      
      
        body {
            text-rendering: optimizeLegibility;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        h1, h2, h3 {
            letter-spacing: -0.01em; 
        }      
      
        .loader {
            border: 5px solid #f3f3f3; 
            border-top: 5px solid #3498db; 
            border-radius: 50%;
            width: 34px;
            height: 34px;
            animation: spin 2s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }      

        @media (max-width: 480px) {
            #terminal {
                font-size: 0.8em;
            }
    
            .menu-item {
                padding: 5px;
                margin: 5px;
            }
        }      
      
        .parallax {
            background-attachment: fixed;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }      
      
        #searchIcon {
            cursor: url('images/DownTheRabbitHole.cur'), auto;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.4);
        }

        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            background-color: #0a0e17;
            padding: 13px;
            border-radius: 8px;
            width: 610px;
            max-width: 89%;
            box-shadow: 0 0 21px rgba(197,212,226,0.2);
            flex-direction: row-reverse;
        }

        .modal-content input {
            flex-grow: 1;
            padding: 13px 21px;
            border: none;
            background-color: #1d2b3a;
            color: #c5d4e2;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            letter-spacing: 0.05em;
            border-radius: 5px 5px 5px 5px; 
        }
    
        .modal-content input::placeholder {
            color: #96a1af;
            opacity: 0.7;
        }

        .modal-content button {
            padding: 0;
            width: 55px; 
            border: none;
            background-color: #c5d4e2;
            color: #0a0e17;
            cursor: pointer;
            font-family: 'Courier New', monospace;
            font-weight: bold;
            font-size: 13px;
            border-radius: 0px 5px 5px 0px;
            transition: all 0.3s ease;
        }

        .modal-content input:focus {
            outline: none;
            box-shadow: none;
        }

        .modal-content button:hover {
            background-color: #96a1af;
        }

        .light-theme .modal-content {
            background-color: #f0f0f0;
        }

        .light-theme .modal-content input {
            background-color: #d3d3d3;
            color: #1d2b3a;
        }

        .light-theme .modal-content input::placeholder {
            color: #1d2b3a;
        }

        .light-theme .modal-content button {
            background-color: #1d2b3a;
            color: #f0f0f0;
        }

        .light-theme .modal-content button:hover {
            background-color: #0a0e17;
        }

        .modal-content::before {
            content: "";
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #c5d4e2, #1d2b3a);
            z-index: -1;
            filter: blur(5px);
            opacity: 0.7;
            border-radius: 8px;
        }

        @keyframes scanline {
            0% {
                background-position: 0 0;
            }
            100% {
                background-position: 0 100%;
            }
        }

        .modal-content::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(to right, transparent, #c5d4e2, transparent);
            animation: scanline 2s linear infinite;
        }

        .holo-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(10, 14, 23, 0.9);
            padding: 34px;
            border-radius: 21px;
            box-shadow: 0 0 21px rgba(197, 212, 226, 0.8), 0 0 89px rgba(197, 212, 226, 0.5);
            backdrop-filter: blur(8px);
            color: #c5d4e2;
            font-family: 'Courier New', monospace;
            z-index: 1001;
            width: 89%;
            max-width: 610px;
            text-align: center;
            animation: holo-entry 1s ease-out forwards;
            display: none;
            overflow: hidden;
        }

        @keyframes holo-entry {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.8);
                box-shadow: 0 0 5px rgba(197, 212, 226, 0);
            }
            
        100% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
            box-shadow: 0 0 21px rgba(197, 212, 226, 0.8), 0 0 89px rgba(197, 212, 226, 0.5);
            }
        }

        .holo-popup img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 0 13px rgba(197, 212, 226, 0.3);
            margin-top: 21px;
        }

        .holo-popup p {
            margin-bottom: 21px;
            font-size: 1rem;
            line-height: 1;
            width: 100%;
        }

        .close-popup {
            position: absolute;
            top: 13px;
            right: 13px;
            cursor: pointer;
            background-color: transparent;
            border: none;
            color: #c5d4e2;
            font-size: 1rem;
            font-weight: bold;
            transition: opacity 0.2s ease;
        }

        .close-popup:hover {
            opacity: 0.7;
        }

        .light-theme .holo-popup {
            background: rgba(240, 240, 240, 0.9);
            color: #1d2b3a;
            box-shadow: 0 0 21px rgba(29, 43, 58, 0.8), 0 0 89px rgba(29, 43, 58, 0.5);
        }

        .light-theme .close-popup {
            color: #1d2b3a;
        }

        @media (max-width: 768px) {
            .holo-popup {
                padding: 21px;
            }

            .holo-popup p {
                font-size: 1rem;
            }
        }

        @media (max-width: 768px) {
            #searchModal {
                font-size: 1rem;
                width: 100%; 
            }

            #searchModal input {
                font-size: 1rem;
                padding: 8px 13px; 
                width: 100%; 
            }
        }

        @media (max-width: 768px) {
            #holoPopupContent {
                flex-direction: row; 
                display: flex;
                justify-content: center;
                align-items: center;
                width: 100%; 
            }
        }

        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            padding: 21px;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        @media (min-width: 769px) {
            .header {
                background: transparent;
                }
        }

        @media (max-width: 768px) {
            .container {
                padding: 13px;
                margin-top: 144px; 
            }

            .header {
                flex-direction: column;
                align-items: center;
                padding: 8px;
                background: radial-gradient(circle, #1d2b3a, #0a0e17);
            }

            .light-theme .header {
                background: radial-gradient(circle, #f0f0f0, #d3d3d3);
            }

            .menu-left {
                display: flex; 
                flex-direction: row;
                justify-content: center;
                width: 100%;
                margin-left: 0px;
                padding-top: 3px;
                gap: 8px;
            }

            .menu-right {
                margin-top: 1px;
                width: 100%;
                justify-content: center;
            }

            .menu-item {
                margin: 5px 8px;
                font-size: 1em;
            }

            .icon-container {
                gap: 8px;
                padding: 8px;
            }

            .icon {
                width: 144px;
                height: 13px;
            }

            #themeToggle {
                width: 21px;
                height: 21px;
                margin: 0 1px; 
                align-self: center; 
            }
        }

        @media (max-width: 480px) {
            .menu-item {
                padding: 5px;
                margin: 5px;
            }

            .container {
                margin-top: 144px;
                padding: 10px;
            }
        }