/* Base Styles */
:root {
  --primary-color: #00f0ff; /* Neon Cyan */
  --secondary-color: #7000ff; /* Deep Violet */
  --accent-color: #ff003c; /* Cyberpunk Red/Pink */
  --dark-color: #050505;
  --dark-surface: #0a0a0f;
  --light-color: #f8f9fa;
  --text-color: #e0e6ed;
  --text-light: #ffffff;
  --text-muted: #8892b0;
  --border-color: rgba(0, 240, 255, 0.15);
  --card-bg: rgba(10, 10, 15, 0.6);
  --card-bg-hover: rgba(0, 240, 255, 0.05);
  --gradient-primary: linear-gradient(135deg, #00f0ff, #7000ff);
  --gradient-accent: linear-gradient(135deg, #ff003c, #7000ff);
  --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --neon-glow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-color);
  background-color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: var(--dark-color);
  background-image: url("../images/bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(18, 18, 18, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  letter-spacing: 2px;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
  position: relative;
  color: var(--text-light) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--gradient-accent);
  transition: var(--transition);
  transform: translateX(-50%);
}

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

/* Mobile navbar */
.navbar-toggler {
  border: 2px solid var(--accent-color);
  padding: 0.5rem;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
  background-color: rgba(18, 18, 18, 0.95);
  border-radius: 0 0 10px 10px;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .navbar-collapse.show {
    max-height: 300px;
  }

  .navbar-nav {
    padding: 1rem 0;
  }

  .nav-link {
    padding: 0.75rem 0 !important;
    text-align: center;
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  position: relative;
}

.hero-content {
  z-index: 1;
}

.hero-content h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
  letter-spacing: 2px;
}

.hero-content h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.hero-tagline {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #e0e0e0;
  max-width: 90%;
}

.typewriter {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  min-height: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Add a glow effect to the profile container */
.profile-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.profile-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(76, 201, 240, 0.8);
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 45px rgba(112, 0, 255, 0.6);
    border-color: var(--secondary-color);
  }
  100% {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  }
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(76, 201, 240, 0.5);
  object-position: center 15%; /* This will move the focus point upward */
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
}

.btn-primary:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--neon-glow);
}

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

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--neon-glow);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-github {
  background: #333;
  color: white;
  border: none;
}

.btn-github:hover {
  background: #555;
  color: white;
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: rgba(0, 0, 0, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  letter-spacing: 2px;
}

.section-divider {
  height: 4px;
  width: 70px;
  background: var(--gradient-accent);
  margin: 0 auto;
  border-radius: 2px;
}

/* About Section */
.about-content {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.about-info {
  margin-top: 2rem;
}

.info-item {
  margin-bottom: 0.75rem;
}

.info-title {
  font-weight: 600;
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.exp-card {
  display: flex;
  align-items: flex-start;
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.exp-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: var(--card-bg-hover);
  box-shadow: var(--neon-glow);
  border-color: var(--primary-color);
}

.exp-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-right: 1rem;
  min-width: 50px;
  text-align: center;
}

.exp-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

/* Skills Section */
.skills-category {
  margin-bottom: 2rem;
}

.skills-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.skill-bars {
  margin-top: 1.5rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-info span {
  color: var(--primary-color);
}

.skill-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 5px;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 1.5s ease-in-out;
  box-shadow: 0 0 10px var(--primary-color);
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.skill-tag {
  background: rgba(0, 240, 255, 0.05);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.skill-tag:hover {
  background: rgba(0, 240, 255, 0.15);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--neon-glow);
  border-color: var(--primary-color);
}

/* Backend Expertise Section */
.backend-content {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  height: 100%;
}

.backend-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.backend-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.feature-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-right: 1rem;
  min-width: 50px;
  text-align: center;
}

.feature-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

/* GitHub Section */
.github-section {
  margin: 2rem 0;
}

.github-card {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.github-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.github-header i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-right: 1rem;
}

.github-header h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin: 0;
}

.github-card ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.github-card ul li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
  text-align: left;
}

.text-start {
  text-align: left;
}

.github-section {
  height: 100%;
}

.github-card {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  height: 100%;
}

.github-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.github-header i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-right: 1rem;
}

.github-header h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin: 0;
}

.github-card ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.github-card ul li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* Contact Section */
.contact-info {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 1rem;
  min-width: 40px;
  text-align: center;
}

.contact-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg-hover);
  color: var(--accent-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-color);
  color: var(--dark-color);
  transform: translateY(-5px);
}

.contact-form {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  height: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  transition: var(--transition);
}

.form-control:focus {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: var(--neon-glow);
  color: var(--text-light);
}

.form-control::placeholder {
  color: rgba(224, 230, 237, 0.6);
}

/* Footer */
.footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
  position: relative;
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.footer-logo p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.footer-copyright {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gradient-primary);
  transform: translateY(-5px);
  box-shadow: var(--neon-glow);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .typewriter {
    font-size: 1.3rem;
  }

  .profile-container {
    width: 250px;
    height: 250px;
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 100px 0 60px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  .typewriter {
    font-size: 1.1rem;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .profile-container {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .about-content,
  .contact-info,
  .contact-form,
  .backend-content,
  .github-card {
    padding: 1.5rem;
  }

  .exp-card {
    padding: 1.2rem;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }
}
