    :root {
      --primary: #fd7d0d !important;
    }

    html,
    body {
      max-width: 100%;
      overflow-x: hidden;
    }

    .text-primary {
      color: #ef8b34 !important;

    }

    body {
      font-family: "Inter", sans-serif;
      color: #f8f9fa;
      background: black;
    }

    nav {
      background: transparent;
    }

    .navbar-nav {
      background-color: #232323;
      border: 1px solid;
      border-color: #5d5d5d;
      border-radius: 10px;
      padding: 5px 10px 5px 10px;
    }

    .nav-link {
      color: white;
    }

    nav {
  transition: transform 0.3s ease;
}

.navbar-hide {
  transform: translateY(-65%); /* tweak for peek effect */
}



    .hero-txt {
      color: #fd7d0d;

    }

    .hero-subtitle {
      font-size: 30px !important;
      padding-bottom: 15px;
    }

    .hero-caption {
      font-size: 15px;
      font-weight: bold;
    }

    /* Fade-down animation */
    @media (prefers-reduced-motion: no-preference) {
      .fade-down {
        opacity: 0;
        transform: translateY(-30px);
        animation: fadeDown 0.8s ease-out 0.3s forwards;
        animation-delay: 2s;
      }
    }

    @keyframes fadeDown {
      to {
        opacity: 1;
        transform: none;
      }
    }

    .spline-element {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }


    .hero {
      position: relative;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
    }

    .spline-wrapper {
      position: absolute;
      top: -150px;
      left: 50%;
      transform: translateX(-50%);
      width: auto;
      min-width: 100%;
      height: 100%;
      z-index: 0;
    }

    spline-viewer {
      width: 100%;
      height: 100%;
      display: block;
    }




    body.loading {
      opacity: 0;
      overflow: hidden;
    }

    body.loaded {
      opacity: 1;
      overflow: auto;
      transition: opacity 1s ease;
    }
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 620px; /* better than 250px for desktop */
}

    .fade-up {
      margin-top: 0;
      /* Remove your big negative margin */
    }


    .hero h1 {
      font-size: clamp(2.5rem, 5vw, 4rem);
      font-weight: 700;
    }

    .hero p.lead {
      max-width: 640px;
      margin: auto;
      font-size: 1.25rem;
      color: #adb5bd;
    }

    .hero-btn {
      background-color: #232323;
      text-decoration: none;
      color: white;
      font-size: medium;
      border: 1px solid;
      border-color: #5d5d5d;
      border-radius: 10px;
      padding: 15px;
      width: 150px;
    }

    .hero-btn-secondary {
      background-color: transparent;
      border-color: #555555;
    }

    .hero-btn:hover {
      color: #ced4da;
      background-color: #353535;
    }

    .btn-outline-light:hover {
      color: #0d1117;
      background: #f8f9fa;
    }

    .social-icons a {
      color: #ced4da;
      margin: 0 0.5rem;
      font-size: 1.5rem;
      transition: color 0.2s;
    }

    .social-icons a:hover {
      color: #f8f9fa;
    }

    .hero-logo {
      width: 150px;
      margin: 50px;
      filter: invert(93%) sepia(55%) saturate(2859%) hue-rotate(184deg) brightness(125%) contrast(100%);
    }


    /* Mobile hero fix */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: auto; /* Don't force full screen */
    margin-top: 160px;
    margin-bottom: 200px;
  }

  .spline-wrapper {
    transform: translateX(-50%) scale(0.6);
    transform-origin: top center;
    top: -120px;
  }

  .hero-content {
    top: -280px;
    margin-bottom: -350px;
  }

  .social-icons {
    margin-top: 1rem;
  }

  .hero-content .d-flex {
    gap: 0.5rem;
  }
}


    /* Animate on scroll */

    .animate-on-scroll {
      opacity: 0;
      transform: translateY(-50px);
      transition: all 0.8s ease-out;
      transition-delay: 0s;
      /* no delay when hiding */
    }

    .animate-on-scroll.visible {
      opacity: 1;
      transform: translateY(0);
      transition-delay: .2s;
    }


    /* Fade-up animation */
    @media (prefers-reduced-motion: no-preference) {
      .fade-up {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeUp 0.8s ease-out 0.3s forwards;
        animation-delay: 2s;
      }
    }

    @keyframes fadeUp {
      to {
        opacity: 1;
        transform: none;
      }
    }

    /* Technologies section */
    #tech {
      background: black;
      margin: 50px !important;
    }

    #tech .row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }

    .tech-icon {
      width: 200px;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: left;
      gap: 0.5rem;
      padding: 1.25rem;
      border: 1px solid;
      border-color: #5d5d5d;
      border-radius: 10px;
      background: #232323;
      transition: transform 0.2s, background 0.2s;
    }

    .tech-icon i {
      font-size: 2.5rem;
      padding-right: 10px;
    }

    .tech-icon span {
      font-size: 0.875rem;
      color: #adb5bd;
    }

    .tech-icon:hover {
      transform: translateY(-4px);
      background: rgba(38, 45, 56, 0.9);
    }

    /* Projects section */
    #projects {
      background: black;
      margin: 50px !important;
    }

    #projects .row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }

    .project-card {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      background: #232323;
      border: 1px solid #5d5d5d;
      border-radius: 10px;
      padding: 1.5rem;
      height: 100%;
      transition: transform 0.2s, background 0.2s;
    }

    .project-card:hover {
      transform: translateY(-4px);
      background: rgba(38, 45, 56, 0.9);
    }

    .project-thumb {
      position: relative;
      width: 100%;
      padding-top: 100%;
      /* 1:1 Aspect Ratio */
      overflow: hidden;
      border-radius: 8px;
      margin-bottom: 1rem;
    }

    .project-thumb img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 8px;
    }

    .project-card h5 {
      margin: 0.5rem 0;
    }

    .project-card p {
      flex-grow: 1;
    }

    .tech-tags {
      margin-top: 0.5rem;
    }

    .tech-tags .badge {
      font-size: 0.75rem;
    }

    .project-card a.btn {
      margin-top: 0.5rem;
    }

    .large-btn {
      margin-top: 50px;
      width: auto !important;
      padding: 20px 30px 20px 30px;
      text-align: center;
      font-size: 20px;
      transition: transform 0.2s, background 0.2s;
    }

    .large-btn:hover {
      transform: translateY(-4px);
    }


 :root {
  --primary: #fd7d0d;
  --gradient-start: #fd7d0d;
  --gradient-end: #ff9900;
}

