/* ========== ABOUT PAGE SPECIFIC STYLES ========== */
:root {
  --about-primary: #191970;
  --about-accent: #ffd700;
  --about-text: #333333;
  --about-bg: #ffffff;
  --about-light-bg: #f8f9fa;
  --about-border: #e0e0e0;
  --about-shadow: rgba(0, 0, 0, 0.1);
  --about-gradient: linear-gradient(135deg, #191970, #2a2a9a);
  --about-accent-gradient: linear-gradient(135deg, #ffd700, #ffec80);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-secondary: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Enhanced Dark Mode Variables with Deep, Glittery Gold */
@media (prefers-color-scheme: dark) {
  :root {
    /* Deep, rich gold base color */
    --about-primary: #a67c00; /* Deeper gold base color */
    --about-accent: #191970; /* Keep midnight blue as accent */
    --about-text: #ffffff; /* Keep text white in dark mode */
    --about-bg: #121212;
    --about-light-bg: #1e1e1e;
    --about-border: #333333;
    --about-shadow: rgba(0, 0, 0, 0.3);

    /* Luxurious deep gold gradient with multiple color stops for depth and wave effect */
    --about-gradient: linear-gradient(
      135deg,
      #704700 0%,
      #a67c00 20%,
      #d4af37 40%,
      #f9df85 50%,
      #d4af37 60%,
      #a67c00 80%,
      #704700 100%
    );

    /* Sophisticated accent gradient */
    --about-accent-gradient: linear-gradient(135deg, #191970, #2a2a9a);
  }

  /* Add glittery effect to gold elements */
  .profile-name,
  .section-title,
  .card-title,
  .skill-content h4,
  .timeline-title {
    background: linear-gradient(
      90deg,
      #704700,
      #a67c00,
      #d4af37,
      #f9df85,
      #d4af37,
      #a67c00,
      #704700
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: goldShimmer 8s linear infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
  }

  /* Add glitter sparkle effect */
  .profile-name::before,
  .section-title::before,
  .card-title::before,
  .skill-content h4::before,
  .timeline-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
        circle at 20% 30%,
        rgba(249, 223, 133, 0.7) 0.1%,
        transparent 0.5%
      ),
      radial-gradient(
        circle at 50% 70%,
        rgba(249, 223, 133, 0.5) 0.1%,
        transparent 0.5%
      ),
      radial-gradient(
        circle at 80% 10%,
        rgba(249, 223, 133, 0.7) 0.1%,
        transparent 0.5%
      ),
      radial-gradient(
        circle at 10% 90%,
        rgba(249, 223, 133, 0.5) 0.1%,
        transparent 0.5%
      );
    background-size: 150% 150%;
    mix-blend-mode: overlay;
    animation: glitterEffect 6s ease-in-out infinite alternate;
    pointer-events: none;
  }

  /* Gold elements with metallic wave effect */
  .skill-icon,
  .timeline-item::after,
  .profile-image-border {
    background: var(--about-gradient);
    background-size: 200% 200%;
    animation: goldWave 12s ease infinite;
    border-color: #a67c00 !important;
    position: relative;
    overflow: hidden;
  }

  /* Add wave overlay effect */
  .skill-icon::after,
  .timeline-item::after::after,
  .profile-image-border::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0) 100%
    );
    animation: waveEffect 8s linear infinite;
    pointer-events: none;
  }

  /* Enhanced gold accents with deeper tones */
  .divider {
    background: linear-gradient(
      to right,
      rgba(112, 71, 0, 0.1),
      rgba(166, 124, 0, 0.3),
      rgba(212, 175, 55, 0.5),
      rgba(249, 223, 133, 0.8),
      rgba(212, 175, 55, 0.5),
      rgba(166, 124, 0, 0.3),
      rgba(112, 71, 0, 0.1)
    ) !important;
  }

  .divider::after {
    background: linear-gradient(
      90deg,
      transparent,
      rgba(249, 223, 133, 0.8),
      transparent
    ) !important;
  }

  /* Add subtle gold texture overlay to elements */
  .profile-card::before,
  .info-card::before,
  .quote-card::before {
    background: var(--about-gradient);
    opacity: 0.05;
    background-size: 200% 200%;
    animation: goldWave 15s ease infinite;
  }

  /* Timeline enhancements with deeper gold */
  .timeline::after {
    background: linear-gradient(
      to bottom,
      #704700,
      #a67c00,
      #d4af37,
      #f9df85,
      #d4af37,
      #a67c00,
      #704700
    ) !important;
  }

  /* Gold hover effects with deeper tones */
  .skill-item:hover .skill-content h4,
  .timeline-content:hover .timeline-title,
  .quote-card:hover blockquote cite,
  .info-list li:hover span {
    color: #f9df85 !important;
    text-shadow: 0 0 10px rgba(249, 223, 133, 0.3);
    animation: goldPulse 2s ease infinite alternate;
  }

  /* Enhanced gold backgrounds with deeper tones */
  .motto-container,
  .quote-card {
    background: linear-gradient(
      135deg,
      rgba(112, 71, 0, 0.05),
      rgba(166, 124, 0, 0.08),
      rgba(212, 175, 55, 0.05)
    ) !important;
    border-left-color: #a67c00 !important;
  }

  /* Timeline date enhancement with deeper gold */
  .timeline-date {
    background: linear-gradient(
      90deg,
      rgba(112, 71, 0, 0.1),
      rgba(166, 124, 0, 0.15)
    ) !important;
    color: #f9df85 !important;
  }

  /* Add professional gold glow to important elements */
  .profile-card:hover,
  .info-card:hover,
  .quote-card:hover,
  .timeline-content:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(166, 124, 0, 0.1) !important;
  }

  /* Pattern adjustment for deeper gold */
  .profile-section::before {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a67c00' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
}

