/**
* Template Name: Instant - Modified
* Cleaned and optimized by Claude Code
*/

/* ==========================================================================
   Base Styles & Fonts
   ========================================================================== */

@font-face {
  font-family: Cyber;
  src: url("https://assets.codepen.io/605876/Blender-Pro-Bold.otf");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::-moz-selection {
  background: #f2c2c9;
  color: #3100a4;
  text-shadow: none;
}

::selection {
  background: #000000;
  color: rgba(139, 17, 8, 0.316);
  text-shadow: none;
}

body {
  font-family: Cyber, sans-serif;
  font-weight: 400;
  font-size: 18px;
  background: #111;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 25px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(139, 17, 8, 0.3);
}

.main-nav.scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 2px 25px rgba(139, 17, 8, 0.4);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.nav-logo:hover {
  color: rgba(139, 17, 8, 0.8);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 50px;
  align-items: center;
}

.nav-menu li {
  margin: 0;
  display: flex;
  align-items: center;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
  display: inline-block;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(139, 17, 8, 0.8);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: #fff;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Language Selector */
.language-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.lang-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 2.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.lang-btn:hover {
  transform: scale(1.1);
  border-color: rgba(139, 17, 8, 0.5);
}

.lang-btn.active {
  border-color: rgba(139, 17, 8, 0.8);
  background: rgba(139, 17, 8, 0.1);
  box-shadow: 0 0 10px rgba(139, 17, 8, 0.3);
}

/* ==========================================================================
   Canvas Background
   ========================================================================== */

.mmc {
  background: #111;
}

#canvas {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  z-index: -1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

#block {
  min-height: 100vh;
  width: 100vw;
  z-index: 1;
  color: #fff;
  font-size: 8vmin;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

#imgdiv {
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
  max-width: 720px;
}

.greeting-text {
  font-size: 3.2rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.name-text {
  font-size: 7.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fff 0%, rgba(139, 17, 8, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: none;
}

#typing-container {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  margin-bottom: 30px;
}

#text {
  display: inline;
  color: rgb(255, 255, 255);
  letter-spacing: 2px;
  font-size: 3rem;
}

#cursor {
  display: inline-block;
  vertical-align: middle;
  width: 3px;
  height: 38px;
  background-color: rgb(255, 255, 255);
  animation: blink 0.75s step-end infinite;
}

.hero-description {
  font-size: 2.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin: 40px 0;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 50px;
  justify-content: center;
}

.profile-image-container {
  position: relative;
  animation: fadeIn 1.5s ease-out;
  width: clamp(320px, 32vw, 440px);
  height: clamp(320px, 32vw, 440px);
  margin-left: auto;
  margin-right: auto;
}

.profile-image-container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  /* border: 2px solid rgba(139, 17, 8, 0.3); */
  border-radius: 10%;
  z-index: -1;
  transform: translate(10px, 10px);
}

.profile-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10%;
  filter: drop-shadow(8px 8px 10px rgba(218, 25, 11, 0.316));
}

/* ==========================================================================
   Cyberpunk Button Style (UNIFIED)
   ========================================================================== */

