* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FFE81F;
  --secondary-color: #FFC500;
  --accent-color: #4169E1;
  --dark-bg: #000000;
  --card-bg: rgba(0, 0, 0, 0.6);
  --text-primary: #FFE81F;
  --text-secondary: #C0C0C0;
  --blue-saber: #00D4FF;
  --green-saber: #00FF00;
  --purple-saber: #9D00FF;
  --red-saber: #FF0000;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================================
   BACKGROUND ANIMATION
   ============================================ */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.stars, .stars2, .stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.stars {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 60px 70px, #fff, transparent),
    radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
    radial-gradient(1px 1px at 130px 80px, #fff, transparent),
    radial-gradient(2px 2px at 90px 10px, #fff, transparent);
  background-size: 200px 200px;
  animation: moveStars 100s linear infinite;
}

.stars2 {
  background-image: 
    radial-gradient(1px 1px at 10px 10px, #eee, transparent),
    radial-gradient(1px 1px at 150px 150px, #fff, transparent);
  background-size: 250px 250px;
  animation: moveStars 150s linear infinite;
}

.stars3 {
  background-image: 
    radial-gradient(1px 1px at 75px 125px, #fff, transparent);
  background-size: 300px 300px;
  animation: moveStars 200s linear infinite;
}

@keyframes moveStars {
  from { transform: translateY(0); }
  to { transform: translateY(-2000px); }
}

/* ============================================
   STAR WARS INTRO
   ============================================ */
.star-wars-intro {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 3000;
  overflow: hidden;
}

.intro-container {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 400px;
}

.stars-intro, .stars-intro2, .stars-intro3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.stars-intro {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 60px 70px, #fff, transparent),
    radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
    radial-gradient(1px 1px at 130px 80px, #fff, transparent),
    radial-gradient(2px 2px at 90px 10px, #fff, transparent);
  background-size: 200px 200px;
  animation: moveStars 100s linear infinite;
}

.stars-intro2 {
  background-image: 
    radial-gradient(1px 1px at 10px 10px, #eee, transparent),
    radial-gradient(1px 1px at 150px 150px, #fff, transparent);
  background-size: 250px 250px;
  animation: moveStars 150s linear infinite;
}

.stars-intro3 {
  background-image: 
    radial-gradient(1px 1px at 75px 125px, #fff, transparent);
  background-size: 300px 300px;
  animation: moveStars 200s linear infinite;
}

.intro-text-initial {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #4a9eff;
  font-size: 1.3rem;
  text-align: center;
  font-style: italic;
  letter-spacing: 3px;
  animation: fadeInOutIntro 6s ease-in-out forwards;
  z-index: 15;
  padding: 0 20px;
}

@keyframes fadeInOutIntro {
  0% { opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  animation: logoAppearNew 4s ease-in-out 6s forwards;
  opacity: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes logoAppearNew {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
  }
  20% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  90% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}

.star-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.star-logo svg {
  width: 100%;
  height: auto;
  max-width: 900px;
  display: block;
  margin: 0 auto;
}

.star-logo text {
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: 110px;
  fill: none;
  stroke: #FFE81F;
  stroke-width: 5;
  letter-spacing: 2px;
}

.crawl-container {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  perspective: 400px;
  animation: startCrawlNew 50s linear 10s forwards;
  opacity: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes startCrawlNew {
  0% {
    opacity: 0;
    top: 100%;
  }
  5% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    top: -400%;
  }
}

.crawl {
  transform-origin: 50% 100%;
  transform: rotateX(25deg);
  text-align: center;
  color: #FFE81F;
  font-size: 22px;
  line-height: 1.8;
  font-weight: 500;
  max-width: 650px;
  margin: 0 auto;
  padding: 0 40px;
}

.crawl .title {
  text-align: center;
  margin-bottom: 80px;
}

.crawl .title p {
  font-size: 24px;
  color: #4a9eff;
  margin-bottom: 20px;
  letter-spacing: 8px;
  text-align: center;
}

.crawl .title h1 {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 90px;
  font-weight: 900;
  letter-spacing: 12px;
  margin: 0;
  color: #FFE81F;
  text-align: center;
}

.intro-text {
  margin-bottom: 50px;
  text-shadow: 0 0 10px rgba(255, 232, 31, 0.3);
  text-align: justify;
}


.welcome {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f172a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.5s ease;
}

.welcome-content {
  text-align: center;
  animation: fadeInUp 1s ease;
}

.logo-welcome {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  font-weight: bold;
  margin: 0 auto 30px;
  position: relative;
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.5);
  animation: pulse 2s infinite;
}

.logo-welcome::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  opacity: 0.3;
  animation: rotate 3s linear infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.welcome-title {
  font-size: 2.5em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1em;
}

.enter-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: none;
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.enter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  z-index: 1000;
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 15px 50px;
  background: rgba(10, 10, 10, 0.95);
}

.logo-text {
  font-weight: 700;
  font-size: 1.3em;
  letter-spacing: 2px;
  flex: 1;
}

.logo-text .highlight {
  color: var(--primary-color);
  font-size: 1.2em;
}

.menu {
  display: flex;
  gap: 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.lang-btn {
  background: rgba(255, 232, 31, 0.1);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  font-size: 0.9em;
}

.lang-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.lang-btn i {
  font-size: 1.1em;
}

.menu-btn {
  display: none;
  cursor: pointer;
  font-size: 1.5em;
  color: var(--primary-color);
}

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 3em;
  margin-bottom: 60px;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 232, 31, 0.5);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  animation: fadeInUp 1s ease;
}

.hero-logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4em;
  font-weight: 700;
  margin: 0 auto 30px;
  position: relative;
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.5);
  animation: float 3s ease-in-out infinite;
}

.logo-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  opacity: 0.3;
  animation: rotate 4s linear infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.5em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.hero-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 1em;
  cursor: pointer;
  border: none;
  font-family: "Poppins", sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.scroll-indicator {
  margin-top: 60px;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 2em;
  color: var(--primary-color);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

/* ============================================
   GLASS CARD EFFECT
   ============================================ */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 232, 31, 0.3);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 232, 31, 0.2);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 232, 31, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 232, 31, 0.6);
  box-shadow: 0 20px 60px rgba(255, 232, 31, 0.4);
}

.glass-card:hover::before {
  top: 100%;
  left: 100%;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.mt-2 {
  margin-top: 15px;
}

.education-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.education-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.education-item h4 {
  font-size: 1.3em;
  margin-bottom: 5px;
}

.date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 5px;
}

.spec {
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 5px;
}


.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  margin-bottom: 20px;
}

.skill-card h3 {
  font-size: 1.5em;
  margin-bottom: 25px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: visible;
  position: relative;
}

.skill-progress {
  height: 100%;
  border-radius: 10px;
  transition: width 1.5s ease;
  position: relative;
  width: 0;
}

/* Lightsaber Effects */
.lightsaber {
  box-shadow: 0 0 3px currentColor, 0 0 6px currentColor;
  animation: lightsaberGlow 2s ease-in-out infinite;
}

.lightsaber::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  animation: lightsaberTip 1s ease-in-out infinite;
}

@keyframes lightsaberGlow {
  0%, 100% { 
    box-shadow: 0 0 3px currentColor, 0 0 6px currentColor;
  }
  50% { 
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  }
}

@keyframes lightsaberTip {
  0%, 100% { 
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  }
  50% { 
    box-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
  }
}

.lightsaber.blue {
  background: var(--blue-saber);
  color: var(--blue-saber);
}

.lightsaber.green {
  background: var(--green-saber);
  color: var(--green-saber);
}

.lightsaber.purple {
  background: var(--purple-saber);
  color: var(--purple-saber);
}

.lightsaber.red {
  background: var(--red-saber);
  color: var(--red-saber);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-image-link {
  display: block;
  text-decoration: none;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59, 130, 246, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-overlay i {
  font-size: 3em;
  color: white;
}

.overlay-text {
  color: white;
  font-size: 1.2em;
  font-weight: 600;
}

.project-image-link:hover .project-image img {
  transform: scale(1.1);
}

.project-image-link:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 232, 31, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 232, 31, 0.3);
}

.project-link-demo {
  background: rgba(65, 105, 225, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.project-link-demo:hover {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
}

.project-link i {
  font-size: 1.2em;
}


.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-card {
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  margin: 0 auto 20px;
}

.contact-card h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--text-secondary);
}


footer {
  text-align: center;
  padding: 40px 20px;
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid rgba(96, 165, 250, 0.2);
}

footer p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}