/* Hero Section */
.about-hero {
  height: 40vh;
  min-height: 300px;
  background: var(--about-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 80px; /* Account for fixed header */
  animation: gradientShift 15s ease infinite alternate;
  background-size: 200% 200%; /* Ensure gradient animation works properly */
}

/* Ensure header remains solid color in about page */
@media (prefers-color-scheme: dark) {
  .header {
    background-color: var(
      --primary
    ) !important; /* Force gold color in dark mode */
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3); /* Add subtle gold glow */
  }

  .header.scrolled {
    background-color: var(
      --primary
    ) !important; /* Keep solid gold color when scrolled */
    backdrop-filter: none;
  }

  /* Add glittery effect to gold elements */
  .profile-name,
  .section-title,
  .card-title,
  .skill-content h4,
  .timeline-title {
    position: relative;
  }

  /* Gold elements with metallic wave effect */
  .skill-icon,
  .timeline-item::after,
  .profile-image-border {
    position: relative;
    overflow: hidden;
  }

  /* Enhanced gold accents with deeper tones */

  /* Add subtle gold texture overlay to elements */

  /* Timeline enhancements with deeper gold */

  /* Gold hover effects with deeper tones */

  /* Enhanced gold backgrounds with deeper tones */

  /* Timeline date enhancement with deeper gold */

  /* Add professional gold glow to important elements */

  /* Pattern adjustment for deeper gold */
}

/* For manually toggled dark mode */
.dark-mode .header,
.dark-mode .header.scrolled {
  background-color: var(
    --primary
  ) !important; /* Force gold color in dark mode */
  backdrop-filter: none;
  box-shadow: 0 4px 20px rgba(166, 124, 0, 0.3); /* Add subtle gold glow */
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* New animation for gold shimmer effect */
@keyframes goldShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* New animations for gold effects */
@keyframes goldWave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes waveEffect {
  0% {
    transform: rotate(0deg) translate(-50%, -50%);
  }
  100% {
    transform: rotate(360deg) translate(-50%, -50%);
  }
}

@keyframes glitterEffect {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes goldPulse {
  0% {
    text-shadow: 0 0 5px rgba(249, 223, 133, 0.1);
  }
  100% {
    text-shadow: 0 0 15px rgba(249, 223, 133, 0.4);
  }
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
  animation: patternFloat 60s linear infinite;
}

@keyframes patternFloat {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 2rem;
}

.about-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
  color: white; /* Ensure white text in both modes */
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.about-hero h1 .highlight {
  color: var(--about-accent);
  position: relative;
  transition: color 0.5s var(--transition-smooth);
}

.about-hero h1 .highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--about-accent);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--transition-bounce);
}

.about-hero h1:hover .highlight {
  color: #fff;
}

.about-hero h1:hover .highlight::after {
  transform: scaleX(1);
  transform-origin: left;
}

.subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 300;
  color: white; /* Ensure white text in both modes */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Profile Section */
