/* Miraculous Theme - Variables */
:root {
  --ladybug-red: #F80000;
  --ladybug-red-light: #FF3333;
  --cat-noir-black: #111111;
  --cat-noir-green: #ADFD00;
  --cat-noir-green-light: #C2FF33;
  --marinette-pink: #F078A8;
  --adrien-yellow: #FFD66B;
  --background-dark: #0F0F1A;
  --text-light: #FFFFFF;
  --text-dark: #222222;
  --shadow-light: rgba(255, 255, 255, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
  --fr-blue: #0055A4;
  --fr-white: #FFFFFF;
  --fr-red: #EF4135;
  --pl-white: #FFFFFF;
  --pl-red: #DC143C;
  --en-blue: #00247D;
  --en-white: #FFFFFF;
  --en-red: #CF142B;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-light);
  background-color: var(--background-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background Styles */
.miraculous-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, var(--ladybug-red) 8px, transparent 8px),
    radial-gradient(circle, var(--cat-noir-green) 5px, transparent 5px),
    radial-gradient(circle, var(--marinette-pink) 3px, transparent 3px);
  background-size: 100px 100px, 80px 80px, 60px 60px;
  background-position: 0 0, 40px 40px, 20px 20px;
  opacity: 0.05;
  z-index: -1;
}

/* Language Switcher */
.language-panel {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
  background-color: rgba(15, 15, 26, 0.7);
  padding: 8px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--ladybug-red);
}

.lang-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.lang-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: -1;
  transition: opacity 0.3s;
}

.lang-button:hover {
  transform: scale(1.1);
}

.lang-button.active {
  transform: scale(1.1);
  box-shadow: 0 0 15px currentColor;
  border: 2px solid white;
}

.lang-button.active::after {
  opacity: 0.8;
}

.lang-button.pl {
  background: linear-gradient(180deg,rgba(255, 255, 255, 1) 50%, rgba(255, 0, 0, 1) 50%);;
}

.lang-button.en {
  background-image:url("https://flagcdn.com/w80/gb.png");
   background-repeat: no-repeat;
  background-position-x: center;
    background-position-y: center;
	
  background-color: var(--en-blue);
}

.lang-button.fr {
  background: linear-gradient(to right, var(--fr-blue) 33%, var(--fr-white) 33%, var(--fr-white) 66%, var(--fr-red) 66%);
}


/* Kwami Navigation */
.kwami-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kwami {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.kwami img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}

.kwami.tikki {
  border: 2px solid var(--ladybug-red);
}

.kwami.plagg {
  border: 2px solid var(--cat-noir-green);
}

.kwami.trixx {
  border: 2px solid #FF8C00;
}

.kwami.pollen {
  border: 2px solid #FFCC00;
}

.kwami.wayzz {
  border: 2px solid #00A86B;
}

.kwami:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  animation: kwami-wiggle 0.5s ease;
}

@keyframes kwami-wiggle {
  0%, 100% { transform: translateY(-5px) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-10deg); }
  75% { transform: translateY(-5px) rotate(10deg); }
}

/* Hero Section - Miraculous Box */
.miraculous-box {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1A1A2F 0%, #13131F 100%);
  position: relative;
  overflow: hidden;
}

.miraculous-box::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background-image: 
    radial-gradient(circle, var(--ladybug-red) 8px, transparent 8px);
  background-size: 100px 100px;
  background-position: 0 0;
  opacity: 0.1;
  animation: rotateBackground 120s linear infinite;
  pointer-events: none;
}

