/**
* Template Name: MyResume
* Updated: Jan 29 2024 with Bootstrap v5.3.2
* Template URL: https://bootstrapmade.com/free-html-bootstrap-template-my-resume/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/* Variables de couleur pour le thème */
:root {
  --bg-color: #fff;
  --text-color: #272829;
  --accent-color: #6eb5ff;
  --accent-color-dark: #3b9eff;
  --section-bg: #f5f8fd;
  --card-bg: #fff;
  --border-color: #ddd;
  --about-gradient: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  --input-bg: #fff;
  --input-text: #272829;
  --input-border: #ced4da;
  --footer-bg: #f7f8f9;
  --chat-bot-bg: #f0f2f5;
  --date-bg: #f0f2f5;
  --date-color: #666;
}

[data-theme="dark"] {
  --bg-color: #1e1e2e;
  --text-color: #e4e6eb;
  --accent-color: #6eb5ff;
  --accent-color-dark: #3b9eff;
  --section-bg: #242536;
  --card-bg: #2a2a3c;
  --border-color: #3e4042;
  --about-gradient: linear-gradient(to bottom, rgba(110, 181, 255, 0.05), rgba(110, 181, 255, 0.02));
  --input-bg: #3a3b3c;
  --input-text: #e4e6eb;
  --input-border: #3e4042;
  --footer-bg: #242536;
  --chat-bot-bg: #2a2a3c;
  --date-bg: #313244;
  --date-color: #cdd6f4;
}

/* Style du bouton de thème */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 10px 15px;
  border: none;
  border-radius: 30px;
  background: var(--accent-color);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  background: var(--accent-color-dark);
  transform: translateY(-2px);
}

.theme-toggle i {
  font-size: 16px;
}

/* Styles généraux pour le thème sombre */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

section {
  background-color: var(--bg-color);
}

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

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resume .resume-item h4 {
  line-height: 1.4;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: var(--accent-color);
  color: white;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 15px;
  border-radius: 4px;
}

.resume .resume-item p {
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
  margin-top: 15px;
}

.resume .resume-item ul li {
  padding: 10px 0;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.6;
  position: relative;
}

.resume .resume-item ul li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.resume .resume-title {
  font-size: 28px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 25px;
  color: var(--accent-color);
}

[data-theme="dark"] .resume .resume-item {
  background: rgba(42, 42, 60, 0.8);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio .portfolio-item {
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.portfolio .portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio .portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio .portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio .portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio .portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio .portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.portfolio .portfolio-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio .portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(110, 181, 255, 0.15);
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
  background: var(--card-bg);
  border-radius: 50px;
  padding: 8px 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-color);
  border-radius: 25px;
  transition: all 0.3s ease;
  background: transparent;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #fff;
  background: var(--accent-color);
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 15px;
  background: var(--card-bg);
}

.portfolio .portfolio-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.portfolio .portfolio-wrap:hover img {
  transform: scale(1.1);
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7));
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transition: all 0.3s ease;
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap:hover::before {
  opacity: 1;
}

.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0;
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
  transition: all 0.3s ease;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px 15px 0 0;
}

.portfolio .portfolio-wrap:hover .portfolio-info {
  bottom: 0;
  opacity: 1;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.portfolio .portfolio-wrap .portfolio-info p {
  color: var(--text-color);
  font-size: 14px;
  margin: 0;
  padding: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  text-align: center;
  margin-top: 15px;
  position: relative;
  z-index: 10; /* Ensure portfolio links are above other elements */
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: var(--accent-color);
  margin: 0 5px;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 11; /* Ensure individual links are clickable */
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  transform: translateY(-3px);
}

[data-theme="dark"] .portfolio .portfolio-wrap .portfolio-info {
  background: rgba(42, 42, 60, 0.95);
}

@media (max-width: 768px) {
  .portfolio #portfolio-flters {
    padding: 5px 15px;
  }

  .portfolio #portfolio-flters li {
    padding: 6px 15px;
    font-size: 12px;
  }

  .portfolio .portfolio-wrap img {
    height: 250px;
  }
}

.contact .info {
  width: 100%;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.testimonials .section-header {
  margin-bottom: 40px;
}

.testimonials .testimonial-item {
  text-align: center;
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: 15px;
  position: relative;
  overflow: hidden;
}

.testimonials .testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(110, 181, 255, 0.15);
}

.testimonials .testimonial-item::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 80px;
  font-family: serif;
  color: var(--accent-color);
  opacity: 0.1;
  line-height: 1;
}

.testimonials .testimonial-item .testimonial-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  margin: 0 auto 25px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(110, 181, 255, 0.2);
}

