@font-face {
      font-family: 'Helkina';
      src: url(fonts/helkina.ttf);
  }

  @font-face {
      font-family: 'Valleki';
      src: url(fonts/valleki-1.ttf);
  }

@font-face {
      font-family: 'mooxy';
      src: url(fonts/mooxy.ttf);
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  :root {
      --bg-dark: #0a0a0f;
      --bg-primary: #0a0a0a;
      --bg-secondary: #1a1a1a;
      --bg-card: #0f172a;
      --text-primary: #ffffff;
      --text-secondary: #b0b0b0;
      --accent: #00d4ff;
      --accent-hover: #0099cc;
      --border: rgba(255, 255, 255, 0.1);
      --glass-bg: rgba(0, 0, 0, 0.3);
      --glass-border: rgba(255, 255, 255, 0.2);
      --border: #334155;
      --glow: rgba(0, 217, 255, 0.2);
      --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }

  [data-theme="light"] {
      --bg-primary: #ffffff;
      --bg-secondary: #f8f9fa;
      --bg-card: #ffffff;
      --text-primary: #1a1a1a;
      --text-secondary: #666666;
      --accent: #007acc;
      --accent-hover: #005999;
      --border: rgba(0, 0, 0, 0.1);
      --glass-bg: rgba(255, 255, 255, 0.7);
      --glass-border: rgba(0, 0, 0, 0.1);
      --border: #e2e8f0;
      --glow: rgba(0, 102, 204, 0.15);
      --gradient: linear-gradient(135deg, #94bdff 0%, #8b5cf6 100%);
  }

  body {
      font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.6;
      overflow-x: hidden;
      transition: all 0.3s ease;
  }

  /* Animated background */
  body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background:
          radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
          radial-gradient(circle at 80% 20%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
          radial-gradient(circle at 40% 80%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
      pointer-events: none;
      z-index: -1;
  }

  /* Header */
  .header {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 40px);
      max-width: 1200px;
      padding: 15px 30px;
      background: var(--glass-bg);
      backdrop-filter: blur(20px);
      border: 1px solid var(--glass-border);
      border-radius: 20px;
      z-index: 1000;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .header.hidden {
      transform: translateX(-50%) translateY(-100px);
      opacity: 0;
  }

  .nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 100%;
  }

  .logo {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--accent);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
  }

  .nav-links {
      display: flex;
      list-style: none;
      gap: 30px;
  }

  .nav-links a {
      color: var(--text-primary);
      text-decoration: none;
      font-weight: 500;
      transition: color 0.3s ease;
      position: relative;
  }

  .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: width 0.3s ease;
  }

  .nav-links a:hover::after {
      width: 100%;
  }

  .nav-links a:hover {
      color: var(--accent);
  }

  .theme-toggle {
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: 50px;
      padding: 8px 16px;
      color: var(--text-primary);
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
  }

  .theme-toggle:hover {
      background: var(--accent);
      color: white;
  }

  /* Main Content */

  .robot-3d {
      position: absolute;
      top: -150px;
      scale: 0.7;
      right: -30%;

  }

  .section {
      padding: 80px 20px;
      max-width: 1200px;
      margin: 0 auto;
  }

  /* Hero Section */
  .hero {
      text-align: center;
      padding: 120px 20px;
      position: relative;
      overflow: hidden;

  }

  .hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%233b82f6" opacity="0.1"/></svg>') repeat;
      animation: float 20s ease-in-out infinite;
  }

  @keyframes float {

      0%,
      100% {
          transform: translateY(0) rotate(0deg);
      }

      50% {
          transform: translateY(-20px) rotate(180deg);
      }
  }

  .hero-title {
      font-family: 'mooxy';
      text-transform: uppercase;
      letter-spacing: 3px;
      font-size: clamp(3rem, 8vw, 6rem);
      font-weight: 100;
      margin-bottom: 20px;
      background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      z-index: 20;
  }

  .hero-subtitle {
      font-size: 1.5rem;
      color: var(--text-secondary);
      margin-bottom: 30px;
      font-family: 'Courier New', monospace;
  }

  .hero-description {
      font-size: 1.2rem;
      color: var(--text-secondary);
      max-width: 600px;
      margin: 0 auto 40px;
  }

  .cta-button {
      display: inline-block;
      padding: 15px 40px;
      background: var(--accent);
      color: white;
      text-decoration: none;
      border-radius: 50px;
      font-weight: 600;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
  }

  .cta-button span {
      display: flex;

  }

  .cta-button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s;
  }

  .cta-button:hover::before {
      left: 100%;
  }

  .cta-button:hover {
      background: var(--accent-hover);
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
  }

  .home-container {
      display: flex;
      justify-content: start;
  }

  .home-icons {
      display: flex;
      flex-direction: column;
      position: absolute;
      right: 20px;
      top: 180px;
      align-items: center;
  }

  .home-icons a {
      color: var(--accent);
      font-size: 22px;
      text-shadow: var(--accent) 0px 0px 14px;
  }

  .home-icons a:hover {
      transform: scale(1.2);
  }

  /* Skills page marquee */
  .marquee-container {
      position: relative;
      width: 100vw;
      overflow: hidden;
      height: 100vh;

  }

  .marquees {
      align-content: center;
      height: 100vh;
      display: grid;
      gap: 5vw;
      overflow: hidden;
  }

  .marquee {
      overflow: hidden;
      width: 100%;
      margin-left: 0%;
      transform: rotate(-5deg);
      background: var(--accent-hover);
      color: #000;
      white-space: nowrap;
  }

  .marquee:nth-child(even) {
      transform: rotate(5deg);
      background: #000;
      color: var(--accent);
  }


  .marquee-inner {
      width: max-content;
      display: flex;
      text-transform: uppercase;
      animation: marquee linear infinite;
  }

  .marquee-inner p {
      font-weight: bold;
      margin: 0;
      display: flex;
      gap: 0;
      line-height: 1.1;
      font-size: clamp(2.5rem, 12vw, 6.2rem);
      font-family: "Bebas Neue";
  }

  .marquee:nth-child(odd) .marquee-inner {
      animation-direction: reverse;
  }

  @keyframes marquee {
      0% {
          transform: translateX(0);
      }

      100% {
          transform: translateX(-50%);
      }
  }
  /* Section Titles */
  .section-title {
      font-family: 'mooxy';
      font-size: 3rem;
      font-weight: 800;
      text-align: center;
      margin-bottom: 20px;
      position: relative;
  }

  .section-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 4px;
      background: linear-gradient(90deg, var(--accent), #ff6b6b);
      border-radius: 2px;
  }

  .section-subtitle {
      text-align: center;
      color: var(--text-secondary);
      font-size: 1.2rem;
      margin-bottom: 50px;
  }

  /* Back to Top Button */
  .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 60px;
      height: 60px;
      background: var(--accent);
      color: white;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      transition: all 0.3s ease;
      transform: translateY(100px);
      opacity: 0;
      z-index: 1000;
  }

  .back-to-top.visible {
      transform: translateY(0);
      opacity: 1;
  }

  .back-to-top:hover {
      background: var(--accent-hover);
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
  }

  /* Terminal Effect */
  .terminal {
      background: #1e1e1e;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 20px;
      font-family: 'Courier New', monospace;
      margin: 40px 0;
      position: relative;
  }

  .terminal-dots {
      position: absolute;
      top: 10px;
      left: 15px;
      letter-spacing: 5px;
  }

  .terminal-content {
      margin-top: 20px;
      color: #00ff41;
  }

  .typing {
      border-right: 2px solid #00ff41;
      animation: blink 1s infinite;
  }

  @keyframes blink {

      0%,
      50% {
          border-color: #00ff41;
      }

      51%,
      100% {
          border-color: transparent;
      }
  }

  .contact-section {
      max-width: 1200px;
      margin: 0 auto;
      padding: 80px 20px;
      position: relative;
  }

  .contact-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100px;
      height: 4px;
      background: var(--gradient);
      border-radius: 2px;
  }

  .section-title {
      font-size: 3.5rem;
      margin-bottom: 20px;
      color: var(--text-primary);
      text-align: center;
      font-weight: 700;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      position: relative;
  }

  .section-subtitle {
      font-size: 1.3rem;
      color: var(--text-secondary);
      margin-bottom: 60px;
      text-align: center;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
  }

  .section-subtitle i {
      animation: rotate 3s infinite;
  }

  @keyframes rotate {
      0% {
          transform: rotate(0deg);
      }

      100% {
          transform: rotate(360deg);
      }

  }

  .contact-links {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      margin-bottom: 60px;
  }

  .contact-link {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 20px 25px;
      background: var(--bg-card);
      color: var(--text-primary);
      text-decoration: none;
      border-radius: 12px;
      border: 1px solid var(--border);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      font-weight: 500;
  }

  .contact-link::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
      transition: left 0.6s;
  }

  .contact-link:hover::before {
      left: 100%;
  }

  .contact-link:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
      box-shadow: 0 10px 40px var(--glow);
      background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 217, 255, 0.05) 100%);
  }

  .contact-link svg {
      width: 24px;
      height: 24px;
      transition: all 0.3s ease;
  }

  .contact-link:hover svg {
      color: var(--accent);
      transform: scale(1.1);
  }

  .stats-container {
      margin-top: 60px;
      padding: 40px;
      background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
      border-radius: 20px;
      border: 1px solid var(--border);
      position: relative;
      backdrop-filter: blur(10px);
  }

  .stats-container::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 20px;
      padding: 1px;
      background: var(--gradient);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask-composite: xor;
      opacity: 0.3;
  }

  .stats-title {
      color: var(--accent);
      margin-bottom: 30px;
      font-size: 1.5rem;
      font-weight: 600;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
  }

  .stats-title::before,
  .stats-title::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--gradient);
      max-width: 100px;
  }

  .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 30px;
      text-align: center;
  }

  .stat-item {
      padding: 20px;
      background: rgba(0, 217, 255, 0.05);
      border-radius: 15px;
      border: 1px solid rgba(0, 217, 255, 0.1);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
  }

  .stat-item::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: conic-gradient(from 0deg, transparent, var(--accent), transparent);
      animation: rotate 4s linear infinite;
      opacity: 0;
      transition: opacity 0.3s ease;
  }

  .stat-item:hover::before {
      opacity: 0.1;
  }

  .stat-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 40px rgba(0, 217, 255, 0.1);
  }

  .stat-number {
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 5px;
      display: block;
      text-shadow: 0 0 20px var(--glow);
  }

  .stat-label {
      color: var(--text-secondary);
      font-size: 0.95rem;
      font-weight: 500;
  }

  @keyframes rotate {
      0% {
          transform: rotate(0deg);
      }

      100% {
          transform: rotate(360deg);
      }
  }

  @keyframes glow {

      0%,
      100% {
          text-shadow: 0 0 20px var(--glow);
      }

      50% {
          text-shadow: 0 0 30px var(--glow), 0 0 40px var(--glow);
      }
  }

  .section-title {
      animation: glow 3s ease-in-out infinite;
  }


  /* Terminal-style typing effect for code availability */
  .terminal-text {
      font-family: 'Courier New', monospace;
      position: relative;
  }

  .terminal-text::after {
      content: '|';
      color: var(--accent);
      animation: blink 1s infinite;
  }

  @keyframes blink {

      0%,
      50% {
          opacity: 1;
      }

      51%,
      100% {
          opacity: 0;
      }
  }


  /* Footer */
  footer {
      color: var(--text-secondary);
      margin-bottom: 10px;
  }

  footer .footer-container {
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .footer-container p {
      padding-left: 20px;
      text-align: center;
  }


  /* Responsive */
  @media (max-width: 768px) {
      .nav-links {
          display: none;
      }

      .hero-title {
          font-size: 3rem;
      }
   
      .header {
          width: calc(100% - 20px);
          padding: 10px 20px;
      }
  }

  @media (max-width: 768px) {
      .section-title {
          font-size: 2.5rem;
      }

      .contact-section {
          padding: 60px 20px;
      }

      .contact-links {
          grid-template-columns: 1fr;
      }

      .stats-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 20px;
      }

      .stats-container {
          padding: 30px 20px;
      }

      .marquee-container {
          height: auto;
      }

      .marquees {
          height: auto;
      }

      .robot-3d {
          display: none;
      }
  }

  @media (max-width: 480px) {
      .stats-grid {
          grid-template-columns: 1fr;
      }

      .hero-subtitle {
          font-size: 1.3rem;
      }

      .home-container {
          display: block;

      }

      /* .home-content {
          margin-top: 85%;
      } */

      .home-icons {
          display: inline-block;
          position: relative;
          left: 10px;
          top: auto;
          margin-top: 20px;
      }

      .home-icons a {
          padding: 6px;
      }

      .terminal {
          overflow: hidden;
      }

      .terminal-github {
          font-size: 14px;
      }

      .robot-3d {
          scale: 0.8;
          position: absolute;
          top: -500px;
          right: -160px;
          display: none;
      }

      .marquee-container {
          height: auto;
      }

      .marquees {
          height: auto;
      }
  }
