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

:root {
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #007bff;
  --accent-gradient: linear-gradient(135deg, #007bff 0%, #00d2ff 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-glow: rgba(0, 123, 255, 0.15);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Typography & Utilities */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.2rem 0;
  transition: all 0.4s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary) !important;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand span {
  color: var(--accent-color);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color) !important;
  transform: translateY(-3px);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Background Gradients */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 210, 255, 0.2);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(58, 123, 213, 0.15);
  bottom: -200px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-50px) scale(1.1);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--glass-glow);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn-primary-custom {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
  color: white;
}

.btn-outline-custom {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-outline-custom:hover::before {
  transform: translateX(0);
}

.btn-outline-custom:hover {
  border-color: var(--text-primary);
  color: white;
}

/* Name Animation */
.name-anim {
  display: inline-block;
  animation: tracking-in-expand 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }

  40% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* Social Links */
.social-links a {
  color: var(--text-secondary);
  font-size: 2.5rem;
  margin: 0 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-5px) scale(1.1);
  text-shadow: 0 5px 15px var(--glass-glow);
}

/* Profile Image */
.hero-img-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-container::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-gradient);
  filter: blur(30px);
  opacity: 0.4;
  z-index: -1;
}

.profile-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-color);
  box-shadow: 0 0 0 2px var(--glass-border);
  transition: transform 0.5s ease;
}

.hero-img-container:hover .profile-img {
  transform: scale(1.02);
}

/* --- Interactive Categories Section --- */

.categories-section {
  position: relative;
  z-index: 10;
}

.category-item {
  padding: 1.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.category-header {
  cursor: pointer;
  user-select: none;
}

.category-header h3 {
  transition: color 0.3s ease;
}

.category-header:hover h3 {
  color: var(--accent-color);
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  color: var(--text-primary);
}

.category-header:hover .icon-circle {
  background: var(--glass-glow);
  color: var(--accent-color);
}

.toggle-icon {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Category Content (Accordion Logic) */
.category-content {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.4s ease,
    visibility 0s linear 0.6s,
    margin-top 0.4s ease;
  margin-top: 0;
}

/* Active State */
.category-item.active {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 123, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.category-item.active .category-header h3 {
  color: var(--accent-color);
}

.category-item.active .icon-circle {
  background: var(--accent-gradient);
  color: white;
  transform: rotate(45deg);
  /* Turns the '+'' into an 'x' */
}

.category-item.active .category-content {
  max-height: 1000px;
  /* Arbitrary large max height */
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  margin-top: 1rem;
}

/* Inner Project Links */
.glass-card-inner {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.glass-card-inner:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent-color);
  transform: translateX(8px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-link h5 {
  font-weight: 600;
  font-size: 1.1rem;
}

/* New Grid Project Layout */
.project-card {
  transition: transform 0.3s ease;
}

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

.project-img-wrapper {
  position: relative;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: var(--glass-bg);
  /* Use aspect-ratio to keep images uniform */
  aspect-ratio: 16 / 9;
}

.project-img {
  transition: transform 0.4s ease;
  height: 100%;
}

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

.project-title {
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  padding: 0 0.5rem;
}

.project-card:hover .project-title {
  color: var(--accent-color) !important;
}

/* Interactive Skills Grid */
.skill-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  position: relative;
}

.skill-card:hover {
  transform: scale(1.15) !important;
  z-index: 10;
  box-shadow: 0 15px 35px var(--glass-glow) !important;
  border-color: var(--accent-color) !important;
}

.skill-card i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card:hover i {
  transform: scale(1.15) translateY(-5px) rotate(8deg);
  color: var(--accent-color);
  text-shadow: 0 0 15px var(--glass-glow);
}

.skill-card h5 {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* --- NEW HOMEPAGE HERO STYLES --- */
.custom-home-bg {
  background-color: #030305;
  color: #ffffff;
  overflow-x: hidden;
  /* Allow vertical scroll, hide horizontal overflow */
  position: relative;
  font-family: 'Outfit', sans-serif;
  margin: 0;
}

/* Deep blue/purple radial glow behind the text */
.custom-home-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(50, 20, 100, 0.4) 0%, rgba(20, 40, 120, 0.2) 30%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

/* Header & Pill Nav */
.custom-header {
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-nav {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 0.3rem 0.4rem;
  gap: 0.1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pill-nav .nav-item {
  color: #a3a3a3;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 300;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  letter-spacing: 0.3px;
}

.pill-nav .nav-item:hover {
  color: #ffffff;
}

.pill-nav .nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.header-right .icon-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.header-right .icon-btn:hover {
  color: white;
}

/* Hero Main Layout */
.hero-main {
  min-height: 100vh;
  /* Full screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 1rem;
  max-width: 1000px;
}

/* Upcoming Badge */
.upcoming-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  padding: 0.25rem 0.8rem 0.25rem 0.3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}

.badge-label {
  background: #1e40af;
  /* Blue pill */
  color: rgba(255, 255, 255, 0.9);
  padding: 0.1rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  margin-right: 0.6rem;
  font-size: 0.7rem;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}

.badge-text {
  color: #b0b0b0;
  font-weight: 300;
}

/* Typography */
.sub-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 2rem !important;
}

.main-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(135deg, #f5f0e0, #daa520, #e8d5a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.4s;
  opacity: 0;
  margin-bottom: 2.5rem !important;
}

.hero-description {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  color: #e8dcc8;
  max-width: 850px;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 3.5rem !important;
}

/* CTA Buttons */
.btn-connect {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: white;
  text-decoration: none;
  padding: 0.4rem 0.4rem 0.4rem 1.4rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

.btn-connect:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  margin-left: 0.8rem;
  transition: transform 0.3s ease;
}

.btn-connect:hover .arrow-circle {
  transform: scale(1.05);
}

.email-copy {
  color: #c0c0c0;
  font-size: 0.95rem;
  font-weight: 300;
}

.copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a0a0a0;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Planet Horizon Effects */
.horizon-glow {
  position: absolute;
  bottom: -40vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 60vh;
  background:
    radial-gradient(ellipse at top, rgba(100, 150, 255, 0.3) 0%, rgba(50, 80, 200, 0.1) 40%, transparent 60%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

.horizon-arc {
  position: absolute;
  bottom: -50vh;
  left: 50%;
  transform: translateX(-50%);
  width: 150vw;
  height: 60vh;
  border-radius: 50%;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.4) 0%, rgba(200, 220, 255, 0.1) 10%, transparent 40%);
  box-shadow: 0 -5px 15px rgba(255, 255, 255, 0.15), 0 -10px 50px rgba(100, 150, 255, 0.05);
  z-index: 2;
  opacity: 1;
}

/* Animated Fog/Smoke Layers */
.fog-layer {
  position: absolute;
  bottom: 0;
  left: -50vw;
  width: 200vw;
  /* Double width for continuous animation */
  height: 40vh;
  z-index: 3;
  pointer-events: none;
  opacity: 0.4;
  /* Complex gradient to simulate cloudy/misty shapes */
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.15), transparent 40%),
    radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, 0.1), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(255, 255, 255, 0.12), transparent 45%),
    radial-gradient(ellipse at 120% 70%, rgba(255, 255, 255, 0.1), transparent 50%);
  filter: blur(30px);
  animation: driftFog 20s linear infinite;
}

.fog-layer.fog-2 {
  opacity: 0.25;
  height: 50vh;
  animation-duration: 25s;
  animation-direction: reverse;
  filter: blur(40px);
  background:
    radial-gradient(ellipse at 30% 70%, rgba(255, 255, 255, 0.1), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.15), transparent 60%);
}

