@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

      * {
        font-family: "Space Grotesk", sans-serif;
      }

      body {
        cursor: none;
      }

      .geometric-bg {
        background-image: linear-gradient(
            45deg,
            transparent 48%,
            white 48%,
            white 52%,
            transparent 52%
          ),
          linear-gradient(
            -45deg,
            transparent 48%,
            white 48%,
            white 52%,
            transparent 52%
          );
        background-size: 60px 60px;
        background-position: 0 0, 30px 30px;
        opacity: 0.03;
      }

      .gradient-text {
        background: linear-gradient(
          135deg,
          #667eea 0%,
          #764ba2 50%,
          #f093fb 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: gradient-shift 3s ease infinite;
        background-size: 200% 200%;
      }

      .hover-lift {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      .hover-lift:hover {
        transform: translateY(-8px);
      }

      .slide-in {
        animation: slideIn 0.6s ease-out;
      }

      
      @keyframes slideIn {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      .typing-animation {
        overflow: hidden;
        border-right: 3px solid;
        white-space: nowrap;
        animation: typing 3.5s steps(40, end),
          blink-caret 0.75s step-end infinite;
        display: inline-block;
      }

      @keyframes typing {
        from {
          width: 0;
        }
        to {
          width: 100%;
        }
      }

      @keyframes blink-caret {
        from,
        to {
          border-color: transparent;
        }
        50% {
          border-color: currentColor;
        }
      }
      .scroll-indicator {
        animation: scroll-bounce 2s infinite;
      }

      @keyframes scroll-bounce {
        0%,
        100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(10px);
        }
      }

      .animate-float {
        animation: float 6s ease-in-out infinite;
      }

      @keyframes float {
        0%,
        100% {
          transform: translateY(0px) rotate(0deg);
        }
        25% {
          transform: translateY(-15px) rotate(2deg);
        }
        75% {
          transform: translateY(-10px) rotate(-2deg);
        }
      }
      .glow-effect {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
        animation: glow 2s ease-in-out infinite alternate;
      }

      @keyframes glow {
        from {
          box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
        }
        to {
          box-shadow: 0 0 30px rgba(118, 75, 162, 0.5),
            0 0 40px rgba(102, 126, 234, 0.3);
        }
      }

      .image-tilt {
        transition: transform 0.3s ease;
      }

      .image-tilt:hover {
        transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
      }

      @keyframes pulse-ring {
        0% {
          transform: scale(0.8);
          opacity: 1;
        }
        100% {
          transform: scale(1.5);
          opacity: 0;
        }
      }

      .pulse-ring {
        animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
      }
      .icon-bounce:hover {
        animation: bounce 0.6s ease;
      }

      @keyframes bounce {
        0%,
        100% {
          transform: translateY(0) scale(1);
        }
        50% {
          transform: translateY(-10px) scale(1.2);
        }
      }
      .nav-line {
        position: relative;
      }
      .nav-blur {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.8);
      }
      .nav-line::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: white;
        transition: width 0.3s ease;
      }

      .nav-line:hover::after {
        width: 100%;
      }

      /* Enhanced Custom Cursor */
      .custom-cursor {
        width: 20px;
        height: 20px;
        border: 2px solid white;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: all 0.2s ease;
        mix-blend-mode: difference;
      }

      .cursor-dot {
        width: 4px;
        height: 4px;
        background: white;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
      }

      .custom-cursor.hover {
        transform: scale(2.5);
        background: rgba(255, 255, 255, 0.2);
      }

      /* Scroll Progress */
      .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        height: 3px;
        background: white;
        background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
        z-index: 9999;
        transition: width 0.1s ease;
      }

      /* Parallax */
      .parallax {
        transition: transform 0.5s ease-out;
      }

      /* Loading Screen with Progress */
      .loading-screen {
        position: fixed;
        inset: 0;
        background: black;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: opacity 0.5s ease;
      }

      .loading-screen.hidden {
        opacity: 0;
        pointer-events: none;
      }

      .loader {
        width: 50px;
        height: 50px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }

      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      .loading-bar {
        width: 200px;
        height: 2px;
        background: rgba(255, 255, 255, 0.2);
        margin-top: 20px;
        overflow: hidden;
      }

      .loading-bar-inner {
        height: 100%;
        background: white;
        width: 0%;
        transition: width 0.3s ease;
      }

      /* Filter buttons */
      .filter-btn {
        transition: all 0.3s ease;
      }

      .filter-btn.active {
        background: white;
        color: black;
      }

      /* Project reveal with scale */
      .project-img {
        position: relative;
        overflow: hidden;
      }

      .project-img img {
        transition: transform 0.6s ease;
      }

      .project-img:hover img {
        transform: scale(1.1);
      }

      .project-img::before {
        content: "";
        position: absolute;
        inset: 0;
        background: white;
        transform: translateX(-100%);
        transition: transform 0.6s ease;
        z-index: 1;
      }

      .project-img:hover::before {
        transform: translateX(100%);
      }

      /* Typing effect */
      .typing {
        overflow: hidden;
        border-right: 3px solid white;
        white-space: nowrap;
        animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
      }

      @keyframes typing {
        from {
          width: 0;
        }
        to {
          width: 100%;
        }
      }

      @keyframes blink {
        50% {
          border-color: transparent;
        }
      }

      /* Particle canvas */
      #particles {
        position: absolute;
        inset: 0;
        pointer-events: none;
      }

      /* Modal with scale animation */
      .modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9998;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
      }

      .modal.active {
        display: flex;
        animation: fadeIn 0.3s ease;
      }

      .modal-content {
        transform: scale(0.9);
        opacity: 0;
        transition: all 0.3s ease;
      }

      .modal.active .modal-content {
        transform: scale(1);
        opacity: 1;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }

      /* Stats counter */
      .counter {
        font-variant-numeric: tabular-nums;
      }

      /* Scroll to top button */
      .scroll-top {
        opacity: 0;
        pointer-events: none;
        transition: all 0.5s ease-in-out;
      }

      .scroll-top.visible {
        opacity: 1;
        pointer-events: all;
      }

      .scroll-top:hover {
        transform: translateY(-5px);
      }

      /* Text reveal animation */
      .text-reveal {
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.8s ease;
      }

      .text-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
      }

      /* Image gallery grid */
      .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
      }

      .gallery-item {
        position: relative;
        overflow: hidden;
        aspect-ratio: 1;
        background: #111;
        cursor: none;
      }

      .gallery-item::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          45deg,
          rgba(255, 255, 255, 0.1),
          transparent
        );
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      .gallery-item:hover::after {
        opacity: 1;
      }

      /* Timeline */
      .timeline-item {
        position: relative;
        padding-left: 40px;
        border-left: 2px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 40px;
      }

      .timeline-item::before {
        content: "";
        position: absolute;
        left: -6px;
        top: 0;
        width: 10px;
        height: 10px;
        background: white;
        border-radius: 50%;
      }

      /* Glitch effect */
      .glitch {
        position: relative;
      }

      .glitch:hover {
        animation: glitch 0.3s ease;
      }

      @keyframes glitch {
        0%,
        100% {
          transform: translate(0);
        }
        25% {
          transform: translate(-2px, 2px);
        }
        50% {
          transform: translate(2px, -2px);
        }
        75% {
          transform: translate(-2px, -2px);
        }
      }

      /* Marquee */
      .marquee {
        overflow: hidden;
        white-space: nowrap;
      }

      .marquee-content {
        display: inline-block;
        animation: marquee 20s linear infinite;
      }

      @keyframes marquee {
        0% {
          transform: translateX(0);
        }
        100% {
          transform: translateX(-50%);
        }
      }

      /* Skills progress bars */
      .skill-bar {
        height: 30px;
        background: rgba(255, 255, 255, 0.2);
        overflow: hidden;
      }

      .skill-bar-fill {
        height: 100%;
        background: white;
        background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
        width: 0%;
        transition: width 1.5s ease;
      }

      /* Magnetic button effect */
      .magnetic-btn {
        transition: transform 0.3s ease;
      }

      /* Mobile menu */
      .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: black;
        z-index: 9999;
        transition: right 0.3s ease;
        padding: 80px 40px;
      }

      .mobile-menu.active {
        right: 0;
      }

      .hamburger {
        display: none;
        flex-direction: column;
        gap: 6px;
        cursor: none;
      }

      .hamburger span {
        width: 30px;
        height: 2px;
        background: white;
        transition: all 0.3s ease;
      }

      .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
      }

      .hamburger.active span:nth-child(2) {
        opacity: 0;
      }

      .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
      }

      @media (max-width: 768px) {
        .hamburger {
          display: flex;
        }
        body {
          cursor: auto;
        }
        .custom-cursor,
        .cursor-dot {
          display: none;
        }
      }

      /* Floating elements */
      .float {
        animation: float 3s ease-in-out infinite;
      }

      @keyframes float {
        0%,
        100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-20px);
        }
      }

      /* Gradient text */
      .gradient-text {
        background: linear-gradient(90deg, white, gray, white);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradientShift 3s ease infinite;
      }

      @keyframes gradientShift {
        0%,
        100% {
          background-position: 0% 50%;
        }
        50% {
          background-position: 100% 50%;
        }
      }