:root {
  /* Dark theme (primary) */
  --bg-primary: #0d0d0f;
  --bg-secondary: #1a1a1d;
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --accent-primary: #a67c6a; /* Mocha Mousse */
  --accent-glow: rgba(166, 124, 106, 0.3);
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent: #a67c6a;
  --mocha: #bca18c;
  --bezier: cubic-bezier(0.77, 0, 0.175, 1);
}

[data-theme="light"] {
  --bg-primary: #f4f3ee;
  --bg-secondary: #bcb8b1;
  --text-primary: rgba(0, 0, 0, 0.92);
  --text-secondary: rgba(0, 0, 0, 0.7);
  --accent-primary: #593932;
  --accent-glow: rgba(89, 57, 50, 0.3);
  --card-bg: rgba(0, 0, 0, 0.05);
  --border-color: rgba(0, 0, 0, 0.1);
  --accent: #593932;
  --mocha: #45372f;
  --bezier: cubic-bezier(0.77, 0, 0.175, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

/* Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 1001;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  margin: 2px 0;
  transition: 0.3s;
}

.mobile-menu-toggle:hover {
  background: var(--accent-primary);
}

.mobile-menu-toggle:hover span {
  background: white;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(13, 13, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

[data-theme="light"] .nav {
  background: rgba(250, 250, 250, 0.8);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  transition: all 0.3s ease;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  z-index: 1002;
  position: relative;
}

.theme-toggle:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

/* FIXED PAGE CONTAINER SYSTEM */
.page-container {
  min-height: 100vh;
  display: none !important; /* Force hidden by default */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--bezier);
}

.page-container.active {
  display: block !important; /* Force show when active */
  opacity: 1;
  transform: translateY(0);
}

.page-container.hidden {
  display: none !important; /* Force hide when hidden */
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 10;
}

.hero-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 5px;
  transition: transform 0.3s ease;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-glow)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  font-weight: bold;
  animation: float 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--accent-primary),
    transparent,
    var(--accent-primary)
  );
  border-radius: 50%;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

.hero-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--accent-primary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero .description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-glow)
  );
  color: white;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.btn::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;
}

.btn:hover::before {
  left: 100%;
}

/* Content Container */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  margin-top: 5rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 3rem;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--accent-primary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Bento Grid for About */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(138, 129, 124, 0.3);
}

.bento-card:hover::before {
  opacity: 0.1;
}

