/* ==========================================================================
   AJIMI A S - FUTURISTIC 3D INTERACTIVE PORTFOLIO STYLES
   ========================================================================== */

/* ─── Variables & Theme Settings ────────────────────────────────────────── */
:root {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-primary: #0A0A0A;
  --bg-secondary: #0D0D0D;
  --bg-glass-front: rgba(10, 14, 10, 0.65);
  --bg-glass-back: rgba(3, 15, 8, 0.9);
  
  --primary: #00FF88;
  --primary-glow: rgba(0, 255, 136, 0.35);
  --primary-glow-hover: rgba(0, 255, 136, 0.6);
  --accent: #00CCAA;
  
  --text-primary: #F0F0F0;
  --text-secondary: #9999aa;
  --text-dark: #444455;
  --text-muted: #666677;
  
  --border-glass: rgba(0, 255, 136, 0.15);
  --border-glow: rgba(0, 255, 136, 0.42);
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: all 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ─── Base Reset & Layout ────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  height: 100%;
}

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

/* ─── Fixed Background Layouts ───────────────────────────────────────────── */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

#spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 60%);
  transition: background 0.15s ease-out;
}

#cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.9) 0%, transparent 70%);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  display: none; /* Shown dynamically on desktop */
}

@media (min-width: 768px) {
  #cursor-trail {
    display: block;
  }
}

/* Floating Geometric Shapes */
.geometric-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border: 1px solid rgba(0, 255, 136, 0.1);
  background: rgba(0, 255, 136, 0.015);
  backdrop-filter: blur(3px);
  will-change: transform;
}

.shape.circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  top: 25%;
  left: 8%;
  animation: floatCircle 22s infinite ease-in-out;
}

.shape.square {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  top: 65%;
  right: 10%;
  animation: floatSquare 18s infinite ease-in-out 2s;
}

.shape.triangle {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid rgba(0, 255, 136, 0.05);
  background: none;
  backdrop-filter: none;
  border-top: none;
  bottom: 20%;
  left: 15%;
  animation: floatTriangle 26s infinite ease-in-out 4s;
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(15px, -30px) rotate(180deg) scale(1.05); }
}

@keyframes floatSquare {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-20px, 20px) rotate(-180deg) scale(0.95); }
}

@keyframes floatTriangle {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(25px, -15px) rotate(360deg); }
}

/* Floating Tech Labels */
.tech-labels {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tech-label-item {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  opacity: 0.15;
  animation: driftLabel 10s infinite ease-in-out;
}

@keyframes driftLabel {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -15px); }
}

/* ─── Scroll Reveal Animations ───────────────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.delay-1 { transition-delay: 0.15s; }
.scroll-reveal.delay-2 { transition-delay: 0.3s; }
.scroll-reveal.delay-3 { transition-delay: 0.45s; }

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Typography & Headings ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(0, 255, 136, 0.25);
  background-color: rgba(0, 255, 136, 0.05);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.2rem;
  }
}

.title-bar {
  margin: 15px auto 0;
  height: 1.5px;
  width: 90px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* ─── Container ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  position: relative;
  z-index: 10;
  padding: 100px 0;
}

/* ─── Header & Navigation ────────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

#header.scrolled {
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.08);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

.logo-text {
  background: linear-gradient(135deg, #ffffff, #aaffcc, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.35rem;
  cursor: pointer;
  outline: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile Nav Dropdown */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 20px;
  right: 20px;
  background-color: rgba(8, 12, 8, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(10px);
  pointer-events: all;
}

.mobile-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
  background-color: rgba(0, 255, 136, 0.06);
  color: var(--primary);
}

/* ─── Buttons & Controls ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-spring);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.28);
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 26px rgba(0, 255, 136, 0.42);
}

.btn-secondary {
  background-color: rgba(0, 255, 136, 0.05);
  color: var(--primary);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.6);
  transform: scale(1.04);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
}

.btn-muted {
  background-color: rgba(255, 255, 255, 0.02);
  color: #bbbbbb;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-muted:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.04);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* ─── Glassmorphism Cards ────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass-front);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 0 32px rgba(0, 255, 136, 0.22), 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* ─── 3D Flip Card System ────────────────────────────────────────────────── */