.testimonials .testimonial-item .testimonial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials .testimonial-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text-color);
}

.testimonials .testimonial-item h4 {
  font-size: 16px;
  color: var(--accent-color);
  margin: 0 0 20px 0;
  font-weight: 600;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0;
  padding: 0 40px;
  line-height: 1.8;
  color: var(--text-color);
  font-size: 16px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: var(--accent-color);
  font-size: 26px;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.testimonials .testimonial-item:hover .quote-icon-left,
.testimonials .testimonial-item:hover .quote-icon-right {
  opacity: 0.6;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .swiper-pagination {
  margin-top: 30px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--bg-color);
  opacity: 1;
  border: 2px solid var(--accent-color);
  transition: all 0.3s ease;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--accent-color);
  width: 25px;
  border-radius: 5px;
}

[data-theme="dark"] .testimonials .testimonial-item {
  background: rgba(42, 42, 60, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
  .theme-toggle {
    top: auto;
    bottom: 80px;
    right: 15px;
    padding: 8px 12px;
  }

  #theme-text {
    display: none;
  }

  .theme-toggle i {
    margin: 0;
  }
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  color: #067ded;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--accent-color-dark);
  color: #fff;
}

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

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #007bff;
  border-top-color: #fff;
  border-bottom-color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9997;
  transition: all 0.5s;
  padding: 15px;
  overflow-y: auto;
}

@media (max-width: 991px) {
  #header {
    width: 300px;
    background: #fff;
    border-right: 1px solid #e6e9ec;
    left: -300px;
  }
}

@media (min-width: 991px) {
  #main {
    margin-left: 100px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.nav-menu {
  padding: 0;
  display: block;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu>ul>li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #45505b;
  padding: 10px 18px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
  border-radius: 50px;
  background: #f2f3f5;
  height: 56px;
  width: 100%;
  overflow: hidden;
  transition: 0.3s;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 20px;
}

.nav-menu a span,
.nav-menu a:focus span {
  padding: 0 5px 0 7px;
  color: #45505b;
}

@media (min-width: 992px) {

  .nav-menu a,
  .nav-menu a:focus {
    width: 56px;
  }

  .nav-menu a span,
  .nav-menu a:focus span {
    display: none;
    color: #fff;
  }
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  color: #fff;
  background: var(--accent-color);
}

.nav-menu a:hover span,
.nav-menu .active span,
.nav-menu .active:focus span,
.nav-menu li:hover>a span {
  color: #fff;
}

.nav-menu a:hover,
.nav-menu li:hover>a {
  width: 100%;
  color: #fff;
}

.nav-menu a:hover span,
.nav-menu li:hover>a span {
  display: block;
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 28px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 0;
  cursor: pointer;
  border-radius: 50px;
  padding: 5px;
}

.mobile-nav-toggle i {
  color: #45505b;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle {
  color: #fff;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
/* Hero Section Redesign */
#hero {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-color) 60%, rgba(110, 181, 255, 0.05) 150%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

#hero::before {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(110, 181, 255, 0.05), rgba(110, 181, 255, 0.02));
  top: -400px;
  right: -400px;
  z-index: 0;
}

#hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 30px;
}

#hero h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  background: linear-gradient(45deg, var(--text-color), #6eb5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero p {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 2rem;
}

#hero .typed {
  color: #045092 !important;
  font-weight: 700;
}

#hero p.question {
  color: var(--text-color);
}

#hero p:not(.typed):not(.question) {
  color: var(--text-color);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 2rem 0;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  color: var(--accent-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: var(--accent-color);
  color: var(--bg-color);
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
}