.bento-card-content {
  position: relative;
  z-index: 2;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

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

.skill-tag {
  background: var(--accent-glow);
  color: var(--accent-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* HOBBIES & INTERESTS SECTION STYLES */
.hobby-categories {
  margin-bottom: 4rem;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.category-tab.active,
.category-tab:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.category-tab ion-icon {
  font-size: 1.2rem;
}

.hobby-category {
  display: none;
  animation: fadeInUp 0.6s ease;
}

.hobby-category.active {
  display: block;
}

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

.hobby-showcase {
  margin-bottom: 3rem;
}

.main-hobby-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.main-hobby-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0.05;
}

.hobby-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Creative Arts Visual */
.paint-palette {
  width: 200px;
  height: 200px;
  background: var(--bg-secondary);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.paint-blob {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  animation: float 3s ease-in-out infinite;
}

.paint-blob:nth-child(1) {
  top: 10%;
  left: 50%;
  animation-delay: 0s;
}

.paint-blob:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-delay: 0.25s;
}

.paint-blob:nth-child(3) {
  bottom: 30%;
  right: 10%;
  animation-delay: 0.5s;
}

.paint-blob:nth-child(4) {
  bottom: 10%;
  left: 55%;
  animation-delay: 0.75s;
}

.paint-blob:nth-child(5) {
  top: 35%;
  left: 15%;
  animation-delay: 1s;
}

/* Nature Scene Visual */
.nature-scene {
  width: 200px;
  height: 200px;
  position: relative;
  background: linear-gradient(to bottom, #87ceeb 0%, #98fb98 70%, #228b22 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mountain {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 80px solid #8b4513;
}

.sun {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: #ffd700;
  border-radius: 50%;
  animation: rotate 10s linear infinite;
}

.clouds {
  position: absolute;
  top: 30px;
  left: 20px;
  width: 60px;
  height: 20px;
  background: white;
  border-radius: 20px;
  opacity: 0.8;
  animation: float 4s ease-in-out infinite;
}

.clouds::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 15px;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
}

/* Gaming Setup Visual */
.gaming-setup {
  width: 200px;
  height: 150px;
  position: relative;
  background: var(--bg-secondary);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.monitor {
  width: 120px;
  height: 70px;
  background: #1a1a1a;
  border: 3px solid #333;
  border-radius: 8px;
  margin: 0 auto 10px;
  position: relative;
}

.monitor::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 50px;
  background: linear-gradient(45deg, #0066cc, #00ff88);
  border-radius: 4px;
}

.keyboard {
  width: 100px;
  height: 20px;
  background: #333;
  border-radius: 5px;
  margin: 0 auto 5px;
}

.mouse {
  width: 25px;
  height: 15px;
  background: #333;
  border-radius: 10px;
  margin: 0 auto;
}

/* Book Stack Visual */
.book-stack {
  position: relative;
  width: 120px;
  height: 200px;
}

.book {
  position: absolute;
  width: 100px;
  height: 15px;
  border-radius: 2px;
}

.book1 {
  bottom: 0;
  left: 0;
  background: #8b4513;
  transform: rotate(-2deg);
}

.book2 {
  bottom: 12px;
  left: 5px;
  background: #228b22;
  transform: rotate(1deg);
}

.book3 {
  bottom: 25px;
  left: -2px;
  background: #d6e141ff;
  transform: rotate(-1deg);
}

.book4 {
  bottom: 37px;
  left: 0;
  background: #8b1377ff;
  transform: rotate(-2deg);
}

.book5 {
  bottom: 50px;
  left: 5px;
  background: #228b82ff;
  transform: rotate(-1deg);
}

.hobby-content {
  position: relative;
  z-index: 2;
}

.hobby-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hobby-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.hobby-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.hobby-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.hobby-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(166, 124, 106, 0.2);
}

.hobby-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.hobby-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hobby-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Philosophy Section */
.philosophy-section {
  margin: 4rem 0;
  text-align: center;
}

.section-subtitle {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.philosophy-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(166, 124, 106, 0.3);
}

.philosophy-card:hover::before {
  opacity: 0.1;
}

.philosophy-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  position: relative;
  z-index: 2;
}

.philosophy-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  position: relative;
  z-index: 2;
}

.philosophy-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* Current Goals Section */
.current-goals-section {
  margin: 4rem 0;
}

.goals-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.goal-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.goal-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(166, 124, 106, 0.2);
}

.goal-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.goal-content {
  flex: 1;
}

