/* Styles généraux */
:root {
  --sidebar-width: 300px;
  --primary-color: #0563bb;
  --secondary-color: #f2f3f5;
  --text-color: #45505b;
  --text-color-light: #728394;
  --white: #fff;
  --black: #000;
  --neon-color: #ff00ff;
  --accent-color: #00e1ff;
  --gradient-primary: linear-gradient(45deg, #0563bb, #00e1ff);
  --gradient-neon: linear-gradient(45deg, #ff00ff, #00e1ff);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

body.portfolio-home {
  padding-left: var(--sidebar-width);
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #0678e3;
  text-decoration: none;
  transform: translateY(-2px);
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.row.justify-content-center {
  justify-content: center;
}

.col-md-3,
.col-md-4,
.col-md-6,
.col-md-10,
.col-lg-4,
.col-lg-6,
.col-lg-8,
.col-lg-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-md-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  padding: 0 15px;
  background: var(--white);
  overflow-y: auto;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

#header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

#header h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

#header h1 a {
  color: var(--text-color);
  position: relative;
}

#header h1 a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

#header h1 a:hover::after {
  width: 100%;
}

#header h2 {
  font-size: 18px;
  margin-top: 10px;
  font-weight: 500;
  color: var(--text-color-light);
  text-align: center;
}

#header h2 span {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

#header h2 span::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 10px;
  bottom: 0;
  left: 0;
  background: var(--accent-color);
  opacity: 0.2;
  z-index: -1;
}

/* Navigation */
.navbar {
  padding: 30px 0 0 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
}

.navbar a {
  display: block;
  position: relative;
  color: var(--text-color);
  padding: 10px 15px;
  transition: 0.3s;
  font-size: 15px;
  border-radius: 50px;
  font-weight: 600;
  overflow: hidden;
}

.navbar a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.navbar a:hover::before {
  left: 100%;
}

.navbar a:hover,
.navbar .active {
  color: var(--white);
  background: var(--gradient-primary);
  box-shadow: 0 5px 15px rgba(5, 99, 187, 0.4);
  transform: translateY(-3px);
}

.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
  display: none;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  width: 100%;
  min-height: 100vh;
  height: auto;
  background:
    radial-gradient(circle at top left, rgba(0, 225, 255, 0.18), transparent 38%),
    radial-gradient(circle at bottom right, rgba(5, 99, 187, 0.22), transparent 42%),
    linear-gradient(135deg, #f7fbff 0%, #eef6ff 46%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76)),
    linear-gradient(rgba(5, 99, 187, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 99, 187, 0.03) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.hero-container {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 1s both;
}

.hero h2 {
  color: var(--text-color-light);
  max-width: 760px;
  margin-bottom: 50px;
  font-size: 24px;
  animation: fadeInUp 1s both 0.3s;
}

.btn-scroll {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 50px;
  color: var(--white);
  background: var(--gradient-primary);
  font-size: 16px;
  font-weight: 600;
  transition: 0.5s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(5, 99, 187, 0.4);
  animation: fadeInUp 1s both 0.6s;
}

.btn-scroll::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-scroll:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(5, 99, 187, 0.6);
}

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

/* Floating Elements Animation */
.floating {
  animation: floating 3s ease-in-out infinite;
}

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

/* Sections générales */
section {
  width: 100%;
  padding: 72px 0;
  overflow: hidden;
  position: relative;
  scroll-margin-top: 24px;
}

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

.section-title p {
  max-width: 760px;
  margin: 0 auto;
}

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

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

.section-title h2::before {
  content: attr(data-text);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 100px;
  font-weight: 900;
  color: rgba(5, 99, 187, 0.05);
  z-index: -1;
}

/* À propos Section */
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.about .content h3::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 8px;
  bottom: 0;
  left: 0;
  background: var(--accent-color);
  opacity: 0.2;
  z-index: -1;
}

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

.about .content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  max-height: 400px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about .content img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Effets néon */
.neon2 {
  color: var(--neon-color);
  text-shadow: 0 0 5px var(--neon-color), 0 0 10px var(--neon-color), 0 0 20px var(--neon-color);
  animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
  0% {
    text-shadow: 0 0 5px var(--neon-color), 0 0 10px var(--neon-color), 0 0 20px var(--neon-color);
  }
  100% {
    text-shadow: 0 0 10px var(--neon-color), 0 0 20px var(--neon-color), 0 0 30px var(--neon-color), 0 0 40px
      var(--neon-color);
  }
}

.feure {
  display: inline-block;
  animation: wave 2.5s infinite;
}

.feure4 {
  display: inline-block;
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0;
  position: relative;
}

.feure4::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-neon);
  border-radius: 5px;
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Bouton CV */
.valo {
  margin: 20px 0;
}