.cybr-btn {
  --primary: black;
  --shadow-primary: rgba(139, 17, 8, 0.316);
  --primary-hue: 0;
  --primary-lightness: 50;
  --color: hsl(0, 0%, 93%);
  --font-size: 1.9rem;
  --shadow-primary-hue: 180;
  --label-size: 9px;
  --shadow-secondary-hue: 60;
  --shadow-secondary: hsl(var(--shadow-secondary-hue), 90%, 60%);
  --clip: polygon(
    0 0,
    100% 0,
    100% 100%,
    95% 100%,
    95% 90%,
    85% 90%,
    85% 100%,
    8% 100%,
    0 70%
  );
  --border: 4px;
  --shimmy-distance: 5;
  --clip-one: polygon(
    0 2%,
    100% 2%,
    100% 95%,
    95% 95%,
    95% 90%,
    85% 90%,
    85% 95%,
    8% 95%,
    0 70%
  );
  --clip-two: polygon(
    0 78%,
    100% 78%,
    100% 100%,
    95% 100%,
    95% 90%,
    85% 90%,
    85% 100%,
    8% 100%,
    0 78%
  );
  --clip-three: polygon(
    0 44%,
    100% 44%,
    100% 54%,
    95% 54%,
    95% 54%,
    85% 54%,
    85% 54%,
    8% 54%,
    0 54%
  );
  --clip-four: polygon(
    0 0,
    100% 0,
    100% 0,
    95% 0,
    95% 0,
    85% 0,
    85% 0,
    8% 0,
    0 0
  );
  --clip-five: polygon(
    0 0,
    100% 0,
    100% 0,
    95% 0,
    95% 0,
    85% 0,
    85% 0,
    8% 0,
    0 0
  );
  --clip-six: polygon(
    0 40%,
    100% 40%,
    100% 85%,
    95% 85%,
    95% 85%,
    85% 85%,
    85% 85%,
    8% 85%,
    0 70%
  );
  --clip-seven: polygon(
    0 63%,
    100% 63%,
    100% 80%,
    95% 80%,
    95% 80%,
    85% 80%,
    85% 80%,
    8% 80%,
    0 70%
  );

  font-family: "Cyber", sans-serif;
  color: white;
  cursor: pointer;
  background: transparent;
  text-transform: uppercase;
  font-size: var(--font-size);
  outline: transparent;
  letter-spacing: 2px;
  position: relative;
  font-weight: 700;
  border: 0;
  min-height: 75px;
  padding: 20px 40px;
  margin-bottom: 15px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.cybr-btn:hover {
  --primary: rgba(139, 17, 8, 0.316);
  --shadow-primary: white;
}

.cybr-btn:after,
.cybr-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: var(--clip);
  z-index: -1;
}

.cybr-btn:before {
  background: var(--shadow-primary);
  transform: translate(var(--border), 0);
}

.cybr-btn:after {
  background: var(--primary);
}

.cybr-btn__glitch {
  position: absolute;
  top: calc(var(--border) * -1);
  left: calc(var(--border) * -1);
  right: calc(var(--border) * -1);
  bottom: calc(var(--border) * -1);
  background: var(--shadow-primary);
  text-shadow: 2px 2px var(--shadow-primary), -2px -2px var(--shadow-secondary);
  clip-path: var(--clip);
  animation: glitch 2s infinite;
  display: none;
}

.cybr-btn:hover .cybr-btn__glitch {
  display: block;
}

.cybr-btn__glitch:before {
  content: "";
  position: absolute;
  top: calc(var(--border) * 1);
  right: calc(var(--border) * 1);
  bottom: calc(var(--border) * 1);
  left: calc(var(--border) * 1);
  clip-path: var(--clip);
  background: var(--primary);
  z-index: -1;
}

@keyframes glitch {
  0% {
    clip-path: var(--clip-one);
  }
  2%,
  8% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * -1%), 0);
  }
  6% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  9% {
    clip-path: var(--clip-two);
    transform: translate(0, 0);
  }
  10% {
    clip-path: var(--clip-three);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  13% {
    clip-path: var(--clip-three);
    transform: translate(0, 0);
  }
  14%,
  21% {
    clip-path: var(--clip-four);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  25% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  30% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * -1%), 0);
  }
  35%,
  45% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * -1%));
  }
  40% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * 1%));
  }
  50% {
    clip-path: var(--clip-six);
    transform: translate(0, 0);
  }
  55% {
    clip-path: var(--clip-seven);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  60% {
    clip-path: var(--clip-seven);
    transform: translate(0, 0);
  }
  31%,
  61%,
  100% {
    clip-path: var(--clip-four);
  }
}

/* ==========================================================================
   Scroll Indicator
   ========================================================================== */

.demo a {
  position: absolute;
  bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  display: inline-block;
  transform: translate(0, -50%);
  color: #fff;
  font: normal 400 22px/1 "Josefin Sans", sans-serif;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.demo a:hover {
  opacity: 0.7;
  transform: translate(0, -50%) scale(1.05);
}

#section05 a {
  padding-top: 70px;
}