/* CONTACT SECTION */
.contact-section {
  background: black;
  margin: 50px !important; /* matches your #projects and #tech */
  padding: 3rem;
}

.contact-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #fd7d0d, #ff9900, #ff7f50, #fd7d0d);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  border: 1px solid #5d5d5d;
  border-radius: 10px;
  padding: 3rem;
  color: #121212;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  transform: skewX(-20deg);
  filter: blur(20px);  /* NEW: soften edges */
  animation: shimmer 5s ease-in-out infinite;
}


@keyframes shimmer {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(253, 125, 13, 0.2);
}

.contact-icon i {
  font-size: 3rem;
  color: #121212;
}

.contact-card h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #121212;
}

.contact-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  color: #1e1e1e;
}


.contact-btn {
  background-color: #232323;
  text-decoration: none;
  color: white;
  font-size: medium;
  border: 1px solid #5d5d5d;
  border-radius: 10px; /* same as hero-btn and cards */
  padding: 15px 30px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-btn:hover {
  color: #ced4da;
  background-color: #353535;
  transform: translateY(-4px);
}

.contact-btn i {
  font-size: 1.2rem;
}


    /* Footer */
    .footer {
      background-color: #232323;
      border-top: 1px solid #5d5d5d;
    }

    .footer .social-icons a {
      color: #ced4da;
      margin: 0 0.5rem;
      font-size: 1.5rem;
      transition: color 0.2s;
    }

    .footer .social-icons a:hover {
      color: #f8f9fa;
    }

    .footer p {
      color: #adb5bd;
    }

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 20px;
  display: block;
  opacity: 0;
  pointer-events: none; /* Prevent clicks when hidden */
  transform: translateY(20px); /* Slide in effect */
  transition: opacity 0.4s ease, transform 0.4s ease, bottom 0.3s ease;
  z-index: 9999;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop i {
  font-size: 1.2rem;
}


@media (max-width: 768px) {
  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-content {
    width: 100%;
    box-sizing: border-box;
  }

  #tech,
  #projects,
  #contact {
margin: 0 !important;
padding: 0 !important;

  }
  
  #contact {
    margin-top: 80px !important;
  }
}