.action-buttons .btn {
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.download-btn {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: var(--bg-color);
  border: none;
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.download-btn:hover::before {
  left: 100%;
}

.hire-me-btn {
  background: linear-gradient(45deg, #ffc107, #fd7e14);
  color: var(--bg-color);
  border: none;
  position: relative;
  overflow: hidden;
}

.hire-me-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.hire-me-btn:hover::before {
  left: 100%;
}

/* Chat Widget dans le Hero */
#hero .chat-widget {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  background: var(--bg-color);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

#hero .chat-widget h4 {
  background: linear-gradient(45deg, var(--accent-color), var(--accent-color-dark));
  color: var(--bg-color);
  padding: 15px 20px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.chat-box {
  padding: 20px;
  background: rgba(0, 0, 0, 0.02);
}

.chat-output {
  height: 300px;
  padding: 15px;
  overflow-y: auto;
  background: var(--bg-color);
  border-radius: 10px;
  margin-bottom: 15px;
  scroll-behavior: smooth;
}

/* Messages Styling */
.chat-message {
  margin: 8px 0;
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-message {
  background: var(--accent-color);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.bot-message {
  background: var(--chat-bot-bg);
  color: var(--text-color) !important;
  margin-right: auto;
  border-bottom-left-radius: 5px;
}

.typing-indicator {
  background: #e0e0e0;
  color: #666;
  padding: 8px 15px;
  border-radius: 15px;
  display: inline-block;
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  0% {
    opacity: .5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: .5;
  }
}

.error-message {
  background: #ffebee;
  color: #c62828;
  text-align: center;
  margin: 10px auto;
  padding: 10px;
  border-radius: 10px;
  width: fit-content;
}

.chat-form {
  display: flex;
  gap: 10px;
  background: var(--bg-color);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chat-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid rgba(52, 152, 219, 0.2);
  border-radius: 25px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  background: var(--bg-color);
  color: var(--text-color);
}

.chat-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.chat-submit,
.chat-clear {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-submit {
  background: linear-gradient(45deg, var(--accent-color), var(--accent-color-dark));
  color: white;
}

.chat-clear {
  background: var(--chat-bot-bg);
  color: var(--text-color);
}

.chat-submit:hover,
.chat-clear:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.chat-submit:hover {
  background: var(--accent-color-dark);
}

.chat-clear:hover {
  background: var(--card-bg);
}

.chat-submit i,
.chat-clear i {
  font-size: 1.2rem;
}

/* Scrollbar Styling */
.chat-output::-webkit-scrollbar {
  width: 6px;
}

.chat-output::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.chat-output::-webkit-scrollbar-thumb {
  background: rgba(52, 152, 219, 0.3);
  border-radius: 10px;
}

.chat-output::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 152, 219, 0.5);
}

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

  #hero p {
    font-size: 1.2rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    width: 100%;
  }

  #hero .chat-widget {
    margin: 2rem 15px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--text-color);
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about {
  background: var(--about-gradient);
  padding: 80px 0;
}

.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-color-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.about .profile-img-wrapper {
  position: relative;
  animation: float 6s ease-in-out infinite;
  padding: 20px;
}

.about .profile-img-wrapper img {
  max-width: 300px;
  border: 8px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  transition: all 0.3s ease;
}

.about .profile-img-wrapper::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  background: linear-gradient(45deg, rgba(0, 123, 255, 0.15), rgba(0, 210, 255, 0.15));
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: var(--text-color);
}

.about .content ul li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about .content ul strong {
  margin-right: 10px;
  color: var(--accent-color);
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

.about .content p,
.about .content div,
.about .content span {
  color: var(--text-color);
}

.about .content p {
  line-height: 1.8;
}

.about .expertise {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  color: var(--text-color);
}

.about .expertise p {
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
  color: var(--text-color);
  line-height: 1.8;
}

.about .expertise p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
}

/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts .count-box {
  padding: 30px 30px 25px 30px;
  margin-top: 30px;
  width: 100%;
  position: relative;
  text-align: center;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.facts .count-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.facts .count-box i {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transition: all 0.3s ease;
}

.facts .count-box:hover i {
  background: var(--accent-color-dark);
}

.facts .count-box span {
  font-size: 36px;
  display: block;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.facts .count-box p {
  padding: 0;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: var(--text-color);
}

/*--------------------------------------------------------------
# Akills
--------------------------------------------------------------*/
.skills .progress {
  height: auto;
  display: block;
  background: none;
  margin-bottom: 30px;
}

.skills .progress .skill {
  padding: 10px 0;
  margin-bottom: 10px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
  color: var(--accent-color);
  font-size: 18px;
}

.skills .progress-bar-wrap {
  background: var(--card-bg);
  height: 12px;
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skills .progress-bar {
  width: 1px;
  height: 12px;
  transition: 1s;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-color-dark));
  border-radius: 6px;
  position: relative;
  box-shadow: 0 2px 5px rgba(110, 181, 255, 0.2);
}

.skills .progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(110, 181, 255, 0.4);
}

[data-theme="dark"] .skills .progress-bar-wrap {
  background: rgba(42, 42, 60, 0.8);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resume .resume-item h4 {
  line-height: 1.4;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: var(--accent-color);
  color: white;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 15px;
  border-radius: 4px;
}

.resume .resume-item p {
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
  margin-top: 15px;
}

.resume .resume-item ul li {
  padding: 10px 0;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.6;
  position: relative;
}

.resume .resume-item ul li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--card-bg);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #007bff;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #007bff;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(69, 80, 91, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  text-align: center;
  padding: 70px 20px 80px 20px;
  transition: all ease-in-out 0.3s;
  background: var(--card-bg);
  box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.05);
}