.goal-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.goal-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.goal-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-glow));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.goal-progress span {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Fun Facts Section */
.fun-facts-section {
  margin: 4rem 0;
  text-align: center;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.fact-card {
  width: 200px;
  height: 200px;
  perspective: 1000px;
  cursor: pointer;
  margin: 0 auto;
}

.fact-card .fact-front,
.fact-card .fact-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: transform 0.6s ease;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.fact-card .fact-front {
  transform: rotateY(0deg);
}

.fact-card .fact-back {
  transform: rotateY(180deg);
  background: var(--accent-primary);
  color: white;
}

.fact-card.flipped .fact-front {
  transform: rotateY(-180deg);
}

.fact-card.flipped .fact-back {
  transform: rotateY(0deg);
}

.fact-card .fact-front ion-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.fact-card .fact-front h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fact-card .fact-back p {
  text-align: center;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  padding: 1rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--mocha),
    var(--accent)
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
  animation: rotate 10s linear infinite;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.project-header {
  padding: 2rem 2rem 1rem;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
}

.project-content {
  padding: 2rem;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--accent-primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 10px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.contact-item:hover {
  transform: translateY(-5px);
  background: var(--accent-glow);
}

.contact-icon {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.contact-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-value {
  color: var(--text-secondary);
}

.contact-value a {
  color: var(--accent-primary);
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* Terminal Easter Egg */
.terminal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  height: 400px;
  background: #000;
  border-radius: 10px;
  border: 2px solid var(--accent-primary);
  z-index: 10000;
  display: none;
  font-family: "Courier New", monospace;
  overflow: hidden;
}

.terminal-header {
  background: var(--accent-primary);
  color: white;
  padding: 0.5rem 1rem;
  font-weight: bold;
}

.terminal-body {
  padding: 1rem;
  height: calc(100% - 50px);
  overflow-y: auto;
  color: #00ff00;
  position: relative;
}

.terminal-input {
  background: transparent;
  border: none;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  outline: none;
  width: 200px;
}

.terminal-line {
  margin-bottom: 0.5rem;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Timeline for About page */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background: var(--accent-primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 2rem;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  margin-bottom: 2rem;
  width: calc(50% - 30px);
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: calc(50% + 30px);
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 50%;
  top: 30px;
}

.timeline-item:nth-child(odd)::after {
  right: -40px;
}

.timeline-item:nth-child(even)::after {
  left: -40px;
}

.timeline-date {
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-location {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Education Page Specific Styles */
.education-header {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.education-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0.1;
}

.degree-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.institution {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.degree-period {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.degree-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: var(--bg-secondary);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.academic-progress {
  margin-bottom: 4rem;
}

.progress-header {
  text-align: center;
  margin-bottom: 3rem;
}

.progress-subtitle {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.year-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.year-tab {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.year-tab.active,
.year-tab:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.year-content {
  display: none;
}

.year-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.subject-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.subject-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-primary);
}

.subject-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.subject-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.subject-code {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.subject-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  flex: 1;
}

.subject-mark {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-align: right;
}

.subject-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.subject-credits {
  background: var(--accent-glow);
  color: var(--accent-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.subject-status {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pass {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.status-progress {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
}

.year-summary {
  background: var(--bg-secondary);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
}

.summary-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

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

.summary-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.summary-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.achievements-section {
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 4rem;
}

.achievements-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.achievement-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.achievement-card:hover {
  transform: scale(1.05);
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.achievement-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.achievement-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* MOBILE RESPONSIVE DESIGN */
@media (max-width: 768px) {
  /* Mobile Menu */
  .mobile-menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    top: 1.2rem;
    right: 1.2rem;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu-toggle span {
    width: 22px;
    height: 3px;
    margin: 3px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
  }
  .nav-links.mobile-open {
    right: 0;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.2rem;
  }

  /* Content adjustments */
  .content-container {
    padding: 2rem 1rem;
    margin-top: 4rem;
  }

  .hero {
    padding: 0 1rem;
    min-height: 80vh;
  }
  .hero-image {
    width: 120px;
    height: 120px;
    margin: 5.5rem auto 0 auto; /* Add top gap for navbar */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero .subtitle {
    font-size: 1.2rem;
  }
  .hero .description {
    font-size: 1rem;
  }

  /* Grid adjustments */
  .bento-grid,
  .projects-grid,
  .contact-grid,
  .hobby-grid,
  .philosophy-cards,
  .subjects-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Hobbies mobile */
  .category-tabs {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .category-tab {
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }
  .category-tab .tab-text {
    display: inline; /* Ensure text is visible on mobile */
    font-size: 1rem;
    margin-left: 0.5em;
  }

  .main-hobby-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    padding: 1.2rem;
  }
  .hobby-title {
    font-size: 1.3rem;
  }
  .hobby-description {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .hobby-visual {
    justify-content: center;
  }
  .paint-palette,
  .nature-scene,
  .gaming-setup {
    width: 120px;
    height: 120px;
  }
  .hobby-stats {
    justify-content: center;
    gap: 1rem;
  }

  .facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
  .fact-card {
    width: 120px;
    height: 120px;
  }

  .goal-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }

  /* Timeline mobile */
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: calc(100% - 60px);
    left: 40px !important;
  }
  .timeline-item::after {
    left: -30px !important;
  }

  /* Education mobile */
  .degree-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .year-tabs {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .subject-header {
    flex-direction: column;
    text-align: left;
  }
  .subject-mark {
    text-align: left;
    margin-top: 0.5rem;
  }
  .summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Button adjustments */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Terminal mobile */
  .terminal {
    width: 95%;
    height: 300px;
  }
  .terminal-input {
    width: 150px;
  }

  .nav {
    padding: 1rem;
  }
  .logo {
    font-size: 1.2rem;
  }
  .theme-toggle {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;

    position: fixed;
    top: 1.2rem;
    right: 4.5rem; /* Move it left of the burger menu */
    z-index: 1002;
  }
  .content-container {
    padding: 1.5rem 0.5rem;
  }
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  .main-hobby-card {
    padding: 1rem;
  }
  .hobby-title {
    font-size: 1.2rem;
  }
  .philosophy-card,
  .bento-card {
    padding: 1rem;
  }
  .project-header,
  .project-content {
    padding: 1rem;
  }
  .contact-item {
    padding: 1rem;
  }
}

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