:root {
  --primary-color: #51a2ff;
  --secondary-color: #7e10e4;
  --dark-bg: #0a0a0a;
  --darker-bg: #000;
  --gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gradient-bg);
  color: #fff;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: hidden;
}
/* /============================navbar============================== */
.custom-navbar {
  background-color: var(--darker-bg) !important;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: var(--primary-color) !important;
  font-size: 1.8rem;
  font-weight: bold;
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.4s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(81, 162, 255, 0.15);
  color: var(--primary-color) !important;
}

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

.navbar-toggler {
  border: none;
  color: #fff;
}

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

/* ===============================Hero Section=============================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: var(--gradient-bg);
  position: relative;
}

.hero-image {
  width: 300px;
  height: 300px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideout 3s ease forwards;
}

.hero-image:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(81, 162, 255, 0.5);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  animation: slideIn 2s ease forwards;
}

.hero-title {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  animation: slideout 2s ease forwards;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #ddd;
}

@keyframes slideout {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(70px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.typewriter-text {
  font-size: 1.3rem;
  min-height: 40px;
  font-weight: bold;
  margin-top: 15px;
}

.typewriter-line {
  background: linear-gradient(90deg, #42a5f5, #a137ce);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: all 0.3s ease-in-out;
}

.cursor {
  display: inline-block;
  animation: blink 0.7s infinite;
  color: #7d4b92;
  font-weight: bold;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
/* ===============================Buttons=============================== */
.btn-primary-custom {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(81, 162, 255, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(77, 57, 48, 0.4);
  color: #fff;
}

.btn-outline-custom {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* ===============================About Section=============================== */
.about-section {
  background: linear-gradient(145deg, #111 0%, #1a1a1a 100%);
  position: relative;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid rgba(81, 162, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(81, 162, 255, 0.2);
  border-color: rgba(81, 162, 255, 0.5);
}

.section-title {
  font-size: 3rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  text-shadow: 0 0 20px rgba(81, 162, 255, 0.3);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  border-radius: 2px;
}

.skill-category {
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 1px solid rgba(81, 162, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(81, 162, 255, 0.2);
  border-color: rgba(81, 162, 255, 0.4);
}

.skill-category h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.skill-item {
  background: rgba(81, 162, 255, 0.05);
  border-left: 3px solid var(--primary-color);
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(81, 162, 255, 0.1);
  transform: translateX(5px);
}

/* ===============================Skills section=============================== */
.skills-section {
  background: var(--gradient-bg);
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(81, 162, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(81, 162, 255, 0.2);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-percentage {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.skill-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 10px;
  transition: width 2s ease;
  position: relative;
}

.skill-description {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===============================Projects section=============================== */
.projects-section {
  /* padding: 100px 0; */
  background: linear-gradient(145deg, #111 0%, #1a1a1a 100%);
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(81, 162, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(81, 162, 255, 0.2);
}

.project-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
}

.project-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-tech {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
  text-transform: uppercase;
}

.project-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-tag {
  background: rgba(81, 162, 255, 0.2);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===============================Social icons=============================== */
.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(81, 162, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-icon:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}

section {
  scroll-margin-top: 80px;
}
[data-aos] {
  transition-property: transform, opacity !important;
  will-change: transform, opacity;
}

.contact-section {
  /* padding: 100px; */
  background: linear-gradient(145deg, #111 0%, #1a1a1a 100%);
  /* min-height: 100vh; */
  position: relative;
}

.section-title {
  font-size: 3rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  text-shadow: 0 0 20px rgba(81, 162, 255, 0.3);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  border-radius: 2px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(81, 162, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  margin-top: -20px;
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}

.contact-form:hover {
  border-color: rgba(81, 162, 255, 0.4);
  box-shadow: 0 20px 40px rgba(81, 162, 255, 0.1);
}

.form-label {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(81, 162, 255, 0.3);
  border-radius: 10px;
  color: #fff;
  padding: 12px 15px;
  transition: all 0.3s ease;
  appearance: none; /* removes native OS dropdown arrow */
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(81, 162, 255, 0.25);
  color: #fff;
}

.form-control::placeholder {
  color: #aaa;
}

.form-select option {
  background-color: #2b2b2b;
  color: #fff;
}

.btn-send {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  border-radius: 25px;
  padding: 15px 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(81, 162, 255, 0.3);
  width: 100%;
}

.btn-send:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(81, 162, 255, 0.4);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-link {
  width: 60px;
  height: 60px;
  background: rgba(81, 162, 255, 0.1);
  border: 2px solid rgba(81, 162, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.social-link:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(81, 16/2, 255, 0.4);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-image {
    width: 250px;
    height: 250px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .about-card {
    padding: 2rem;
  }
  .section-title {
    font-size: 2.5rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-card {
    padding: 1.5rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  .project-card {
    padding: 1.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
}
