/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  /* Dark Theme variables (default) */
  --bg-primary: #0f0d22;
  --bg-secondary: #171531;
  --bg-tertiary: #201e40;
  --bg-dot: rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  
  --gradient-purple-pink: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
  --gradient-blue-purple: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --glow-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
  --transition-speed: 0.3s;
}

[data-theme="light"] {
  /* Light Theme variables */
  --bg-primary: #e9e7f2;
  --bg-secondary: #f5f4fa;
  --bg-tertiary: #e0dceb;
  --bg-dot: rgba(0, 0, 0, 0.04);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  
  --accent-purple: #7c3aed;
  --accent-pink: #db2777;
  --accent-blue: #2563eb;
  --accent-green: #059669;
  --accent-orange: #d97706;
  
  --gradient-purple-pink: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --gradient-blue-purple: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --card-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.08);
  --glow-shadow: 0 0 30px rgba(124, 58, 237, 0.12);
}

/* Lit Dots Overlay — dots near cursor light up */
.cursor-dot-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: radial-gradient(rgba(139, 92, 246, 0.85) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle 180px at var(--mouse-x, -999px) var(--mouse-y, -999px), black 0%, transparent 100%);
  mask-image: radial-gradient(circle 180px at var(--mouse-x, -999px) var(--mouse-y, -999px), black 0%, transparent 100%);
}

