/*---------------------------------------------------
    GLOBAL STYLES
---------------------------------------------------*/
:root {
  /* Main color palette */
  --primary-color: #9d4edd;
  --secondary-color: #edafb8;
  --dark-bg: #212132;
  --darker-bg: #272640;
  --light-bg: #0b132b;
  --text-color: #f5f5f5;
  --text-color-light: #b0b0b0;
  --border-color: #333;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  
  /* Project category colors */
  --ml-color: #9d4edd;
  --cv-color: #FF6B6B;
  --nlp-color: #6BCB77;
  --data-color: #FFD166;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-color-light);
}

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

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

.container {
  max-width: 1200px;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.gray-bg {
  background-color: var(--darker-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.underline {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto;
  position: relative;
}

.underline::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 4px;
  background: var(--secondary-color);
  top: 0;
  left: -60px;
}

.underline::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 4px;
  background: var(--secondary-color);
  top: 0;
  right: -60px;
}

.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 30%;
  background-color: rgba(108, 99, 255, 0.2);
  bottom: 5px;
  left: 0;
  z-index: -1;
  transition: var(--transition);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

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

.primary-btn:hover {
  background-color: #9d4edd;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.secondary-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

/*---------------------------------------------------
  NAVBAR
---------------------------------------------------*/
.navbar {
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(10, 10, 10, 0.95);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 1px;
}

.navbar-brand:hover {
  color: var(--primary-color);
}

.navbar-nav {
  margin-left: auto;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  background-color: var(--primary-color);
  font-weight: 600;
}

.navbar-toggler {
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
}

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

/*---------------------------------------------------
  HERO SECTION
---------------------------------------------------*/
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--dark-bg);
  padding-top: 80px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(108, 99, 255, 0.1), transparent 50%);
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color-light);
}

