/**
 * FutureNav - Cutting Edge Navigation
 * styles.css - Core styles for the futuristic navigation experience
 * March 24, 2025
 */

/* Base styles & Custom properties */
:root {
  --primary: #6366f1;
  /* Indigo */
  --primary-dark: #4f46e5;
  --secondary: #8a49d6;
  /* Cyan */
  --accent: #a855f7;
  /* Purple */
  --dark-bg: #111827;
  --darker-bg: #030712;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --navbar-bg: #000;
  /* Black navbar background */
  --glass-effect: blur(12px);
  --transition-normal: all 0.3s ease;
  --border-glow: rgba(99, 102, 241, 0.3);
  --neon-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
  --glow-cyan: 0 0 15px rgba(6, 182, 212, 0.5);
  --glow-indigo: 0 0 15px rgba(99, 102, 241, 0.5);
  --glow-purple: 0 0 15px rgba(168, 85, 247, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Enable smooth scrolling */
  scroll-padding-top: 80px;
  /* Account for fixed navbar */
}

/* body {
    font-family: "Space Grotesk", sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.5s ease;
  } */

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary-dark), var(--accent));
}

/* Navigation Bar Styles */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--navbar-bg);
  backdrop-filter: var(--glass-effect);
  -webkit-backdrop-filter: var(--glass-effect);
  /* For Safari */
  border-bottom: 1px solid var(--border-glow);
  z-index: 1000;
  transition: var(--transition-normal);
  height: 85px;
}

#navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(17, 24, 39, 0.9);
  /* More opaque when scrolled */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Navbar Logo */
.logo {
  display: flex;
  align-items: center;
}

/* Navigation Links */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #8a49d6, rgb(99, 102, 241));
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--secondary);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

/* Mobile Navigation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
  max-height: 300px;
  /* Adjust based on your menu height */
}

#mobile-menu-button {
  background: transparent;
  border: none;
  cursor: pointer;
}

/* For the hamburger animation */
#mobile-menu-button.active #line1 {
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
}

#mobile-menu-button.active #line2 {
  opacity: 0;
}

#mobile-menu-button.active #line3 {
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
}

#line1,
#line2,
#line3 {
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.3s ease;
  transform-origin: center;
  background-color: rebeccapurple;
}

/* Section Styles */
/* section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
  } */

section:first-of-type {
  padding-top: 6rem !important;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(
    to right,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glow Effects */
.glow-effect {
  position: relative;
}

.glow-effect:before {
  content: "";
  position: absolute;
  inset: -5px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.glow-effect:hover:before {
  opacity: 1;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--neon-shadow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: rgba(6, 182, 212, 0.1);
  transform: translateY(-3px);
}

.contact-btn {
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(6, 182, 212, 0.2) 45%,
    rgba(6, 182, 212, 0.4) 50%,
    rgba(6, 182, 212, 0.2) 55%,
    transparent 60%
  );
  transition: transform 0.5s ease;
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
}

.contact-btn:hover::before {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes pulse {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Card Styles */
.card {
  background-color: rgba(17, 24, 39, 0.7);
  backdrop-filter: var(--glass-effect);
  border: 1px solid var(--border-glow);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-shadow);
  border-color: rgba(99, 102, 241, 0.5);
}

.card-hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-cyan);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0.5rem;
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

/* Responsive Layout */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Show desktop nav, hide mobile nav */
  .mobile-only {
    display: none;
  }
}

@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }

  section:first-of-type {
    padding-top: 4rem !important;
  }

  section {
    padding: 4rem 0;
  }

  #navbar {
    height: auto;
  }

  /* .nav-link::after {
    display: none;
  }
  .btn{

    padding: 0.5rem 1.1rem;
  }
  .z_about_title,.z_core_title,.z_skills_title,.z_how_title {
    font-size: 1.5rem;
  }
  } */
}

