/* About page --------------------------------------------------------- */

/* Premium Magnetic Cursor Effect */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: all 0.15s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.cursor-follower.expand {
  width: 80px;
  height: 80px;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
  border-width: 3px;
}

.cursor.active {
  transform: scale(1.5);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.cursor.hidden {
  opacity: 0;
  transform: scale(0);
}

.cursor-follower.hidden {
  opacity: 0;
  transform: scale(0);
}

/* Enhanced Magnetic elements */
.magnetic {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: visible;
}

.magnetic::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: inherit;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.magnetic:hover::before {
  opacity: 1;
}

.magnetic:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Special magnetic effect for logo */
.logo.magnetic:hover {
  transform: scale(1.08) rotate(3deg);
}

/* Hide cursor on mobile devices */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  .cursor,
  .cursor-follower {
    display: none !important;
  }
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: linear-gradient(135deg, #111111, #0d0d0d, #1a1a1a);
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.03),
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* Animated Background Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 10s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 1;
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
    opacity: 0.6;
  }
}

/* Navigation */
nav {
  height: 90px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2rem);
  transition: transform 0.3s ease, height 0.3s ease;
}

.logo-cube {
  width: clamp(40px, 6vw, 50px);
  height: clamp(40px, 6vw, 50px);
  transform-style: preserve-3d;
  transform: rotateX(20deg) rotateY(20deg);
  animation: spin 12s infinite linear;
  position: relative;
  margin: 5px 0;
  flex-shrink: 0;
}

.face {
  position: absolute;
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, #111, #222);
  color: #fff;
  font-size: 20px;
  font-family: "Courier New", monospace;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #444;
  opacity: 0.95;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(1px);
}

.front {
  transform: translateZ(25px);
}
.back {
  transform: rotateY(180deg) translateZ(25px);
}
.right {
  transform: rotateY(90deg) translateZ(25px);
}
.left {
  transform: rotateY(-90deg) translateZ(25px);
}
.top {
  transform: rotateX(90deg) translateZ(25px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(25px);
}

@keyframes spin {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: rotateX(180deg) rotateY(90deg);
  }
  50% {
    transform: rotateX(360deg) rotateY(180deg);
  }
  75% {
    transform: rotateX(540deg) rotateY(270deg);
  }
  100% {
    transform: rotateX(720deg) rotateY(360deg);
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 1.1rem;
  position: relative;
}

.nav-link:hover {
 transform: scale(1.1);
}

/* .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
} */

.nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 50%;
  bottom: 2px;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Main Content */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  width: 100%;
}


/* Responsive Design */
@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
  }

  nav ul {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(-100%);
   transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
  }

  nav ul.show {
    
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
    z-index: 1002;
    position: relative;
  }

  .menu-toggle span {
    display: block;
    position: relative;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: white;
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: white;
  }

    footer {
    flex-direction: column;
    text-align: center;
  }

    .list {
    flex-wrap: wrap;
    justify-content: center;
  }

  #scrollTopBtn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(120px, 15vh, 140px) 0 clamp(50px, 8vh, 80px);
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  background: linear-gradient(135deg, #f5f5f5, #c0c0c0, #eeeeee);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: glow 3s ease-in-out infinite alternate;
  line-height: 1.1;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }
  100% {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 2rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* About Sections */
.about-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(60px, 15vw, 100px);
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  border-radius: 2px;
}

/* Interactive Bio Section */
.bio-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.bio-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.bio-image:hover {
  transform: scale(1.05) rotate(2deg);
}

.bio-image img {
  width: 100%;
  height: clamp(300px, 50vw, 400px);
  object-fit: cover;
  filter: grayscale(20%) brightness(1.1);
  transition: filter 0.3s ease;
}

.bio-image:hover img {
  filter: grayscale(0%) brightness(1.2);
}

.bio-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.8;
  text-align: left;
}