.services .icon-box .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
}

.services .icon-box .icon i {
  font-size: 36px;
  transition: 0.5s;
  position: relative;
}

.services .icon-box .icon svg {
  position: absolute;
  top: 0;
  left: 0;
}

.services .icon-box .icon svg path {
  transition: 0.5s;
  fill: #f5f5f5;
}

.services .icon-box h4 {
  font-weight: 600;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .icon-box h4 a {
  color: var(--text-color);
  transition: ease-in-out 0.3s;
}

.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  color: var(--text-color);
}

.services .icon-box:hover {
  border-color: #fff;
  box-shadow: 0px 0 35px 0 rgba(0, 0, 0, 0.08);
}

.services .iconbox-blue i {
  color: #47aeff;
}

.services .iconbox-blue:hover .icon i {
  color: #fff;
}

.services .iconbox-blue:hover .icon path {
  fill: #47aeff;
}

.services .iconbox-orange i {
  color: #ffa76e;
}

.services .iconbox-orange:hover .icon i {
  color: #fff;
}

.services .iconbox-orange:hover .icon path {
  fill: #ffa76e;
}

.services .iconbox-pink i {
  color: #e80368;
}

.services .iconbox-pink:hover .icon i {
  color: #fff;
}

.services .iconbox-pink:hover .icon path {
  fill: #e80368;
}

.services .iconbox-yellow i {
  color: #ffbb2c;
}

.services .iconbox-yellow:hover .icon i {
  color: #fff;
}

.services .iconbox-yellow:hover .icon path {
  fill: #ffbb2c;
}

.services .iconbox-red i {
  color: #ff5828;
}

.services .iconbox-red:hover .icon i {
  color: #fff;
}

.services .iconbox-red:hover .icon path {
  fill: #ff5828;
}

.services .iconbox-teal i {
  color: #11dbcf;
}

.services .iconbox-teal:hover .icon i {
  color: #fff;
}

.services .iconbox-teal:hover .icon path {
  fill: #11dbcf;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
  width: 100%;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.contact .info i {
  font-size: 20px;
  color: #fff;
  float: left;
  width: 44px;
  height: 44px;
  background: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-color);
}

.contact .info p {
  padding: 0 0 0 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-color);
}

.contact .info .email,
.contact .info .phone {
  margin-top: 40px;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: var(--accent-color);
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  background: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(110, 181, 255, 0.1);
}

.contact .php-email-form button[type=submit] {
  background: linear-gradient(45deg, var(--accent-color), var(--accent-color-dark));
  border: 0;
  padding: 12px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  box-shadow: 0 3px 15px rgba(110, 181, 255, 0.2);
}

.contact .php-email-form button[type=submit]:hover {
  background: var(--accent-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(110, 181, 255, 0.3);
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  color: rgba(39, 40, 41, 0.7);
  opacity: 0.8;
}

[data-theme="dark"] .contact .php-email-form input::placeholder,
[data-theme="dark"] .contact .php-email-form textarea::placeholder {
  color: rgba(228, 230, 235, 0.7);
  opacity: 0.8;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--footer-bg);
  color: var(--text-color);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
}

#footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0 0 15px 0;
  color: var(--text-color);
}

#footer p {
  font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 40px 0;
  color: var(--text-color);
}

#footer .social-links {
  margin: 0 0 40px 0;
}

#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .social-links a:hover {
  background: var(--accent-color-dark);
  color: #fff;
  text-decoration: none;
}

#footer .copyright {
  margin: 0 0 5px 0;
  color: var(--text-color);
}

#footer .credits {
  font-size: 13px;
  color: var(--text-color);
}

#footer .credits a {
  color: var(--accent-color);
}

#footer .credits a:hover {
  color: var(--accent-color-dark);
}

/*--------------------------------------------------------------
# Carousel Section
--------------------------------------------------------------*/
.carousel-section {
  padding: 60px 0;
  overflow: hidden;
  background: var(--section-bg);
  min-height: 600px;
  position: relative;
  z-index: 1;
}

.carousel-container {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  width: 100%;
  height: 500px;
  position: relative;
  transform-style: preserve-3d;
  margin: 0 auto;
}

.carousel {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
}