.hero-btns {
  margin-top: 2rem;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.profile-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.profile-picture {
  position: relative;
  z-index: 10;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
  animation: floatAnimation 6s ease-in-out infinite;
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.profile-img:hover {
  transform: scale(1.05);
}
.profile-bg-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.ai-animation {
  position: relative;
  animation: floatAnimation 6s ease-in-out infinite;
}

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

.pulse-circle {
  animation: pulseAnimation 3s infinite;
}

@keyframes pulseAnimation {
  0% {
      opacity: 0.3;
      transform: scale(0.9);
  }
  50% {
      opacity: 0.6;
      transform: scale(1.1);
  }
  100% {
      opacity: 0.3;
      transform: scale(0.9);
  }
}

.line-animate {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: lineAnimation 3s linear infinite;
}

.line-animate-delay {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: lineAnimation 3s linear 0.5s infinite;
}

@keyframes lineAnimation {
  to {
      stroke-dashoffset: -200;
  }
}

.rotate-circle {
  transform-origin: center;
  animation: rotateAnimation 10s linear infinite;
}

@keyframes rotateAnimation {
  to {
      transform: rotate(360deg);
  }
}

.node {
  animation: nodeAnimation 3s ease-in-out infinite;
}

@keyframes nodeAnimation {
  0%, 100% {
      r: 8;
      opacity: 0.8;
  }
  50% {
      r: 12;
      opacity: 1;
  }
}

.connect-animate {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: connectAnimation 6s linear infinite;
}

.connect-animate-delay {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: connectAnimation 6s linear 1s infinite;
}

@keyframes connectAnimation {
  to {
      stroke-dashoffset: 0;
  }
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

.scroll-down a {
  color: var(--text-color);
  font-size: 1.5rem;
}

@keyframes scrollDown {
  0%, 100% {
      transform: translateY(0) translateX(-50%);
  }
  50% {
      transform: translateY(10px) translateX(-50%);
  }
}

/*---------------------------------------------------
  ABOUT SECTION
---------------------------------------------------*/
.about-img {
  position: relative;
  padding: 20px;
}

.img-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.img-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.img-box:hover {
  transform: translateY(-10px);
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

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

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

.info-item span {
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.info-item span i {
  margin-right: 10px;
  color: var(--primary-color);
}

.info-item p {
  margin-left: 25px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

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

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

/*---------------------------------------------------
  SKILLS SECTION
---------------------------------------------------*/
.skills-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.skill-category {
  margin-top: 2rem;
}

.skill-category h4 {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
}

.skill-category h4 i {
  margin-right: 10px;
}

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

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

.skill-progress {
  width: 100%;
  height: 8px;
  background-color: var(--light-bg);
  border-radius: 10px;
  overflow: hidden;
}

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

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--light-bg);
  border-radius: 5px;
  color: var(--text-color);
  font-size: 0.85rem;
  transition: var(--transition);
}

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

/*---------------------------------------------------
  PROJECTS SECTION
---------------------------------------------------*/
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  gap: 10px;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  background-color: var(--light-bg);
  color: var(--text-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

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

.project-container {
  margin-top: 2rem;
}

.project-item {
  margin-bottom: 30px;
}

.project-card {
  background-color: var(--light-bg);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

.project-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.project-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: fit;
  transition: transform 0.5s ease;
}

.ml-bg {
  background: linear-gradient(135deg, #6C63FF 0%, #5a52d5 100%);
}

.cv-bg {
  background: linear-gradient(135deg, #FF6B6B 0%, #d15656 100%);
}

.nlp-bg {
  background: linear-gradient(135deg, #6BCB77 0%, #58a862 100%);
}

.data-bg {
  background: linear-gradient(135deg, #FFD166 0%, #d6af55 100%);
}

.project-img i {
  font-size: 4rem;
  opacity: 0.8;
}

.project-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.project-info p {
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.project-tags span {
  padding: 0.25rem 0.75rem;
  background-color: var(--dark-bg);
  border-radius: 5px;
  font-size: 0.75rem;
}

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

.project-link {
  color: var(--text-color-light);
  transition: var(--transition);
}

.project-link:hover {
  color: var(--primary-color);
}

/*---------------------------------------------------
  CERTIFICATIONS SECTION
---------------------------------------------------*/
.cert-card {
  background-color: var(--light-bg);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  transition: var(--transition);
  height: 100%;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cert-badge {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
  font-size: 1.5rem;
  color: white;
}

.cert-content {
  flex-grow: 1;
}

.cert-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cert-issuer {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cert-date {
  color: var(--text-color-light);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

.cert-link i {
  margin-left: 5px;
}

/*---------------------------------------------------
  EXPERIENCE SECTION
---------------------------------------------------*/
.experience-container {
  position: relative;
}

.experience-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background-color: var(--light-bg);
}

.experience-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.experience-year {
  min-width: 90px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  border-radius: 5px;
  color: white;
  font-weight: 600;
  position: relative;
  z-index: 1;
  margin-right: 2rem;
}

.experience-content {
  flex-grow: 1;
  background-color: var(--light-bg);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  transition: var(--transition);
}

.experience-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 15px;
  width: 20px;
  height: 20px;
  background-color: var(--light-bg);
  transform: rotate(45deg);
}

.experience-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.experience-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.experience-company {
  font-style: italic;
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
}

.experience-details {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.experience-details li {
  margin-bottom: 1rem;
}

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

.exp-link {
  color: var(--text-color-light);
  transition: var(--transition);
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.exp-link i {
  margin-right: 5px;
}

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

/*---------------------------------------------------
  CONTACT SECTION
---------------------------------------------------*/
.contact-info {
  padding: 2rem;
  background-color: var(--light-bg);
  border-radius: 15px;
  height: 100%;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-details {
  margin-top: 2rem;
}

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

.contact-item i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-right: 1rem;
  margin-top: 5px;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin-bottom: 0;
}

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

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

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

.contact-form {
  background-color: var(--light-bg);
  border-radius: 15px;
  padding: 2rem;
  height: 100%;
}

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

.form-control {
  background-color: var(--dark-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.75rem;
  border-radius: 5px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(108, 99, 255, 0.25);
  background-color: var(--dark-bg);
  color: var(--text-color);
}

label {
  margin-bottom: 0.5rem;
  display: block;
}

/*---------------------------------------------------
  FOOTER
---------------------------------------------------*/
.footer {
  background-color: var(--darker-bg);
  padding: 3rem 0;
  text-align: center;
}

.footer-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.footer-content p {
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.copyright {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-color-light);
}

/*---------------------------------------------------
  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;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

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

.back-to-top:hover {
  background-color: #5a52d5;
  color: white;
  transform: translateY(-3px);
}
