/* GENERAL STYLES */
    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      font-family: 'Press Start 2P', monospace, sans-serif;
      color: #f1f1f1;
      overflow-x: hidden;
      background-color: #000;
      
      background-image: 
        linear-gradient(45deg, #00ffff 1px, transparent 1px),
        linear-gradient(-45deg, #ff00ff 1px, transparent 1px);
      background-size: 50px 50px;
      animation: gridScroll 15s linear infinite;
    }

    body {
      font-size: 14px;
      line-height: 1.8;
      letter-spacing: 0.5px;
    }

    @keyframes gridScroll {
      0% { background-position: 0 0, 0 0; }
      100% { background-position: 500px 500px, 500px 500px; }
    }

    .container {
      max-width: 960px;
      margin: 0 auto;
      padding: 50px 20px;
      text-align: center;
      animation: bootUp 2s ease-out;
    }

    @keyframes bootUp {
      0% {
        opacity: 0;
        transform: scale(1.05) skewY(3deg);
        filter: brightness(2);
      }
      100% {
        opacity: 1;
        transform: scale(1) skewY(0);
        filter: brightness(1);
      }
    }

    h1 {
      font-size: 24px;
      margin-bottom: 10px;
      color: #00ff99;
      text-shadow: 2px 2px #000;
    }

    @keyframes flicker {
      0% { opacity: 1; }
      40% { opacity: 0.85; }
      60% { opacity: 1; }
      80% { opacity: 0.7; }
      100% { opacity: 1; }
    }
    
    .intro-section {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    /* MODIFIED: Logo styling for the container */
    .logo {
        border: 4px solid #00ffff;
        box-shadow: 0 0 10px #00ffffaa;
        padding: 6px;
        border-radius: 8px;
        background-color: #111;
        display: inline-block;
        animation: pulseGlow 2s infinite ease-in-out;
        line-height: 0; /* Prevents extra space around the image */
    }
    
    /* NEW: Styling for the image inside the logo container */
    .logo img {
        width: 64px;
        height: 64px;
        display: block;
        image-rendering: pixelated;
    }

    @keyframes pulseGlow {
      0%, 100% { box-shadow: 0 0 10px #00ffffaa; }
      50% { box-shadow: 0 0 20px #00ffffcc; }
    }

    .intro-text {
        max-width: 280px;
        text-align: left;
        font-size: 12px;
        line-height: 1.6;
        color: #f1f1f1;
        opacity: 0;
        animation: fadeIn 1s ease forwards;
        animation-delay: 0.5s;
    }

    #typewriter::after {
      content: "_";
      animation: blink 1s infinite;
    }

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

    @keyframes fadeIn {
      to {
        opacity: 1;
      }
    }

    .section {
      margin: 40px 0;
      background: rgba(0, 0, 0, 0.75);
      padding: 20px;
      border: 2px dashed #00ffcc;
      border-radius: 10px;
      box-shadow: 0 0 15px #00ffcc55;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1.2s forwards;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .section:hover {
      transform: translateY(-5px) scale(1.02);
      box-shadow: 0 0 20px #00ffffcc, 0 0 40px #00ffff88;
      border-color: #ff00ff;
    }
    
    .section:nth-of-type(1) { animation-delay: 1.0s; }
    .section:nth-of-type(2) { animation-delay: 1.3s; }
    .section:nth-of-type(3) { animation-delay: 1.6s; }
    .section:nth-of-type(4) { animation-delay: 1.9s; }
    .section:nth-of-type(5) { animation-delay: 2.2s; } 

    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    a { color: #ffcc00; text-decoration: none; }
    a:hover { text-shadow: 0 0 5px #fff; }

    footer {
      margin-top: 60px;
      font-size: 10px;
      color: #aaa;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }
    
    .footer-logo { width: 35px; height: 35px; image-rendering: normal; }

    .start-flicker-fast { animation: flicker 1.5s infinite alternate; }
    .start-flicker-slow { animation: flicker 2s infinite; }
    
    .terminal {
      background-color: #000;
      border: 2px solid #00ffcc;
      box-shadow: 0 0 15px #00ffcc88;
      font-family: monospace;
      color: #00ffcc;
    }

    .terminal-window {
      background: #000000ee;
      padding: 20px;
      height: 200px;
      overflow-y: auto;
      text-align: left;
      font-size: 12px;
      border: 2px inset #00ffcc44;
      box-shadow: inset 0 0 10px #00ffff33;
      white-space: pre-wrap;
      word-break: break-word;
    }

    #terminalOutput { animation: flicker 2s infinite alternate; }
    #terminalOutput::after { content: "_"; animation: blink 1s infinite; }
    
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: #111; border-left: 1px solid #00ffff; }
    ::-webkit-scrollbar-thumb { background: #00ffff; border: 1px solid #000; box-shadow: inset 0 0 3px #00ffff88; }
    ::-webkit-scrollbar-thumb:hover { background: #ff00ff; box-shadow: inset 0 0 6px #ff00ffaa; }
    html { scrollbar-color: #00ffff #111; scrollbar-width: thin; }

    .contact-form { max-width: 500px; margin: 0 auto; text-align: left; }
    .contact-form label { display: block; margin-bottom: 8px; color: #00ffcc; font-size: 12px; }
    .contact-form input,
    .contact-form textarea {
        width: 100%;
        background-color: #111;
        border: 2px solid #00ffcc;
        border-radius: 4px;
        padding: 10px;
        color: #f1f1f1;
        font-family: 'Press Start 2P', monospace;
        font-size: 12px;
        margin-bottom: 20px;
        box-sizing: border-box; 
        transition: border-color 0.3s, box-shadow 0.3s;
    }
    .contact-form input:focus,
    .contact-form textarea:focus {
        outline: none;
        border-color: #ff00ff;
        box-shadow: 0 0 10px #ff00ff88;
    }
    .contact-form button {
        display: block;
        width: 100%;
        padding: 12px;
        background-color: #00ff99;
        color: #000;
        border: none;
        border-radius: 4px;
        font-family: 'Press Start 2P', monospace;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.3s, box-shadow 0.3s;
    }
    .contact-form button:hover { background-color: #00ffff; box-shadow: 0 0 15px #00ffffaa; }
    #form-result { margin-top: 20px; font-size: 14px; padding: 15px; border-radius: 5px; border-style: solid; border-width: 2px; }

    @media (max-width: 480px) {
      .intro-section { flex-direction: column; gap: 15px; }
      .logo img { width: 56px; height: 56px; }
      .intro-text { max-width: 90vw; text-align: center; }
      .terminal-window { font-size: 10px; padding: 15px; height: 180px; }
      .terminal { margin: 0 10px; }
    }