  :root {
      --primary: #2563eb;
      --secondary: #7c3aed;
      --accent: #10b981;
      --dark: #0f172a;
      --light: #f8fafc;
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      font-family: 'Poppins', sans-serif;
      background-color: var(--dark);
      color: var(--light);
      transition: background-color 0.3s, color 0.3s;
      overflow-x: hidden;
  }

  body.light-mode {
      background-color: var(--light);
      color: #1e293b;
  }

  .light-mode .glass {
      background: rgba(255, 255, 255, 0.8);
      border: 1px solid rgba(0, 0, 0, 0.1);
      color: #1e293b;
  }

  .light-mode .text-gray-400 {
      color: #64748b;
  }

  .code-font {
      font-family: 'Fira Code', monospace;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
      width: 10px;
  }

  ::-webkit-scrollbar-track {
      background: #1e293b;
  }

  ::-webkit-scrollbar-thumb {
      background: var(--primary);
      border-radius: 5px;
  }

  .light-mode ::-webkit-scrollbar-track {
      background: #e2e8f0;
  }

  .light-mode ::-webkit-scrollbar-thumb {
      background: var(--primary);
  }

  /* Glass Effect */
  .glass {
      background: rgba(30, 41, 59, 0.7);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Gradient Text */
  .gradient-text {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
  }

  /* Typewriter */
  .typewriter {
      overflow: hidden;
      white-space: nowrap;
      border-right: .15em solid var(--primary);
      animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
  }

  @keyframes typing {
      from {
          width: 0
      }

      to {
          width: 100%
      }
  }

  @keyframes blink-caret {

      from,
      to {
          border-color: transparent
      }

      50% {
          border-color: var(--primary)
      }
  }

  /* Skill Bars - Smooth Animation */
  .skill-bar {
      height: 8px;
      background: rgba(100, 116, 139, 0.2);
      border-radius: 4px;
      overflow: hidden;
  }

  .skill-level {
      height: 100%;
      border-radius: 4px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      width: 0;
      transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Card Hover */
  .project-card,
  .service-card {
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .project-card:hover,
  .service-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }

  /* Mobile Menu */
  .mobile-menu {
      transform: translateX(100%);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu.active {
      transform: translateX(0);
  }

  /* Timeline */
  .timeline-item {
      position: relative;
      padding-left: 30px;
  }

  .timeline-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 5px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--primary);
  }

  .timeline-item::after {
      content: '';
      position: absolute;
      left: 5px;
      top: 17px;
      width: 2px;
      height: calc(100% + 10px);
      background: var(--primary);
      opacity: 0.3;
  }

  .timeline-item:last-child::after {
      display: none;
  }

  /* Testimonial */
  .testimonial-card {
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
      border: 1px solid rgba(37, 99, 235, 0.2);
  }

  /* Loader */
  .loader {
      width: 40px;
      height: 40px;
      border: 4px solid rgba(100, 116, 139, 0.2);
      border-top: 4px solid var(--primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
  }

  @keyframes spin {
      0% {
          transform: rotate(0deg);
      }

      100% {
          transform: rotate(360deg);
      }
  }

  /* Floating Animation */
  .floating {
      animation: floating 3s ease-in-out infinite;
  }

  @keyframes floating {

      0%,
      100% {
          transform: translateY(0);
      }

      50% {
          transform: translateY(-10px);
      }
  }

  /* Gradient Border */
  .gradient-border {
      position: relative;
      background: var(--dark);
      border-radius: 12px;
  }

  .gradient-border::before {
      content: '';
      position: absolute;
      top: -2px;
      left: -2px;
      right: -2px;
      bottom: -2px;
      background: linear-gradient(45deg, var(--primary), var(--secondary));
      border-radius: 14px;
      z-index: -1;
  }

  .light-mode .gradient-border {
      background: var(--light);
  }

  /* Page Transition */
  .page-transition {
      animation: fadeIn 0.8s ease;
  }

  @keyframes fadeIn {
      from {
          opacity: 0;
          transform: translateY(20px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  /* Active Nav Link */
  .nav-link.active {
      color: var(--primary);
      font-weight: 600;
      position: relative;
  }

  .nav-link.active::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 100%;
      height: 2px;
      background: var(--primary);
      border-radius: 2px;
  }

  /* Contact Form Focus */
  .form-input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }

  .light-mode .form-input {
      background: white;
      border-color: #cbd5e1;
  }

  /* Download Button Pulse */
  .pulse {
      animation: pulse 2s infinite;
  }

  @keyframes pulse {
      0% {
          box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
      }

      70% {
          box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
      }

      100% {
          box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
      }
  }