.carousel-item {
  position: absolute;
  width: 300px;
  height: 300px;
  left: 50%;
  top: 50%;
  margin-left: -150px;
  margin-top: -150px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.carousel-item img {
  width: 100%;
  height: 85%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.carousel-item h3 {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  margin: 0;
  padding: 15px 10px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
}

.carousel-item.focus {
  transform: scale(1.1) translateZ(50px);
  z-index: 1000;
}

.carousel-item.fade-out {
  opacity: 0;
  pointer-events: none;
}

.error-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 10px;
}

@media (max-width: 991px) {
  .carousel-section {
    min-height: 500px;
  }

  .carousel-item {
    width: 250px;
    height: 250px;
    margin-left: -125px;
    margin-top: -125px;
  }
}

@media (max-width: 767px) {
  .carousel-section {
    min-height: 400px;
  }

  .carousel-item {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
  }

  .carousel-item h3 {
    font-size: 14px;
    padding: 10px 5px;
  }
}

/*--------------------------------------------------------------
# Portfolio Carousel
--------------------------------------------------------------*/
.portfolio-carousel {
  padding: 60px 0;
  background: #f8f9fa;
  min-height: 600px;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  width: 45%;
  height: 300px;
  margin: 0 auto;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
}

.carousel-item {
  position: absolute;
  width: 215px;
  height: 215px;
  left: 50%;
  top: 50%;
  transform-origin: center center -250px;
  transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  cursor: pointer;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.carousel-item img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  transform: translateZ(1px);
}

.carousel-item:hover {
  transform: scale(1.05) translateZ(30px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 123, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control.prev {
  left: 5%;
}

.carousel-control.next {
  right: 5%;
}

.carousel-control:hover {
  background: rgba(0, 123, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 991px) {
  .carousel-wrapper {
    width: 60%;
  }

  .carousel-item {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 767px) {
  .carousel-wrapper {
    width: 80%;
  }

  .carousel-item {
    width: 150px;
    height: 150px;
  }

  .carousel-caption {
    padding: 8px;
    font-size: 12px;
  }

  .carousel-control {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

#hero *:not(a):not(button):not(.btn):not(i):not(.typed):not(p) {
  color: var(--text-color);
}

.about .content p {
  line-height: 1.8;
}

#hero .info-item {
  background: var(--card-bg);
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: var(--text-color);
}

#hero .info-item i,
#hero .info-item svg {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 20px;
}

#hero .info-item span,
#hero .info-item strong,
#hero .info-item p {
  color: var(--text-color);
}

#hero .info-label {
  color: var(--accent-color);
  font-weight: 600;
  margin-right: 10px;
}

/* Styles pour le popup modal du portfolio */
.portfolio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-modal.show {
  display: flex;
  opacity: 1;
}

.portfolio-modal-content {
  position: relative;
  background: var(--card-bg);
  width: 90%;
  max-width: 800px;
  margin: auto;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px);
  transition: transform 0.3s ease;
  overflow-y: auto;
  max-height: 90vh;
}

.portfolio-modal.show .portfolio-modal-content {
  transform: translateY(0);
}

.portfolio-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.portfolio-modal-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.portfolio-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-color);
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
}

.portfolio-modal-close:hover {
  transform: rotate(90deg);
}

.portfolio-modal-body {
  margin-bottom: 20px;
}

.portfolio-modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.portfolio-modal-description {
  color: var(--text-color);
  line-height: 1.8;
  font-size: 16px;
}

.portfolio-modal-info {
  background: var(--section-bg);
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.portfolio-modal-info-item {
  display: flex;
  margin-bottom: 15px;
}

.portfolio-modal-info-item:last-child {
  margin-bottom: 0;
}

.portfolio-modal-info-label {
  font-weight: 600;
  color: var(--accent-color);
  width: 120px;
}

.portfolio-modal-info-value {
  color: var(--text-color);
}

.portfolio-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

.portfolio-modal-btn {
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-modal-btn.preview {
  background: var(--accent-color);
  color: white;
  border: none;
}

.portfolio-modal-btn.preview:hover {
  background: var(--accent-color-dark);
  transform: translateY(-2px);
}

.portfolio-modal-btn.details {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--accent-color);
}

.portfolio-modal-btn.details:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .portfolio-modal-content {
    width: 95%;
    padding: 20px;
  }

  .portfolio-modal-image {
    height: 200px;
  }

  .portfolio-modal-header h3 {
    font-size: 20px;
  }

  .portfolio-modal-info-item {
    flex-direction: column;
  }

  .portfolio-modal-info-label {
    width: 100%;
    margin-bottom: 5px;
  }

  .portfolio-modal-footer {
    flex-direction: column;
  }

  .portfolio-modal-btn {
    width: 100%;
    text-align: center;
  }
}