.flip-card-3d {
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.flip-card-3d:hover .flip-card-inner,
.flip-card-3d.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: var(--bg-glass-back);
  border-color: var(--border-glow);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.18), 0 4px 24px rgba(0, 0, 0, 0.5);
}

.card-inner-border {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  border: 1px solid rgba(0, 255, 136, 0.05);
  transition: var(--transition-smooth);
}

.flip-card-3d:hover .card-inner-border {
  border-color: rgba(0, 255, 136, 0.25);
}

/* Flip Hint Indicator */
.flip-instructions {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0, 255, 136, 0.45);
  margin-bottom: 25px;
}

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero-section {
  min-h: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 50px;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(0, 255, 136, 0.28);
  background-color: rgba(0, 255, 136, 0.05);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 25px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pingDot 1.6s infinite ease-in-out;
}

@keyframes pingDot {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px var(--primary); }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #aaffcc 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .hero-name {
    font-size: 5rem;
  }
}

.typewriter-container {
  height: 32px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
}

#typewriter-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  #typewriter-text {
    font-size: 1.65rem;
  }
}

.typewriter-cursor {
  font-weight: 300;
  color: var(--primary);
  font-size: 1.45rem;
  margin-left: 2px;
  animation: flashCursor 0.9s infinite;
}

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

.hero-description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 30px;
}

.hero-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 35px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.hero-contact-item i {
  color: var(--primary);
}

.hero-contact-item:hover {
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 3D Profile Card Element */
.hero-card-container {
  display: flex;
  justify-content: center;
}

.profile-card-3d {
  position: relative;
  width: 290px;
  background-color: rgba(8, 12, 8, 0.75);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 24px;
  padding: 36px 28px 28px;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.06), 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.card-glow-border {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1.5px solid var(--primary);
  opacity: 0.18;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.18);
  transition: var(--transition-smooth);
  z-index: 10;
}

.profile-card-3d:hover {
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.12), 0 20px 50px rgba(0,0,0,0.6);
}

.profile-card-3d:hover .card-glow-border {
  opacity: 1;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.35);
}

.card-inner-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.profile-avatar-area {
  position: relative;
  width: 105px;
  height: 105px;
  margin: 0 auto 20px;
}

.avatar-border {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-cover: cover;
  object-position: top;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--primary);
  border: 2px border #0A0A0A;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

.profile-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.profile-subtitle {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.profile-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 25px;
}

.profile-details-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.profile-details-item i {
  color: var(--primary);
  width: 14px;
}

.profile-stats {
  border-top: 1px solid rgba(0, 255, 136, 0.12);
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
}

/* ─── About Section ──────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 0.4fr 0.6fr;
  }
}

.about-image-container {
  display: flex;
  justify-content: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.05);
}

.about-image {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent 45%);
}

.about-desc-card {
  margin-bottom: 25px;
}

.card-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  display: block;
}

.about-description-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.about-chips-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 576px) {
  .about-chips-list {
    grid-template-columns: 1fr 1fr;
  }
}

.about-chip-card {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.chip-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.chip-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.chip-value {
  font-size: 0.78rem;
  font-weight: 600;
}

/* ─── Experience Section ─────────────────────────────────────────────────── */
.experience-container {
  max-width: 600px;
  margin: 0 auto;
}

.experience-card-3d {
  width: 100%;
  height: 320px;
}

.exp-front-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exp-logo {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 100, 50, 0.06));
  border: 1.5px solid rgba(0, 255, 136, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
  position: relative;
}

.exp-company {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 3px;
}

.exp-role {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  background-color: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.22);
  padding: 6px 14px;
  border-radius: 50px;
}

.exp-date i {
  margin-right: 4px;
}

.exp-back-heading {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: left;
}

.exp-responsibilities {
  text-align: left;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-responsibilities li {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #aaaacc;
  padding-left: 15px;
  position: relative;
}

.exp-responsibilities li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

/* ─── Skills Section ─────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.skill-card-front-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.skill-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.skill-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.skill-bar-wrap {
  width: 100%;
  padding: 0 16px;
}

.skill-progress-track {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 8px var(--primary);
  border-radius: 50px;
  width: 0%; /* Will animate in JS */
}

.skill-percent-text {
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: right;
  margin-top: 5px;
  color: var(--text-dark);
}

