@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

    :root {
      --primary: #00d4ff;
      --primary-dark: #00a8cc;
      --secondary: #7c3aed;
      --accent: #f97316;
      --bg-dark: #0a0e27;
      --bg-card: #151932;
      --text-primary: #ffffff;
      --text-secondary: #a0aec0;
      --border: #1e2640;
      --success: #10b981;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 80px;
    }

    body {
      font-family: 'Space Grotesk', sans-serif;
      background: var(--bg-dark);
      color: var(--text-primary);
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* SUPER LOADER ANIMATION */
    .super-loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--bg-dark);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 99999;
      transition: opacity 0.5s, visibility 0.5s;
    }

    .super-loader.hidden {
      opacity: 0;
      visibility: hidden;
    }

    .loader-content {
      text-align: center;
    }

    .loader-rings {
      position: relative;
      width: 150px;
      height: 150px;
      margin: 0 auto 2rem;
    }

    .loader-ring {
      position: absolute;
      border: 3px solid transparent;
      border-radius: 50%;
      animation: rotate 2s linear infinite;
    }

    .loader-ring:nth-child(1) {
      width: 150px;
      height: 150px;
      border-top-color: var(--primary);
      animation-duration: 1.5s;
    }

    .loader-ring:nth-child(2) {
      width: 120px;
      height: 120px;
      top: 15px;
      left: 15px;
      border-right-color: var(--secondary);
      animation-duration: 2s;
      animation-direction: reverse;
    }

    .loader-ring:nth-child(3) {
      width: 90px;
      height: 90px;
      top: 30px;
      left: 30px;
      border-bottom-color: var(--accent);
      animation-duration: 1s;
    }

    @keyframes rotate {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .loader-text {
      font-family: 'JetBrains Mono', monospace;
      font-size: 1.2rem;
      color: var(--primary);
      animation: pulse 1.5s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 0.5; }
      50% { opacity: 1; }
    }

    .loader-progress {
      width: 200px;
      height: 3px;
      background: var(--border);
      border-radius: 10px;
      margin: 1rem auto 0;
      overflow: hidden;
    }

    .loader-progress-bar {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      border-radius: 10px;
      animation: loading 2s ease-in-out;
    }

    @keyframes loading {
      0% { width: 0%; }
      100% { width: 100%; }
    }

    /* ANIMATED PARTICLES BACKGROUND */
    .animated-bg {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      background: radial-gradient(ellipse at top, #1e3a8a 0%, var(--bg-dark) 50%);
      overflow: hidden;
    }

    .particle {
      position: absolute;
      background: var(--primary);
      border-radius: 50%;
      pointer-events: none;
      animation: float-particle linear infinite;
      opacity: 0.3;
    }

    @keyframes float-particle {
      0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
      }
      10% {
        opacity: 0.3;
      }
      90% {
        opacity: 0.3;
      }
      100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
      }
    }

    .grid-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
      background-size: 50px 50px;
      opacity: 0.1;
      z-index: -1;
      animation: grid-move 20s linear infinite;
    }

    @keyframes grid-move {
      0% { transform: translate(0, 0); }
      100% { transform: translate(50px, 50px); }
    }

    /* FLOATING SHAPES */
    .floating-shape {
      position: absolute;
      opacity: 0.05;
      animation: float-shape 20s ease-in-out infinite;
    }

    @keyframes float-shape {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      25% { transform: translate(100px, -100px) rotate(90deg); }
      50% { transform: translate(200px, 0) rotate(180deg); }
      75% { transform: translate(100px, 100px) rotate(270deg); }
    }

    /* CURSOR TRAIL */
    .cursor-trail {
      position: fixed;
      width: 8px;
      height: 8px;
      background: var(--primary);
      border-radius: 50%;
      pointer-events: none;
      z-index: 99999;
      transition: transform 0.1s ease;
      opacity: 0.6;
      box-shadow: 0 0 20px var(--primary);
    }

    /* Navbar with Awesome Animations */
   .navbar {
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  transition: all 0.3s ease;
  animation: slideDown 0.8s ease;
}

/* Force navbar items to the right */
.navbar .navbar-nav {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.navbar .navbar-collapse {
  justify-content: flex-end !important;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar.scrolled {
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  background: rgba(10, 14, 39, 0.95);
}

.navbar-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary) !important;
  letter-spacing: -1px;
  position: relative;
  overflow: hidden;
  animation: fadeInLeft 0.8s ease 0.2s backwards;
}

@keyframes fadeInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.navbar-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
  transition: left 0.5s;
}

.navbar-brand:hover::before {
  left: -100%;
}

/* Reduced spacing between nav items */
.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  margin: 0 0.25rem !important; /* Reduced from 0.5rem to 0.25rem */
  padding: 0.5rem 0.75rem !important; /* Reduced horizontal padding from 1rem to 0.75rem */
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-item {
  animation: fadeInDown 0.6s ease backwards;
}

.nav-item:nth-child(1) { animation-delay: 0.3s; }
.nav-item:nth-child(2) { animation-delay: 0.4s; }
.nav-item:nth-child(3) { animation-delay: 0.5s; }
.nav-item:nth-child(4) { animation-delay: 0.6s; }
.nav-item:nth-child(5) { animation-delay: 0.7s; }
.nav-item:nth-child(6) { animation-delay: 0.8s; }
.nav-item:nth-child(7) { animation-delay: 0.9s; }
.nav-item:nth-child(8) { animation-delay: 1s; }

