:root {
        --bg: #030712;
        --surface: rgba(13, 22, 36, 0.6);
        --surface-hover: rgba(20, 32, 50, 0.8);
        --green: #00ff9f;
        --blue: #00d4ff;
        --purple: #a78bfa;
        --border: rgba(0, 255, 159, 0.15);
        --glow-green: rgba(0, 255, 159, 0.3);
        --glow-blue: rgba(0, 212, 255, 0.3);
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --font-sans: "Inter", sans-serif;
        --font-mono: "JetBrains Mono", monospace;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        cursor: none !important;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        background-color: var(--bg);
        color: var(--text-main);
        font-family: var(--font-sans);
        overflow-x: hidden;
        line-height: 1.6;
      }

      ::selection {
        background: var(--glow-green);
        color: #fff;
      }

      /* Scrollbar */
      ::-webkit-scrollbar {
        width: 8px;
      }
      ::-webkit-scrollbar-track {
        background: var(--bg);
      }
      ::-webkit-scrollbar-thumb {
        background: rgba(0, 255, 159, 0.2);
        border-radius: 4px;
      }
      ::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 255, 159, 0.5);
      }

      /* Scroll Progress */
      .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--green), var(--blue));
        width: 0%;
        z-index: 10001;
        box-shadow: 0 0 10px var(--glow-green);
        transition: width 0.1s ease-out;
      }

      /* Ambient Effects */
      .noise {
        position: fixed;
        inset: 0;
        z-index: 9999;
        pointer-events: none;
        opacity: 0.03;
        background-image: url("https://grainy-gradients.vercel.app/noise.svg");
      }
      .crt-scanlines {
        position: fixed;
        inset: 0;
        z-index: 9998;
        pointer-events: none;
        background:
          linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
          linear-gradient(
            90deg,
            rgba(255, 0, 0, 0.03),
            rgba(0, 255, 0, 0.01),
            rgba(0, 0, 255, 0.03)
          );
        background-size:
          100% 4px,
          3px 100%;
      }
      .bg-grid {
        position: fixed;
        inset: 0;
        z-index: -1;
        background-image:
          linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 40px 40px;
        mask-image: radial-gradient(circle at center, black, transparent 80%);
        -webkit-mask-image: radial-gradient(
          circle at center,
          black,
          transparent 80%
        );
      }
      #matrix-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -3;
        opacity: 0.15;
      }

      .orb {
        position: fixed;
        border-radius: 50%;
        filter: blur(100px);
        z-index: -2;
        pointer-events: none;
        animation: float 10s ease-in-out infinite alternate;
      }
      .orb-1 {
        width: 300px;
        height: 300px;
        background: rgba(0, 255, 159, 0.15);
        top: 20%;
        left: 10%;
      }
      .orb-2 {
        width: 400px;
        height: 400px;
        background: rgba(0, 212, 255, 0.15);
        bottom: 10%;
        right: 10%;
        animation-delay: -5s;
      }
      @keyframes float {
        0% { transform: translateY(0) scale(1); }
        100% { transform: translateY(-50px) scale(1.1); }
      }

      /* Custom Cursor */
      #cursor-ring {
        position: fixed;
        width: 32px;
        height: 32px;
        border: 1.5px solid var(--green);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transition:
          transform 0.1s ease-out,
          background 0.2s,
          border-color 0.2s;
        transform: translate(-50%, -50%);
      }
      #cursor-dot {
        position: fixed;
        width: 4px;
        height: 4px;
        background-color: var(--green);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10001;
        transition: opacity 0.1s;
        transform: translate(-50%, -50%);
      }

      /* Layout */
      .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
      }
      section {
        padding: 100px 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      /* Navbar */
      .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        background: rgba(3, 7, 18, 0.8);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
        transition: transform 0.3s ease;
      }
      .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .nav-brand {
        font-family: var(--font-mono);
        font-weight: 800;
        color: var(--green);
        font-size: 1.2rem;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        transition: transform 0.3s;
      }
      .nav-brand:hover {
        transform: scale(1.05);
      }
      .nav-logo-icon {
        color: var(--blue);
        filter: drop-shadow(0 0 5px var(--glow-blue));
      }
      .blink {
        animation: blink-caret 1s step-end infinite;
      }
      .nav-links {
        display: flex;
        gap: 2rem;
      }
      .nav-link {
        color: var(--text-muted);
        text-decoration: none;
        font-family: var(--font-mono);
        font-size: 0.85rem;
        transition: color 0.3s;
        position: relative;
      }
      .nav-link:hover {
        color: var(--green);
      }
      .nav-link::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--green);
        transition: width 0.3s;
      }
      .nav-link:hover::after {
        width: 100%;
      }

      /* Glitch Effect */
      .glitch-wrapper {
        position: relative;
        display: inline-block;
      }
      .glitch-text {
        font-size: clamp(2.5rem, 8vw, 5rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        position: relative;
        color: white;
      }
      .glitch-text::before,
      .glitch-text::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg);
      }
      .glitch-text::before {
        left: 2px;
        text-shadow: -2px 0 red;
        clip: rect(24px, 550px, 90px, 0);
        animation: glitch-anim-2 3s infinite linear alternate-reverse;
      }
      .glitch-text::after {
        left: -2px;
        text-shadow: -2px 0 blue;
        clip: rect(85px, 550px, 140px, 0);
        animation: glitch-anim 2.5s infinite linear alternate-reverse;
      }
      @keyframes glitch-anim {
        0% {
          clip: rect(20px, 9999px, 85px, 0);
        }
        20% {
          clip: rect(72px, 9999px, 16px, 0);
        }
        40% {
          clip: rect(100px, 9999px, 60px, 0);
        }
        60% {
          clip: rect(40px, 9999px, 90px, 0);
        }
        80% {
          clip: rect(80px, 9999px, 10px, 0);
        }
        100% {
          clip: rect(10px, 9999px, 40px, 0);
        }
      }
      @keyframes glitch-anim-2 {
        0% {
          clip: rect(15px, 9999px, 40px, 0);
        }
        20% {
          clip: rect(50px, 9999px, 80px, 0);
        }
        40% {
          clip: rect(90px, 9999px, 20px, 0);
        }
        60% {
          clip: rect(10px, 9999px, 60px, 0);
        }
        80% {
          clip: rect(70px, 9999px, 90px, 0);
        }
        100% {
          clip: rect(30px, 9999px, 10px, 0);
        }
      }

      /* Typography */
      .section-heading {
        font-family: var(--font-mono);
        font-size: 2rem;
        color: #fff;
        margin-bottom: 3rem;
        display: flex;
        align-items: center;
        gap: 1rem;
      }
      .section-heading::before {
        content: ">";
        color: var(--green);
      }
      .section-heading::after {
        content: "";
        flex-grow: 1;
        height: 1px;
        background: var(--border);
        margin-left: 1rem;
      }

      .status {
        color: var(--green);
        font-family: var(--font-mono);
        font-size: 0.8rem;
        font-weight: bold;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 1.5rem;
        padding: 6px 16px;
        background: rgba(0, 255, 159, 0.05);
        border: 1px solid var(--border);
        border-radius: 20px;
      }
      .pulse {
        width: 8px;
        height: 8px;
        background: var(--green);
        border-radius: 50%;
        animation: pulse-glow 2s infinite;
      }
      @keyframes pulse-glow {
        0% {
          box-shadow: 0 0 0 0 rgba(0, 255, 159, 0.7);
        }
        70% {
          box-shadow: 0 0 0 10px rgba(0, 255, 159, 0);
        }
        100% {
          box-shadow: 0 0 0 0 rgba(0, 255, 159, 0);
        }
      }

      .typing-text {
        font-family: var(--font-mono);
        color: var(--blue);
        font-size: 1.2rem;
        margin-top: 1rem;
        border-right: 2px solid var(--blue);
        white-space: nowrap;
        overflow: hidden;
        animation:
          typing 3s steps(40, end),
          blink-caret 0.75s step-end infinite;
      }
      @keyframes typing {
        from {
          width: 0;
        }
        to {
          width: 100%;
        }
      }
      @keyframes blink-caret {
        from,
        to {
          border-color: transparent;
        }
        50% {
          border-color: var(--blue);
        }
      }

      .hero-desc {
        color: var(--text-muted);
        font-size: 1.1rem;
        max-width: 600px;
        margin-top: 1.5rem;
      }

      /* Hero Layout & Avatar */
      .hero .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4rem;
      }
      .hero-content {
        flex: 1;
        z-index: 10;
      }
      .hero-image {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
      }
      .avatar-container {
        position: relative;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      .avatar-container::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: conic-gradient(from 0deg, var(--green), var(--blue), var(--purple), var(--green));
        animation: spin 4s linear infinite;
        box-shadow: 0 0 40px var(--glow-green);
      }
      .avatar-container::after {
        content: "";
        position: absolute;
        inset: 4px;
        border-radius: 50%;
        background-color: var(--bg);
      }
      .avatar {
        position: relative;
        z-index: 2;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        object-fit: cover;
        filter: grayscale(20%) contrast(110%);
        transition: filter 0.3s;
      }
      .avatar:hover {
        filter: grayscale(0%) contrast(100%);
      }
      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }

      /* Buttons */
      .btn-container {
        margin-top: 2.5rem;
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
      }
      .btn {
        background: rgba(0, 255, 159, 0.05);
        border: 1px solid var(--green);
        color: var(--green);
        padding: 12px 32px;
        font-family: var(--font-mono);
        font-size: 0.9rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
        text-decoration: none;
        display: inline-block;
        cursor: none;
      }
      .btn-outline {
        border-color: var(--blue);
        color: var(--blue);
        background: rgba(0, 212, 255, 0.05);
      }
      .btn::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.1),
          transparent
        );
        transition: 0.5s;
      }
      .btn:hover {
        background: rgba(0, 255, 159, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(0, 255, 159, 0.2);
      }
      .btn-outline:hover {
        background: rgba(0, 212, 255, 0.15);
        box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
      }
      .btn:hover::after {
        left: 100%;
      }

      /* Cards (Glassmorphism) */
      .card {
        background: var(--surface);
        backdrop-filter: blur(12px);
        border: 1px solid var(--border);
        border-radius: 0.75rem;
        padding: 2rem;
        transition:
          transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
          border-color 0.4s,
          box-shadow 0.4s;
      }
      .card:hover {
        transform: translateY(-8px);
        border-color: var(--green);
        box-shadow:
          0 15px 35px rgba(0, 0, 0, 0.5),
          0 0 25px var(--glow-green),
          inset 0 0 20px rgba(0, 255, 159, 0.05);
      }

      /* About Section */
      .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
      }
      .about-text p {
        margin-bottom: 1rem;
        color: var(--text-muted);
        font-size: 1.05rem;
      }
      .about-text .highlight {
        background: linear-gradient(90deg, var(--green), var(--blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-family: var(--font-mono);
        font-weight: 700;
      }
      .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
      }
      .stat-card {
        text-align: center;
        padding: 1.5rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 0.5rem;
      }
      .stat-num {
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--green);
        font-family: var(--font-mono);
        margin-bottom: 0.5rem;
      }
      .stat-label {
        font-size: 0.85rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.1em;
      }

      /* Skills Section */
      .skills-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
      }
      .skill-category {
        margin-bottom: 1.5rem;
        font-family: var(--font-mono);
        color: var(--blue);
        font-size: 1.1rem;
      }
      .skill-item {
        margin-bottom: 1rem;
      }
      .skill-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        color: var(--text-main);
      }
      .skill-bar-bg {
        height: 6px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
        overflow: hidden;
        position: relative;
      }
      .skill-bar-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--green), var(--blue));
        position: relative;
        transform-origin: left;
        animation: fillBar 1.5s ease-out forwards;
        box-shadow: 0 0 10px rgba(0, 255, 159, 0.4);
      }
      @keyframes fillBar {
        from {
          transform: scaleX(0);
        }
        to {
          transform: scaleX(1);
        }
      }
      .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
      }
      .tag {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
        background: rgba(0, 212, 255, 0.1);
        color: var(--blue);
        border: 1px solid rgba(0, 212, 255, 0.2);
        border-radius: 4px;
      }

      /* Projects Section */
      .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
      }
      .project-card {
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
      }
      .project-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1.5rem;
      }
      .project-icon {
        font-size: 2rem;
        color: var(--green);
      }
      .project-links a {
        color: var(--text-muted);
        transition: color 0.3s;
        margin-left: 0.5rem;
        text-decoration: none;
      }
      .project-links a:hover {
        color: var(--green);
      }
      .project-title {
        font-size: 1.4rem;
        color: #fff;
        margin-bottom: 1rem;
        font-weight: 700;
      }
      .project-desc {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        flex-grow: 1;
      }

      /* Timeline Section */
      .timeline {
        position: relative;
        max-width: 800px;
        margin: 0 auto;
      }
      .timeline::before {
        content: "";
        position: absolute;
        top: 0;
        left: 20px;
        height: 100%;
        width: 2px;
        background: linear-gradient(to bottom, var(--green), var(--blue), transparent);
        box-shadow: 0 0 10px var(--green);
      }
      .timeline-item {
        position: relative;
        padding-left: 60px;
        margin-bottom: 3rem;
      }
      .timeline-dot {
        position: absolute;
        left: 14px;
        top: 0;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--bg);
        border: 2px solid var(--green);
        z-index: 1;
        box-shadow: 0 0 10px var(--glow-green);
        transition: all 0.3s ease;
      }
      .timeline-item:hover .timeline-dot {
        background: var(--green);
        box-shadow: 0 0 20px var(--green);
        transform: scale(1.3);
      }
      .timeline-date {
        font-family: var(--font-mono);
        color: var(--blue);
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
      }
      .timeline-title {
        font-size: 1.3rem;
        color: #fff;
        font-weight: 700;
        margin-bottom: 0.2rem;
      }
      .timeline-subtitle {
        color: var(--text-muted);
        font-size: 1rem;
        margin-bottom: 1rem;
      }
      .timeline-content {
        background: var(--surface);
        border: 1px solid var(--border);
        padding: 1.5rem;
        border-radius: 0.5rem;
      }

      /* Contact Section */
      .contact-content {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
      }
      .contact-title {
        font-size: 3rem;
        color: #fff;
        margin-bottom: 1rem;
        font-weight: 800;
      }
      .contact-desc {
        color: var(--text-muted);
        margin-bottom: 2.5rem;
        font-size: 1.1rem;
      }
      .terminal {
        background: rgba(10, 15, 25, 0.9);
        border: 1px solid var(--border);
        border-radius: 8px;
        overflow: hidden;
        text-align: left;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        margin-bottom: 2rem;
      }
      .terminal-header {
        background: #1a1b26;
        padding: 10px 15px;
        display: flex;
        gap: 8px;
        border-bottom: 1px solid var(--border);
      }
      .terminal-btn {
        width: 12px;
        height: 12px;
        border-radius: 50%;
      }
      .terminal-btn.close {
        background: #ff5f56;
      }
      .terminal-btn.min {
        background: #ffbd2e;
      }
      .terminal-btn.max {
        background: #27c93f;
      }
      .terminal-body {
        padding: 20px;
        font-family: var(--font-mono);
        font-size: 0.9rem;
        color: var(--text-muted);
      }
      .terminal-line {
        margin-bottom: 10px;
      }
      .prompt {
        color: var(--green);
      }
      .cmd {
        color: #fff;
      }
      .response {
        color: var(--blue);
        margin-top: 5px;
      }
      .social-links {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
      }
      .social-link {
        color: var(--text-muted);
        font-size: 1.5rem;
        transition:
          color 0.3s,
          transform 0.3s;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .social-link:hover {
        color: var(--green);
        transform: translateY(-3px);
      }

      /* Footer */
      footer {
        padding: 2rem 0;
        text-align: center;
        border-top: 1px solid var(--border);
        font-family: var(--font-mono);
        font-size: 0.85rem;
        color: var(--text-muted);
      }

      /* Reveal Animation */
      .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease-out;
      }
      .reveal.active {
        opacity: 1;
        transform: translateY(0);
      }

      /* Responsive */
      @media (max-width: 768px) {
        .hero .container {
          flex-direction: column-reverse;
          text-align: center;
          gap: 2rem;
        }
        .avatar-container {
          width: 250px;
          height: 250px;
        }
        .avatar {
          width: 236px;
          height: 236px;
        }
        .btn-container {
          justify-content: center;
        }
        .about-grid {
          grid-template-columns: 1fr;
          gap: 2rem;
        }
        .nav-links {
          display: none;
        }
        .glitch-text {
          font-size: 2.5rem;
        }
        .typing-text {
          font-size: 0.9rem;
          white-space: normal;
          animation: none;
          border: none;
        }
        .hero {
          padding-top: 150px;
        }
      }
