:root {
        --bg: #0a0a0a;
        --bg-light: #161616;
        --bg-lighter: #252525;
        --fg: #f5f5f5;
        --fg-dim: #d4d4d4;
        --accent: #3b82f6; 
        --accent-dark: #2563eb;
        --accent-light: #60a5fa;
        --accent-secondary: #10b981;
        --gray: #a3a3a3;
        --gray-dark: #525252;
        --success: #10b981;
        --warning: #f59e0b;
        --error: #ef4444;

        --header-height: 80px;
        --max-width: 1200px;
        --border-radius: 8px;
        --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        cursor: none;
        background-color: var(--bg);
        color: var(--fg);
        font-family: "Inter", sans-serif;
        line-height: 1.6;
        scroll-behavior: smooth;
        overflow-x: hidden;
      }

      h1,
      h2,
      h3,
      h4 {
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 1rem;
      }

      h1 {
        font-size: 3.5rem;
      }

      h2 {
        font-size: 2.5rem;
      }

      h3 {
        font-size: 1.5rem;
      }

      p {
        margin-bottom: 1.5rem;
        color: var(--fg-dim);
      }

      /* Scrollbar */
      ::-webkit-scrollbar {
        width: 8px;
      }
      ::-webkit-scrollbar-track {
        background: var(--bg-light);
      }
      ::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 4px;
      }
      ::-webkit-scrollbar-thumb:hover {
        background: var(--accent-light);
      }

      #particles-js {
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: -1;
        opacity: 0.15;
      }

      /* Header */
      header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: var(--header-height);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        z-index: 100;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      }

      header.scrolled {
        height: 70px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
      }

      .logo {
        display: flex;
        align-items: center;
        gap: 1rem;
      }

      .logo-icon {
        color: var(--accent);
        font-size: 1.8rem;
      }

      .logo-text {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--fg);
      }

      .logo-text span {
        color: var(--accent);
      }

      nav {
        display: flex;
        gap: 2rem;
      }

      nav a {
        position: relative;
        text-decoration: none;
        color: var(--gray);
        font-weight: 500;
        transition: var(--transition);
        padding: 0.5rem 0;
        font-size: 0.95rem;
      }

      nav a:hover {
        color: var(--accent-light);
      }

      nav a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent-light);
        transition: var(--transition);
      }

      nav a:hover::after {
        width: 100%;
      }

      .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        color: var(--fg);
        font-size: 1.5rem;
        cursor: pointer;
      }

      /* Hero section */
      .hero {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        padding: 0 10%;
        padding-top: var(--header-height);
        position: relative;
        overflow: hidden;
      }

      .hero-content {
        max-width: 800px;
        position: relative;
        z-index: 2;
      }

      .hero h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
        margin-bottom: 1.5rem;
        color: var(--fg);
      }

      .hero h1 span {
        color: var(--accent);
        display: block;
      }

      .typing-container {
        min-height: 3rem;
        margin: 1.5rem 0;
      }

      .typing {
        font-size: 1.5rem;
        color: var(--accent-light);
        height: 2.5rem;
        overflow: hidden;
        white-space: nowrap;
        width: fit-content;
        margin: 0;
        font-weight: 500;
      }

      .hero p {
        font-size: 1.1rem;
        color: var(--gray);
        max-width: 600px;
        margin-bottom: 2rem;
        line-height: 1.7;
      }

      .cta-buttons {
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
      }

      .btn {
        padding: 0.8rem 1.8rem;
        border-radius: var(--border-radius);
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.95rem;
      }

      .btn-primary {
        background: var(--accent);
        color: var(--bg);
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
      }

      .btn-primary:hover {
        background: var(--accent-light);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
      }

      .btn-secondary {
        background: transparent;
        color: var(--accent);
        border: 2px solid var(--accent);
      }

      .btn-secondary:hover {
        background: rgba(59, 130, 246, 0.1);
        transform: translateY(-3px);
        border-color: var(--accent-light);
        color: var(--accent-light);
      }

      .scroll-down {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        color: var(--gray);
        font-size: 1.5rem;
        animation: bounce 2s infinite;
        cursor: pointer;
      }

      @keyframes bounce {
        0%,
        20%,
        50%,
        80%,
        100% {
          transform: translateY(0) translateX(-50%);
        }
        40% {
          transform: translateY(-20px) translateX(-50%);
        }
        60% {
          transform: translateY(-10px) translateX(-50%);
        }
      }

      /* Main sections */
      section {
        padding: 8rem 10%;
        max-width: var(--max-width);
        margin: 0 auto;
        position: relative;
      }

      .section-header {
        text-align: center;
        margin-bottom: 4rem;
      }

      .section-header h2 {
        color: var(--fg);
        position: relative;
        display: inline-block;
      }

      .section-header h2::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--accent);
        border-radius: 2px;
      }

      .section-header p {
        color: var(--gray);
        max-width: 700px;
        margin: 0 auto;
        font-size: 1.1rem;
        line-height: 1.6;
      }

      /* About section */
      .about-content {
        display: flex;
        gap: 4rem;
        align-items: center;
      }

      .about-text {
        flex: 1;
      }

      .about-text p {
        margin-bottom: 1.5rem;
        line-height: 1.7;
        color: var(--fg-dim);
      }

      .about-image {
        flex: 1;
        position: relative;
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--box-shadow);
        max-width: 400px;
        aspect-ratio: 1/1;
      }

      .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
      }

      .about-image:hover img {
        transform: scale(1.05);
      }

      .stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-top: 3rem;
      }

      .stat-card {
        background: var(--bg-light);
        padding: 2rem;
        border-radius: var(--border-radius);
        text-align: center;
        transition: var(--transition);
        border-top: 4px solid var(--accent);
      }

      .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow);
      }

      .stat-number {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--accent);
        margin-bottom: 0.5rem;
      }

      .stat-label {
        color: var(--gray);
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      /* Skills */
      .skills-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
      }

      .skill-category {
        background: var(--bg-light);
        padding: 2rem;
        border-radius: var(--border-radius);
        transition: var(--transition);
      }

      .skill-category:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow);
      }

      .skill-category h3 {
        color: var(--accent);
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .skill-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
      }

      .skill-item {
        background: var(--bg-lighter);
        color: var(--fg);
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .skill-item i {
        color: var(--accent-light);
      }

      /* Projects section */
      .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
      }

      .card {
        background: var(--bg-light);
        border-radius: var(--border-radius);
        overflow: hidden;
        transition: var(--transition);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.05);
      }

      .card:hover {
        transform: translateY(-10px);
        box-shadow: var(--box-shadow);
        border-color: rgba(59, 130, 246, 0.2);
      }

      .card-image {
        height: 200px;
        overflow: hidden;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      }

      .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
      }

      .card:hover .card-image img {
        transform: scale(1.05);
      }

      .card-content {
        padding: 1.5rem;
      }

      .card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
        color: var(--fg);
      }

      .card p {
        color: var(--fg-dim);
        margin-bottom: 1.5rem;
        line-height: 1.6;
        font-size: 0.95rem;
      }

      .card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
      }

      .tag {
        background: var(--bg-lighter);
        color: var(--accent-light);
        padding: 0.3rem 0.8rem;
        border-radius: 50px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .card-links {
        display: flex;
        gap: 1rem;
      }

      .card-link {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        color: var(--accent);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        transition: var(--transition);
      }

      .card-link:hover {
        color: var(--accent-light);
      }

      /* Timeline */
      .timeline {
        position: relative;
        max-width: 800px;
        margin: 0 auto;
      }

      .timeline::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 100%;
        background: var(--accent);
      }

      .timeline-item {
        position: relative;
        margin-bottom: 3rem;
      }

      .timeline-item:nth-child(odd) {
        padding-right: calc(50% + 2rem);
        text-align: right;
      }

      .timeline-item:nth-child(even) {
        padding-left: calc(50% + 2rem);
        text-align: left;
      }

      .timeline-dot {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--accent);
        border: 4px solid var(--bg-light);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
      }

      .timeline-content {
        background: var(--bg-light);
        padding: 1.5rem;
        border-radius: var(--border-radius);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        border: 1px solid rgba(255, 255, 255, 0.05);
      }

      .timeline-item:hover .timeline-content {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow);
        border-left: 3px solid var(--accent-light);
      }

      .timeline-date {
        color: var(--accent);
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .timeline-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
      }

      .timeline-desc {
        color: var(--gray);
        line-height: 1.6;
      }

      /* Contact section */
      .contact-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 3rem;
      }

      .contact-info {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
      }

      .contact-card {
        background: var(--bg-light);
        padding: 1.5rem;
        border-radius: var(--border-radius);
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
      }

      .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow);
        border-left: 3px solid var(--accent-light);
      }

      .contact-icon {
        width: 50px;
        height: 50px;
        background: rgba(59, 130, 246, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent);
        font-size: 1.2rem;
      }

      .contact-text h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
      }

      .contact-text p,
      .contact-text a {
        color: var(--gray);
        text-decoration: none;
        transition: var(--transition);
      }

      .contact-text a:hover {
        color: var(--accent-light);
      }

      .social-links {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
      }

      .social-link {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--bg-lighter);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--fg);
        transition: var(--transition);
        border: 1px solid rgba(255, 255, 255, 0.05);
      }

      .social-link:hover {
        background: var(--accent-light);
        color: var(--bg);
        transform: translateY(-3px);
      }

      .contact-form {
        background: var(--bg-light);
        padding: 2rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        border: 1px solid rgba(255, 255, 255, 0.05);
      }

      .form-group {
        margin-bottom: 1.5rem;
      }

      .form-label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--fg-dim);
        font-weight: 500;
      }

      .form-control {
        width: 100%;
        padding: 0.8rem 1rem;
        background: var(--bg-lighter);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--border-radius);
        color: var(--fg);
        font-family: inherit;
        transition: var(--transition);
      }

      .form-control:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
        border-color: var(--accent);
      }

      textarea.form-control {
        min-height: 150px;
        resize: vertical;
      }

      .submit-btn {
        background: var(--accent);
        color: var(--bg);
        border: none;
        padding: 0.8rem 1.8rem;
        border-radius: var(--border-radius);
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
      }

      .submit-btn:hover {
        background: var(--accent-light);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
      }

      /* Footer */
      footer {
        background: var(--bg-light);
        padding: 3rem 2rem;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
      }

      .footer-content {
        max-width: var(--max-width);
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        text-align: left;
      }

      .footer-col h3 {
        color: var(--accent);
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
      }

      .footer-col p,
      .footer-col a {
        color: var(--gray);
        margin-bottom: 0.8rem;
        display: block;
        text-decoration: none;
        transition: var(--transition);
      }

      .footer-col a:hover {
        color: var(--accent-light);
      }

      .footer-bottom {
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--gray-dark);
        font-size: 0.9rem;
      }

      /* Back to top button */
      .back-to-top {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        width: 50px;
        height: 50px;
        background: var(--accent);
        color: var(--bg);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        z-index: 99;
        border: none;
      }

      .back-to-top.active {
        opacity: 1;
        visibility: visible;
      }

      .back-to-top:hover {
        background: var(--accent-light);
        transform: translateY(-3px);
      }

      /* Animations */
      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .fade-in {
        animation: fadeIn 1s ease forwards;
      }

      .delay-1 {
        animation-delay: 0.2s;
      }
      .delay-2 {
        animation-delay: 0.4s;
      }
      .delay-3 {
        animation-delay: 0.6s;
      }
      .delay-4 {
        animation-delay: 0.8s;
      }

      /* Responsive styles */
      @media (max-width: 992px) {
        .about-content {
          flex-direction: column;
        }

        .about-image {
          max-width: 100%;
        }

        .timeline::before {
          left: 2rem;
        }

        .timeline-item:nth-child(odd),
        .timeline-item:nth-child(even) {
          padding-left: calc(2rem + 20px);
          padding-right: 0;
          text-align: left;
        }

        .timeline-dot {
          left: 2rem;
        }
      }

      @media (max-width: 768px) {
        section {
          padding: 6rem 5%;
        }

        .hero {
          padding: 0 5%;
          padding-top: var(--header-height);
        }

        header {
          padding: 0 1.5rem;
        }

        .hero h1 {
          font-size: 2.8rem;
        }

        .typing {
          font-size: 1.4rem;
        }

        nav {
          position: fixed;
          top: var(--header-height);
          left: 0;
          width: 100%;
          background: var(--bg-light);
          flex-direction: column;
          padding: 1rem 0;
          gap: 0;
          clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
          transition: var(--transition);
          border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        nav.active {
          clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        }

        nav a {
          padding: 1rem 2rem;
          border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .mobile-menu-btn {
          display: block;
        }

        .cta-buttons {
          flex-direction: column;
          align-items: flex-start;
        }

        .btn {
          width: 100%;
          justify-content: center;
        }
      }

      @media (max-width: 576px) {
        section {
          padding: 5rem 1.5rem;
        }

        .hero {
          padding: 0 1.5rem;
          padding-top: var(--header-height);
        }

        .hero h1 {
          font-size: 2.2rem;
        }

        .typing {
          font-size: 1.1rem;
          height: 1.8rem;
        }s

        .section-header h2 {
          font-size: 2rem;
        }

        .projects-grid {
          grid-template-columns: 1fr;
        }

        .stats {
          grid-template-columns: 1fr;
        }
      }
  ::selection {
  background: var(--accent-light);
  color: var(--bg);
}

    .custom-cursor {
      position: fixed;
      top: 0;
      left: 0;
      width: 30px;
      height: 30px;
      border: 2px solid white; 
      border-radius: 50%;
      pointer-events: none;
      transform: translate(-50%, -50%);
      z-index: 9999;
      background: transparent;
    }

    * {
      cursor: none !important;
    }          
