*, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        /* Color variables */
        :root {
            --bg-color: #000000;
            --card-bg: #1a1a1a;
            --text-color: #ffffff;
            --accent-color: #2ee0c1;
            --muted-color: #888888;
            --border-color: rgba(255,255,255,0.1);
            --font-sans: 'Inter', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            font-family: var(--font-sans);
            line-height: 1.5;
            font-size: 16px;
            overflow-x: hidden;
            /* Ensure page starts at top */
            scroll-behavior: smooth;
        }
        h1,h2,h3,h4,h5,h6 {
            font-family: var(--font-mono);
            color: var(--text-color);
            margin-bottom: 0.8em;
            line-height: 1.2;
            font-weight: 700;
        }
        h1 { font-size: 2.8rem; letter-spacing: 1px; }
        h2 { font-size: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.3em; margin-bottom: 1em; }
        h3 { font-size: 1.4rem; color: var(--accent-color); font-weight: 400; }
        p {
            margin-bottom: 1em;
            max-width: 70ch;
        }
        a {
            color: var(--accent-color);
            text-decoration: none;
            transition: color 0.2s ease-in-out;
        }
        a:hover, a:focus {
            color: #fff;
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        code {
            font-family: var(--font-mono);
            background-color: rgba(255,255,255,0.05);
            padding: 0.2em 0.4em;
            border-radius: 3px;
            font-size: 0.9em;
        }

        /* Header */
        header {
            padding: 1rem 0;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 2rem;
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }
        .logo {
            font-family: var(--font-mono);
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
        }
        .logo:hover {
            transform: scale(1.05);
            text-shadow: 0 0 10px var(--accent-color);
        }
        .logo.shake {
            animation: logoShake 0.5s ease-in-out;
        }
        @keyframes logoShake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px) rotate(-2deg); }
            75% { transform: translateX(5px) rotate(2deg); }
        }

        /* Secret mode styles */
        .secret-mode {
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3) !important;
            background-size: 400% 400% !important;
            animation: secretGradient 2s ease infinite !important;
        }
        .secret-mode .grid-item {
            background: rgba(255, 255, 255, 0.95) !important;
            border: 2px solid #000 !important;
            color: #000 !important;
        }
        .secret-mode .grid-item h1,
        .secret-mode .grid-item h2,
        .secret-mode .grid-item h3,
        .secret-mode .grid-item p,
        .secret-mode .grid-item .section-title {
            color: #000 !important;
        }
        .secret-mode .hero-terminal,
        .secret-mode .hero-terminal *,
        .secret-mode .pgp-button,
        .secret-mode .floating-dots .dot {
            background-color: #000 !important;
            color: var(--accent-color) !important;
            border-color: var(--accent-color) !important;
        }
        .secret-mode .terminal-output,
        .secret-mode .terminal-input-line {
            background-color: #000 !important;
        }
        .secret-mode #terminalInput {
            color: #fff !important;
            background-color: #000 !important;
        }
        .secret-mode .floating-dots .dot {
            background-color: var(--accent-color) !important;
            border: 2px solid #000 !important;
        }
        @keyframes secretGradient {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* Floating dots hover effect */
        .floating-dots .dot {
            cursor: pointer;
            transition: all 0.3s ease;
            pointer-events: auto;
        }
        .floating-dots .dot:hover {
            transform: scale(1.5);
            background-color: var(--accent-color);
            box-shadow: 0 0 20px var(--accent-color);
        }
        .logo span {
            color: var(--accent-color);
        }
        nav ul {
            list-style: none;
            display: flex;
            gap: 1.5rem;
        }
        nav a {
            font-family: var(--font-mono);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-color);
            text-decoration: none;
            position: relative;
            padding-bottom: 5px;
        }
        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent-color);
            transition: width 0.3s ease;
        }
        nav a:hover::after, nav a:focus::after {
            width: 100%;
        }
        nav a:hover, nav a:focus {
            color: #fff;
        }

        /* Main content grid background */
        main {
            background-image:
                linear-gradient(var(--border-color) 1px, transparent 1px),
                linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
            background-size: 40px 40px;
            background-attachment: fixed;
            padding: 2rem 0;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }
        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            padding: 1rem 0;
        }
        .grid-item {
            background-color: var(--card-bg);
            padding: 2rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
        }
        .grid-item:hover {
            border-color: var(--accent-color);
            box-shadow: 0 0 8px var(--accent-color);
            transform: translateY(-4px);
        }
        /* Bento spans */
        #home { grid-column: span 2; }
        #wraven { grid-column: span 2; }
        #contact { grid-column: span 2; }
        @media (max-width: 768px) {
            #home, #wraven, #contact { grid-column: span 1; }
            .container { padding: 0 1rem; }
        }

        /* Hero (#home) */
        #home h1 {
            margin-bottom: 0.5rem;
            color: #fff;
        }
        #home .subheadline {
            font-size: 1.2rem;
            color: var(--muted-color);
            font-family: var(--font-sans);
        }
        /* Terminal in hero */
        .hero-terminal {
            background-color: #111;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            padding: 1rem;
            margin-top: 1.5rem;
            font-family: var(--font-mono);
            font-size: 0.9rem;
        }
        .terminal-output {
            height: 590px;
            overflow-y: auto;
            margin-bottom: 0.5rem;
            line-height: 1.4;
            color: var(--text-color);
        }
        .terminal-output div {
            white-space: pre-wrap;
        }
        .terminal-output .prompt {
            color: var(--accent-color);
        }
        .terminal-output .error {
            color: #ff6b6b;
        }
        .terminal-input-line {
            display: flex;
            align-items: center;
        }
        .terminal-input-line span {
            color: var(--accent-color);
            margin-right: 0.5em;
            font-family: var(--font-mono);
        }
        #terminalInput {
            flex-grow: 1;
            background: none;
            border: none;
            color: var(--text-color);
            font-family: var(--font-mono);
            font-size: 0.9rem;
            outline: none;
            /* Prevent automatic focusing on load */
            -webkit-user-modify: read-write-plaintext-only;
        }

        @keyframes blink {
            50% { border-color: transparent; }
        }

        /* Section titles */
        .section-title {
            font-size: 1.8rem;
            font-family: var(--font-mono);
            color: var(--accent-color);
            margin-bottom: 1rem;
        }

        /* Project cards */
        .project .title {
            font-family: var(--font-mono);
            font-size: 1.2rem;
            margin-bottom: 0.5em;
            color: var(--accent-color);
        }
        .project .desc {
            font-size: 0.95rem;
            margin-bottom: 0.8em;
        }
        .project .tags {
            margin-bottom: 0.8em;
        }
        .project .tags span {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            background-color: var(--muted-color);
            padding: 0.2em 0.5em;
            border-radius: 0.3rem;
            margin-right: 0.3em;
            color: var(--bg-color);
        }
        .project .link {
            font-family: var(--font-mono);
            font-size: 0.9rem;
        }

        /* Writeup cards */
        .writeup .title {
            font-family: var(--font-mono);
            font-size: 1.1rem;
            margin-bottom: 0.4em;
            color: var(--accent-color);
        }
        .writeup .tag {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: var(--muted-color);
            margin-bottom: 0.5em;
            display: inline-block;
        }
        .writeup .blurb {
            font-size: 0.95rem;
            margin-bottom: 0.8em;
        }
        .writeup .link {
            font-family: var(--font-mono);
            font-size: 0.9rem;
        }

        /* WRAVEN highlight */
        .wraven .dashboard-image {
            width: 100%;
            height: auto;
            border-radius: 0.5rem;
            object-fit: cover;
            margin-top: 1rem;
        }
        .wraven p {
            margin-bottom: 0.6em;
            font-size: 0.95rem;
            color: var(--text-color);
        }

        /* Contact styling */
        .contact-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-top: 1rem;
        }
        .contact-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.95rem;
        }
        .contact-item .label {
            font-family: var(--font-mono);
            color: var(--accent-color);
            min-width: 80px;
        }
        .pgp-button {
            background-color: var(--card-bg);
            border: 1px solid var(--accent-color);
            color: var(--accent-color);
            padding: 0.5rem 1rem;
            border-radius: 0.3rem;
            font-family: var(--font-mono);
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-block;
        }
        .pgp-button:hover {
            background-color: var(--accent-color);
            color: var(--bg-color);
        }

        /* Animation box */
        .animation-box {
            width: 100%;
            height: 300px;
            background: linear-gradient(45deg, var(--card-bg), #2a2a2a);
            border-radius: 5px;
            border: 1px solid var(--border-color);
            margin-top: 1rem;
            position: relative;
            overflow: hidden;
        }
        .floating-dots {
            position: absolute;
            width: 100%;
            height: 100%;
        }
        .dot {
            position: absolute;
            width: 12px;
            height: 12px;
            background-color: var(--accent-color);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 4px;
            margin: -4px;
        }
        .dot:hover {
            background-color: #fff;
            box-shadow: 0 0 15px var(--accent-color);
            animation-play-state: paused; 
        }
        .dot:nth-child(1) { left: 10%; animation-delay: 0s; }
        .dot:nth-child(2) { left: 20%; animation-delay: 1s; }
        .dot:nth-child(3) { left: 30%; animation-delay: 2s; }
        .dot:nth-child(4) { left: 40%; animation-delay: 3s; }
        .dot:nth-child(5) { left: 50%; animation-delay: 0.5s; }
        .dot:nth-child(6) { left: 60%; animation-delay: 1.5s; }
        .dot:nth-child(7) { left: 70%; animation-delay: 2.5s; }
        .dot:nth-child(8) { left: 80%; animation-delay: 3.5s; }
        .dot:nth-child(9) { left: 90%; animation-delay: 4s; }
        
        @keyframes float {
            0%, 100% { 
                transform: translateY(280px);
                opacity: 0;
            }
            10%, 90% {
                opacity: 1;
            }
            50% { 
                transform: translateY(20px);
                opacity: 0.8;
            }
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .grid-container {
                grid-template-columns: 1fr;
            }
            .hero-terminal, .contact-terminal {
                height: auto;
            }
            .terminal-output, .output {
                height: 200px;
            }
        }
        
        /* Footer styles */
        footer {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 2rem;
            color: var(--muted-color);
            border-top: 1px solid var(--border-color);
            margin-top: 2rem;
        }
        
        footer p {
            margin: 0;
            font-family: var(--font-mono);
            text-align: center;
            text-wrap: balance;
        }
        
        /* Contact section inline style fix */
        .contact-description {
            margin-bottom: 1.5rem;
            color: var(--muted-color);
        }