.bio-text p {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.bio-text p:nth-child(2) {
  animation-delay: 0.2s;
}
.bio-text p:nth-child(3) {
  animation-delay: 0.4s;
}

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

.highlight {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: clamp(1.5rem, 4vw, 2rem);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.skill-category:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.skill-category h3 {
  color: #fff;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.skill-category i {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Journey Timeline */
.journey-timeline {
  position: relative;
  padding: clamp(1rem, 4vw, 2rem) 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  align-items: center;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: clamp(1.5rem, 4vw, 2rem);
  margin: 0 clamp(1rem, 3vw, 2rem);
  position: relative;
  transition: all 0.3s ease;
  max-width: calc(50% - 3rem);
}

.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #fff, #ccc);
  border-radius: 50%;
  border: 3px solid #111;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  z-index: 2;
  position: relative;
  flex-shrink: 0;
}

.timeline-year {
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Fun Facts Section */
.fun-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(3rem, 6vw, 4rem);
}

.fact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fact-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.fact-icon {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 1rem;
  display: block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.fact-number {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

.fact-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Contact CTA */
.contact-cta {
  text-align: center;
  padding: clamp(3rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  margin: clamp(3rem, 6vw, 4rem) 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-text {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  padding: clamp(0.8rem, 3vw, 1rem) clamp(2rem, 5vw, 2.5rem);
  border-radius: 50px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
  margin: 3rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}

.inspire {
  color: #ccc;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.inspire::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #888, #fff, #888);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.inspire:hover {
  color: #fff;
}

.inspire:hover::after {
  opacity: 1;
}

.list {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1rem);
  flex-wrap: wrap;
  justify-content: center;
}

.list .link {
  background-color: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  text-decoration: none;
  padding: clamp(0.4rem, 2vw, 0.5rem) clamp(0.8rem, 2.5vw, 1rem);
  border-radius: 25px;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.list .link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #eee;
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 1rem;
  right: 2rem;
  z-index: 100;
  background-color: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#scrollTopBtn.show {
  display: flex;
}

#scrollTopBtn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Desktop Specific Styles */
@media (min-width: 1024px) {
  .bio-container {
    grid-template-columns: 1fr 2fr;
  }

  .timeline-line {
    display: block;
  }
}

/* Tablet Responsive Design */
@media (max-width: 1023px) and (min-width: 769px) {
  nav {
    height: 80px;
  }

  .logo-cube {
    width: 45px;
    height: 45px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fun-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 60px;
  }

  .timeline-item:nth-child(even) {
    flex-direction: row !important;
  }

  .timeline-content {
    margin: 0 0 0 1rem;
    max-width: none;
  }

  .timeline-dot {
    position: absolute;
    left: -30px;
  }

  .fun-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .list {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Hide AOS on mobile for better performance */
  [data-aos] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Reduce particles on mobile */
  .particles {
    display: none;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  nav {
    height: 65px;
  }

  nav ul {
    top: 65px;
    height: calc(100vh - 65px);
  }

  .hero {
    padding: 90px 0 40px;
  }

  .fun-facts {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .fact-card {
    padding: 1.5rem 1rem;
  }

  .timeline-line {
    left: 15px;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-dot {
    left: -25px;
    width: 15px;
    height: 15px;
  }

  .bio-text {
    text-align: left;
  }

  .skills-grid {
    gap: 1rem;
  }

  .skill-category {
    padding: 1.5rem 1rem;
  }


  
}

/* Extra Small Devices */
@media (max-width: 360px) {
  main {
    padding: 0 0.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

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

  .timeline-content {
    padding: 1rem;
  }

  .contact-cta {
    padding: 2rem 1rem;
  }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 80vh;
    padding: 80px 0 30px;
  }

  nav {
    height: 60px;
  }

  nav ul {
    top: 60px;
    height: calc(100vh - 60px);
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logo-cube {
    animation: none;
  }

  .particle {
    animation: none;
  }

  .fact-icon {
    animation: none;
  }
}