#section05 a span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(-45deg);
  animation: sdb05 1.5s infinite;
  box-sizing: border-box;
}

@keyframes sdb05 {
  0% {
    transform: rotate(-45deg) translate(0, 0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(-45deg) translate(-20px, 20px);
    opacity: 0;
  }
}

@keyframes blink {
  from,
  to {
    background-color: transparent;
  }
  50% {
    background-color: rgb(240, 240, 240);
  }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

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

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

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section-title {
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(139, 17, 8, 0.8),
    rgba(139, 17, 8, 0.3)
  );
  margin: 20px auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
}

/* ==========================================================================
   Language Change Animation
   ========================================================================== */

@keyframes languageGlitch {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  10% {
    opacity: 0.8;
    transform: translateX(-5px) skew(-2deg);
  }
  20% {
    opacity: 0.6;
    transform: translateX(5px) skew(2deg);
  }
  30% {
    opacity: 0.4;
    transform: translateX(-3px) skew(-1deg);
  }
  40% {
    opacity: 0.5;
    transform: translateX(3px) skew(1deg);
  }
  50% {
    opacity: 0.3;
    transform: translateX(-2px) skew(-0.5deg);
  }
  60% {
    opacity: 0.2;
    transform: translateX(2px) skew(0.5deg);
  }
  70% {
    opacity: 0.1;
    transform: translateX(-1px);
  }
  80% {
    opacity: 0;
    transform: translateX(0) scaleY(0.1);
  }
  90% {
    opacity: 0.5;
    transform: translateX(0) scaleY(0.5);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scaleY(1);
  }
}

.language-transition {
  animation: none;
}

.language-transition.glitching {
  animation: textGlitchEffect 2s ease-in-out;
}

@keyframes textGlitchEffect {
  0%,
  100% {
    opacity: 1;
    text-shadow: none;
  }
  10% {
    opacity: 0.9;
    text-shadow: 2px 0 red, -2px 0 blue;
  }
  20% {
    opacity: 0.7;
    text-shadow: -2px 0 red, 2px 0 blue;
  }
  30% {
    opacity: 0.5;
    text-shadow: 3px 0 red, -3px 0 cyan;
  }
  40% {
    opacity: 0.6;
    text-shadow: -3px 0 cyan, 3px 0 red;
  }
  50% {
    opacity: 0.3;
    text-shadow: 2px 2px red, -2px -2px blue;
  }
  60% {
    opacity: 0.4;
    text-shadow: -2px 2px cyan, 2px -2px red;
  }
  70% {
    opacity: 0.2;
    text-shadow: 4px 0 red, -4px 0 blue;
  }
  80% {
    opacity: 0.1;
    text-shadow: none;
  }
  90% {
    opacity: 0.6;
    text-shadow: 1px 0 red, -1px 0 blue;
  }
}

.glitching {
  animation: textGlitchEffect 2s ease-in-out;
}

@keyframes nameFlash {
  0% {
    opacity: 1;
    transform: translateX(0) skewX(0deg) scaleX(1) scaleY(1);
    letter-spacing: 0;
    filter: blur(0);
    background-position: 0% 50%;
  }
  12% {
    opacity: 0.96;
    transform: translateX(-2px) skewX(-4deg) scaleX(1.03) scaleY(0.99);
    letter-spacing: 0.04em;
    filter: blur(0.25px);
    background-position: 35% 45%;
  }
  28% {
    opacity: 1;
    transform: translateX(3px) skewX(6deg) scaleX(1.05) scaleY(0.98);
    letter-spacing: 0.07em;
    filter: blur(0.35px);
    background-position: 70% 55%;
  }
  45% {
    opacity: 0.94;
    transform: translateX(-3px) skewX(-5deg) scaleX(1.04) scaleY(0.97);
    letter-spacing: 0.06em;
    filter: blur(0.4px);
    background-position: 50% 52%;
  }
  62% {
    opacity: 1;
    transform: translateX(2px) skewX(4deg) scaleX(1.03) scaleY(0.99);
    letter-spacing: 0.05em;
    filter: blur(0.3px);
    background-position: 85% 48%;
  }
  80% {
    opacity: 0.95;
    transform: translateX(-2px) skewX(-3deg) scaleX(1.02) scaleY(0.995);
    letter-spacing: 0.03em;
    filter: blur(0.2px);
    background-position: 60% 50%;
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(0deg) scaleX(1) scaleY(1);
    letter-spacing: 0;
    filter: blur(0);
    background-position: 0% 50%;
  }
}

/* ==========================================================================
   Section Scroll Offset (pour éviter que la navbar cache le contenu)
   ========================================================================== */

section {
  scroll-margin-top: 120px;
}

#works {
  scroll-margin-top: 120px;
}

