/* General Styles */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #f50057;
  --dark-color: #333;
  --light-color: #f4f4f4;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 15px;
}

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

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

.section-padding {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.line {
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
}

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

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

.navbar.scrolled {
  background-color: white;
  box-shadow: var(--box-shadow);
  padding: 15px 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 24px;
  color: var(--primary-color);
}

.nav-link {
  font-weight: 500;
  margin-left: 15px;
  position: relative;
}

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

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

/* Hero Section */
.hero-section {
  height: 100vh;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background-color: rgba(108, 99, 255, 0.1);
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: rgba(245, 0, 87, 0.1);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-img-container {
  position: relative;
  z-index: 1;
  animation: morph 8s ease-in-out infinite;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}
.img-fluid {
  max-width: 100%;
  height: 500px;
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

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

.highlight {
  color: var(--primary-color);
}

.typed-text-output {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
}

.typed-text {
  color: var(--secondary-color);
  font-weight: 600;
}

.hero-buttons {
  margin-top: 30px;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-down a {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: white;
  box-shadow: var(--box-shadow);
  color: var(--primary-color);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* About Section */
.about-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.about-img::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  border-radius: 10px;
  z-index: -1;
}

.about-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-content p {
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-color);
  color: var(--dark-color);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

/* Skills Section */
.skill-category h3 {
  margin-bottom: 25px;
  color: var(--primary-color);
}

.skill-item {
  margin-bottom: 20px;
}

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

.skill-info p {
  margin-bottom: 0;
  font-weight: 500;
}

.progress {
  height: 10px;
  border-radius: 10px;
  background-color: #e9ecef;
}

.progress-bar {
  background-color: var(--primary-color);
  border-radius: 10px;
  position: relative;
  transition: width 1.5s ease-in-out;
}

.skills-cloud {
  margin-top: 30px;
}

.skill-tag {
  display: inline-block;
  padding: 8px 15px;
  margin: 5px;
  background-color: white;
  border-radius: 50px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.skill-tag:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

/* Projects Section */
.project-filters {
  margin-bottom: 30px;
}

.filter-btn {
  margin: 0 5px;
  padding: 8px 20px;
  border-radius: 50px;
  background-color: transparent;
  color: var(--dark-color);
  border: 1px solid #ddd;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.project-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-img {
  position: relative;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(108, 99, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color);
  transition: var(--transition);
}

.project-link:hover {
  background-color: var(--secondary-color);
  color: white;
}

.project-info {
  padding: 20px;
  background-color: white;
}

.project-info h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.project-info p {
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-tech span {
  display: inline-block;
  padding: 3px 10px;
  background-color: var(--light-color);
  border-radius: 50px;
  font-size: 12px;
}

/* Education Section */
.timeline-section {
  position: relative;
  padding: 0 20px;
}

.timeline-title {
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid white;
  box-shadow: var(--box-shadow);
}

.timeline-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-content h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.timeline-content h5 {
  color: var(--secondary-color);
  font-size: 16px;
  margin-bottom: 5px;
}

.timeline-date {
  font-style: italic;
  color: #777;
  margin-bottom: 10px;
}

/* Contact Section */
.contact-info {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  height: 100%;
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-color);
  color: var(--primary-color);
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-item .text h5 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  height: 100%;
}

.form-control {
  height: 50px;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 10px 15px;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  height: auto;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
  text-align: center;
}

.footer h3 {
  color: white;
  margin-bottom: 10px;
}

.footer p {
  color: #ddd;
  margin-bottom: 20px;
}

.footer .social-icons {
  justify-content: center;
  margin-bottom: 20px;
}

.footer .social-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer .social-icon:hover {
  background-color: var(--primary-color);
}

.copyright {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  margin-bottom: 0;
  font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.back-to-top:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-section {
    height: auto;
    padding: 150px 0 100px;
  }

  .hero-img-container {
    margin-top: 50px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-img {
    margin-bottom: 30px;
  }

  .contact-info {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 70px 0;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .timeline-section {
    margin-bottom: 50px;
  }

  .project-filters .filter-btn {
    margin-bottom: 10px;
  }
}

@media (max-width: 575px) {
  .hero-section {
    padding: 120px 0 80px;
  }

  .hero-section h1 {
    font-size: 32px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .about-content h3 {
    font-size: 24px;
  }

  .timeline-content h4 {
    font-size: 18px;
  }
}

/* Animation Classes */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-right.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-left.active {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.zoom-in.active {
  opacity: 1;
  transform: scale(1);
}