.skill-card-back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.skill-back-name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.skill-back-desc {
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.skill-back-percent {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}

/* Soft Skills Clouds */
.soft-skills-container {
  max-width: 100%;
}

.soft-skills-card {
  padding: 24px;
}

.soft-skills-heading {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.soft-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.soft-skill-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #cccccc;
  background-color: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.18);
  padding: 8px 18px;
  border-radius: 50px;
}

/* ─── Projects Section ───────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card-3d {
  width: 100%;
  height: 360px;
}

.project-thumbnail-area {
  position: relative;
  flex: 1;
  min-height: 190px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 10, 0.98), transparent 35%);
  z-index: 1;
}

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(0, 255, 136, 0.3);
  background-color: rgba(0, 255, 136, 0.18);
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
}

.project-front-info {
  padding: 24px;
  text-align: left;
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: 850;
  margin-bottom: 2px;
}

.project-card-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.project-card-short-desc {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.project-back-content {
  padding: 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.project-card-full-desc {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(0, 255, 136, 0.2);
  background-color: rgba(0, 255, 136, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.internal-project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0, 255, 136, 0.45);
}

/* PDF Canvas Rendering styles */
.pdf-canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.pdf-canvas-container canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.canvas-loader {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Internships & Workshops ────────────────────────────────────────────── */
.trainings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.training-card-front-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.training-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background-color: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.training-type {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.training-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 10px;
}

.training-org {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
}

.training-card-back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.training-back-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}

.training-back-desc {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ─── Education Timeline Section ─────────────────────────────────────────── */
.education-timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 0;
}

.timeline-vertical-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(0, 255, 136, 0.3) 60%, transparent 100%);
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .timeline-vertical-line {
    left: 50%;
  }
}

.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .timeline-item {
    flex-direction: row;
    margin-bottom: 60px;
  }
  .timeline-item:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.timeline-node {
  position: absolute;
  left: 20px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  background-color: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  z-index: 20;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .timeline-node {
    left: 50%;
  }
}

.timeline-node-inner {
  width: 6px;
  height: 6px;
  background-color: var(--bg-primary);
  border-radius: 50%;
  margin: 3px;
}

.timeline-spacer {
  display: none;
}

@media (min-width: 768px) {
  .timeline-spacer {
    display: block;
    width: 50%;
    padding: 0 30px;
  }
}

.timeline-content-wrap {
  width: 100%;
  padding-left: 45px;
}

@media (min-width: 768px) {
  .timeline-content-wrap {
    width: 50%;
    padding-left: 0;
    padding: 0 30px;
  }
}

.education-card {
  padding: 24px;
  position: relative;
}

.education-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.edu-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--primary);
  border: 1px solid rgba(0, 255, 136, 0.25);
  background-color: rgba(0, 255, 136, 0.05);
  padding: 4px 10px;
  border-radius: 50px;
}

.edu-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.edu-degree {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.edu-inst {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.edu-board {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.education-card-footer {
  border-top: 1px solid rgba(0, 255, 136, 0.08);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edu-subinfo {
  font-size: 0.75rem;
  color: #aaaacc;
}

.edu-score-badge {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Contact Section ────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.45fr 0.55fr;
  }
}

.contact-lead-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-detail-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-detail-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.contact-detail-link {
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.contact-detail-link:hover {
  color: var(--primary);
}

.contact-detail-val {
  font-size: 0.88rem;
  font-weight: 600;
}

/* Contact Form controls styling */
.contact-form-card {
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  background-color: rgba(0, 255, 136, 0.04);
  border: 1.5px solid rgba(0, 255, 136, 0.14);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.form-control::placeholder {
  color: #777788;
}

.form-control:focus {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.08);
  background-color: rgba(0, 255, 136, 0.07);
}

textarea.form-control {
  resize: none;
}

/* ─── Footer Section ─────────────────────────────────────────────────────── */
#footer {
  position: relative;
  z-index: 10;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 255, 136, 0.08);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dark);
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #333344;
}

.footer-heart {
  color: var(--primary);
  animation: beatHeart 1.4s infinite;
}

@keyframes beatHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Helper Class for Tilt Flare */
.tilt-glow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--tilt-x) var(--tilt-y), rgba(0, 255, 136, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 5;
}