@keyframes driftFog {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100vw);
  }
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 12px;
  background-color: #b0b0b0;
  margin-left: 2px;
  animation: blink 0.7s infinite;
  vertical-align: middle;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Split text animation */
.split-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: popIn 0.5s ease forwards;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESEARCH DASHBOARD STYLES --- */
.dashboard-section {
  position: relative;
  z-index: 10;
  background-color: transparent;
  min-height: 100vh;
  /* Make it a full screen height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0;
  /* Ensures content doesn't collide with top/bottom */
}

.custom-container {
  max-width: 1400px;
}

/* Collaboration Banner */
.collaboration-banner {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7b8ea0;
  margin-bottom: 2rem;
}

.fade-in-up {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Dark Minimal Panels */
.dashboard-panel {
  background: rgba(10, 12, 18, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.dashboard-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.dashboard-panel:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow:
    0 0 15px rgba(59, 130, 246, 0.15),
    0 0 40px rgba(59, 130, 246, 0.08),
    0 20px 60px rgba(0, 0, 30, 0.5),
    inset 0 0 50px rgba(59, 130, 246, 0.02);
}

/* dashboard-grid spacing is handled by Bootstrap g-4 gutter */

/* Panel Headers */
.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #e2e8f0;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.title-underline {
  height: 2px;
  width: 40px;
  background: linear-gradient(90deg, #3b82f6, transparent);
  border-radius: 2px;
}

.panel-right .title-underline {
  background: linear-gradient(270deg, #3b82f6, transparent);
}

/* Research Interests List */
.interest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.interest-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.interest-list li:hover {
  color: #f1f5f9;
}

.interest-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Tech Stack Grid */
.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}

/* Category Labels */
.tech-category-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4b6a8a;
  margin-bottom: 0.4rem;
  margin-top: 0.6rem;
  text-align: center;
  position: relative;
}

.tech-category-label:first-of-type {
  margin-top: 0;
}

/* Tech Badges */
.tech-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 300;
  cursor: default;
  position: relative;
  transition: transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.35s ease,
    color 0.25s ease;
  animation: badge-float 2s ease-in-out infinite;
}

/* Stagger idle float animation */
.tech-badge:nth-child(1) {
  animation-delay: 0s;
}

.tech-badge:nth-child(2) {
  animation-delay: -0.4s;
}

.tech-badge:nth-child(3) {
  animation-delay: -0.9s;
}

.tech-badge:nth-child(4) {
  animation-delay: -1.5s;
}

.tech-badge:nth-child(5) {
  animation-delay: -2.1s;
}

.tech-badge:nth-child(6) {
  animation-delay: -2.8s;
}

.tech-badge:nth-child(7) {
  animation-delay: -3.4s;
}

.tech-badge:nth-child(n+8) {
  animation-delay: -1.2s;
}

@keyframes badge-float {

  0%,
  100% {
    transform: translateX(0px);
  }

  50% {
    transform: translateX(6px);
  }
}

/* Hover: scale + neon glow */
.tech-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: scale(1.06);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.5), 0 0 40px rgba(59, 130, 246, 0.12);
  animation: none;
  /* stop float on hover */
}

/* Icon subtle pulse */
.tech-badge i {
  transition: text-shadow 0.25s ease, transform 0.25s ease;
}

.tech-badge:hover i {
  transform: scale(1.15);
}

/* Scrollable panel for expanded tools */
.panel-right {
  overflow-y: auto;
  max-height: 580px;
}

.panel-right::-webkit-scrollbar {
  width: 4px;
}

.panel-right::-webkit-scrollbar-track {
  background: transparent;
}

.panel-right::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.text-wrap-badge {
  text-align: right;
  line-height: 1.2;
}

