@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Iceland&display=swap');

/* Base Styles */
:root {
  --blue: #3b82f6;
  --background: #0a0a0a;
  font-family: "Chakra Petch", sans-serif;
}

* {
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.5px;
}


body {
  /* font-family: "Space Grotesk", sans-serif; */
  font-family: "Chakra Petch", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Loading Screen */
.code-animation {
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.typing-text::after {
  content: "|";
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loading-bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--blue);
  animation: loading 0.8s ease infinite;
  box-shadow: 0 0 15px var(--blue);
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(250%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Particles */
#particles-js {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Enhanced Navbar */
.nav-glass {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  color: rgba(255, 255, 255, 0.8);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--blue);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* .home_img img{
  width: 30vw;
  
} */

/* Section Animations */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.glow-button {
  background: var(--blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.glow-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.glow-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.outline-button {
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: var(--blue);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.outline-button:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  z-index: 10;
  position: relative;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.tech-pill {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.tech-pill:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Form Styles */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

/* .contact-text{
  width: 40vw;
} */

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 8px;
  color: white;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

/* Glass-style social icon container */
.social-icon {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Icon color and size */
.social-icon i {
  font-size: 1.3rem;
  color: white;
  transition: color 0.3s ease;
}

/* Hover effect */
.social-icon:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(0, 123, 255, 0.2);
  border-color: rgba(0, 123, 255, 0.4);
}

.social-icon:hover i {
  color: #00bfff;
}

.icons {
  margin-top: 20px;
  display: flex;
  gap: 25px;
}

.icons a {
  text-decoration: none;
  /* color: #333; */
  font-size: 28px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.icons a:hover {
  color: #cfcfcf;
  transform: scale(1.2);
}


/* Success Animation */
@keyframes success-wave {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.success-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  animation: success-wave 1s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .glow-button,
  .outline-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* Dark Mode Specific */
.dark {
  --shadow-color: rgba(59, 130, 246, 0.2);
}

.dark .glass-card,
.dark .project-card {
  background: rgba(255, 255, 255, 0.02);
}

/* Animation Utilities */
.fade-enter {
  opacity: 0;
  transform: translateY(20px);
}

.fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Section Padding */
section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Container Max Width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Mobile Navigation Styles */
#mobile-menu {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#mobile-menu .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  width: 100%;
}

#mobile-menu .nav-link:hover {
  background: rgba(59, 130, 246, 0.1);
}

.open-icon,
.close-icon {
  transition: opacity 0.3s ease;
}

/* Animation for mobile menu */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobile-menu.show {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

.pre_auto-type,
.auto-type {
  font-size: 1.8rem;
}

@media only screen and (max-width: 500px) {

  .pre_auto-type,
  .auto-type {
    font-size: 1.3rem;
  }

  #home {
    margin-top: 2rem;
  }
}


/* <!-- Mobile Menu Styles --> */

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(10, 10, 10, 0.98);
  overflow: hidden;
  transition: height 0.6s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: 30;
}

.menu-overlay.active {
  height: 100%;
}

.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 40;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1),
    opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 2rem;
  text-align: center;
  margin: 2rem 0;
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.menu-overlay.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.active .mobile-nav-link:nth-child(1) {
  transition-delay: 0.2s;
}

.menu-overlay.active .mobile-nav-link:nth-child(2) {
  transition-delay: 0.3s;
}

.menu-overlay.active .mobile-nav-link:nth-child(3) {
  transition-delay: 0.4s;
}

.menu-overlay.active .mobile-nav-link:nth-child(4) {
  transition-delay: 0.5s;
}

.mobile-nav-link:hover {
  color: #3b82f6;
  transform: scale(1.1);
  transition: color 0.3s ease, transform 0.3s ease;
}




/* Contact */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-in-out;
}

.animate-slideIn {
  animation: slideIn 0.6s ease-out;
}

.glass-morphism {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.gradient-btn {
  background: linear-gradient(135deg, #002fff 0%, #00f195a6 100%);
  /* background: linear-gradient(135deg, #292929 0%, #444444a6 100%); */
}

.gradient-btn::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 ease;
}

.gradient-btn:hover::before {
  left: 100%;
}