/* Dark Overlay for Modals */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Background Decorations */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: linear-gradient(
      to right,
      rgba(6, 182, 212, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(6, 182, 212, 0.05) 50%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow.top-right {
  top: -20%;
  right: -20%;
}

.bg-glow.bottom-left {
  bottom: -20%;
  left: -20%;
}

/* Footer Styles */
footer {
  background-color: rgba(17, 24, 39, 0.8);
  backdrop-filter: var(--glass-effect);
  border-top: 1px solid var(--border-glow);
  /* padding: 3rem 0; */
}

.footer-link {
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.footer-link:hover {
  color: var(--secondary);
}

/* Section transitions and animations */
.section-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-highlight {
  position: relative;
}

.section-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(6, 182, 212, 0.1),
    transparent 70%
  );
  opacity: 0;
  animation: pulse 1s ease;
  pointer-events: none;
  z-index: -1;
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header animation */
.text-6xl {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}



/* Style the scrollbar for a futuristic look */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #5a417a, #5e5b44);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to top, #5a417a, #5e5b44);
}

/* --- Footer Section --- */
.z_footer_section {
  background-color: #12121a;
  border-top: 1px solid #2d2d3a;
  color: #bdbdbd;
}

.z_footer_logo {
  display: inline-block;
}

.z_footer_desc {
  font-size: 0.95rem;
}

.z_footer_title {
  color: #8a49d6;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.z_footer_links li {
  margin-bottom: 0.75rem;
}

.z_footer_links a {
  color: #bdbdbd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.z_footer_links a:hover {
  color: #8a49d6;
}

.z_footer_contact li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.z_footer_contact i {
  color: #8a49d6;
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

.z_footer_social_icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #2d2d3a;
  color: #fff;
  border-radius: 50%;
  margin-right: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.z_footer_social_icons a:hover {
  background-color: #8a49d6;
  transform: translateY(-3px);
}

.z_footer_copyright {
  background-color: #000;
  font-size: 0.9rem;
  color: #888;
}

/* Add this to css/header.css */
.nav-link.active,
.mobile-nav-link.active {
  position: relative;
  color: #a855f7 !important;
  /* cyan-400 or your highlight color */
}

/* .mobile-nav-link.active::after, */
.nav-link.active::after {
  content: "";
  display: block;
  margin: 0 auto;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #8a49d6 0%, #746981 100%);
  border-radius: 2px;
  margin-top: 4px;
}

/* Add this to your header.css file - Fixed Active Navigation Underline */

/* Desktop Navigation Links */
.nav-link {
  position: relative;
  color: #9ca3af !important;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Desktop - Default underline (hidden) */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8a49d6 0%, #746981 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* Desktop - Hover effect */
.nav-link:hover {
  color: #a855f7 !important;
}

.nav-link:hover::after {
  width: 80%;
}

/* Desktop - ACTIVE STATE (This is the important part) */
.nav-link.active {
  color: #a855f7 !important;
  font-weight: 500;
}

.nav-link.active::after {
  width: 80% !important;
  opacity: 1 !important;
}



.mobile-nav-link:hover {
  color: #4fd1c5 !important;
  background-color: rgba(75, 85, 99, 0.2);
}


/* Override the media query that hides underlines on mobile */
@media (max-width: 767px) {
  .nav-link::after {
    display: none;
  }



  .mobile-nav-link {
    position: relative;
    color: #9ca3af ;
  }
}


@media only screen and (max-width: 576px) {
  section:first-of-type {
    padding-top: 5rem !important;
  }
}

/* Active navigation styling for desktop */
.nav-link.active {
  position: relative;
  color: #a855f7 !important; /* cyan-400 */
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #8a49d6 0%, #746981 100%);
  border-radius: 1px;
}



/* Mobile menu button animation */
#mobile-menu-button.active #line1 {
  transform: rotate(45deg) translate(5px, 5px) !important;
}

#mobile-menu-button.active #line2 {
  opacity: 0 !important;
}

#mobile-menu-button.active #line3 {
  transform: rotate(-45deg) translate(7px, -6px) !important;
}

.mobile-nav-link.active::after {
  content: "" !important;
  position: absolute !important;
  bottom: 8px !important;
  left: 8% !important;
  transform: translateX(-50%) !important;
  width: 11% !important;
  height: 2px !important;
  background: linear-gradient(90deg, #8a49d6 0%, #746981 100%) !important;
}
@media only screen and (max-width: 576px) {
  .mobile-nav-link.active::after {
    bottom: 5px !important;
    left: 11% !important;
    width: 14% !important;
  }
}

@media only screen and (max-width: 425px) {
  .mobile-nav-link.active::after {
    left: 15% !important;
    width: 20% !important;
  }
}

@media only screen and (max-width: 375px) {
  .mobile-nav-link.active::after {
    left: 19% !important;
    width: 24% !important;
  }
}