#about {
  scroll-margin-top: 120px;
}

#contact-section {
  scroll-margin-top: 120px;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-text {
  font-size: 2.3rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */

.skill-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  padding: 40px 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 17, 8, 0.2);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 17, 8, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: rgba(139, 17, 8, 0.6);
  box-shadow: 0 10px 30px rgba(139, 17, 8, 0.3);
}

.skill-icon {
  font-size: 3.5rem;
  color: rgba(139, 17, 8, 0.8);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  transform: scale(1.2) rotate(5deg);
  color: rgba(139, 17, 8, 1);
}

.skill-card h4 {
  font-size: 2.4rem;
  color: #fff;
  margin: 15px 0 10px;
  font-weight: 600;
}

.skill-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.7rem;
  margin: 0;
}

/* ==========================================================================
   Projects Grid
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  justify-items: center;
  align-items: center;
}

.project-card {
  border-radius: 12px;
  padding: 30px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 17, 8, 0.2),
    rgba(0, 0, 0, 0.5)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 25px rgba(139, 17, 8, 0.4);
}

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

.project-image {
  max-width: 280px;
  max-height: 280px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.project-card:hover .project-image {
  filter: brightness(1.1);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

#contact-section {
  padding: 100px 0;
  background: #1a1410;
}

.contact-cta {
  text-align: center;
}

.contact-text {
  font-size: 2.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.contact-buttons {
  margin: 40px 0;
}

.contact-btn {
  display: inline-block;
  margin: 0 auto;
}

#site-footer {
  background: #0f0c08;
  color: #daa520;
  padding: 40px 0;
}

.footer-content {
  text-align: center;
  color: #daa520;
}

.social-links-section {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.social-link {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-link.github:hover {
  background: #333;
  border-color: #333;
}

.social-link.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.social-link.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-link.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  border-color: #e6683c;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

#about {
  padding: 100px 0;
  background: #0a0a0a;
}

#works {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.skills-container {
  margin-top: 60px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Desktop Layout - Row with text on left, image on right */
@media (min-width: 992px) {
  #block .row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
  }

  #imgdiv {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .hero-content {
    text-align: left;
    max-width: 100%;
  }

  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  #block .col-lg-4 {
    display: flex;
    align-items: center;
  }

  .profile-image-container {
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .profile-image {
    width: 100%;
    height: 100%;
    max-width: 440px;
    max-height: 600px;
  }
}