/* Tech Icon Glows */
.text-primary-glow {
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.text-success-glow {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.text-danger-glow {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.text-info-glow {
  color: #0ea5e9;
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.text-warning-glow {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.text-purple-glow {
  color: #8b5cf6;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.text-pink-glow {
  color: #ec4899;
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.text-cyan-glow {
  color: #06b6d4;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.text-orange-glow {
  color: #f97316;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.text-white-glow {
  color: #e2e8f0;
  text-shadow: 0 0 10px rgba(226, 232, 240, 0.4);
}

/* Center Panel Orbital Profile */
.panel-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.orbital-profile {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: spin linear infinite;
}

.ring-1 {
  width: 110px;
  height: 110px;
  animation-duration: 25s;
}

.ring-2 {
  width: 140px;
  height: 140px;
  border-style: solid;
  border-color: rgba(59, 130, 246, 0.15);
  animation-duration: 35s;
  animation-direction: reverse;
}

.ring-3 {
  width: 170px;
  height: 170px;
  animation-duration: 45s;
}

.orbit-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
  animation: counterSpin linear infinite;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.badge-1 {
  animation-duration: 25s;
}

.badge-2 {
  animation-duration: 35s;
  animation-direction: reverse;
  left: 0;
  top: 50%;
}

.badge-3 {
  animation-duration: 45s;
  top: 100%;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes counterSpin {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* Center Panel Buttons */
.btn-panel-primary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-panel-primary:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: white;
}

.btn-panel-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.6rem 0;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-panel-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* Bottom CTA Banner */
.bottom-cta-banner {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* --- GLOBE / TIMEZONE CARD --- */
.panel-globe {
  border-color: rgba(40, 80, 160, 0.25) !important;
  background: rgba(4, 6, 12, 0.85) !important;
}

.panel-globe:hover {
  border-color: rgba(40, 80, 160, 0.4) !important;
  box-shadow: 0 15px 50px rgba(0, 0, 30, 0.7), inset 0 0 60px rgba(30, 80, 200, 0.03) !important;
}

/* Interactive Globe Container */
.globe-container {
  width: 100%;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.globe-container canvas {
  border-radius: 12px;
}

/* Timezone flag buttons */
.tz-flag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #94a3b8;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.35s ease;
  position: relative;
  outline: none;
}

/* Button Glow on Hover */
.tz-flag:hover {
  color: #e0e8f0;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25), 0 0 28px rgba(59, 130, 246, 0.1);
  animation: tz-pulse 1.5s ease-in-out infinite;
}

@keyframes tz-pulse {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.25), 0 0 28px rgba(59, 130, 246, 0.1);
  }

  50% {
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.15);
  }
}

/* Active Country Button */
.tz-flag.tz-active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.2), 0 0 30px rgba(34, 197, 94, 0.08);
  animation: tz-active-glow 2s ease-in-out infinite;
}

@keyframes tz-active-glow {

  0%,
  100% {
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.2), 0 0 30px rgba(34, 197, 94, 0.08);
  }

  50% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.35), 0 0 45px rgba(34, 197, 94, 0.12);
  }
}

.tz-label {
  font-weight: 600;
  letter-spacing: 0.8px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.tz-meta-label {
  font-size: 0.7rem;
  color: #64748b;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ==============================
   ABOUT SECTION
   ============================== */
.about-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 0 5rem;
  position: relative;
  z-index: 10;
}

/* Label */
.about-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #7b8ea0;
  margin-bottom: 1.2rem;
}