[data-theme="light"] .cursor-dot-overlay {
  background-image: radial-gradient(rgba(109, 40, 217, 0.6) 1px, transparent 1px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  background-image: radial-gradient(var(--bg-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 999px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gradient-text {
  background: var(--gradient-purple-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-blue-text {
  background: var(--gradient-blue-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: top var(--transition-speed);
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.nav-logo {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.theme-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--card-shadow);
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.theme-toggle-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-50%) scale(1.08) rotate(15deg);
}

.nav-capsule {
  display: flex;
  align-items: center;
  background: rgba(14, 13, 31, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 6px;
  box-shadow: var(--card-shadow);
}

[data-theme="light"] .nav-capsule {
  background: rgba(255, 255, 255, 0.6);
}

/* Mobile Nav Drawer Defaults (Desktop) */
.mobile-menu-btn,
.mobile-close-btn,
.mobile-menu-backdrop {
  display: none;
}
.nav-drawer {
  display: contents;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: all var(--transition-speed);
}

.mobile-text {
  display: none;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.book-call-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: var(--card-shadow);
}

.book-call-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-shadow);
}

/* Sections General */
section {
  padding: 8rem 0 4rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

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

/* Hero Section */
#home {
  padding-top: 10rem;
  min-height: auto;
}

.hero-avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--bg-secondary);
  box-shadow: var(--glow-shadow);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-avatar:hover {
  transform: scale(1.1) rotate(5deg);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}

.typewriter-cursor {
  font-weight: 400;
  color: var(--text-primary);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Chatbot UI */
.chatbot-wrapper {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.chatbot-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 400px;
  transition: all var(--transition-speed);
}

.chatbot-container:hover {
  border-color: var(--border-hover);
}

.chatbot-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-message.bot {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-message.user {
  background: var(--accent-purple);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* Message formats inside chat */
.chat-message p {
  margin-bottom: 0.5rem;
}
.chat-message p:last-child {
  margin-bottom: 0;
}
.chat-message strong {
  font-weight: 600;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 18px;
  background: var(--bg-tertiary);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: wave 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chatbot-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 1.5rem 1rem 1.5rem;
}

.chip-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-btn:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.chatbot-input-area {
  display: flex;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.chatbot-input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: all var(--transition-speed);
}

.chatbot-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.chatbot-send-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0 10px 0 15px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.chatbot-send-btn:hover {
  color: var(--accent-purple);
  transform: scale(1.1);
}

/* About Section (Bento Grid) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-speed), transform var(--transition-speed);
}

.bento-card:hover {
  border-color: var(--border-hover);
}

/* Card Sizes */
.card-4 { grid-column: span 4; }
.card-8 { grid-column: span 8; }
.row-2 { grid-row: span 2; }
.row-1-5 { grid-row: span 1; min-height: 250px; } /* Simple layout spacer */

/* Name Card Specifics */
.name-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.name-card-subtitle {
  position: absolute;
  top: 2.8rem;
  left: 0;
  width: 100%;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.name-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: -1.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.15em;
  word-break: break-word;
  
  /* Advanced Animated Text Gradient */
  background: linear-gradient(
    to right,
    #ffffff 20%,
    #a855f7 40%,
    #ec4899 60%,
    #ffffff 80%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sweep-text 4s linear infinite;
  display: inline-block;
}

[data-theme="light"] .name-card-title {
  background: linear-gradient(
    to right,
    #0f172a 20%,
    #a855f7 40%,
    #ec4899 60%,
    #0f172a 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.name-card-role {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: fit-content;
}

.resume-btn:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(236, 72, 153, 0.4) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.resume-btn i {
  font-size: 1.1rem;
}

.bento-socials {
  display: flex;
  gap: 15px;
  position: absolute;
  bottom: 2rem;
}

.bento-social-link {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.bento-social-link:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.6) 0%, rgba(236, 72, 153, 0.6) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
}

@keyframes sweep-text {
  to {
    background-position: -200% center;
  }
}

/* Education Card Styles */
.education-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.education-header {
  margin-bottom: 1rem;
}

.edu-date-badge {
  display: inline-block;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  letter-spacing: 0.5px;
}

.education-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.edu-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.edu-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.edu-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1rem 0;
  opacity: 0.5;
}

.edu-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.edu-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.edu-grid-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.edu-grid-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: rgba(139, 92, 246, 0.4);
}

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

.edu-tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.edu-tag:hover {
  color: var(--text-primary);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.05);
}

/* Mindset Card */
.mindset-card {
  /* Perspective added in mobile view, on desktop it just wraps */
  perspective: 1000px;
}

.mindset-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
}

.mindset-card-front,
.mindset-card-back {
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
}

.mindset-card-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.mindset-card-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
  background: var(--bg-secondary);
  padding: 1.5rem;
  display: none; /* Hidden on desktop */
}

.mindset-card-content {
  z-index: 2;
}

.mindset-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, var(--bg-secondary) 15%, transparent 100%), url('assets/mindset.png');
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.bento-card:hover .mindset-img-overlay {
  transform: scale(1.05);
}

.mindset-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mindset-quote {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.mindset-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 3;
  background: rgba(14, 13, 31, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 99px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.mindset-click-hint {
  display: none;
}
/* Center Image Card */
.photo-card {
  padding: 0;
  position: relative;
  min-height: 300px;
}

.photo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.bento-card:hover .photo-card-img {
  transform: scale(1.05);
}

.photo-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(7, 6, 17, 0.2), rgba(7, 6, 17, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.photo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.photo-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

/* Craft/Skills list card */
.craft-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.craft-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.craft-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.craft-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

.tech-icon-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s;
}

.tech-icon-tag:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.tech-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.craft-collaborate {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.craft-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

/* Location Card */
.location-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.location-coord {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.location-timezone {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.location-map-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M30,40 Q40,20 50,40 T70,40' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M10,80 Q30,60 50,80 T90,80' fill='none' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
}

/* Featured Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--glow-shadow);
}

.project-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: var(--bg-tertiary);
}

.project-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.project-category {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.project-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.project-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.2s;
}

.project-btn:hover {
  background: var(--bg-primary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.github-all-projects-container {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.github-all-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 99px;
  text-decoration: none;
  transition: all var(--transition-speed);
  box-shadow: var(--card-shadow);
}

.github-all-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-shadow);
}

/* Skills 3D Sphere Section */
.skills-sphere-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 2rem;
  gap: 1.5rem;
  user-select: none;
}

/* Sphere Scene wrapper */
.sphere-scene {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  cursor: grab;
}

.sphere-scene:active {
  cursor: grabbing;
}

/* Wireframe rings */

/* Icon layer inside sphere scene */
.sphere-icons-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Each tech icon item */
.sphere-icon-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  pointer-events: all;
  cursor: default;
  transition: filter 0.2s;
}

.sphere-icon-item i,
.sphere-icon-item svg {
  font-size: 2rem;
  transition: transform 0.2s;
  line-height: 1;
}

.sphere-icon-item:hover i,
.sphere-icon-item:hover svg {
  transform: scale(1.25);
}

/* Hover label below sphere */
.sphere-hover-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-purple);
  height: 20px;
  text-align: center;
  min-width: 120px;
}

/* Certificates Section */
#certificates {
  padding-bottom: 2rem;
}

.certs-carousel {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 1rem 0 3rem 0;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.certs-carousel::-webkit-scrollbar {
  display: none;
}

.cert-card {
  flex: 0 0 340px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  scroll-snap-align: start;
  transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.15);
}

.cert-image-wrapper {
  width: 100%;
  aspect-ratio: 1.4;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cert-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 10px;
  background: var(--bg-tertiary);
}

.cert-fallback i {
  font-size: 2.5rem;
  color: var(--text-secondary);
}

.cert-fallback span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.cert-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cert-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.cert-issuer {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* More to Explore Section */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.explore-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: all var(--transition-speed);
}

.explore-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
}