.profile-section {
  padding: 4rem 0;
  background-color: var(--about-light-bg);
  position: relative;
  transition: background-color 0.3s var(--transition-smooth);
}

.profile-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23191970' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  transition: background-image 0.3s var(--transition-smooth);
}

/* Dark mode pattern adjustment */
@media (prefers-color-scheme: dark) {
  .profile-section::before {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a67c00' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--about-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--about-shadow);
  padding: 3rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.5s var(--transition-smooth),
    box-shadow 0.5s var(--transition-smooth),
    background-color 0.3s var(--transition-smooth);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--about-gradient);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite alternate;
}

.profile-image-container {
  margin-bottom: 2rem;
  position: relative;
}

.profile-image-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--about-bg);
  box-shadow: 0 5px 15px var(--about-shadow);
  position: relative;
  z-index: 2;
  transition: transform 0.5s var(--transition-bounce),
    box-shadow 0.5s var(--transition-smooth),
    border-color 0.3s var(--transition-smooth);
}

.profile-image-border {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px dashed var(--about-accent);
  animation: rotate 20s linear infinite;
  z-index: 1;
  transition: border-color 0.3s var(--transition-smooth);
}

.profile-image-wrapper:hover .profile-image {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-content {
  max-width: 600px;
}

.profile-name {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--about-primary);
  position: relative;
  display: inline-block;
  transition: color 0.3s var(--transition-smooth);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Dark mode text color override */
@media (prefers-color-scheme: dark) {
  .profile-name {
    color: var(--about-text);
  }
}

.profile-name::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--about-accent);
  transition: width 0.4s var(--transition-smooth),
    left 0.4s var(--transition-smooth),
    background-color 0.3s var(--transition-smooth);
}

.profile-card:hover .profile-name::after {
  width: 100%;
  left: 0;
}

.profile-alias {
  font-size: 1.2rem;
  color: var(--about-text);
  margin-bottom: 1.5rem;
  transition: color 0.3s var(--transition-smooth);
  opacity: 0.8;
}

.profile-card:hover .profile-alias {
  color: var(--about-primary);
}

/* Dark mode hover override */
@media (prefers-color-scheme: dark) {
  .profile-card:hover .profile-alias {
    color: var(--about-text);
  }
}

.motto-container {
  background-color: rgba(25, 25, 112, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  position: relative;
  transition: transform 0.4s var(--transition-bounce),
    box-shadow 0.4s var(--transition-smooth),
    background-color 0.3s var(--transition-smooth);
}

/* Dark mode background adjustment */
@media (prefers-color-scheme: dark) {
  .motto-container {
    background-color: rgba(212, 175, 55, 0.05);
  }
}

.motto-container:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px var(--about-shadow);
}

.motto-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(255, 215, 0, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s var(--transition-smooth),
    background 0.3s var(--transition-smooth);
  border-radius: 8px;
}

/* Dark mode gradient adjustment */
@media (prefers-color-scheme: dark) {
  .motto-container::before {
    background: radial-gradient(
      circle at top right,
      rgba(212, 175, 55, 0.1),
      transparent 70%
    );
  }
}

.motto-container:hover::before {
  opacity: 1;
}

.motto {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--about-primary);
  margin-bottom: 0.5rem;
  transition: transform 0.3s var(--transition-smooth),
    color 0.3s var(--transition-smooth);
}

/* Dark mode text color override */
@media (prefers-color-scheme: dark) {
  .motto {
    color: var(--about-text);
  }
}

.motto-container:hover .motto {
  transform: scale(1.05);
}

.motto-translation {
  font-size: 1.2rem;
  color: var(--about-text);
  opacity: 0.8;
  font-style: italic;
  transition: opacity 0.3s var(--transition-smooth),
    color 0.3s var(--transition-smooth);
}

.motto-container:hover .motto-translation {
  opacity: 0.8;
}

/* Bio Section */
.bio-section {
  padding: 5rem 0;
  background-color: var(--about-bg);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s var(--transition-smooth);
}

.bio-section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(25, 25, 112, 0.03), transparent 70%);
  top: -150px;
  left: -150px;
  border-radius: 50%;
  transition: background 0.3s var(--transition-smooth);
}

.bio-section::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.03), transparent 70%);
  bottom: -150px;
  right: -150px;
  border-radius: 50%;
  transition: background 0.3s var(--transition-smooth);
}