@keyframes rotateBackground {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.inner-box {
  background: rgba(15, 15, 26, 0.8);
  border-radius: 20px;
  padding: 60px;
  width: 90%;
  max-width: 600px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 0 30px rgba(248, 0, 0, 0.3),
    0 0 60px rgba(173, 253, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 3px solid;
  border-image: linear-gradient(45deg, var(--ladybug-red), var(--cat-noir-green)) 1;
  position: relative;
  z-index: 2;
}

.profile-container {
  position: relative;
  margin-bottom: 30px;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 4px solid #fff;
  box-shadow: 
    0 0 0 4px var(--ladybug-red),
    0 0 0 8px var(--cat-noir-green),
    0 0 30px rgba(255, 255, 255, 0.5);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-image:hover img {
  transform: scale(1.1);
}

.profile-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 5px dotted var(--ladybug-red);
  animation: spinBorder 20s linear infinite;
  pointer-events: none;
}

@keyframes spinBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.miraculous-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 10px;
  text-shadow: 
    0 0 10px rgba(248, 0, 0, 0.7),
    0 0 20px rgba(173, 253, 0, 0.5);
  letter-spacing: 2px;
}

.miraculous-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-weight: 400;
}

.miraculous-socials {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.social-icon.ladybug {
  background-color: var(--ladybug-red);
  color: white;
  box-shadow: 0 0 10px var(--ladybug-red);
}

.social-icon.cat {
  background-color: var(--cat-noir-black);
  color: var(--cat-noir-green);
  box-shadow: 0 0 10px var(--cat-noir-green);
}

.social-icon:hover {
  transform: scale(1.2) rotate(10deg);
}

.social-icon.ladybug:hover {
  box-shadow: 0 0 20px var(--ladybug-red);
}

.social-icon.cat:hover {
  box-shadow: 0 0 20px var(--cat-noir-green);
}

.miraculous-status {
  background-color: rgba(248, 0, 0, 0.2);
  border-radius: 30px;
  padding: 10px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ladybug-red);
}

.heart-icon {
  font-size: 1.5rem;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Section Styles */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 3rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.section-title.ladybug {
  color: var(--ladybug-red);
  text-shadow: 0 0 10px rgba(248, 0, 0, 0.5);
}

.section-title.cat {
  color: var(--cat-noir-green);
  text-shadow: 0 0 10px rgba(173, 253, 0, 0.5);
}

.section-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* About Section */
.about-section {
  background-color: rgba(15, 15, 26, 0.7);
  position: relative;
}

.about-image {
  flex: 1;
  max-width: 1000px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 
    0 0 0 3px var(--ladybug-red),
    0 10px 30px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.about-image:hover {
  transform: rotate(0deg) scale(1.05);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  flex: 2;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 20px;
}

.about-text .quote {
  font-style: italic;
  color: var(--ladybug-red-light);
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--ladybug-red);
}

/* Fanfic Section */
.fanfic-section {
  background-color: rgba(15, 15, 26, 0.4);
  position: relative;
}

.fanfic-card {
  display: flex;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.8), rgba(25, 25, 40, 0.8));
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--cat-noir-green);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fanfic-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(173, 253, 0, 0.2);
}

.fanfic-image {
  flex: 1;
  max-width: 300px;
}

.fanfic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fanfic-card:hover .fanfic-image img {
  transform: scale(1.1);
}

.fanfic-info {
  flex: 2;
  padding: 30px;
}

.fanfic-info h3 {
  color: var(--cat-noir-green);
  font-size: 2rem;
  margin-bottom: 15px;
}

.fanfic-info p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.miraculous-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--cat-noir-green), var(--cat-noir-green-light));
  color: var(--text-dark);
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(173, 253, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.miraculous-button::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: left 0.7s;
}

.miraculous-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(173, 253, 0, 0.5);
}

.miraculous-button:hover::before {
  left: 100%;
}

/* Music Section */
.music-section {
  background-color: rgba(15, 15, 26, 0.7);
}

.featured-song {
  display: flex;
  background: linear-gradient(135deg, rgba(248, 0, 0, 0.1), rgba(248, 0, 0, 0.2));
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--ladybug-red);
}

.song-artwork {
  position: relative;
  flex: 1;
  max-width: 300px;
  overflow: hidden;
}