@keyframes fadeInDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

/* Dark mode button spacing */
.btn-dark-mode {
  margin-left: 0.5rem !important;
}

    /* Hero Section with CRAZY Animations */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      position: relative;
      padding: 140px 0 80px;
      overflow: hidden;
    }

    /* Animated Glowing Orbs */
    .glow-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.4;
      animation: float-glow 15s ease-in-out infinite;
    }

    .glow-orb-1 {
      width: 400px;
      height: 400px;
      background: var(--primary);
      top: -10%;
      right: 10%;
      animation-delay: 0s;
    }

    .glow-orb-2 {
      width: 350px;
      height: 350px;
      background: var(--secondary);
      bottom: 10%;
      left: 5%;
      animation-delay: 2s;
    }

    .glow-orb-3 {
      width: 300px;
      height: 300px;
      background: var(--accent);
      top: 50%;
      left: 50%;
      animation-delay: 4s;
    }

    @keyframes float-glow {
      0%, 100% {
        transform: translate(0, 0) scale(1);
      }
      33% {
        transform: translate(50px, -50px) scale(1.1);
      }
      66% {
        transform: translate(-50px, 50px) scale(0.9);
      }
    }

    .hero-content {
      position: relative;
      z-index: 2;
    }

    .hero-content > * {
      animation: fadeInUp 1s ease backwards;
    }

    .hero-label {
      animation-delay: 0.3s;
    }

    .hero h1 {
      animation-delay: 0.5s;
    }

    .hero h2 {
      animation-delay: 0.7s;
    }

    .hero .lead {
      animation-delay: 0.9s;
    }

    .hero .d-flex {
      animation-delay: 1.1s;
    }

    .stats-row {
      animation-delay: 1.3s;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .hero-label {
      display: inline-block;
      padding: 0.5rem 1.2rem;
      background: rgba(0, 212, 255, 0.1);
      border: 1px solid rgba(0, 212, 255, 0.3);
      border-radius: 50px;
      color: var(--primary);
      font-size: 0.9rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      animation: pulse-glow 2s infinite;
      position: relative;
      overflow: hidden;
    }

    @keyframes pulse-glow {
      0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
      }
      50% {
        box-shadow: 0 0 0 15px rgba(0, 212, 255, 0);
      }
    }

    .hero-label::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      animation: shine 3s infinite;
    }

    @keyframes shine {
      0% { left: -100%; }
      100% { left: 200%; }
    }

    .hero h1 {
      font-size: 4rem;
      font-weight: 700;
      margin-bottom: 1rem;
      line-height: 1.1;
    }

    .hero h1 .highlight {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      background-size: 200% 200%;
      animation: gradient-shift 5s ease infinite;
      display: inline-block;
      position: relative;
    }

    @keyframes gradient-shift {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    .hero h1 .highlight::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -5px;
      width: 100%;
      height: 3px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      animation: underline-grow 2s ease-in-out infinite;
    }

    @keyframes underline-grow {
      0%, 100% { transform: scaleX(0.5); opacity: 0.5; }
      50% { transform: scaleX(1); opacity: 1; }
    }

    .hero h2 {
      font-size: 1.5rem;
      color: var(--text-secondary);
      font-weight: 400;
      margin-bottom: 1.5rem;
      overflow: hidden;
      border-right: 3px solid var(--primary);
      white-space: nowrap;
      animation: typing 3s steps(40) 1.5s backwards, blink 0.75s step-end infinite;
    }

    @keyframes typing {
      from { width: 0; }
      to { width: 100%; }
    }

    @keyframes blink {
      from, to { border-color: transparent; }
      50% { border-color: var(--primary); }
    }

    .hero .lead {
      font-size: 1.2rem;
      color: var(--text-secondary);
      max-width: 600px;
      line-height: 1.8;
    }

    /* Stats with CRAZY Counter Animation */
    .stats-row {
      display: flex;
      gap: 3rem;
      margin-top: 3rem;
    }

    .stat-item {
      text-align: left;
      position: relative;
      padding: 1.5rem;
      background: rgba(0, 212, 255, 0.05);
      border-radius: 12px;
      border: 1px solid rgba(0, 212, 255, 0.2);
      transition: all 0.3s ease;
    }

    .stat-item:hover {
      transform: translateY(-10px) scale(1.05);
      background: rgba(0, 212, 255, 0.1);
      box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    }

    .stat-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 3px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      transform: scaleX(0);
      transition: transform 0.5s ease;
    }

    .stat-item:hover::before {
      transform: scaleX(1);
    }

    .stat-number {
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--primary);
      display: block;
      font-family: 'JetBrains Mono', monospace;
      text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }

    .stat-label {
      color: var(--text-secondary);
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* Profile Image with INSANE Animation */
    .profile-container {
      position: relative;
      animation: fadeInRight 1s ease 0.5s backwards;
    }

    @keyframes fadeInRight {
      from {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
      }
      to {
        opacity: 1;
        transform: translateX(0) scale(1);
      }
    }

    .profile-wrapper {
      position: relative;
      width: 400px;
      height: 400px;
      margin: 0 auto;
      animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-20px); }
    }

    .profile-border {
      position: absolute;
      inset: -5px;
      background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
      border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
      animation: morph 8s ease-in-out infinite, rotate-border 20s linear infinite;
      filter: blur(3px);
    }

    @keyframes morph {
      0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
      25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
      50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
      75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    }

    @keyframes rotate-border {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .profile-image {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
      overflow: hidden;
      background: var(--bg-card);
      animation: morph 8s ease-in-out infinite;
      box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
    }

    .profile-image::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.3), transparent);
      animation: shine-image 3s infinite;
    }

    @keyframes shine-image {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .profile-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
      position: relative;
      z-index: 1;
    }

    .profile-wrapper:hover .profile-image img {
      transform: scale(1.15);
    }

    /* Animated Rings Around Profile */
    .profile-ring {
      position: absolute;
      border: 2px solid var(--primary);
      border-radius: 50%;
      opacity: 0.3;
      animation: expand-ring 3s ease-out infinite;
    }

    .profile-ring:nth-child(1) {
      width: 420px;
      height: 420px;
      top: -10px;
      left: -10px;
      animation-delay: 0s;
    }

    .profile-ring:nth-child(2) {
      width: 450px;
      height: 450px;
      top: -25px;
      left: -25px;
      animation-delay: 1s;
    }

    .profile-ring:nth-child(3) {
      width: 480px;
      height: 480px;
      top: -40px;
      left: -40px;
      animation-delay: 2s;
    }

    @keyframes expand-ring {
      0% {
        transform: scale(0.8);
        opacity: 0;
      }
      50% {
        opacity: 0.3;
      }
      100% {
        transform: scale(1.2);
        opacity: 0;
      }
    }

    /* Buttons with SICK Animations */
    .btn-custom {
      padding: 1rem 2.5rem;
      font-weight: 600;
      border-radius: 12px;
      transition: all 0.3s ease;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 0.9rem;
      position: relative;
      overflow: hidden;
    }

    .btn-custom::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }

    .btn-custom:hover::before {
      width: 300px;
      height: 300px;
    }

    .btn-primary-custom {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: var(--bg-dark);
      border: none;
      box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
      animation: btn-glow 2s ease-in-out infinite;
    }

    @keyframes btn-glow {
      0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
      }
      50% {
        box-shadow: 0 4px 25px rgba(0, 212, 255, 0.6);
      }
    }

    .btn-primary-custom:hover {
      transform: translateY(-5px) scale(1.05);
      box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
      color: var(--bg-dark);
    }

    .btn-outline-custom {
      background: transparent;
      color: var(--text-primary);
      border: 2px solid var(--primary);
      position: relative;
    }

    .btn-outline-custom::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 0;
      height: 100%;
      background: var(--primary);
      transition: width 0.3s ease;
      z-index: -1;
    }

    .btn-outline-custom:hover::after {
      width: 100%;
    }

    .btn-outline-custom:hover {
      color: var(--bg-dark);
      transform: translateY(-5px) scale(1.05);
    }

    /* Sections with Scroll Animations */
    section {
      padding: 100px 0;
      position: relative;
    }

    .section-header {
      text-align: center;
      margin-bottom: 4rem;
    }

    .section-label {
      color: var(--primary);
      font-size: 0.9rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 1rem;
      display: inline-block;
      position: relative;
      padding: 0 2rem;
    }

    .section-label::before,
    .section-label::after {
      content: '';
      position: absolute;
      top: 50%;
      width: 30px;
      height: 2px;
      background: var(--primary);
    }

    .section-label::before {
      left: 0;
      animation: line-expand-left 1.5s ease infinite;
    }

    .section-label::after {
      right: 0;
      animation: line-expand-right 1.5s ease infinite;
    }

    @keyframes line-expand-left {
      0%, 100% { width: 20px; opacity: 0.5; }
      50% { width: 40px; opacity: 1; }
    }

    @keyframes line-expand-right {
      0%, 100% { width: 20px; opacity: 0.5; }
      50% { width: 40px; opacity: 1; }
    }

    .section-title {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 1rem;
      background: linear-gradient(135deg, var(--text-primary), var(--primary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .section-subtitle {
      font-size: 1.2rem;
      color: var(--text-secondary);
      max-width: 600px;
      margin: 0 auto;
    }

    /* Skill Cards with 3D Tilt Effect */
    .skill-card {
      background: var(--bg-card);
      padding: 2.5rem;
      border-radius: 20px;
      border: 1px solid var(--border);
      transition: all 0.4s ease;
      height: 100%;
      position: relative;
      overflow: hidden;
      transform-style: preserve-3d;
      perspective: 1000px;
    }

    .skill-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.5s ease;
    }

    .skill-card::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent);
      opacity: 0;
      transition: opacity 0.5s ease;
    }

    .skill-card:hover {
      transform: translateY(-15px) rotateX(5deg);
      border-color: var(--primary);
      box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
    }

    .skill-card:hover::before {
      transform: scaleX(1);
    }

    .skill-card:hover::after {
      opacity: 1;
    }

    .skill-icon {
      font-size: 3rem;
      color: var(--primary);
      margin-bottom: 1.5rem;
      display: inline-block;
      transition: all 0.5s ease;
      position: relative;
      z-index: 1;
      animation: icon-bounce 2s ease-in-out infinite;
    }

    @keyframes icon-bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    .skill-card:hover .skill-icon {
      transform: scale(1.2) rotate(360deg);
      text-shadow: 0 0 30px var(--primary);
    }

    .skill-card h3 {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 1rem;
      position: relative;
      z-index: 1;
    }

    .skill-card p {
      color: var(--text-secondary);
      margin-bottom: 1.5rem;
      line-height: 1.7;
      position: relative;
      z-index: 1;
    }

    .tech-badge {
      display: inline-block;
      padding: 0.5rem 1rem;
      background: rgba(0, 212, 255, 0.1);
      border: 1px solid rgba(0, 212, 255, 0.3);
      color: var(--primary);
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      margin: 0.25rem;
      transition: all 0.3s ease;
      font-family: 'JetBrains Mono', monospace;
      position: relative;
      overflow: hidden;
      z-index: 1;
    }

    .tech-badge::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: var(--primary);
      transition: left 0.3s ease;
      z-index: -1;
    }

    .tech-badge:hover {
      color: var(--bg-dark);
      transform: translateY(-3px) scale(1.1);
      box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
    }

    .tech-badge:hover::before {
      left: 0;
    }

    /* Project Cards with MEGA Animation */
    .project-card {
      background: var(--bg-card);
      border-radius: 20px;
      overflow: hidden;
      border: 1px solid var(--border);
      transition: all 0.5s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
      position: relative;
      transform-style: preserve-3d;
    }

    .project-card::before {
      content: '';
      position: absolute;
      top: -2px;
      left: -2px;
      right: -2px;
      bottom: -2px;
      background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
      background-size: 400% 400%;
      border-radius: 20px;
      opacity: 0;
      transition: opacity 0.5s ease;
      animation: gradient-rotate 3s ease infinite;
      z-index: -1;
    }

    @keyframes gradient-rotate {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    .project-card:hover {
      transform: translateY(-15px) scale(1.02);
      box-shadow: 0 30px 60px rgba(0, 212, 255, 0.4);
    }

    .project-card:hover::before {
      opacity: 1;
    }

    .project-header {
      background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
      padding: 3rem;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      overflow: hidden;
    }

    .project-header::before {
      content: '';
      position: absolute;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent);
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0);
      transition: transform 0.5s ease;
    }

    .project-card:hover .project-header::before {
      transform: translate(-50%, -50%) scale(1);
    }

    .project-icon {
      font-size: 4rem;
      color: var(--primary);
      transition: all 0.5s ease;
      position: relative;
      z-index: 1;
      animation: icon-float 3s ease-in-out infinite;
    }

    @keyframes icon-float {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-15px) rotate(5deg); }
    }

    .project-card:hover .project-icon {
      transform: scale(1.3) rotate(360deg);
      filter: drop-shadow(0 0 20px var(--primary));
    }

    .project-body {
      padding: 2rem;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .project-body h4 {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 1rem;
      background: linear-gradient(135deg, var(--text-primary), var(--primary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .project-body p {
      color: var(--text-secondary);
      margin-bottom: 1.5rem;
      flex-grow: 1;
      line-height: 1.7;
    }

    .project-tags {
      margin-top: auto;
    }

    .project-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
      margin-top: 1rem;
      transition: all 0.3s ease;
      position: relative;
    }

    .project-link::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--primary);
      transition: width 0.3s ease;
    }

    .project-link:hover {
      gap: 1rem;
      color: var(--primary);
    }

    .project-link:hover::after {
      width: 100%;
    }

    .project-link i {
      transition: transform 0.3s ease;
    }

    .project-link:hover i {
      transform: translateX(5px);
    }

    /* Experience Timeline with INSANE Animation */
    .experience-timeline {
      position: relative;
      padding-left: 3rem;
    }

    .experience-timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
      animation: timeline-glow 3s ease-in-out infinite;
    }

    @keyframes timeline-glow {
      0%, 100% {
        box-shadow: 0 0 10px var(--primary);
      }
      50% {
        box-shadow: 0 0 25px var(--primary);
      }
    }

    .experience-item {
      position: relative;
      margin-bottom: 3rem;
      padding-left: 2rem;
    }

    .experience-item::before {
      content: '';
      position: absolute;
      left: -3.2rem;
      top: 0;
      width: 16px;
      height: 16px;
      background: var(--primary);
      border-radius: 50%;
      border: 4px solid var(--bg-dark);
      box-shadow: 0 0 0 4px var(--bg-card), 0 0 20px var(--primary);
      animation: pulse-dot 2s ease-in-out infinite;
      z-index: 1;
    }

    @keyframes pulse-dot {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px var(--bg-card), 0 0 20px var(--primary);
      }
      50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 4px var(--bg-card), 0 0 30px var(--primary);
      }
    }

    .experience-card {
      background: var(--bg-card);
      padding: 2rem;
      border-radius: 16px;
      border: 1px solid var(--border);
      transition: all 0.4s ease;
      position: relative;
      overflow: hidden;
    }

    .experience-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
      transition: left 0.5s ease;
    }

    .experience-card:hover {
      border-color: var(--primary);
      transform: translateX(15px) scale(1.02);
      box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
    }

    .experience-card:hover::before {
      left: 100%;
    }

    .experience-header {
      display: flex;
      justify-content: space-between;
      align-items: start;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .experience-title {
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: var(--text-primary);
    }

    .experience-company {
      color: var(--primary);
      font-weight: 600;
      position: relative;
      display: inline-block;
    }

    .experience-company::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 100%;
      height: 2px;
      background: var(--primary);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s ease;
    }

    .experience-card:hover .experience-company::after {
      transform: scaleX(1);
    }

    .experience-date {
      color: var(--text-secondary);
      font-size: 0.9rem;
      padding: 0.5rem 1rem;
      background: rgba(0, 212, 255, 0.1);
      border-radius: 8px;
      font-family: 'JetBrains Mono', monospace;
      border: 1px solid rgba(0, 212, 255, 0.3);
      animation: date-pulse 2s ease-in-out infinite;
    }

    @keyframes date-pulse {
      0%, 100% { background: rgba(0, 212, 255, 0.1); }
      50% { background: rgba(0, 212, 255, 0.2); }
    }

    .experience-description {
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 1rem;
    }

    .experience-achievements {
      list-style: none;
      padding: 0;
    }

    .experience-achievements li {
      color: var(--text-secondary);
      padding-left: 2rem;
      margin-bottom: 0.75rem;
      position: relative;
      transition: all 0.3s ease;
    }

    .experience-achievements li::before {
      content: '▹';
      position: absolute;
      left: 0;
      color: var(--primary);
      font-size: 1.5rem;
      transition: all 0.3s ease;
      animation: arrow-bounce 1.5s ease-in-out infinite;
    }

    @keyframes arrow-bounce {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(5px); }
    }

    .experience-achievements li:hover {
      color: var(--text-primary);
      transform: translateX(10px);
    }

    .experience-achievements li:hover::before {
      color: var(--primary);
      animation: none;
      transform: translateX(5px) scale(1.2);
    }

    /* Contact Section with AWESOME Effects */
    .contact-section {
      background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
      position: relative;
      overflow: hidden;
    }

    .contact-section::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent);
      animation: contact-rotate 20s linear infinite;
    }

    @keyframes contact-rotate {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .contact-card {
      background: var(--bg-card);
      padding: 3rem;
      border-radius: 20px;
      border: 1px solid var(--border);
      position: relative;
      z-index: 1;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .form-control {
      background: var(--bg-dark);
      border: 2px solid var(--border);
      color: var(--text-primary);
      padding: 1rem 1.5rem;
      border-radius: 12px;
      transition: all 0.3s ease;
      font-size: 1rem;
      position: relative;
    }

    .form-control:focus {
      background: var(--bg-dark);
      border-color: var(--primary);
      color: var(--text-primary);
      box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1), 0 0 20px rgba(0, 212, 255, 0.3);
      outline: none;
      transform: translateY(-2px);
    }

    .form-control::placeholder {
      color: var(--text-secondary);
    }

    textarea.form-control {
      resize: vertical;
      min-height: 150px;
    }

    /* Social Links with CRAZY Hover */
    .social-links {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-top: 2rem;
    }

    .social-link {
      width: 50px;
      height: 50px;
      display: flex;
      justify-content: center;
      align-items: center;
      background: var(--bg-dark);
      border: 2px solid var(--border);
      border-radius: 50%;
      color: var(--text-primary);
      font-size: 1.2rem;
      transition: all 0.4s ease;
      text-decoration: none;
      position: relative;
      overflow: hidden;
    }

    .social-link::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: var(--primary);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.4s ease, height 0.4s ease;
      z-index: -1;
    }

    .social-link:hover {
      border-color: var(--primary);
      color: var(--bg-dark);
      transform: translateY(-10px) rotate(360deg) scale(1.1);
      box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
    }

    .social-link:hover::before {
      width: 100%;
      height: 100%;
    }

    /* Footer */
 footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left {
  flex: 1;
  min-width: 200px;
}