/* Title */
.about-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.highlight-red {
  background: linear-gradient(135deg, #f5f0e0, #daa520);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-style: italic;
}

/* Description */
.about-description {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.2rem;
  max-width: 520px;
}

/* Tagline */
.about-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* Social Icons */
.about-socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

/* --- Stacked Card Image --- */
.about-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-stack-wrapper {
  position: relative;
  width: 300px;
  height: 380px;
}

.stack-card {
  position: absolute;
  width: 260px;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.5s ease;
}

/* Back card 2 (furthest back) */
.stack-card-back-2 {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  transform: translate(-50%, -50%) rotate(8deg) scale(0.9);
  opacity: 0.5;
  z-index: 1;
}

/* Back card 1 */
.stack-card-back-1 {
  background: linear-gradient(135deg, #0f3460, #1a4080);
  transform: translate(-50%, -50%) rotate(4deg) scale(0.95);
  opacity: 0.7;
  z-index: 2;
}

/* Front card (main image) */
.stack-card-front {
  z-index: 3;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.stack-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover effect on stack */
.card-stack-wrapper:hover .stack-card-back-2 {
  transform: translate(-50%, -50%) rotate(12deg) scale(0.88) translateX(20px);
}

.card-stack-wrapper:hover .stack-card-back-1 {
  transform: translate(-50%, -50%) rotate(6deg) scale(0.93) translateX(10px);
}

.card-stack-wrapper:hover .stack-card-front {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.15), 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Image Caption */
.about-image-caption {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #cbd5e1;
  margin-top: 1.5rem;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .about-section {
    padding: 8rem 0 4rem;
  }

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

  .about-description {
    max-width: 100%;
  }

  .about-socials {
    justify-content: center;
  }

  .card-stack-wrapper {
    margin: 0 auto;
  }
}

/* ==============================
   ABOUT COVERFLOW CAROUSEL
   ============================== */
.coverflow-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  perspective: 1200px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.coverflow-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.coverflow-slide {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 360px;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 1;
}

.coverflow-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.coverflow-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 0.8rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff; font-family: 'Outfit', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  text-align: center; border-radius: 0 0 16px 16px;
  opacity: 0; transition: opacity 0.4s;
}

/* Active center slide */
.coverflow-slide.cf-active {
  transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  opacity: 1; z-index: 10;
  pointer-events: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(218,165,32,0.08);
}
.coverflow-slide.cf-active .coverflow-label { opacity: 1; }

/* Previous slide (left) */
.coverflow-slide.cf-prev {
  transform: translate(-130%, -50%) scale(0.78) rotateY(35deg);
  opacity: 0.7; z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

/* Next slide (right) */
.coverflow-slide.cf-next {
  transform: translate(30%, -50%) scale(0.78) rotateY(-35deg);
  opacity: 0.7; z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

/* Far previous (barely visible on left edge) */
.coverflow-slide.cf-far-prev {
  transform: translate(-200%, -50%) scale(0.6) rotateY(50deg);
  opacity: 0.3; z-index: 2;
}

/* Far next (barely visible on right edge) */
.coverflow-slide.cf-far-next {
  transform: translate(100%, -50%) scale(0.6) rotateY(-50deg);
  opacity: 0.3; z-index: 2;
}

.coverflow-slide.cf-hidden {
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0; z-index: 0;
}

/* Hover lift on side slides */
.coverflow-slide.cf-prev:hover,
.coverflow-slide.cf-next:hover {
  opacity: 0.9;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* ==============================
   PROJECTS / WORK SECTION
   ============================== */
.projects-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 10rem 0 5rem;
}

/* Staggered 2-Column Grid */
.projects-staggered-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.5rem;
  row-gap: 0;
}

.project-col:nth-child(even) {
  margin-top: 0;
}

/* Section Header */
.projects-header {
  margin-bottom: 4rem;
}

.projects-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 30px;
}

.projects-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #f0f0f0 0%, #daa520 45%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  color: #7b8ea0;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Project Case Card */
.project-case-card {
  display: flex;
  flex-direction: column;
  background: rgba(10, 12, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.project-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.project-case-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(218, 165, 32, 0.35);
  box-shadow:
    0 0 20px rgba(218, 165, 32, 0.15),
    0 0 50px rgba(218, 165, 32, 0.08),
    0 20px 60px rgba(0, 0, 30, 0.5),
    inset 0 0 50px rgba(218, 165, 32, 0.02);
  color: inherit;
  text-decoration: none;
}

/* Card Header Row */
.card-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.project-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: #64748b;
  letter-spacing: 1px;
}

.project-divider {
  flex-grow: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.project-category {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #60a5fa;
  padding: 0.25rem 0.8rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 20px;
}

/* Laptop Device Frame */
.laptop-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: #0c0c12;
  border: 6px solid #1a1a24;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.4s ease;
}

/* Metallic corner highlights – REMOVED for clean look */
.laptop-frame::before {
  display: none;
}

/* Edge reflection – REMOVED for clean look */
.laptop-frame::after {
  display: none;
}

.laptop-frame .laptop-screen::after {
  display: none;
}

.project-case-card:hover .laptop-frame {
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(218, 165, 32, 0.12),
    inset 0 0 0 1px rgba(218, 165, 32, 0.08);
}

/* Project title overlay on image */
.laptop-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, transparent 100%);
}