/* Dark mode gradient adjustments */
@media (prefers-color-scheme: dark) {
  .bio-section::before {
    background: radial-gradient(
      circle,
      rgba(212, 175, 55, 0.03),
      transparent 70%
    );
  }

  .bio-section::after {
    background: radial-gradient(
      circle,
      rgba(25, 25, 112, 0.03),
      transparent 70%
    );
  }
}

.bio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2rem;
  color: var(--about-primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  transition: color 0.3s var(--transition-smooth);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Dark mode text color override */
@media (prefers-color-scheme: dark) {
  .section-title {
    color: var(--about-text);
  }
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--about-accent);
  border-radius: 2px;
  transition: width 0.4s var(--transition-smooth),
    background-color 0.3s var(--transition-smooth);
}

.section-title:hover::after {
  width: 100%;
}

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

.text-center.section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.text-center.section-title:hover::after {
  width: 80%;
}

.bio-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--about-text);
  margin-bottom: 2rem;
  position: relative;
  transition: color 0.3s var(--transition-smooth);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-align: justify;
}

.bio-text:hover {
  color: var(--about-text);
}

.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(25, 25, 112, 0.1),
    rgba(25, 25, 112, 0.5),
    rgba(25, 25, 112, 0.1)
  );
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--transition-smooth);
}

/* Dark mode divider adjustment */
@media (prefers-color-scheme: dark) {
  .divider {
    background: linear-gradient(
      to right,
      rgba(112, 71, 0, 0.1),
      rgba(166, 124, 0, 0.3),
      rgba(212, 175, 55, 0.5),
      rgba(249, 223, 133, 0.8),
      rgba(212, 175, 55, 0.5),
      rgba(166, 124, 0, 0.3),
      rgba(112, 71, 0, 0.1)
    ) !important;
  }
}

.divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(249, 223, 133, 0.5),
    transparent
  );
  animation: shimmer 3s infinite;
  transition: background 0.3s var(--transition-smooth);
}

/* Dark mode shimmer adjustment */
@media (prefers-color-scheme: dark) {
  .divider::after {
    background: linear-gradient(
      90deg,
      transparent,
      rgba(249, 223, 133, 0.5),
      transparent
    );
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.skill-item {
  display: flex;
  margin-bottom: 2rem;
  transition: transform 0.4s var(--transition-bounce);
}

.skill-item:hover {
  transform: translateX(10px);
}

.skill-icon {
  flex: 0 0 50px;
  height: 50px;
  background: var(--about-gradient);
  background-size: 200% 200%;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1.5rem;
  box-shadow: 0 5px 15px var(--about-shadow);
  transition: transform 0.3s var(--transition-bounce),
    box-shadow 0.3s var(--transition-smooth),
    background 0.3s var(--transition-smooth);
  animation: gradientShift 15s ease infinite alternate;
}

.skill-item:hover .skill-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.skill-content {
  flex: 1;
}

.skill-content h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--about-primary);
  transition: color 0.3s var(--transition-smooth);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Dark mode text color override */
@media (prefers-color-scheme: dark) {
  .skill-content h4 {
    color: var(--about-text);
  }
}

.skill-item:hover .skill-content h4 {
  color: var(--about-accent);
}

/* Dark mode hover override */
@media (prefers-color-scheme: dark) {
  .skill-item:hover .skill-content h4 {
    color: var(--about-primary);
  }
}

.skill-content p {
  color: var(--about-text);
  opacity: 0.8;
  line-height: 1.6;
  transition: color 0.3s var(--transition-smooth);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.skill-item:hover .skill-content p {
  color: var(--about-text);
}

.bio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card,
.quote-card {
  background-color: var(--about-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px var(--about-shadow);
  transition: transform 0.4s var(--transition-bounce),
    box-shadow 0.4s var(--transition-smooth),
    background-color 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.info-card::before,
.quote-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(
    circle at top right,
    rgba(25, 25, 112, 0.03),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s var(--transition-smooth),
    background 0.3s var(--transition-smooth);
}

/* Dark mode gradient adjustment */
@media (prefers-color-scheme: dark) {
  .info-card::before,
  .quote-card::before {
    background: radial-gradient(
      circle at top right,
      rgba(212, 175, 55, 0.03),
      transparent 70%
    );
  }
}

.info-card:hover,
.quote-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--about-shadow);
}

.info-card:hover::before,
.quote-card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: 1.5rem;
  color: var(--about-primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  transition: color 0.3s var(--transition-smooth);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Dark mode text color override */
@media (prefers-color-scheme: dark) {
  .card-title {
    color: var(--about-text);
  }
}

.card-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--about-accent);
  border-radius: 1.5px;
  transition: width 0.4s var(--transition-smooth),
    background-color 0.3s var(--transition-smooth);
}

.info-card:hover .card-title::after,
.quote-card:hover .card-title::after {
  width: 100%;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--about-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--transition-smooth),
    border-color 0.3s var(--transition-smooth);
}