.footer-left h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.tagline {
  color: var(--text-secondary);
}

.footer-right {
  flex: 2;
  min-width: 300px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-card:hover {
  background: rgba(var(--primary-rgb), 0.05);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.icon-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.value {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

    @keyframes fade-in-footer {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Scroll Progress Bar */
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
      z-index: 99999;
      transition: width 0.1s ease;
      box-shadow: 0 0 10px var(--primary);
    }

    /* Fade In Animations for Scroll */
    .fade-in {
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .fade-in-left {
      opacity: 0;
      transform: translateX(-50px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-in-left.visible {
      opacity: 1;
      transform: translateX(0);
    }

    .fade-in-right {
      opacity: 0;
      transform: translateX(50px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-in-right.visible {
      opacity: 1;
      transform: translateX(0);
    }

    /* Responsive */
    @media (max-width: 991px) {
      .hero h1 { font-size: 3rem; }
      .profile-wrapper { width: 300px; height: 300px; margin-top: 3rem; }
      .stats-row { gap: 2rem; }
      .glow-orb { display: none; }
    }

    @media (max-width: 767px) {
      .hero {
        text-align: center;
        padding: 120px 0 60px;
      }
      .hero h1 { font-size: 2.5rem; }
      .hero h2 {
        font-size: 1.2rem;
        white-space: normal;
        border-right: none;
        animation: fadeInUp 1s ease 0.7s backwards;
      }
      .profile-wrapper { width: 250px; height: 250px; }
      .stats-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
      }
      .section-title { font-size: 2rem; }
      section { padding: 60px 0; }
      .contact-card { padding: 2rem; }
      .experience-timeline { padding-left: 1.5rem; }
      .experience-item { padding-left: 1.5rem; }
      .particle { display: none; }
    }
.project-card {
  height: auto; /* Let it shrink based on content */
  min-height: 300px; /* Optional minimum to keep consistent */
}
.project-body {
  padding: 0.5rem; /* Reduce padding para mas compact */
}
.project-body p {
  font-size: 0.9rem; /* Smaller text for descriptions */
  margin-bottom: 1rem;
}
.project-tags {
  font-size: 0.8rem; /* Smaller badges */
}
/* Existing styles remain unchanged, append the following */

/* Light Mode Variables */
/* Existing styles remain unchanged, append or replace the following light mode section */

/* Light Mode Variables */
:root.light-mode {
  --primary: #0288d1;
  --primary-dark: #0277bd;
  --secondary: #6a1b9a;
  --accent: #ef6c00;
  --bg-dark: #f5f5f5;
  --bg-card: #ffffff;
  --text-primary: #0f172a !important; /* Darker gray for better contrast */
  --text-secondary: #475569 !important; /* Medium gray for secondary text */
  --border: #e2e8f0;
  --success: #2f855a;
}

/* Dark Mode Button */
.btn-dark-mode {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-dark-mode:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--primary);
}

.btn-dark-mode i {
  font-size: 1.2rem;
}

/* Adjust navbar for light mode */
.light-mode .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
}

.light-mode .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(252, 252, 252, 0.1);
}

.light-mode .nav-link {
  color: var(--text-secondary) !important;
}

.light-mode .nav-link:hover,
.light-mode .nav-link.active {
  color: var(--primary) !important;
  background: rgba(2, 136, 209, 0.1);
}

.light-mode .navbar-brand {
  color: var(--primary) !important;
}

/* Adjust other sections for light mode with improved text visibility */
.light-mode .hero {
  background: linear-gradient(135deg, #000000, #000000);
  color: var(--text-primary) !important;
}

.light-mode .hero h1,
.light-mode .hero h2,
.light-mode .hero p {
  color: var(--text-primary) !important;
}

.light-mode .animated-bg {
  background: radial-gradient(ellipse at top, #90caf9 0%, var(--bg-dark) 50%);
}

.light-mode .project-card,
.light-mode .skill-card,
.light-mode .contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: var(--text-primary) !important;
}

.light-mode .project-card h4,
.light-mode .skill-card h3,
.light-mode .contact-card p {
  color: var(--text-primary) !important;
}

.light-mode .project-tags .tech-badge {
  color: var(--text-primary) !important;
  background: rgba(15, 23, 42, 0.1);
}

.light-mode .form-control {
  background: #f6f5f5;
  border: 2px solid var(--border);
  color: var(--text-primary) !important;
}

.light-mode .form-control:focus {
  background: #000000;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 136, 209, 0.1);
}

.light-mode footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  color: var(--text-secondary) !important;
}

/* Smooth transition for mode switch */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* Arrow Up Button */
.btn-arrow-up {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.btn-arrow-up:hover {
  background: var(--primary-dark);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.btn-arrow-up i {
  transition: transform 0.2s ease;
}

.btn-arrow-up:hover i {
  transform: translateY(-2px);
}

.btn-arrow-up.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Light mode adjustments for arrow button */
.light-mode .btn-arrow-up {
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(2, 136, 209, 0.3);
}

.light-mode .btn-arrow-up:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 25px rgba(2, 136, 209, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-arrow-up {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .btn-arrow-up {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}
footer {
  background: rgba(10, 14, 39, 0.95);
  color: #ffffff;
  padding: 50px 20px 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 30px;
  align-items: center;
}

.footer-left h4 {
  font-size: 28px;
  margin: 0 0 10px 0;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 15px;
  opacity: 0.7;
  margin: 0;
  color: #a0aec0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.contact-card {
  background: rgba(10, 14, 39, 0.95);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.contact-card:hover::before {
  opacity: 1;
}

.icon-wrapper {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.contact-card > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.label {
  font-size: 12px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: linear-gradient(135deg, var(--text-primary), var(--primary))
}

.value {
  font-size: 14px;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.3s ease;
}

a.value:hover {
  color: #6366f1;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  opacity: 0.7;
  color: #a0aec0;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tech-icon {
    position: absolute;
    font-size: 2rem;
    color: #f10909ff;
    animation: float-tech 10s infinite ease-in-out;
}

.icon-1 { top: 10%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 20%; right: 15%; animation-delay: 2s; }
.icon-3 { bottom: 25%; left: 20%; animation-delay: 4s; }
.icon-4 { bottom: 15%; right: 10%; animation-delay: 6s; }
.icon-5 { top: 30%; left: 30%; animation-delay: 8s; }

@keyframes float-tech {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
/* ===== Floating Tech Icons ===== */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.tech-icon {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.4;
  animation: float 6s ease-in-out infinite;
  transition: all 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
}

.tech-icon:hover {
  opacity: 0.9;
  transform: scale(1.2);
}

.icon-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  color:linear-gradient(135deg, var(--primary), var(--secondary));
}

.icon-2 {
  top: 25%;
  right: 10%;
  animation-delay: 1s;
  color: #fa1104;
}

.icon-3 {
  bottom: 30%;
  left: 8%;
  animation-delay: 2s;
  color:red;
}

.icon-4 {
  bottom: 15%;
  right: 15%;
  animation-delay: 3s;
  color: #61dafb;
}

.icon-5 {
  top: 50%;
  right: 5%;
  animation-delay: 4s;
  color: rgb(235, 247, 3);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-15px) rotate(3deg);
  }
}

.profile-container {
  position: relative;
  z-index: 1;
}

/* ===== Footer Contact Cards Fix ===== */
/* ===== Footer Contact Cards Fix ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center; /* Vertically center content */
  gap: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(2, 6, 255, 0.989);
  transform: translateY(-2px);
}

.contact-card .icon-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
}

.contact-card .label {
  display: block;
  font-size: 0.875rem;
  color: rgba(42, 239, 7, 0.996);
  margin-bottom: 0.25rem;
}

.contact-card .value {
  display: block;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  word-break: break-all;
  text-align: center; /* Center the value text */
}

.contact-card a.value {
  color: #6366f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a.value:hover {
  color: #818cf8;
}

/* ===== Dark Mode - Full Page ===== */
body.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .navbar-brand,
body.dark-mode .nav-link {
  color: #e2e8f0 !important;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
  color: #6366f1 !important;
}

body.dark-mode .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .navbar-toggler-icon {
  filter: invert(1);
}

body.dark-mode .btn-dark-mode {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

body.dark-mode .btn-dark-mode:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Dark Mode - Sections */
body.dark-mode section {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .section-title,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 {
  color: #f1f5f9;
}

body.dark-mode .section-subtitle,
body.dark-mode .lead,
body.dark-mode p {
  color: #cbd5e1;
}

body.dark-mode .section-label {
  color: #6366f1;
}

/* Dark Mode - Cards */
body.dark-mode .skill-card,
body.dark-mode .project-card {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

body.dark-mode .skill-card:hover,
body.dark-mode .project-card:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(99, 102, 241, 0.5);
}

body.dark-mode .contact-card {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-card:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Dark Mode - Buttons */
body.dark-mode .btn-primary-custom {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
}

body.dark-mode .btn-outline-custom {
  border-color: #6366f1;
  color: #6366f1;
}

body.dark-mode .btn-outline-custom:hover {
  background: #6366f1;
  color: #fff;
}

/* Dark Mode - Form Elements */
body.dark-mode .form-control {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

body.dark-mode .form-control:focus {
  background: rgba(30, 41, 59, 0.7);
  border-color: #6366f1;
  color: #e2e8f0;
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

body.dark-mode .form-control::placeholder {
  color: #64748b;
}

/* Dark Mode - Footer */
body.dark-mode footer {
  background: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode footer .tagline {
  color: #94a3b8;
}

body.dark-mode .footer-bottom p {
  color: #64748b;
}

/* Dark Mode - Profile */
body.dark-mode .profile-ring {
  border-color: rgba(99, 102, 241, 0.3);
}

body.dark-mode .profile-border {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* Dark Mode - Stats */
body.dark-mode .stat-number {
  color: #6366f1;
}

body.dark-mode .stat-label {
  color: #94a3b8;
}

/* Dark Mode - Tech Badges */
body.dark-mode .tech-badge {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

/* Dark Mode - Hero Labels */
body.dark-mode .hero-label {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

/* Dark Mode - Grid Overlay */
body.dark-mode .grid-overlay {
  opacity: 0.03;
}

/* Dark Mode - Animated Background */
body.dark-mode .animated-bg {
  background: #0f172a;
}

/* Dark Mode - Scroll to Top Button */
body.dark-mode .btn-arrow-up {
  background: rgba(99, 102, 241, 0.9);
  color: #fff;
}

body.dark-mode .btn-arrow-up:hover {
  background: #6366f1;
}

/* Dark Mode - Social Links */
body.dark-mode .social-link {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

body.dark-mode .social-link:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  border-color: #6366f1;
}

/* Dark Mode - Glow Orbs */
body.dark-mode .glow-orb-1 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

body.dark-mode .glow-orb-2 {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
}

body.dark-mode .glow-orb-3 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

/* Mobile Responsiveness for Floating Icons */
@media (max-width: 768px) {
  .tech-icon {
    font-size: 1.8rem;
  }
  
  .floating-icons {
    display: none;
  }
}

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-card {
    padding: 1.25rem;
  }
}
/* From Uiverse.io by Pradeepsaranbishnoi */ 
.🤚 {
  --skin-color: #E4C560;
  --tap-speed: 0.6s;
  --tap-stagger: 0.1s;
  position: relative;
  width: 80px;
  height: 60px;
  margin-left: 80px;
}

.🤚:before {
  content: '';
  display: block;
  width: 180%;
  height: 75%;
  position: absolute;
  top: 70%;
  right: 20%;
  background-color: black;
  border-radius: 40px 10px;
  filter: blur(10px);
  opacity: 0.3;
}

.🌴 {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--skin-color);
  border-radius: 10px 40px;
}

.👍 {
  position: absolute;
  width: 120%;
  height: 38px;
  background-color: var(--skin-color);
  bottom: -18%;
  right: 1%;
  transform-origin: calc(100% - 20px) 20px;
  transform: rotate(-20deg);
  border-radius: 30px 20px 20px 10px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  border-left: 2px solid rgba(0, 0, 0, 0.1);
}

.👍:after {
  width: 20%;
  height: 60%;
  content: '';
  background-color: rgba(255, 255, 255, 0.3);
  position: absolute;
  bottom: -8%;
  left: 5px;
  border-radius: 60% 10% 10% 30%;
  border-right: 2px solid rgba(0, 0, 0, 0.05);
}

.👉 {
  position: absolute;
  width: 80%;
  height: 35px;
  background-color: var(--skin-color);
  bottom: 32%;
  right: 64%;
  transform-origin: 100% 20px;
  animation-duration: calc(var(--tap-speed) * 2);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  transform: rotate(10deg);
}

.👉:before {
  content: '';
  position: absolute;
  width: 140%;
  height: 30px;
  background-color: var(--skin-color);
  bottom: 8%;
  right: 65%;
  transform-origin: calc(100% - 20px) 20px;
  transform: rotate(-60deg);
  border-radius: 20px;
}

.👉:nth-child(1) {
  animation-delay: 0;
  filter: brightness(70%);
  animation-name: tap-upper-1;
}

.👉:nth-child(2) {
  animation-delay: var(--tap-stagger);
  filter: brightness(80%);
  animation-name: tap-upper-2;
}

.👉:nth-child(3) {
  animation-delay: calc(var(--tap-stagger) * 2);
  filter: brightness(90%);
  animation-name: tap-upper-3;
}

.👉:nth-child(4) {
  animation-delay: calc(var(--tap-stagger) * 3);
  filter: brightness(100%);
  animation-name: tap-upper-4;
}

@keyframes tap-upper-1 {
  0%, 50%, 100% {
    transform: rotate(10deg) scale(0.4);
  }

  40% {
    transform: rotate(50deg) scale(0.4);
  }
}

@keyframes tap-upper-2 {
  0%, 50%, 100% {
    transform: rotate(10deg) scale(0.6);
  }

  40% {
    transform: rotate(50deg) scale(0.6);
  }
}

@keyframes tap-upper-3 {
  0%, 50%, 100% {
    transform: rotate(10deg) scale(0.8);
  }

  40% {
    transform: rotate(50deg) scale(0.8);
  }
}

@keyframes tap-upper-4 {
  0%, 50%, 100% {
    transform: rotate(10deg) scale(1);
  }

  40% {
    transform: rotate(50deg) scale(1);
  }
}
/* ===== TESTIMONIALS ===== */

/* ===== TESTIMONIALS ===== */

#testimonials {
  background: var(--bg);
  overflow: hidden; /* Move overflow here instead */
}

.testimonials-carousel {
  padding: 2rem 0;
  position: relative;
  width: 100%;
  /* Remove overflow hidden from here */
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  animation: scroll 40s linear infinite;
  width: max-content;
  padding: 0 2rem; /* Add padding to prevent cut-off */
}

.testimonial-track:hover {
  animation-play-state: paused;
}

/* Smooth infinite scroll animation */
@keyframes scroll {
  0% { 
    transform: translateX(0); 
  }
  100% { 
    transform: translateX(calc(-420px * 5)); /* 400px card + 20px gap */
  }
}

.testimonial-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  min-width: 400px;
  max-width: 400px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-rating i {
  margin-right: 0.1rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-style: normal;
  font-weight: 500;
  min-height: 120px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden; /* para clean edge sa circle */
  flex-shrink: 0;
  border: 2px solid var(--accent); /* optional accent border */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* para sakto ang crop */
  display: block;
 transition: transform 0.3s ease;
}

.author-avatar img:hover {
  transform: scale(1.05);
}


.testimonial-author h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-track {
    padding: 0 1rem;
  }
  
  .testimonial-card {
    min-width: 300px;
    max-width: 300px;
    padding: 1.5rem;
  }
  
  @keyframes scroll {
    0% { 
      transform: translateX(0); 
    }
    100% { 
      transform: translateX(calc(-320px * 5));
    }
  }
  
  .testimonial-text {
    font-size: 0.9rem;
    min-height: 140px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    min-width: 280px;
    max-width: 280px;
    padding: 1.25rem;
  }
  
  @keyframes scroll {
    0% { 
      transform: translateX(0); 
    }
    100% { 
      transform: translateX(calc(-300px * 5));
    }
  }
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(135deg, var(--text-primary), var(--primary));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border: 4px solid var(--bg-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0px -1px 10px #0063f4;
}

.timeline-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.timeline-date {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-location {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.25rem;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

/* Sliding background behind text */
.filter-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #00d4ff;
    transition: all 0.3s ease;
    z-index: -1; /* behind text */
}

/* Hover effect */
.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {
    color: rgb(0, 0, 0);      /* text becomes white */
    font-weight: 700;  /* bold text */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgb(0, 213, 255);
}