.valo a {
  position: relative;
  display: inline-block;
  padding: 12px 36px;
  margin: 10px 0;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 2px;
  border-radius: 40px;
  overflow: hidden;
  background: linear-gradient(90deg, #0162c8, #55e7fc);
  box-shadow: 0 5px 15px rgba(1, 98, 200, 0.4);
  transition: all 0.5s ease;
}

.valo a:hover {
  background: linear-gradient(90deg, #755bea, #ff72c0);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(117, 91, 234, 0.5);
}

.valo a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.valo a:hover::before {
  left: 100%;
}

.valo a p {
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Portfolio Section */
.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
  border-radius: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-color-light);
  margin: 5px;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background: rgba(245, 245, 245, 0.8);
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: var(--white);
  background: var(--gradient-primary);
  box-shadow: 0 5px 15px rgba(5, 99, 187, 0.4);
  transform: translateY(-3px);
}

.portfolio .portfolio-item {
  margin-bottom: 30px;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.5s ease;
}

.portfolio .portfolio-item.show {
  transform: translateY(0);
  opacity: 1;
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio .portfolio-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Important pour garder les proportions */
  transition: 0.5s;
}

.portfolio .portfolio-links {
  opacity: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  position: absolute;
  transition: all ease-in-out 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  transform: translateY(100%);
}

.portfolio .portfolio-links a {
  color: var(--white);
  font-size: 18px;
  background: var(--primary-color);
  border-radius: 50px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transition: 0.3s;
}

.portfolio .portfolio-links a:hover {
  background: #0678e3;
  transform: scale(1.1);
}

.portfolio .portfolio-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

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

.portfolio .portfolio-wrap:hover .portfolio-links {
  opacity: 1;
  transform: translateY(0);
}

.date {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  background-color: #f8f9fa;
  font-size: 14px;
  margin: 10px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.date:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Skills Section */
.skills-parent {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.skills-card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(30px);
  opacity: 0;
}

.skills-card.show {
  transform: translateY(0);
  opacity: 1;
}

.skills-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skills-img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.skills-card:hover .skills-img {
  transform: rotate(10deg) scale(1.1);
}

.skills-img img {
  max-width: 100%;
  max-height: 100%;
}

.skills-name {
  text-align: center;
}

.skills-name p {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.skills-name p::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.skills-card:hover .skills-name p::after {
  width: 80%;
}

.skills-content img {
  max-width: 100%;
  height: auto;
  margin: 10px;
  max-height: 200px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.skills-content img:hover {
  transform: scale(1.05);
}

/* Contact Section */
.contact .info {
  width: 100%;
}

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

.contact .info:hover i {
  background: var(--primary-color);
  color: var(--white);
}

.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-light);
}

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

.contact .php-email-form {
  width: 100%;
}

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

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
  border: 1px solid #dce3de;
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(5, 99, 187, 0.1);
}

.contact .php-email-form button[type="submit"] {
  background: var(--gradient-primary);
  border: 0;
  padding: 10px 30px;
  color: var(--white);
  transition: 0.4s;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(5, 99, 187, 0.4);
  position: relative;
  overflow: hidden;
}

.contact .php-email-form button[type="submit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.contact .php-email-form button[type="submit"]:hover {
  background: linear-gradient(90deg, #0162c8, #55e7fc);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(5, 99, 187, 0.6);
}

.contact .php-email-form button[type="submit"]:hover::before {
  left: 100%;
}

/* Accordion (bouton secret) */
.accordion__checkbox:checked ~ .accordion__content {
  max-height: 800px !important;
  transition: max-height 0.5s ease-in;
  overflow: visible;
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  margin-bottom: 50px;
}

.accordion__heading {
  display: block;
  cursor: pointer;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  margin: 10px 0;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.accordion__heading:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accordion__heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: 0.5s;
}

.accordion__heading:hover::before {
  left: 100%;
}

/* Projet détail */
#header-projet {
  background: var(--white);
  padding: 20px 0;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 997;
}

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

#footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

#footer .copyright {
  margin-bottom: 5px;
  position: relative;
  display: inline-block;
}

#footer .copyright::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

#footer:hover .copyright::after {
  width: 50%;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Project page header - horizontal layout */
#header-projet .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

#header-projet h1 {
  margin: 0;
  font-size: 20px;
}

#header-projet .navbar {
  padding: 0;
}

#header-projet .navbar ul {
  flex-direction: row;
  align-items: center;
}

#header-projet .navbar li {
  margin-bottom: 0;
  width: auto;
}

#header-projet .navbar a {
  padding: 8px 18px;
  font-size: 14px;
}

/* Utility classes (Bootstrap-like) */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.text-center { text-align: center !important; }
.text-success { color: #28a745 !important; }
.text-primary { color: var(--primary-color) !important; }
.fw-bold { font-weight: 600 !important; }
.img-fluid { max-width: 100%; height: auto; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.me-3 { margin-right: 1rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.p-3 { padding: 1rem !important; }
.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }

/* Button classes */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(5, 99, 187, 0.4);
  color: #fff;
}

.btn-secondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
  color: #fff;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 3px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.fade {
  display: none;
}

.modal.show,
.modal.fade.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  max-width: 500px;
  margin: 1.75rem auto;
  pointer-events: none;
}

.modal-dialog.modal-lg {
  max-width: 800px;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  outline: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #dee2e6;
}

.modal-header .close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  color: #000;
  opacity: 0.5;
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 20px;
}

.modal-body pre {
  white-space: pre-wrap;
  max-height: 60vh;
  overflow-y: auto;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  font-size: 13px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid #dee2e6;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1199px) {
  body.portfolio-home {
    padding-left: 0;
  }

  #header {
    left: calc(-1 * var(--sidebar-width));
    transition: all 0.5s;
  }

  .mobile-nav-toggle {
    display: block;
  }

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

  body.mobile-nav-active .mobile-nav-toggle {
    color: var(--white);
    position: fixed;
  }
}

@media (max-width: 991px) {
  .hero h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  .hero h2 {
    font-size: 20px;
  }

}

@media (max-width: 768px) {
  .hero,
  .hero-container {
    min-height: 88vh;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }

  .portfolio #portfolio-flters {
    flex-direction: column;
    align-items: center;
  }

  .portfolio #portfolio-flters li {
    margin-bottom: 5px;
  }

  .accordion__content iframe {
    height: 600px;
  }
}

@media (max-width: 575px) {
  .hero h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .hero h2 {
    font-size: 16px;
    line-height: 1.5;
  }

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


  .accordion__content iframe {
    height: 550px;
  }
}