@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
    .timeline-icon {
    left: -50px;
    width: 50px;
    height: 50px;
    font-size: 1.2em;
  }

  .timeline-item::before {
    left: -25px;
  }

  .timeline-item {
    padding: 30px 20px;
  }
  }

  .menu {
    display: none;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    gap: 15px;
    min-width: 200px;
  }

  .menu.show {
    display: flex;
    animation: slideIn 0.3s ease;
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.5em;
  }

  .hero-subtitle {
    font-size: 1.2em;
  }

  .section-title {
    font-size: 2.2em;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .intro-text-initial {
    font-size: 1rem;
  }

  .star-logo svg {
    max-width: 95vw;
  }

  .crawl {
    font-size: 18px;
    max-width: 90%;
    padding: 0 20px;
  }

  .crawl .title h1 {
    font-size: 60px;
  }

  .crawl .title p {
    font-size: 18px;
  }

  .lang-btn {
    padding: 6px 12px;
    font-size: 0.85em;
  }

  .nav-actions {
    gap: 10px;
  }
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 232, 31, 0.4);
  transform: translateY(-2px);
}


.project-card {
  transition: all 0.5s ease; 
}

.project-card.hide {
  display: none;

.project-card.show {
  display: block;
  animation: fadeInProject 0.5s ease forwards;
}

@keyframes fadeInProject {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
}
/* --- RESET INTRO STAR WARS (FORCE POSITION) --- */

.crawl-container {
    display: flex;
    justify-content: center;
    height: 100%;
    perspective: 350px; /* Perspective ajustée */
    overflow: hidden;
    position: relative;
}

.crawl {
    position: relative;
    width: 90%; /* Largeur du texte */
    margin: 0 auto;
    font-weight: 700;
    color: #feda4a;
    text-align: justify;
    opacity: 0; /* Caché par défaut */
    transform-origin: 50% 100%;
    /* Pas d'animation au chargement, le JS va la mettre */
    animation: none; 
}

/* La classe qui lance tout */
.crawl.start-now {
    opacity: 1; /* Apparition immédiate */
    animation: crawlForce 60s linear forwards;
}

@keyframes crawlForce {
    0% {
        /* LE SECRET EST ICI : */
        top: 80%; /* On commence DANS l'écran (pas en dessous) */
        transform: rotateX(25deg) translateZ(0);
        opacity: 0; 
    }
    2% {
        opacity: 1; /* Il devient visible en une fraction de seconde */
    }
    100% {
        top: -3000px; /* Il finit très haut */
        transform: rotateX(25deg) translateZ(-1000px);
        opacity: 1;
    }
}