.info-list li:hover {
  transform: translateX(5px);
}

.info-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-list li span {
  font-weight: bold;
  color: var(--about-primary);
  margin-bottom: 0.3rem;
  transition: color 0.3s var(--transition-smooth);
}

/* Dark mode text color override */
@media (prefers-color-scheme: dark) {
  .info-list li span {
    color: var(--about-text);
  }
}

.info-list li:hover span {
  color: var(--about-accent);
}

/* Dark mode hover override */
@media (prefers-color-scheme: dark) {
  .info-list li:hover span {
    color: var(--about-primary);
  }
}

.quote-card {
  background-color: rgba(25, 25, 112, 0.03);
  border-left: 4px solid var(--about-accent);
  transition: background-color 0.3s var(--transition-smooth),
    border-left-color 0.3s var(--transition-smooth);
}

/* Dark mode background adjustment */
@media (prefers-color-scheme: dark) {
  .quote-card {
    background-color: rgba(212, 175, 55, 0.03);
    border-left: 4px solid var(--about-accent);
  }
}

blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--about-text);
  position: relative;
  transition: transform 0.3s var(--transition-smooth),
    color 0.3s var(--transition-smooth);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.quote-card:hover blockquote {
  transform: scale(1.02);
}

blockquote::before {
  content: "" "";
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -10px;
  color: rgba(25, 25, 112, 0.1);
  font-family: Georgia, serif;
  transition: color 0.3s var(--transition-smooth);
}

/* Dark mode quote mark adjustment */
@media (prefers-color-scheme: dark) {
  blockquote::before {
    color: rgba(212, 175, 55, 0.1);
  }
}

.quote-card:hover blockquote::before {
  color: rgba(255, 215, 0, 0.2);
}

/* Dark mode hover override */
@media (prefers-color-scheme: dark) {
  .quote-card:hover blockquote::before {
    color: rgba(25, 25, 112, 0.2);
  }
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  font-style: normal;
  color: var(--about-primary);
  text-align: right;
  transition: color 0.3s var(--transition-smooth);
}

/* Dark mode text color override */
@media (prefers-color-scheme: dark) {
  blockquote cite {
    color: var(--about-text);
  }
}

.quote-card:hover blockquote cite {
  color: var(--about-accent);
}

/* Dark mode hover override */
@media (prefers-color-scheme: dark) {
  .quote-card:hover blockquote cite {
    color: var(--about-primary);
  }
}

/* Timeline Section */
.timeline-section {
  padding: 5rem 0;
  background-color: var(--about-light-bg);
  position: relative;
  transition: background-color 0.3s var(--transition-smooth);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 3rem auto 0;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--about-primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--about-primary),
    var(--about-accent)
  );
  transition: background 0.3s var(--transition-smooth);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid var(--about-accent);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 2px 8px var(--about-shadow);
  transition: transform 0.3s var(--transition-bounce),
    box-shadow 0.3s var(--transition-smooth),
    background-color 0.3s var(--transition-smooth),
    border-color 0.3s var(--transition-smooth);
}

/* Dark mode timeline dot adjustment */
@media (prefers-color-scheme: dark) {
  .timeline-item::after {
    background-color: var(--about-light-bg);
    border: 4px solid var(--about-primary);
  }
}

.timeline-item:hover::after {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--about-accent);
}

/* Dark mode hover override */
@media (prefers-color-scheme: dark) {
  .timeline-item:hover::after {
    background-color: var(--about-primary);
  }
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::after {
  right: -12px;
}

.right::after {
  left: -12px;
}

.timeline-content {
  padding: 20px 25px;
  background-color: var(--about-bg);
  position: relative;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--about-shadow);
  transition: transform 0.4s var(--transition-bounce),
    box-shadow 0.4s var(--transition-smooth),
    background-color 0.3s var(--transition-smooth);
  overflow: hidden;
}

