/* ==========================================================================
   DESIGN SYSTEM & GLOBAL STYLES
   ========================================================================== */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --bg-dark: #0A0F29;
  --bg-darker: #050814;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-glass: rgba(10, 15, 41, 0.75);
  --bg-glass-light: rgba(255, 255, 255, 0.04);

  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(59, 130, 246, 0.5);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-blue: #2563eb;
  --accent-light-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;

  --glow-blue: 0 0 25px rgba(37, 99, 235, 0.35);
  --glow-purple: 0 0 25px rgba(139, 92, 246, 0.35);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-darker: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-glass-light: rgba(0, 0, 0, 0.04);

  --border-light: rgba(0, 0, 0, 0.1);
  --border-active: rgba(37, 99, 235, 0.6);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Hide default cursor when custom cursor active */
@media (pointer: fine) {

  body.has-custom-cursor,
  body.has-custom-cursor button,
  body.has-custom-cursor a,
  body.has-custom-cursor input,
  body.has-custom-cursor textarea {
    cursor: none !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-shimmer {
  background: linear-gradient(90deg, #3b82f6 0%, #ffffff 50%, #3b82f6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

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

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
}

.glass-panel-hover {
  transition: all var(--transition-normal);
}

.glass-panel-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
}

/* ==========================================================================
   CANVAS BACKGROUND & PRELOADER
   ========================================================================== */

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #eff6ff 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.preloader-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.05em;
}

.preloader-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  margin-top: 1rem;
  font-weight: 300;
}

.preloader-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}

.preloader-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.preloader-dot:nth-child(1) {
  background-color: var(--accent-blue);
  animation-delay: -0.32s;
}

.preloader-dot:nth-child(2) {
  background-color: var(--accent-purple);
  animation-delay: -0.16s;
}

.preloader-dot:nth-child(3) {
  background-color: var(--accent-pink);
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  mix-blend-mode: difference;
  transition: transform 0.15s ease-out;
}

.custom-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transition: transform 0.3s ease-out;
}

[data-theme="light"] .custom-cursor-dot {
  background-color: #2563eb;
  mix-blend-mode: normal;
}

[data-theme="light"] .custom-cursor-glow {
  border-color: rgba(37, 99, 235, 0.5);
  mix-blend-mode: normal;
}

.custom-cursor-active .custom-cursor-dot {
  transform: scale(2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.custom-cursor-active .custom-cursor-glow {
  transform: scale(1.8);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 500;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 15, 41, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.1) rotate(15deg);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  padding: 0.375rem 0.5rem;
  border-radius: 9999px;
  list-style: none;
}

.nav-link {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 9999px;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #ffffff;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(10, 15, 41, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem;
  z-index: 499;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  color: var(--text-secondary);
}

.mobile-nav-link.active {
  background: var(--accent-blue);
  color: #ffffff;
}

/* ==========================================================================
   PAGE VIEWS & SECTIONS
   ========================================================================== */

.page-view {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  z-index: 10;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #60a5fa;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 1rem auto 0;
  font-weight: 300;
}

.divider-line {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  border-radius: 9999px;
  margin: 1rem auto 0;
}

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 180px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-name {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 1rem 0;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-bio {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5);
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.7);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.social-icon-btn:hover {
  transform: scale(1.1);
}

/* Hero Avatar Showcase Card */
.hero-avatar-card {
  position: relative;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-avatar-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.7s ease;
}

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

.avatar-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(10, 15, 41, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.avatar-badge-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.avatar-badge-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Featured Roles Grid */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 4rem;
}

.role-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  transition: all var(--transition-normal);
}

.role-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
}

.role-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.role-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.role-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   EXPERTISE & EXPERIENCE SECTION (TABS & TIMELINE)
   ========================================================================== */

.expert-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.expert-tabs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 110px;
}

.expert-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  text-align: left;
}

.expert-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.3);
}

.expert-tab-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

/* Timeline Components */
.timeline-container {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(99, 102, 241, 0.25);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: calc(-2rem - 6px);
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue);
}

.timeline-card {
  padding: 1.75rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}

.timeline-role {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-size: 1rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 0.5rem;
}