.explore-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.explore-card:hover .explore-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--text-muted);
}

/* Explore Card Colors */
.explore-card.guestbook-card .explore-icon-wrapper { color: var(--accent-purple); }
.explore-card.achievements-card .explore-icon-wrapper { color: var(--accent-orange); }
.explore-card.links-card .explore-icon-wrapper { color: var(--accent-blue); }

.explore-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.explore-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.explore-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.explore-card:hover .explore-link {
  transform: translateX(4px);
}

/* Explore Sub-sections (Interactive Overlays/Modals) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 6, 17, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#modal-body-content {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  border-color: var(--text-muted);
  transform: scale(1.05);
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

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

/* Guestbook Section Inside Modal */
.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.guestbook-input, .guestbook-textarea {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: 14px;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.guestbook-input:focus, .guestbook-textarea:focus {
  border-color: var(--accent-purple);
}

.guestbook-textarea {
  min-height: 100px;
  resize: vertical;
}

.guestbook-submit-btn {
  background: var(--gradient-purple-pink);
  border: none;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.guestbook-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.guestbook-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.guestbook-entry {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.2rem;
}

.guestbook-entry-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.guestbook-entry-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

.guestbook-entry-date {
  color: var(--text-muted);
}

.guestbook-entry-msg {
  color: var(--text-secondary);
  font-size: 0.9rem;
  word-break: break-word;
}

/* Achievements Section Inside Modal */
.achievements-modal-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.achievement-modal-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.achievement-modal-icon {
  font-size: 1.8rem;
  color: var(--accent-orange);
}

.achievement-modal-details {
  flex: 1;
}

.achievement-modal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

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

/* Links Section Inside Modal */
.links-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-modal-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  transition: all 0.2s;
}

.link-modal-item:hover {
  background: var(--bg-primary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.link-modal-icon-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-modal-item i {
  font-size: 1.2rem;
}

/* Footer Section */
footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.back-to-home-btn {
  position: absolute;
  right: 1rem;
  bottom: 0;
  width: 45px;
  height: 45px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--card-shadow);
}

.back-to-home-btn:hover {
  background: var(--accent-purple);
  color: #fff;
  transform: translateY(-5px);
  border-color: var(--accent-purple);
}

@media (max-width: 768px) {
  .back-to-home-btn {
    position: static;
    margin-top: 2rem;
  }
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-massive-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 7vw, 10rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin: 0 0 2rem 0;
  line-height: 1.1;
  white-space: nowrap;
}

.footer-social-link {
  color: var(--text-secondary);
  font-size: 1.8rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-social-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.designer-text {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-top: 1rem;
}

.designer-text .muted-text {
  color: var(--text-muted);
}

.designer-text .highlight-text {
  color: var(--text-primary);
  font-weight: 500;
  margin-left: 0.3rem;
}
/* Animations */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wave {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-4, .card-8 {
    grid-column: span 2;
  }
  .row-2 {
    grid-row: auto;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .explore-card.links-card {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  /* Global Spacing */
  .container {
    padding: 0 1.2rem;
  }
  .section-container {
    padding: 4rem 0;
  }

  /* Mobile Side Navigation Drawer */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 1rem;
    right: 1.2rem;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 13, 31, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--card-shadow);
  }

  [data-theme="light"] .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.8);
  }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -280px; /* Hidden by default */
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 5rem 1.5rem 2rem 1.5rem;
  }

  .nav-drawer.open {
    right: 0;
  }

  .mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Reset capsule to be a vertical menu */
  .nav-capsule {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    overflow: visible;
    gap: 0.5rem;
    margin-bottom: auto;
  }
  
  [data-theme="light"] .nav-capsule {
    background: transparent;
  }

  .nav-link {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
  }

  .desktop-text {
    display: inline;
  }

  .mobile-text {
    display: none;
  }

  .theme-toggle-btn {
    position: static;
    transform: none;
    margin-top: 0;
    margin-bottom: 2.5rem;
    margin-left: 1.2rem;
    align-self: flex-start;
    border: 1px solid var(--border-color);
  }
  .theme-toggle-btn:hover {
    transform: scale(1.05);
  }
  .book-call-btn {
    padding: 10px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .book-call-btn span {
    display: none; /* Icon only */
  }

  /* Header & Theme Button */
  .nav-logo {
    left: 1.2rem;
  }
  .theme-toggle-btn {
    right: 1.2rem;
  }
  header {
    top: 6.5rem;
  }

  /* Hero Section */
  #home {
    padding-top: 6rem;
  }
  .hero-avatar-container {
    width: 130px;
    height: 130px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
  }
  .hero-avatar {
    width: 130px;
    height: 130px;
  }
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    min-height: 125px;
  }

  /* Chatbot */
  .chatbot-wrapper {
    padding: 0;
  }
  .chatbot-container {
    padding: 1.2rem;
  }
  .chatbot-messages {
    height: 250px;
  }
  .chatbot-chip {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 2.2rem;
  }

  /* Bento & Grids */
  /* Bento & Grids - 2 Column Layout */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .bento-card {
    padding: 1.2rem;
  }
  
  /* Reset Desktop Spans and Apply Mobile Ordering */
  .name-card {
    grid-column: span 1;
    order: 1;
    align-items: flex-start;
    text-align: left;
  }
  .photo-card {
    grid-column: span 1;
    order: 2;
  }
  .education-card {
    grid-column: span 2;
    order: 3;
  }
  .craft-card {
    grid-column: span 1;
    grid-row: span 2;
    order: 4;
  }
  .location-card {
    grid-column: span 1;
    order: 5;
  }
  .mindset-card {
    grid-column: span 1;
    order: 6;
    cursor: pointer;
    min-height: 350px;
  }
  .mindset-card.flipped .mindset-card-inner {
    transform: rotateY(180deg);
  }
  .mindset-card-back {
    display: block;
    overflow-y: auto;
    padding: 1.2rem;
    -webkit-overflow-scrolling: touch;
  }
  .mindset-card-back::-webkit-scrollbar {
    width: 4px;
  }
  .mindset-card-back::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
  }
  .mindset-card-back .mindset-quote {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .mindset-card-back .mindset-tagline {
    font-size: 0.8rem;
  }
  .mindset-card-front .mindset-quote {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mindset-card-front .mindset-tagline {
    display: none;
  }
  .mindset-click-hint {
    display: inline-flex;
    position: absolute;
    top: 130px;
    left: 1.2rem;
    transform: none;
    z-index: 4;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(14, 13, 31, 0.85);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  /* Fix Name Card Overlapping on Mobile */
  .name-card-subtitle {
    position: static;
    font-size: 0.6rem;
    margin-bottom: 0.5rem;
  }
  .name-card-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin-top: 0;
  }
  .name-card-role {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  .resume-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }
  .bento-socials {
    position: static;
    margin-top: 1rem;
    gap: 8px;
  }
  .bento-social-link {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  .explore-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .explore-card.links-card {
    grid-column: span 1;
  }

  /* Skills Sphere */
  .sphere-scene {
    width: 100% !important;
    max-width: 320px;
    height: 320px !important;
    margin: 0 auto;
  }
  .skills-sphere-container {
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