.timeline-content::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    to right,
    var(--about-primary),
    var(--about-accent)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--transition-smooth),
    background 0.3s var(--transition-smooth);
}

.timeline-content:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px var(--about-shadow);
}

.timeline-content:hover::after {
  transform: scaleX(1);
}

.left .timeline-content::before {
  content: " ";
  position: absolute;
  top: 15px;
  right: -15px;
  border-width: 10px 0 10px 15px;
  border-style: solid;
  border-color: transparent transparent transparent var(--about-bg);
  transition: border-color 0.3s var(--transition-smooth);
}

.right .timeline-content::before {
  content: " ";
  position: absolute;
  top: 15px;
  left: -15px;
  border-width: 10px 15px 10px 0;
  border-style: solid;
  border-color: transparent var(--about-bg) transparent transparent;
  transition: border-color 0.3s var(--transition-smooth);
}

.timeline-title {
  font-size: 1.3rem;
  color: var(--about-primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s var(--transition-smooth),
    transform 0.3s var(--transition-smooth);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Dark mode text color override */
@media (prefers-color-scheme: dark) {
  .timeline-title {
    color: var(--about-text);
  }
}

.timeline-content:hover .timeline-title {
  color: var(--about-accent);
  transform: translateX(5px);
}

/* Dark mode hover override */
@media (prefers-color-scheme: dark) {
  .timeline-content:hover .timeline-title {
    color: var(--about-primary);
  }
}

.timeline-date {
  font-weight: bold;
  color: var(--about-accent);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 3px 10px;
  background-color: rgba(25, 25, 112, 0.05);
  border-radius: 4px;
  transition: background-color 0.3s var(--transition-smooth),
    transform 0.3s var(--transition-smooth), color 0.3s var(--transition-smooth);
}

/* Dark mode background adjustment */
@media (prefers-color-scheme: dark) {
  .timeline-date {
    background-color: rgba(212, 175, 55, 0.05);
    color: var(--about-primary);
  }
}

.timeline-content:hover .timeline-date {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateX(5px);
}

/* Dark mode hover override */
@media (prefers-color-scheme: dark) {
  .timeline-content:hover .timeline-date {
    background-color: rgba(25, 25, 112, 0.1);
  }
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--about-gradient);
  background-size: 200% 200%;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: gradientShift 15s ease infinite alternate;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
  animation: patternFloat 60s linear infinite;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s var(--transition-smooth) both;
  color: white; /* Ensure white text in both modes */
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s 0.2s var(--transition-smooth) both;
  color: white; /* Ensure white text in both modes */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* CTA button with dark mode adjustments */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: white;
  color: var(--about-primary);
  font-weight: bold;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: fadeInUp 1s 0.4s var(--transition-smooth) both;
  transition: transform 0.4s var(--transition-bounce),
    box-shadow 0.4s var(--transition-smooth),
    color 0.3s var(--transition-smooth);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--about-primary), var(--about-accent));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s var(--transition-smooth),
    background 0.3s var(--transition-smooth);
}

.cta-button::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.5s var(--transition-smooth);
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: white;
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
}

.cta-button:active::after {
  transform: scale(15);
  opacity: 0;
  transition: transform 0.8s var(--transition-smooth),
    opacity 0.8s var(--transition-smooth);
}

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

/* Animation Classes */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  animation: revealText 1s var(--transition-smooth) forwards;
}

.reveal-text-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: revealText 1s 0.3s var(--transition-smooth) forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-smooth),
    transform 0.8s var(--transition-smooth);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes revealText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 20px;
  }

  .left::after,
  .right::after {
    left: 20px;
  }

  .left .timeline-content::before,
  .right .timeline-content::before {
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--about-bg) transparent transparent;
  }

  .right {
    left: 0;
  }
}

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

  .subtitle {
    font-size: 1.2rem;
  }

  .profile-card {
    padding: 2rem 1rem;
  }

  .profile-name {
    font-size: 2rem;
  }

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

  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .about-hero h1 {
    font-size: 2rem;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .profile-image-wrapper {
    width: 170px;
    height: 170px;
  }

  .profile-image-border {
    width: 170px;
    height: 170px;
    top: -10px;
    left: -10px;
  }

  .motto {
    font-size: 1.5rem;
  }

  .timeline-content {
    padding: 15px;
  }
}