@media (max-width: 1100px) {
  #block {
    padding: 120px 20px 80px;
  }

  .hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-description {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    gap: 18px;
  }

  .profile-image-container {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  #block .row {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 30px;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
  }

  .profile-image-container {
    width: clamp(320px, 45vw, 420px);
    height: clamp(320px, 45vw, 420px);
    margin: 0 auto;
  }

  .name-text {
    font-size: 4.5rem;
  }

  .greeting-text {
    font-size: 2rem;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .hero-description {
    font-size: 1.6rem;
  }

  #text {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.6rem;
  }

  .about-text {
    font-size: 1.7rem;
  }

  .contact-text {
    font-size: 1.6rem;
  }

  .profile-image-container {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu a {
    font-size: 2rem;
  }

  /* Réorganiser l'ordre sur mobile: photo d'abord */
  #block .row {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }

  /* Photo plus petite et centrée */
  .profile-image-container {
    max-width: 300px;
    /* margin: 0 auto 10px auto; */
  }

  .profile-image {
    max-height: 300px;
  }

  /* Nom complet visible */
  .name-text {
    font-size: 4.5rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .greeting-text {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 4rem;
  }

  .section-subtitle {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 2rem;
    line-height: 1.6;
    margin: 25px 0;
  }

  #text {
    font-size: 2.2rem;
  }

  #cursor {
    height: 42px;
  }

  #typing-container {
    margin-bottom: 20px;
  }

  .about-text {
    font-size: 2.1rem;
  }

  .contact-text {
    font-size: 2rem;
  }

  .skill-card h4 {
    font-size: 2.2rem;
  }

  .skill-card p {
    font-size: 1.8rem;
  }

  .cybr-btn {
    --font-size: 1.8rem;
    padding: 20px 40px;
    min-height: 75px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    margin-top: 30px;
  }

  .cybr-btn {
    width: 100%;
  }

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

  .social-links-section {
    gap: 20px;
  }

  .social-link {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  /* Ajuster le padding du hero content */
  .hero-content {
    padding: 20px;
    text-align: center;
    margin: 0 auto;
  }

  /* Padding top pour éviter que navbar cache la photo */
  #block {
    padding-top: 100px;
  }
}

@media (max-width: 576px) {
  /* Photo encore plus petite sur très petit écran */
  .profile-image-container {
    max-width: 250px;
    margin: 0 auto 0px auto;
  }

  .profile-image {
    max-height: 250px;
  }

  /* Nom avec taille optimisée */
  .name-text {
    font-size: 3.5rem;
    line-height: 1.2;
  }

  .greeting-text {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 3.5rem;
  }

  #block {
    font-size: 6vmin;
    padding: 100px 15px 20px 15px;
  }

  #text {
    font-size: 1.9rem;
  }

  #cursor {
    height: 35px;
  }

  .hero-description {
    font-size: 1.8rem;
    line-height: 1.5;
    margin: 20px 0;
  }

  .about-text {
    font-size: 1.9rem;
  }

  .section-subtitle {
    font-size: 1.8rem;
  }

  .contact-text {
    font-size: 1.8rem;
  }

  .skill-card h4 {
    font-size: 2rem;
  }

  .skill-card p {
    font-size: 1.6rem;
  }

  .cybr-btn {
    --font-size: 1.6rem;
    padding: 18px 30px;
    min-height: 70px;
  }

  .social-link {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   Project Detail Pages Styles (preserved for compatibility)
   ========================================================================== */

.project-hero {
  background: #000;
  padding: 60px 0;
  text-align: center;
}

.project-hero img {
  max-height: 140px;
  width: auto;
}

.project-section {
  padding: 40px 0;
}

.feature-card {
  border: 1px solid #2b2b2b;
  background: #0f0f0f;
  color: #eee;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}

.tech-badge {
  display: inline-block;
  margin: 4px 6px;
  padding: 6px 10px;
  background: #222;
  color: #fff;
  border-radius: 16px;
  font-size: 0.9rem;
}

.screenshot {
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.project-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.project-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

#tesaCarousel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: 600px;
}

.carousel-inner,
.carousel-inner .item {
  height: 100%;
}

.carousel-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.dark-thumb {
  background: #0d0d0d;
  border: none;
}

.dark-modal {
  background: #111;
  border: none;
}

.dark-modal .modal-body {
  padding: 8px;
}

.dark-modal .close {
  color: #fff;
}

.dark-modal img {
  width: 100%;
  border-radius: 6px;
  display: block;
  margin-top: 6px;
}

.store-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.store-links img {
  max-height: 60px;
  transition: transform 0.3s ease;
}

.store-links img:hover {
  transform: scale(1.1);
}

iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 8px;
  margin-top: 30px;
}

@media (max-width: 767px) {
  .project-row {
    display: flex;
    flex-direction: column-reverse;
  }

  .thumbnail img {
    height: 500px;
    object-fit: contain;
  }

  #tesaCarousel {
    max-height: 420px;
  }

  .carousel-inner img {
    object-fit: contain;
    height: auto;
    max-height: 420px;
  }

  .feature-card {
    margin-bottom: 20px;
  }

  .store-links img {
    max-height: 50px;
  }

  iframe {
    height: 240px;
  }
}

