/* Global Styles */
:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --gradient-start: #6366f1;
  --gradient-mid: #8b5cf6;
  --gradient-end: #a78bfa;
  --text-light: #f8fafc;
  --text-dark: #1e293b;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  border-radius: 2px;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  border: none;
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  background: linear-gradient(
    45deg,
    var(--gradient-end),
    var(--gradient-start)
  );
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--text-light);
  border-color: transparent;
}

/* Enhanced Shimmer Preloader */
.shimmer-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-mid),
    var(--gradient-end)
  );
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.shimmer-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shimmer-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.shimmer-wave-1 {
  animation: shimmer 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.7;
}

.shimmer-wave-2 {
  animation: shimmer 3s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.5s;
  opacity: 0.5;
  height: 70%;
  top: 15%;
}

.shimmer-wave-3 {
  animation: shimmer 3s cubic-bezier(0.4, 0, 0.2, 1) infinite 1s;
  opacity: 0.3;
  height: 40%;
  top: 30%;
}

.glitter-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glitter {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0;
  transform: translateZ(0);
  animation: glitter-animation 3s ease infinite;
}

.g1,
.g2,
.g3,
.g4,
.g5,
.g6,
.g7,
.g8,
.g9,
.g10,
.g11,
.g12,
.g13,
.g14,
.g15 {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
}

.g1 {
  top: 10%;
  left: 10%;
  animation-delay: 0.5s;
}
.g2 {
  top: 20%;
  left: 20%;
  animation-delay: 0.7s;
}
.g3 {
  top: 30%;
  left: 30%;
  animation-delay: 0.9s;
}
.g4 {
  top: 40%;
  left: 40%;
  animation-delay: 1.1s;
}
.g5 {
  top: 50%;
  left: 50%;
  animation-delay: 1.3s;
}
.g6 {
  top: 60%;
  left: 60%;
  animation-delay: 1.5s;
}
.g7 {
  top: 70%;
  left: 70%;
  animation-delay: 1.7s;
}
.g8 {
  top: 80%;
  left: 80%;
  animation-delay: 1.9s;
}
.g9 {
  top: 90%;
  left: 90%;
  animation-delay: 2.1s;
}
.g10 {
  top: 15%;
  left: 85%;
  animation-delay: 0.6s;
}
.g11 {
  top: 25%;
  left: 75%;
  animation-delay: 0.8s;
}
.g12 {
  top: 35%;
  left: 65%;
  animation-delay: 1s;
}
.g13 {
  top: 45%;
  left: 55%;
  animation-delay: 1.2s;
}
.g14 {
  top: 55%;
  left: 45%;
  animation-delay: 1.4s;
}
.g15 {
  top: 65%;
  left: 35%;
  animation-delay: 1.6s;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

@keyframes glitter-animation {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1) rotate(180deg);
    opacity: 0.9;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

.shimmer-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Particle Background */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-toggler {
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0.5rem;
  padding: 0.5rem 0.75rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

/* Hero Section */
#hero {
  padding-top: 180px;
  padding-bottom: 80px;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(167, 139, 250, 0.1)
  );
  overflow: hidden;
  z-index: 2;
}

#hero .container {
  position: relative;
  z-index: 3;
}

.hero-shape {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(99, 102, 241, 0.1),
    rgba(167, 139, 250, 0.2)
  );
  z-index: 1;
}

.profile-img-container {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto;
  margin-top: 3rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  border: 4px solid white;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition);
}

.profile-img:hover {
  transform: scale(1.05);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Experience counter */
.experience-counter {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.counter-item {
  text-align: center;
}

.counter-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-label {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
}

/* Section Dividers */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.section-divider.wave-top {
  top: 0;
  bottom: auto;
  transform: rotate(180deg);
}

.section-divider .shape-fill {
  fill: rgba(99, 102, 241, 0.1);
}

section {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline (Experience & Education) */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--gradient-start),
    var(--gradient-end)
  );
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  padding: 2rem 0;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 30%;
  width: 20px;
  height: 20px;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.timeline-left {
  width: 30%;
  text-align: right;
  padding-right: 3rem;
}

.timeline-content {
  width: 70%;
  padding-left: 3rem;
}

.timeline-text,
.hero-text,
.expertise-text,
p {
  text-align: justify;
}

.timeline-date {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-position {
  display: block;
  font-weight: 500;
  color: var(--text-dark);
}

.timeline-title {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.timeline-text {
  color: #4b5563;
}

/* Projects Section */
.project-carousel {
  max-width: 900px;
  margin: 0 auto;
}

.carousel {
  margin-bottom: 2rem;
}

.carousel-inner {
  border-radius: 15px;
  overflow: hidden;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  flex-direction: column;
  display: flex;
  align-items: flex-start;
}

.project-img-container {
  height: 300px;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.project-desc {
  color: #4b5563;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--secondary-color);
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-indicators {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 0;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(99, 102, 241, 0.3);
  opacity: 1;
}

.carousel-indicators button.active {
  background-color: var(--primary-color);
}

/* Hexagon grid for skills */
.hexagon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  max-width: 900px;
}

.hexagon {
  position: relative;
  width: 120px;
  height: 70px;
  background-color: white;
  margin: 35px 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.hexagon:before,
.hexagon:after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
}

.hexagon:before {
  bottom: 100%;
  border-bottom: 35px solid white;
}

.hexagon:after {
  top: 100%;
  width: 0;
  border-top: 35px solid white;
}

.hexagon:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.hexagon:hover .hexagon-content i {
  color: var(--primary-color);
}

.hexagon-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  position: relative;
}

.hexagon-content i {
  font-size: 2rem;
  margin-bottom: 5px;
  color: var(--secondary-color);
  transition: var(--transition);
}

.hexagon-content span {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Expertise Section */
/* .expertise-card {
  background-color: var(--card-bg);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
  text-align: center;
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.expertise-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--text-light);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.expertise-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.expertise-text {
  color: #4b5563;
  font-size: 0.95rem;
} */

/* Contact Section */
.contact-info,
.contact-form {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-details li i {
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  margin-right: 1rem;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--text-light);
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
  color: var(--text-light);
}

.form-control {
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea.form-control {
  border-radius: 20px;
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Parallax elements */
.parallax-element {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Decorative elements for parallax */
.decorative-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(99, 102, 241, 0.1),
    rgba(167, 139, 250, 0.2)
  );
  z-index: 0;
  pointer-events: none;
}

/* Page transitions */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  z-index: 9999;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.page-transition-overlay.active {
  transform: scaleY(1);
}

.page-transition-overlay.exit {
  transform-origin: bottom;
}

body.animating {
  overflow: hidden;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .timeline-container::after {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-item::before {
    left: 20px;
  }

  .timeline-left {
    width: 100%;
    text-align: left;
    padding-right: 0;
    padding-left: 50px;
    margin-bottom: 1rem;
  }

  .timeline-content {
    width: 100%;
    padding-left: 50px;
  }

  .hero-text,
  .timeline-text,
  .expertise-text,
  p {
    text-align: left;
  }

  .experience-counter {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hexagon {
    width: 100px;
    height: 60px;
    margin: 30px 8px;
  }

  .hexagon:before {
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 30px solid white;
  }

  .hexagon:after {
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 30px solid white;
  }

  .hexagon-content i {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }

  .profile-img-container {
    width: 250px;
    height: 250px;
  }
}

/* Animation Classes */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}