.timeline-date {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Skills Grid Cards */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.75rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-img-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 0.875rem;
  overflow: hidden;
}

.skill-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.skill-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.skill-tag {
  padding: 0.25rem 0.65rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #60a5fa;
}

/* ==========================================================================
   PROJECTS SECTION & MODALS
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.25);
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #020617;
}

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

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

.project-body {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-techs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tech-badge {
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Modal Popup Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.88);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 720px;
  background: #0A0F29;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.modal-content {
  padding: 2rem;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 15, 41, 0.8);
  border: 1px solid var(--border-light);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* ==========================================================================
   VENTURES SECTION
   ========================================================================== */

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

.venture-card {
  padding: 2rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all var(--transition-normal);
}

.venture-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
}

.venture-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.venture-logo {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #60a5fa;
  overflow: hidden;
}

.venture-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.venture-meta {
  display: flex;
  flex-direction: column;
}

.venture-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #60a5fa;
  text-transform: uppercase;
}

.venture-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.venture-features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.feature-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
}

.feature-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   FOOTPRINTS (TRAVEL GALLERY)
   ========================================================================== */

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

.footprint-tab-btn {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.footprint-tab-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.location-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.location-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.4);
}

.location-img-wrapper {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

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

.location-card:hover .location-img {
  transform: scale(1.08);
}

.location-body {
  padding: 1.5rem;
}

.location-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 0.25rem;
}

.location-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.location-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Lightbox Gallery Modal */
.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.gallery-thumb:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   CONTACT SECTION & FORM
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.875rem;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.contact-form {
  padding: 2.25rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-light-blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  position: relative;
  background: #050814;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #60a5fa;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Floating Action Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
  z-index: 400;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.back-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.7);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .expert-layout {
    grid-template-columns: 1fr;
  }

  .expert-tabs-sidebar {
    flex-direction: row;
    overflow-x: auto;
    position: relative;
    top: 0;
    padding-bottom: 0.5rem;
  }

  .expert-tab-btn {
    white-space: nowrap;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-name {
    font-size: 2.5rem;
  }

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

  .projects-grid,
  .ventures-grid,
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LIGHT MODE COMPONENT OVERRIDES
   ========================================================================== */

[data-theme="light"] body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 250, 252, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .logo {
  color: #0f172a;
}

[data-theme="light"] .nav-menu {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-link {
  color: #334155;
}

[data-theme="light"] .nav-link:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-link.active {
  background: var(--accent-blue);
  color: #ffffff;
}

[data-theme="light"] .mobile-nav-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-nav-link {
  color: #334155;
}

[data-theme="light"] .mobile-nav-link.active {
  background: var(--accent-blue);
  color: #ffffff;
}

[data-theme="light"] .role-card,
[data-theme="light"] .timeline-card,
[data-theme="light"] .skill-card,
[data-theme="light"] .project-card,
[data-theme="light"] .venture-card,
[data-theme="light"] .location-card,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .hero-avatar-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .role-title,
[data-theme="light"] .timeline-role,
[data-theme="light"] .skill-title,
[data-theme="light"] .project-title,
[data-theme="light"] .venture-title,
[data-theme="light"] .location-name,
[data-theme="light"] .contact-info-text p,
[data-theme="light"] .contact-info-text a,
[data-theme="light"] .feature-item h5,
[data-theme="light"] .section-title,
[data-theme="light"] .hero-name {
  color: #0f172a;
}

[data-theme="light"] .role-desc,
[data-theme="light"] .timeline-desc,
[data-theme="light"] .skill-desc,
[data-theme="light"] .project-desc,
[data-theme="light"] .location-desc,
[data-theme="light"] .hero-bio,
[data-theme="light"] .hero-tagline,
[data-theme="light"] .section-subtitle,
[data-theme="light"] .feature-item p {
  color: #475569;
}

[data-theme="light"] .feature-item {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .project-tech-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

[data-theme="light"] .modal-overlay {
  background: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .modal-card {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-close-btn {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

[data-theme="light"] .footer {
  background: #f1f5f9;
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-col h3 {
  color: #0f172a;
}

[data-theme="light"] .footer-nav a {
  color: #334155;
}

[data-theme="light"] .footer-nav a:hover {
  color: #0f172a;
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
}