/* ==========================================================================
   Project Pages Styles
   ========================================================================== */

/* Project Header Enhancement */
.project-wrapper {
  padding-top: 80px;
}

.project-hero {
  background: linear-gradient(135deg, #000 0%, #1a0505 50%, #000 100%);
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(139, 17, 8, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(139, 17, 8, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.project-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.project-logo-container {
  margin-bottom: 30px;
  animation: fadeInDown 1s ease-out;
}

.project-hero img {
  max-height: 180px;
  width: auto;
  filter: drop-shadow(0 10px 30px rgba(139, 17, 8, 0.5));
  transition: transform 0.3s ease;
}

.project-hero img:hover {
  transform: scale(1.05);
}

.project-hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin: 30px 0 20px;
  background: linear-gradient(135deg, #fff 0%, rgba(139, 17, 8, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.project-hero p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 900px;
  margin: 20px auto;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Section Styling */
.project-section {
  padding: 80px 0;
  background: #0a0a0a;
}

/* Enhanced Carousel */
.carousel-container {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(139, 17, 8, 0.2);
  position: relative;
  overflow: hidden;
}

.carousel-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(139, 17, 8, 0.05) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

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

#carousel {
  position: relative;
  z-index: 1;
}

.carousel-inner {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-inner img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  background: #000;
}

.carousel-control {
  background: none;
  width: 50px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.carousel-control:hover {
  opacity: 1;
}

.carousel-indicators {
  bottom: -40px;
}

.carousel-indicators li {
  background-color: rgba(139, 17, 8, 0.5);
  border: 1px solid rgba(139, 17, 8, 0.8);
}

.carousel-indicators .active {
  background-color: rgba(139, 17, 8, 0.9);
}

/* Enhanced Feature Cards */
.feature-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(139, 17, 8, 0.3);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 17, 8, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 17, 8, 0.6);
  box-shadow: 0 15px 40px rgba(139, 17, 8, 0.3);
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card h3 {
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.feature-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, rgba(139, 17, 8, 0.9), transparent);
  border-radius: 2px;
}

.feature-card h4 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-card p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.feature-card ul {
  padding-left: 20px;
  margin: 0;
}

.feature-card li {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  line-height: 1.6;
  position: relative;
  padding-left: 10px;
}

.feature-card li::before {
  content: "▹";
  position: absolute;
  left: -15px;
  color: rgba(139, 17, 8, 0.9);
  font-size: 1.6rem;
}

/* Tech Badges Enhancement */
.tech-badge {
  display: inline-block;
  margin: 6px 8px 6px 0;
  padding: 10px 18px;
  background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
  color: #fff;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 500;
  border: 1px solid rgba(139, 17, 8, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.tech-badge:hover {
  background: linear-gradient(135deg, rgba(139, 17, 8, 0.3) 0%, #222 100%);
  border-color: rgba(139, 17, 8, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 17, 8, 0.3);
}

/* Gallery Section */
.gallery-section {
  margin-top: 60px;
}

.gallery-title {
  font-size: 3rem;
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
}

.gallery-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 17, 8, 0.9),
    transparent
  );
  border-radius: 2px;
}

.thumbnail {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(139, 17, 8, 0.2);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.thumbnail:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 17, 8, 0.6);
  box-shadow: 0 15px 40px rgba(139, 17, 8, 0.3);
}

.thumbnail img {
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.thumbnail:hover img {
  transform: scale(1.05);
}

/* Divider Enhancement */
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 17, 8, 0.5),
    transparent
  );
  margin: 60px 0;
}

/* Modal Enhancement */
.modal-content {
  background: #0a0a0a;
  border: 1px solid rgba(139, 17, 8, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-body {
  padding: 20px;
}

.modal-body .close {
  color: #fff;
  opacity: 0.8;
  font-size: 2.5rem;
  font-weight: 300;
  transition: all 0.3s ease;
}

.modal-body .close:hover {
  opacity: 1;
  color: rgba(139, 17, 8, 0.9);
  transform: scale(1.1);
}

#modalImage {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-image-display {
  width: 100%;
  display: block;
  margin-top: 6px;
}

.feature-card-center {
  text-align: center;
}

/* 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);
  }
}

/* Video Section (from espritApp.html) */
.video-section {
  margin-top: 60px;
}

.video-title {
  font-size: 3rem;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
}

.video-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 17, 8, 0.9),
    transparent
  );
  border-radius: 2px;
}

iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 15px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(139, 17, 8, 0.3);
}

/* Site Link Enhancement (from thelandlord.html) */
a.site-link {
  color: #00aaff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

a.site-link:hover {
  color: #33ccff;
  transform: translateY(-2px);
}

/* Responsive Design for Project Pages */
@media (max-width: 991px) {
  .project-hero h1 {
    font-size: 3.5rem;
  }

  .project-hero p {
    font-size: 1.4rem;
  }

  .gallery-title,
  .video-title {
    font-size: 2.5rem;
  }

  .feature-card h3 {
    font-size: 2rem;
  }

  .feature-card h4 {
    font-size: 1.6rem;
  }

  iframe {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .project-wrapper {
    padding-top: 60px;
  }

  .project-hero {
    padding: 80px 15px 60px;
  }

  .project-hero h1 {
    font-size: 2.8rem;
    margin: 20px 0 15px;
  }

  .project-hero p {
    font-size: 1.3rem;
  }

  .project-hero img {
    max-height: 140px;
  }

  .project-section {
    padding: 60px 0;
  }

  .carousel-container {
    padding: 20px;
    margin-bottom: 30px;
  }

  .carousel-inner img {
    max-height: 450px;
  }

  .feature-card {
    padding: 25px;
    margin-bottom: 20px;
  }

  .gallery-title,
  .video-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .tech-badge {
    font-size: 1rem;
    padding: 8px 14px;
  }

  iframe {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .project-hero h1 {
    font-size: 2.3rem;
    letter-spacing: 2px;
  }

  .project-hero p {
    font-size: 1.2rem;
  }

  .gallery-title,
  .video-title {
    font-size: 2rem;
  }

  .feature-card h3 {
    font-size: 1.8rem;
  }

  .feature-card h4 {
    font-size: 1.5rem;
  }

  .feature-card p,
  .feature-card li {
    font-size: 1.3rem;
  }

  iframe {
    height: 250px;
  }
}

/* ===========================
   Gallery Section Styles
   =========================== */

.gallery-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1410 100%);
}

.gallery-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
}

.gallery-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #8b1108 0%, #d32f2f 100%);
  margin: 20px auto 0;
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: #1a1a1a;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(139, 17, 8, 0.2);
  aspect-ratio: 16/9;
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 17, 8, 0.3) 0%,
    rgba(211, 47, 47, 0.2) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(139, 17, 8, 0.6);
  box-shadow: 0 15px 40px rgba(139, 17, 8, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: "\f00e";
  font-family: "FontAwesome";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3rem;
  color: #fff;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 20px rgba(139, 17, 8, 0.8);
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

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

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gallery-modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(139, 17, 8, 0.5);
}

.gallery-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 10px;
  line-height: 1;
}

.gallery-modal-close:hover {
  color: #8b1108;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-nav:hover {
  background: rgba(139, 17, 8, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.gallery-modal-prev {
  left: 20px;
}

.gallery-modal-next {
  right: 20px;
}

/* Responsive Gallery */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-title {
    font-size: 2.3rem;
  }

  .gallery-modal-nav {
    font-size: 40px;
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 767px) {
  .gallery-section {
    padding: 60px 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-title {
    font-size: 2rem;
    margin-bottom: 35px;
  }

  .gallery-item::after {
    font-size: 2rem;
  }

  .gallery-modal-nav {
    font-size: 35px;
    width: 50px;
    height: 50px;
    padding: 15px;
  }

  .gallery-modal-prev {
    left: 10px;
  }

  .gallery-modal-next {
    right: 10px;
  }

  .gallery-modal-close {
    top: -40px;
    font-size: 35px;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-title {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .gallery-modal-content {
    max-width: 95%;
  }
}