.laptop-title-overlay span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #f5f5f5 0%, #daa520 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.laptop-screen {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Project Info */
.project-info {
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-case-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 0.7rem;
  line-height: 1.3;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.project-case-card:hover .project-case-title {
  color: #ffffff;
}

.project-case-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: #7b8ea0;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Tech Badges */
.project-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Tech Badges – Redesigned */
.p-tech-badge {
  background: rgba(15, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease,
    box-shadow 0.3s ease, transform 0.3s ease;
  animation: none;
}

.p-tech-badge:nth-child(2) { animation: none; }
.p-tech-badge:nth-child(3) { animation: none; }
.p-tech-badge:nth-child(4) { animation: none; }
.p-tech-badge:nth-child(5) { animation: none; }
.p-tech-badge:nth-child(6) { animation: none; }

.p-tech-badge i {
  font-size: 0.95rem;
  opacity: 1;
}

/* Brand colors for tech icons */
.p-tech-badge .devicon-python-plain { color: #3776ab; }
.p-tech-badge .devicon-pytorch-original { color: #ee4c2c; }
.p-tech-badge .fa-flask { color: #4caf50; }
.p-tech-badge .fa-chart-bar { color: #ff6f00; }
.p-tech-badge .fa-cogs { color: #f7931e; }
.p-tech-badge .fa-table { color: #150458; }
.p-tech-badge .fa-wave-square { color: #5c6bc0; }
.p-tech-badge .fa-atom { color: #00bcd4; }
.p-tech-badge .fa-calculator { color: #7e57c2; }
.p-tech-badge .fa-server { color: #546e7a; }
.p-tech-badge .fa-brain { color: #e91e63; }
.p-tech-badge .fa-dna { color: #26a69a; }
.p-tech-badge .fa-cube { color: #ff7043; }
.p-tech-badge .fa-project-diagram { color: #42a5f5; }

.p-tech-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.project-case-card:hover .p-tech-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(218, 165, 32, 0.15);
  color: #cbd5e1;
}

/* Card Arrow */
.card-arrow {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #475569;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.project-case-card:hover .card-arrow {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  transform: translate(2px, -2px);
}

/* Scroll Reveal Animation */
.reveal-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Bottom CTA */
.projects-bottom-cta {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.projects-bottom-cta a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.projects-bottom-cta a:hover {
  color: #60a5fa !important;
}

/* ===== Book a Call Modal System ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
  background: rgba(12, 14, 22, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 2.5rem;
  width: 90%; max-width: 520px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.modal-title {
  font-family: 'Playfair Display', serif; font-size: 1.6rem;
  font-weight: 500; color: #e2e8f0; margin-bottom: 0.3rem;
}
.modal-subtitle {
  font-family: 'Outfit', sans-serif; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #64748b; margin-bottom: 2rem; font-weight: 500;
}

/* Option cards */
.modal-option {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 1.2rem 1.4rem;
  cursor: pointer; text-decoration: none; color: inherit;
  transition: all 0.3s ease; margin-bottom: 0.75rem;
}
.modal-option:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(218,165,32,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.modal-option-text h4 {
  font-family: 'Outfit', sans-serif; font-size: 0.95rem;
  font-weight: 500; color: #e2e8f0; margin-bottom: 0.2rem;
}
.modal-option-text p {
  font-family: 'Outfit', sans-serif; font-size: 0.75rem;
  color: #64748b; margin: 0; font-weight: 300;
}
.modal-option-icon {
  color: #64748b; font-size: 0.9rem; transition: color 0.2s;
}
.modal-option:hover .modal-option-icon { color: #daa520; }

.modal-options-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}

/* Modal social icons */
.modal-socials {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.modal-socials a {
  color: #64748b; font-size: 1.1rem; transition: color 0.2s;
}
.modal-socials a:hover { color: #daa520; }

/* Contact form modal */
.contact-form-modal { display: none; }
.contact-form-modal.active { display: block; }
.modal-back {
  background: none; border: none; color: #64748b;
  cursor: pointer; font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 1.5rem; transition: color 0.2s;
}
.modal-back:hover { color: #e2e8f0; }

.modal-form-group { margin-bottom: 1rem; }
.modal-form-group label {
  font-family: 'Outfit', sans-serif; font-size: 0.8rem;
  color: #94a3b8; display: block; margin-bottom: 0.4rem;
}
.modal-form-group input,
.modal-form-group textarea {
  width: 100%; padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; color: #e2e8f0;
  font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  transition: border-color 0.2s;
}
.modal-form-group input:focus,
.modal-form-group textarea:focus {
  outline: none; border-color: rgba(218,165,32,0.4);
}
.modal-form-group textarea { resize: vertical; min-height: 100px; }

.modal-submit-btn {
  width: 100%; padding: 0.8rem;
  background: linear-gradient(135deg, #daa520, #a855f7);
  border: none; border-radius: 10px; color: #fff;
  font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  font-weight: 500; cursor: pointer; margin-top: 0.5rem;
  transition: opacity 0.3s;
}
.modal-submit-btn:hover { opacity: 0.9; }

/* Responsive */
@media (max-width: 991px) {
  .projects-section {
    padding: 8rem 0 3rem;
  }

  .projects-header {
    margin-bottom: 2.5rem;
  }

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

  .project-col:nth-child(even) {
    margin-top: 0;
  }

  .project-case-card {
    padding: 1.5rem;
  }
}

@media (max-width: 575px) {
  .projects-section {
    padding: 7rem 0 2rem;
  }

  .project-case-title {
    font-size: 1.15rem;
  }

  .project-case-desc {
    font-size: 0.85rem;
  }

  .card-header-row {
    margin-bottom: 1rem;
  }

  .project-number {
    font-size: 1rem;
  }
}

/* ===== CTA Section v2 – Animated Gradient Box ===== */
.cta-section-v2 {
  position: relative; padding: 4rem 0; text-align: center;
  background: rgba(8,10,16, 1);
}

/* Rounded container box */
.cta-box {
  position: relative; border-radius: 24px; overflow: hidden;
  background: #020617;
  border: 1px solid rgba(100,150,255,0.12);
  box-shadow:
    0 0 80px rgba(30,80,200,0.08),
    0 0 120px rgba(60,40,160,0.05),
    0 20px 80px rgba(0,0,0,0.6),
    inset 0 0 100px rgba(10,20,60,0.2);
  padding: 5rem 2rem 4rem;
  min-height: 420px;
}

/* Nebula canvas */
.cta-nebula-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Light bloom behind text */
.cta-spotlight {
  position: absolute; top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(30,60,180,0.14) 0%, rgba(20,40,120,0.06) 40%, transparent 70%);
  pointer-events: none; z-index: 1;
  filter: blur(10px);
}

/* Micro particles container */
.cta-micro-particles {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

/* Content layer on top */
.cta-box-content {
  position: relative; z-index: 5;
}

/* Logo badge */
.cta-badge-wrap {
  display: inline-flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.cta-logo {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(96,165,250,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 600;
  font-size: 1.1rem; color: #fff;
  background: rgba(10,12,18,0.9);
}

/* Heading */
.cta-heading-v2 {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500; color: #e2e8f0; line-height: 1.2; margin-bottom: 1.5rem;
}
.cta-heading-v2 strong {
  font-weight: 700;
  background: linear-gradient(135deg, #daa520, #a855f7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-shadow: none;
}

/* Spinning badge */
.cta-spin-wrapper {
  position: relative; display: inline-block; margin-left: 0.5rem;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px rgba(96,165,250,0.3));
}
.cta-spin-badge {
  width: 68px; height: 68px; animation: spinBadge 12s linear infinite;
}
@keyframes spinBadge { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cta-spin-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: #0a0a0f; border: 2px solid rgba(96,165,250,0.6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(96,165,250,0.2);
}
.cta-spin-center i { color: #fff; font-size: 0.65rem; }

/* Button */
.cta-get-in-touch-v2 {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.85rem 2rem; border-radius: 50px;
  background: #fff; color: #0a0a0f; text-decoration: none;
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 500;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.cta-get-in-touch-v2:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255,255,255,0.2), 0 0 40px rgba(100,130,255,0.1);
}
.cta-get-in-touch-v2 .arrow-circle {
  width: 28px; height: 28px; border-radius: 50%; background: #0a0a0f;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.cta-get-in-touch-v2:hover .arrow-circle { transform: translateX(3px); }
.cta-get-in-touch-v2 .arrow-circle i { color: #fff; font-size: 0.7rem; }

.cta-available {
  font-family: 'Outfit', sans-serif; font-size: 0.95rem;
  font-weight: 600; color: #e2e8f0; margin-top: 2.5rem;
}
.cta-available-desc {
  font-family: 'Outfit', sans-serif; font-size: 0.85rem;
  color: #7b8ea0; font-weight: 300; margin-top: 0.3rem;
  max-width: 500px; margin-left: auto; margin-right: auto;
}

@media (max-width: 768px) {
  .cta-box { padding: 3rem 1.5rem 2.5rem; border-radius: 18px; }
  .cta-heading-v2 { font-size: 1.8rem; }
  .cta-spotlight { width: 250px; height: 200px; }
}

/* ===== Footer ===== */
.site-footer {
  background: rgba(8,10,16,1); padding: 3rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; padding-bottom: 2.5rem;
}
.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  font-weight: 600; color: #fff; text-decoration: none;
  letter-spacing: 1px; display: inline-block; margin-bottom: 1rem;
}
.footer-brand p {
  font-family: 'Outfit', sans-serif; font-size: 0.85rem;
  color: #64748b; line-height: 1.6; max-width: 280px;
}
.footer-col h5 {
  font-family: 'Outfit', sans-serif; font-size: 0.7rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: #daa520; margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  color: #94a3b8; text-decoration: none; margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; justify-content: center; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom span {
  font-family: 'Outfit', sans-serif; font-size: 0.75rem; color: #475569;
}
.footer-bottom a {
  font-family: 'Outfit', sans-serif; font-size: 0.75rem;
  color: #64748b; text-decoration: none; transition: color 0.2s;
}
.footer-bottom a:hover { color: #daa520; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-heading { font-size: 1.8rem; }
}

/* ==============================
   ABOUT SECTION – DARK BLUE BG
   ============================== */
.about-dark-blue-bg {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(15, 30, 120, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(5, 15, 80, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #020408 0%, #050a1a 20%, #08102a 50%, #050a18 80%, #050505 100%);
}

/* Reduced heading size */
.about-title-sm {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
}

/* ==============================
   MAC-STYLE CODE EDITOR WINDOW
   ============================== */
.code-window {
  background: #1a1b26;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(100, 10, 10, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin: 1.5rem 0 1.8rem;
  max-width: 580px;
  position: relative;
}

/* Header Bar */
.code-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: rgba(30, 32, 48, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.code-dot:hover {
  transform: scale(1.2);
}

.dot-red {
  background: #ff5f57;
  box-shadow: 0 0 6px rgba(255, 95, 87, 0.4);
}
.dot-red:hover { box-shadow: 0 0 12px rgba(255, 95, 87, 0.7); }

.dot-yellow {
  background: #ffbd2e;
  box-shadow: 0 0 6px rgba(255, 189, 46, 0.4);
}
.dot-yellow:hover { box-shadow: 0 0 12px rgba(255, 189, 46, 0.7); }

.dot-green {
  background: #28c840;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.4);
}
.dot-green:hover { box-shadow: 0 0 12px rgba(40, 200, 64, 0.7); }

.code-filename {
  font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.75rem;
  color: #7b8da0;
  letter-spacing: 0.3px;
  font-weight: 400;
}

/* Code Body */
.code-window-body {
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 420px;
}

.code-window-body pre {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.code-window-body code {
  font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #abb2bf;
  tab-size: 4;
  white-space: pre;
  display: block;
}

/* Code Lines (for animation) */
.code-line {
  display: block;
  min-height: 1.2em;
  position: relative;
}

/* Empty code lines take less space in compact mode */
.code-window-body-compact .code-line:empty {
  min-height: 0.4em;
}

/* ==============================
   SYNTAX HIGHLIGHTING
   ============================== */

/* Keywords: class, def, self, return */
.py-keyword {
  color: #ff6b6b;
  font-weight: 500;
}

/* Strings */
.py-string {
  color: #e6c07b;
}

/* Variables */
.py-variable {
  color: #61afef;
}

/* Comments */
.py-comment {
  color: #7f848e;
  font-style: italic;
}

/* Function/Class names */
.py-function {
  color: #c678dd;
  font-weight: 500;
}

/* Built-in methods like __init__ */
.py-builtin {
  color: #56b6c2;
}

/* ==============================
   TYPING CURSOR
   ============================== */
.typing-cursor-code {
  display: inline-block;
  color: #61afef;
  font-weight: 300;
  font-size: 0.9em;
  opacity: 0;
  margin-left: 1px;
  animation: none;
}

.typing-cursor-code.cursor-blink-active {
  opacity: 1;
  animation: codeCursorBlink 0.8s step-end infinite;
}

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

/* ==============================
   CODE WINDOW HOVER EFFECT
   ============================== */
.code-window:hover {
  border-color: rgba(255, 107, 107, 0.15);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(100, 10, 10, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ==============================
   CODE WINDOW – SCROLLBAR
   ============================== */
.code-window-body::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.code-window-body::-webkit-scrollbar-track {
  background: transparent;
}
.code-window-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.code-window-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==============================
   CODE WINDOW – RESPONSIVE
   ============================== */
@media (max-width: 991px) {
  .code-window {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575px) {
  .code-window-body code {
    font-size: 0.68rem;
    line-height: 1.6;
  }

  .code-window-header {
    padding: 0.55rem 0.8rem;
  }

  .code-dot {
    width: 10px;
    height: 10px;
  }

  .code-filename {
    font-size: 0.65rem;
  }

  .code-window-body {
    padding: 0.8rem 1rem;
    max-height: 350px;
  }
}

/* ==============================
   CODE WINDOW – RIGHT SIDE LAYOUT
   ============================== */
.code-window-right {
  max-width: 100%;
  margin: 0;
}

/* Compact code body – fits all code in viewport */
.code-window-body-compact {
  padding: 0.5rem 0.8rem;
  max-height: none;
  overflow-y: visible;
}

.code-window-body-compact code {
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Carousel row below text+code */
.about-carousel-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.about-carousel-row .coverflow-carousel {
  height: 320px;
}

/* Tighter about section padding to fit in viewport */
.about-section.about-dark-blue-bg {
  padding: 5.5rem 0 1rem;
  min-height: auto;
}

@media (max-width: 991px) {
  .about-section.about-dark-blue-bg {
    padding: 6rem 0 2rem;
  }

  .code-window-right {
    margin-top: 1.5rem;
  }

  .about-carousel-row .coverflow-carousel {
    height: 280px;
  }
}

@media (max-width: 575px) {
  .code-window-body-compact code {
    font-size: 0.6rem;
    line-height: 1.45;
  }

  .about-carousel-row .coverflow-carousel {
    height: 240px;
  }
}

/* ==============================
   AI SKILLS SPHERE SECTION
   ============================== */
.skills-sphere-section {
  min-height: 100vh;
  padding: 7rem 0 3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.skills-header {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.skills-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7b8ea0;
  margin-bottom: 0.8rem;
}

.skills-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.skills-title-gradient {
  background: linear-gradient(135deg, #a78bfa, #6366f1, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

/* Sphere Wrapper */
.sphere-wrapper {
  position: relative;
  width: 100%;
  max-width: 750px;
  height: 65vh;
  min-height: 400px;
  max-height: 600px;
  margin: 0 auto;
}

.sphere-wrapper canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Skill Icons Layer */
.skill-icons-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Individual Orbit Icons */
.skill-orbit-icon {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: filter 0.3s ease;
  will-change: transform, opacity;
}

.skill-orbit-icon i {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 4px rgba(100, 100, 255, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.skill-orbit-icon .skill-icon-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Glow on hover */
.skill-orbit-icon.skill-icon-glow i {
  filter: drop-shadow(0 0 12px currentColor) drop-shadow(0 0 24px currentColor);
  transform: scale(1.25);
}

.skill-orbit-icon.skill-icon-glow .skill-icon-label {
  color: #ffffff;
}

/* Fly-in active */
.skill-orbit-icon.skill-fly-active {
  opacity: 1;
}

/* ==============================
   SKILL TOOLTIP
   ============================== */
.skill-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  background: rgba(15, 15, 35, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(100, 100, 255, 0.2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  max-width: 260px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.skill-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-tooltip-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.skill-tooltip-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* ==============================
   SKILL INFO CARD
   ============================== */
.skill-info-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 1100;
  background: rgba(12, 12, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(100, 100, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  width: 340px;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(80, 80, 200, 0.08);
}

.skill-info-card.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.skill-info-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.skill-info-close:hover {
  color: #fff;
}

.skill-info-icon {
  margin-bottom: 0.8rem;
}

.skill-info-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.skill-info-category {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #818cf8;
  margin-bottom: 1rem;
}

.skill-info-details {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.skill-info-details p {
  color: rgba(255, 255, 255, 0.9);
}

.skill-info-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-info-details li {
  padding: 4px 0;
  padding-left: 1rem;
  position: relative;
}

.skill-info-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #818cf8;
}

/* ==============================
   SKILLS SPHERE – RESPONSIVE
   ============================== */
@media (max-width: 991px) {
  .sphere-wrapper {
    height: 55vh;
    min-height: 350px;
  }

  .skill-orbit-icon i {
    font-size: 1.3rem;
  }

  .skill-orbit-icon .skill-icon-label {
    font-size: 0.5rem;
  }
}

@media (max-width: 575px) {
  .skills-sphere-section {
    padding: 6rem 0 2rem;
  }

  .sphere-wrapper {
    height: 50vh;
    min-height: 300px;
  }

  .skill-orbit-icon i {
    font-size: 1.1rem;
  }

  .skill-orbit-icon .skill-icon-label {
    display: none;
  }

  .skill-info-card {
    width: 300px;
    padding: 1.5rem;
  }
}

/* ============================================================
   HYBRID NAVIGATION – Preview Section Styles
   ============================================================ */

/* Smooth scrolling */
html { scroll-behavior: smooth; }
html, body { scroll-padding-top: 80px; }

/* Hero scroll button */
.hero-scroll-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 2.5rem; padding: 0.6rem 1.5rem; border-radius: 50px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 400;
  transition: all 0.3s ease; letter-spacing: 0.3px;
  animation: gentleBounce 2.5s ease-in-out infinite;
}
.hero-scroll-btn:hover {
  background: rgba(255,255,255,0.12); color: #fff;
  border-color: rgba(255,255,255,0.2);
}
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Preview sections */
.home-preview-section {
  padding: 5rem 0 4rem; position: relative;
}

/* Section header */
.home-section-header {
  text-align: center; margin-bottom: 3rem;
}
.home-section-label {
  display: inline-block; font-family: 'Outfit', sans-serif;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: #60a5fa; margin-bottom: 0.8rem;
}
.home-section-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500; color: #e2e8f0; line-height: 1.2;
}

/* Preview sub-title & text */
.preview-sub-title {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  font-weight: 500; color: #e2e8f0; margin-bottom: 1rem; line-height: 1.3;
}
.preview-text {
  font-family: 'Outfit', sans-serif; font-size: 0.95rem;
  color: #94a3b8; line-height: 1.7; margin-bottom: 1rem;
}
.preview-tagline {
  font-family: 'Outfit', sans-serif; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: #60a5fa; margin-bottom: 1.5rem;
}

/* Section CTA buttons */
.section-cta-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.7rem 1.6rem; border-radius: 50px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #e2e8f0; text-decoration: none;
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 500;
  transition: all 0.3s ease;
}
.section-cta-btn:hover {
  background: rgba(255,255,255,0.12); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(96,165,250,0.1);
}
.section-cta-btn-primary {
  background: #fff; color: #0a0a0f; border-color: #fff;
}
.section-cta-btn-primary:hover {
  background: #e2e8f0; color: #0a0a0f;
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

/* Skills preview grid */
.skills-preview-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.skills-preview-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 2rem 1.5rem; text-align: center;
  transition: all 0.3s ease;
}
.skills-preview-card:hover {
  background: rgba(255,255,255,0.06); border-color: rgba(96,165,250,0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.skills-preview-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.3rem; color: #60a5fa;
}
.skills-preview-card h4 {
  font-family: 'Outfit', sans-serif; font-size: 1rem;
  font-weight: 600; color: #e2e8f0; margin-bottom: 0.5rem;
}
.skills-preview-card p {
  font-family: 'Outfit', sans-serif; font-size: 0.8rem;
  color: #7b8ea0; line-height: 1.5; margin: 0;
}

/* Blog coming soon */
.blog-coming-soon {
  text-align: center; padding: 4rem 2rem;
  background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 20px; max-width: 600px; margin: 0 auto;
}
.blog-coming-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 1.5rem; color: #60a5fa;
}
.blog-coming-soon h3 {
  font-family: 'Playfair Display', serif; font-size: 1.6rem;
  font-weight: 500; color: #e2e8f0; margin-bottom: 0.8rem;
}
.blog-coming-soon p {
  font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  color: #7b8ea0; line-height: 1.6; max-width: 450px; margin: 0 auto;
}

/* Contact preview */
.contact-preview {
  text-align: center; padding: 3rem 2rem;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; max-width: 700px; margin: 0 auto;
}
.contact-preview-text {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem;
  color: #94a3b8; line-height: 1.7; margin-bottom: 2rem;
}
.contact-preview-actions {
  display: flex; justify-content: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.contact-preview-socials {
  display: flex; justify-content: center; gap: 1.2rem;
}
.contact-preview-socials a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #7b8ea0; font-size: 1rem; text-decoration: none;
  transition: all 0.3s ease;
}
.contact-preview-socials a:hover {
  background: rgba(96,165,250,0.1); border-color: rgba(96,165,250,0.3);
  color: #60a5fa; transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
  .skills-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .skills-preview-grid { grid-template-columns: 1fr; }
  .home-preview-section { padding: 3rem 0 2.5rem; }
  .contact-preview { padding: 2rem 1.5rem; }
  .contact-preview-actions { flex-direction: column; align-items: center; }
}
/* --- NEW MOBILE RESPONSIVE OVERRIDES --- */
@media (max-width: 1200px) {
  .custom-header { padding: 1.2rem 2rem; }
}

@media (max-width: 991px) {
  .pill-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; padding: 0.5rem; border-radius: 15px; }
  .pill-nav .nav-item { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
  .custom-header { flex-direction: column; gap: 1rem; padding: 1rem; position: relative; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); z-index: 1000; }
  .hero-main { padding-top: 140px; }
  .sub-headline { font-size: clamp(28px, 4vw, 42px); }
  .main-headline { font-size: clamp(22px, 3vw, 32px); margin-bottom: 1.5rem !important; }
  .hero-description { font-size: 1.1rem; padding: 0 1rem; }
  .dashboard-grid .col-lg-4 { margin-bottom: 1.5rem; }
  .projects-staggered-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-col:nth-child(even) { margin-top: 0; }
}

@media (max-width: 768px) {
  .custom-header { padding: 0.8rem; }
  .pill-nav { display: flex !important; flex-wrap: wrap; border-radius: 12px; }
  .cta-container { flex-direction: column; gap: 1.5rem; }
  .email-copy { margin-left: 0 !important; }
  .hero-main { padding-top: 180px; min-height: auto; padding-bottom: 4rem; }
  .upcoming-badge { font-size: 0.85rem; padding: 0.3rem 0.6rem; }
  .bottom-cta-banner p { font-size: 0.9rem; }
  .upcoming-card { padding: 2rem 1.5rem; margin: 0 1rem; }
  .upcoming-project-title { font-size: 1.4rem; }
  .upcoming-project-desc h5 { font-size: 1.05rem !important; }
  .upcoming-project-desc p, .upcoming-project-desc li { font-size: 0.9rem; }
  .coming-soon-title { font-size: 2.5rem; }
  .home-preview-section { padding: 4rem 0 2rem !important; }
  .home-section-title { font-size: 2rem; }
  .dashboard-section { padding-top: 2rem !important; }
  
  /* Skills Mobile Fixes */
  .skills-preview-grid { display: flex; flex-direction: column; gap: 1rem; }
  .skill-card { margin-bottom: 0; }
  
  /* Connections/Contact Fixes */
  .contact-preview { padding: 1.5rem; }
  .contact-preview-actions { display: flex; flex-direction: column; width: 100%; gap: 1rem; }
  .contact-preview-actions a { width: 100%; text-align: center; }
}

@media (max-width: 576px) {
  .hero-main { padding-top: 200px; }
  .sub-headline { font-size: 1.5rem; }
  .main-headline { font-size: 1.2rem; }
  .hero-description { font-size: 1rem; }
  .btn-connect { padding: 0.4rem 0.4rem 0.4rem 1rem; font-size: 0.95rem; display: flex; width: 100%; justify-content: space-between;}
  .pill-nav .nav-item { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
  .upcoming-icon { font-size: 2rem; top: 1rem; right: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}