.song-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.song-artwork:hover img {
  transform: scale(1.1);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(248, 0, 0, 0.8);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

.song-artwork:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.song-details {
  flex: 2;
  padding: 30px;
}

.song-details h3 {
  color: var(--ladybug-red-light);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.spotify-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #1DB954;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 20px;
  transition: transform 0.3s;
}

.spotify-button:hover {
  transform: translateY(-3px);
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.song-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.song-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.song-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 20px;
  transform: translateY(40px);
  transition: transform 0.3s;
}

.song-card:hover {
  transform: translateY(-5px);
}

.song-card:hover img {
  transform: scale(1.1);
}

.song-card:hover .song-overlay {
  transform: translateY(0);
}

.song-overlay h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.song-overlay a {
  color: #1DB954;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.song-overlay a:hover {
  color: #1ED760;
}

/* Characters Section */
.characters-section {
  background-color: rgba(15, 15, 26, 0.4);
}

.character-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.character-card {
  position: relative;
  width: 300px;
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
}

.character-card .card-front,
.character-card .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.character-card .card-front {
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
  border: 2px solid;
}

.character-card .card-back {
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(30,30,50,0.8));
  transform: rotateY(180deg);
  padding: 20px;
  justify-content: center;
  gap: 10px;
  border: 2px solid;
}

.character-card:hover .card-front {
  transform: rotateY(180deg);
}

.character-card:hover .card-back {
  transform: rotateY(0);
}

.character-card.marinette .card-front {
  border-color: var(--marinette-pink);
}

.character-card.marinette .card-back {
  border-color: var(--ladybug-red);
}

.character-card.adrien .card-front {
  border-color: var(--adrien-yellow);
}

.character-card.adrien .card-back {
  border-color: var(--cat-noir-green);
}

.character-card img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.card-front h3 {
  margin-top: 15px;
  font-size: 1.5rem;
}

.transform-icon {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-bottom: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.hero-image {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid white;
}

.card-back h3 {
  font-size: 1.5rem;
  margin-top: 10px;
}

.card-back p {
  font-style: italic;
  margin-top: 10px;
}

.marinette .transform-icon {
  background-color: var(--marinette-pink);
  box-shadow: 0 0 10px var(--marinette-pink);
}

.adrien .transform-icon {
  background-color: var(--adrien-yellow);
  box-shadow: 0 0 10px var(--adrien-yellow);
}

/* Footer */
footer {
  background-color: rgba(10, 10, 20, 0.9);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.miraculous-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, var(--ladybug-red) 2px, transparent 2px),
    radial-gradient(circle, var(--cat-noir-green) 2px, transparent 2px);
  background-size: 30px 30px, 30px 30px;
  background-position: 0 0, 15px 15px;
  opacity: 0.1;
  pointer-events: none;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.miraculous-logo {
  margin-bottom: 20px;
}

.miraculous-logo img {
  max-width: 200px;
  height: auto;
}

/* SVG Signature */
.kuni-signature {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 100px;
  height: 40px;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.kuni-signature:hover {
  opacity: 1;
  transform: scale(1.2);
}

.kuni-path {
  fill: none;
  stroke: var(--ladybug-red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: signatureAnimation 4s ease forwards;
}

@keyframes signatureAnimation {
  to {
    stroke-dashoffset: 0;
  }
}

/* Animation Effects */
.transformation-effect {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 0, 0, 0.8) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  animation: transform-circle 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes transform-circle {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(40);
    opacity: 0;
  }
}

/* Language Flag Animation */
.lang-button.active {
  animation: pulse-flag 2s infinite;
}

@keyframes pulse-flag {
  0%, 100% { box-shadow: 0 0 10px currentColor; }
  50% { box-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
}

/* Language Content Transition */
.lang-content {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.lang-content.hidden {
  opacity: 0;
  transform: translateY(20px);
  position: absolute;
  pointer-events: none;
}

.lang-content.visible {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* Responsive adjustments for language panel */
@media (max-width: 768px) {
  .language-panel {
    top: auto;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .butterfly-panel {
    flex-direction: row;
  }
}