/* 
   Suyash Shindalkar - Portfolio Website Custom Styles
   Premium Modern Glassmorphism & Cyber-Slate Design
   Enhanced with Advanced Animations
*/

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

/* --- CUSTOM PROPERTIES (Theme Variables) --- */
:root {
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Theme Defaults (Dark Mode) */
  --bg-primary: hsl(222, 47%, 7%);
  --bg-secondary: hsl(222, 47%, 10%);
  --bg-card: hsl(222, 47%, 12%);
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 16%, 57%);

  --accent-primary: hsl(263, 90%, 65%);
  /* Cyber Purple */
  --accent-secondary: hsl(190, 95%, 50%);
  /* Neon Cyan */
  --accent-tertiary: hsl(330, 85%, 60%);
  /* Hot Pink */
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --accent-gradient-alt: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-primary) 100%);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(139, 92, 246, 0.15);

  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 15px;

  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 24px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.2);
}

/* Light Mode Variables */
body.light-mode {
  --bg-primary: hsl(210, 40%, 98%);
  --bg-secondary: hsl(210, 40%, 95%);
  --bg-card: hsl(0, 0%, 100%);
  --text-primary: hsl(222, 47%, 10%);
  --text-secondary: hsl(215, 25%, 35%);
  --text-muted: hsl(215, 16%, 50%);

  --accent-primary: hsl(263, 85%, 55%);
  --accent-secondary: hsl(190, 90%, 40%);
  --accent-tertiary: hsl(330, 80%, 50%);
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --accent-gradient-alt: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-primary) 100%);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(139, 92, 246, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);

  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 24px -10px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.1);
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  animation: loader-failsafe 0.01s linear 3s forwards;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@keyframes loader-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.loader-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent-primary);
  border-bottom-color: var(--accent-secondary);
  animation: spin 1s linear infinite;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-left-color: var(--accent-tertiary);
  border-right-color: var(--accent-primary);
  animation: spin 1.5s linear infinite reverse;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  position: relative;
}

.loader-dot {
  color: var(--accent-secondary);
  display: inline-block;
  animation: pulse-dot 1s ease-in-out infinite alternate;
}

.loader-bar {
  width: 150px;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

body.light-mode .loader-bar {
  background: rgba(0, 0, 0, 0.05);
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent-gradient);
  border-radius: 2px;
  animation: load-progress 2s cubic-bezier(0.1, 0.8, 0.1, 1) infinite;
}

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

@keyframes pulse-dot {
  from { transform: scale(1); opacity: 0.5; }
  to { transform: scale(1.5); opacity: 1; }
}

@keyframes load-progress {
  0% { width: 0%; left: 0; }
  50% { width: 70%; left: 15%; }
  100% { width: 100%; left: 0; }
}

/* ===== ANIMATED BACKGROUND BLOBS ===== */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: blob-float 20s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  top: 50%;
  right: -10%;
  animation-delay: -7s;
  animation-duration: 25s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--accent-tertiary);
  bottom: -5%;
  left: 30%;
  animation-delay: -14s;
  animation-duration: 22s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, -60px) scale(1.1); }
  50% { transform: translate(-40px, 80px) scale(0.95); }
  75% { transform: translate(60px, 40px) scale(1.05); }
}

body.light-mode .blob {
  opacity: 0.08;
}

/* ===== PROFILE IMAGE BOX ===== */
.mybox {
  padding: 4px;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px auto;
  background: var(--accent-gradient);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  animation: glow-pulse 4s ease-in-out infinite;
}

.mybox img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 45px rgba(139, 92, 246, 0.4), 0 0 80px rgba(6, 182, 212, 0.15); }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border: 2px solid var(--bg-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button,
input,
textarea {
  font-family: inherit;
}

ul {
  list-style: none;
}

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

/* --- UTILITIES & LAYOUTS --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

.section-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
}

.section-tagline::before,
.section-tagline::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--accent-secondary);
  opacity: 0.4;
}

.section-tagline::before { right: calc(100% + 12px); }
.section-tagline::after { left: calc(100% + 12px); }

.section-title {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  animation: underline-expand 0.8s ease forwards;
  transform-origin: center;
}

@keyframes underline-expand {
  from { width: 0; }
  to { width: 60px; }
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

/* Glowing background canvas */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity var(--transition-slow);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15), transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--accent-gradient);
  color: hsl(210, 40%, 98%);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow), 0 8px 30px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.05);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-icon:hover {
  transform: scale(1.15) rotate(5deg);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* --- HEADER & NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--transition-normal), height var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
}

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

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  display: inline-block;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.theme-toggle:hover {
  transform: rotate(180deg) scale(1.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle .sun-icon {
  display: none;
}

body.light-mode .theme-toggle .moon-icon {
  display: none;
}

body.light-mode .theme-toggle .sun-icon {
  display: block;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  animation: tag-slide-in 0.8s ease forwards;
  opacity: 0;
  transform: translateX(-30px);
}

@keyframes tag-slide-in {
  to { opacity: 1; transform: translateX(0); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle-container {
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent-secondary);
  border-right: 2px solid var(--accent-secondary);
  white-space: nowrap;
  letter-spacing: 0.5px;
  animation: cursor-blink 0.75s step-end infinite;
  display: inline-block;
  padding-right: 4px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 12px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Giant Background Name Watermark */
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 18vw;
  font-weight: 850;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.035);
  text-stroke: 1px rgba(255, 255, 255, 0.035);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  user-select: none;
  animation: watermark-float 15s ease-in-out infinite;
}

body.light-mode .hero-bg-text {
  -webkit-text-stroke: 1px rgba(15, 23, 42, 0.03);
  text-stroke: 1px rgba(15, 23, 42, 0.03);
}

@keyframes watermark-float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-15px) rotate(0.5deg);
  }
}

@media (max-width: 768px) {
  .hero-bg-text {
    font-size: 14vw;
  }
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow-back {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(40px);
  z-index: 1;
  animation: glow-breathe 5s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.15); opacity: 0.25; }
}

.hero-img-wrapper {
  z-index: 2;
  position: relative;
  border-radius: 50%;
  padding: 6px;
  background: var(--accent-gradient);
  border: none;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  animation: floating-img 6s ease-in-out infinite;
  width: 320px;
  height: 320px;
}

/* Orbiting ring around profile image */
.hero-img-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px dashed rgba(139, 92, 246, 0.2);
  animation: orbit-ring 12s linear infinite;
  display: none;
}

@keyframes orbit-ring {
  to { transform: rotate(360deg); }
}

.hero-img-wrapper img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Floating tech badges around hero image */
.hero-float-badge {
  position: absolute;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  z-index: 3;
  animation: badge-float 4s ease-in-out infinite;
  box-shadow: var(--shadow-sm);
}

.hero-float-badge:nth-child(1) {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.hero-float-badge:nth-child(2) {
  bottom: 15%;
  left: -5%;
  animation-delay: -1.5s;
}

.hero-float-badge:nth-child(3) {
  top: 50%;
  right: -15%;
  animation-delay: -3s;
}

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

/* --- ABOUT ME SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.about-card {
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Shimmer border animation for about card */
.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
  background-size: 300% 300%;
  animation: shimmer-border 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-card:hover::before {
  opacity: 1;
}

@keyframes shimmer-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.about-avatar-decor {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-gradient);
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow-glow);
  padding: 3px;
  overflow: hidden;
}

.about-avatar-decor img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
}

.about-card-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.about-card-subtitle {
  font-size: 0.9rem;
  color: var(--accent-secondary);
  margin-bottom: 20px;
  font-weight: 500;
}

.about-quick-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.info-item:hover {
  transform: translateX(5px);
}

.info-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-heading {
  font-size: 1.8rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.about-highlight-box {
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-secondary);
  background: rgba(6, 182, 212, 0.03);
  transition: transform 0.3s ease, background 0.3s ease;
}

.about-highlight-box:hover {
  transform: translateX(5px);
  background: rgba(6, 182, 212, 0.06);
}

.about-highlight-text {
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
}

/* --- EDUCATION --- */
.education-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.education-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 100%;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 20px var(--accent-primary), 0 0 40px rgba(139, 92, 246, 0.2);
}

.timeline-card {
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-card:hover {
  transform: translateY(-4px) translateX(5px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-md), 0 0 20px rgba(139, 92, 246, 0.1);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-degree {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.timeline-period {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.timeline-inst {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- SKILLS --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.skills-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skills-column-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skills-column-title svg {
  width: 22px;
  height: 22px;
  color: var(--accent-secondary);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-card {
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.skill-card:hover::after {
  opacity: 0.03;
}

.skill-card:hover {
  transform: translateX(8px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: var(--shadow-sm), 0 0 15px rgba(139, 92, 246, 0.08);
}

.skill-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 1;
}

.skill-card:hover .skill-icon-wrap {
  color: var(--accent-secondary);
  border-color: rgba(6, 182, 212, 0.3);
  transform: rotate(5deg) scale(1.1);
}

.skill-info {
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- SERVICES --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 24px;
  border-radius: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

#services .service-card.anim-item {
  opacity: 0;
  transform: translateY(46px) scale(0.92) rotateX(12deg);
  transform-origin: center bottom;
  transition:
    opacity 0.65s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

#services.active-slide .service-card.anim-item {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}

#services.active-slide .service-card.anim-item:nth-child(1) {
  transition-delay: 0.12s !important;
}

#services.active-slide .service-card.anim-item:nth-child(2) {
  transition-delay: 0.22s !important;
}

#services.active-slide .service-card.anim-item:nth-child(3) {
  transition-delay: 0.32s !important;
}

#services.active-slide .service-card.anim-item:nth-child(4) {
  transition-delay: 0.42s !important;
}

/* Animated gradient border sweep on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-tertiary),
    var(--accent-primary)
  );
  background-size: 400% 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: service-border-sweep 4s linear infinite paused;
}

.service-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes service-border-sweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Inner glow effect on hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background:
    linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.12) 34%, transparent 52%),
    radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.06), transparent 60%);
  background-size: 220% 100%, 100% 100%;
  background-position: 140% 0, center;
  opacity: 0;
  transition: opacity 0.5s ease, background-position 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
  background-position: -70% 0, center;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.15), 0 0 80px rgba(6, 182, 212, 0.05);
}

#services.active-slide .service-card.anim-item:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Per-card accent variations */
.service-card:nth-child(2):hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(6, 182, 212, 0.2), 0 0 80px rgba(6, 182, 212, 0.05);
}

.service-card:nth-child(3):hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(236, 72, 153, 0.15), 0 0 80px rgba(236, 72, 153, 0.05);
}

.service-card:nth-child(4):hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.2), 0 0 80px rgba(139, 92, 246, 0.05);
}

/* Service number watermark */
.service-number {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 6rem;
  font-weight: 900;
  font-family: var(--font-heading);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card:hover .service-number {
  opacity: 0.1;
  transform: scale(1.1) translateY(-5px);
}

/* Service icon box with bounce-rotate animation */
.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  margin-bottom: 8px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon-box {
  background: var(--accent-gradient);
  color: #fff;
  transform: none;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
  border-color: transparent;
  animation: none;
}

/* Service title with neon underline reveal */
.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.service-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.service-card:hover .service-title::after {
  width: 100%;
}

.service-card:hover .service-title {
  color: var(--accent-primary);
}

body.light-mode .service-card:hover .service-title {
  color: var(--accent-primary);
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.service-card:hover .service-desc {
  color: var(--text-primary);
}

/* --- PROJECTS --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(6, 182, 212, 0.12);
}

.project-img-container {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated gradient background for project images */
.project-img-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(236, 72, 153, 0.05) 100%);
  background-size: 200% 200%;
  animation: project-bg-shift 6s ease infinite;
  z-index: 1;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

@keyframes project-bg-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.project-overlay-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  opacity: 0.6;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
  position: relative;
  z-index: 1;
}

.project-card:hover .project-overlay-icon {
  transform: scale(1.25) rotate(10deg);
  opacity: 1;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.project-tag:hover {
  transform: scale(1.05);
  background: rgba(139, 92, 246, 0.1);
}

.project-card:nth-child(even) .project-tag {
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.1);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.project-link {
  margin-top: auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-secondary);
  transition: gap 0.3s ease, color 0.3s ease;
}

.project-link:hover {
  gap: 12px;
  color: var(--accent-primary);
}

.project-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.project-link:hover svg {
  transform: translateX(3px);
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 30px;
  border-radius: 20px;
  gap: 30px;
  transition: transform 0.4s ease;
}

.contact-info-panel:hover {
  transform: translateY(-3px);
}

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

.contact-detail-card {
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.3s ease;
}

.contact-detail-card:hover {
  transform: translateX(5px);
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.contact-detail-card:hover .contact-icon-wrapper {
  background: var(--accent-gradient);
  color: #fff;
  transform: scale(1.1);
}

.contact-detail-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-detail-text p {
  font-size: 0.98rem;
  font-weight: 500;
}

.contact-socials-callout h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contact-social-icons {
  display: flex;
  gap: 12px;
}

.contact-form-panel {
  padding: 40px;
  border-radius: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-control {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2), 0 0 30px rgba(139, 92, 246, 0.05);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

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

.form-status {
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: hsl(150, 84%, 37%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  animation: status-pop 0.4s ease;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: hsl(0, 84%, 60%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  animation: status-pop 0.4s ease;
}

@keyframes status-pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- FOOTER --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--accent-secondary);
}

/* ===== SCROLL REVEAL ANIMATIONS (Staggered) ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Staggered children animation */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Reveal from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Reveal from right */
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes cursor-blink {
  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--accent-secondary)
  }
}

@keyframes floating-img {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes liquid-morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ===== MAGNETIC EFFECT ON BUTTONS ===== */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}

/* ===== PARALLAX SECTION DIVIDERS ===== */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
  opacity: 0.2;
  margin: 0;
}

.slide-inner {
  position: relative;
  z-index: 2;
}

.slide-nav,
.slide-counter,
.scroll-hint {
  display: none !important;
}

/* ==========================================================================
   SLIDING PAGES LAYOUT (Full Screen & Snapping)
   ========================================================================== */

/* Large screens: Enable full-screen sliding pages */
@media (min-width: 992px) and (min-height: 600px) {
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  
  .slides-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 10;
  }
  
  .slide {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height); /* spacing for header */
  }

  .slide-inner {
    width: 100%;
    max-width: var(--max-width);
    padding: 20px 24px;
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar for standard Firefox */
  }

  .slide-inner::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari/Opera */
  }
}

/* Mobile/Small screens: Normal scrolling page */
@media (max-width: 991px), (max-height: 599px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }
  
  .slides-container {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .slide {
    width: 100%;
    min-height: 100vh;
    padding: 100px 0 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .slide-inner {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 24px;
  }

  .slide-nav, .slide-counter, .scroll-hint {
    display: none !important;
  }
}

/* ==========================================================================
   DOTS, COUNTER, AND SCROLL HINT NAVIGATION UI
   ========================================================================== */

/* Side Dots Navigation */
.slide-nav {
  position: fixed;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 90;
}

.slide-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
  position: relative;
  transition: all var(--transition-normal);
}

.slide-nav-dot::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 15px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.slide-nav-dot:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.slide-nav-dot:hover,
.slide-nav-dot.active {
  opacity: 1;
  background: var(--accent-secondary);
}

.slide-nav-dot.active {
  transform: scale(1.4);
  background: var(--accent-gradient);
}

/* Slide Counter */
.slide-counter {
  position: fixed;
  left: 45px;
  bottom: 40px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 90;
  opacity: 0.8;
}

.slide-counter-current {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-counter-sep {
  opacity: 0.3;
}

.slide-counter-total {
  font-size: 1.1rem;
  opacity: 0.5;
}

/* Scroll Hint Mouse Animation */
.scroll-hint {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 90;
  opacity: 0.8;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.scroll-hint.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-hint-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.scroll-hint-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel-anim 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel-anim {
  0% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0; }
  100% { top: 8px; opacity: 1; }
}

.scroll-hint span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   HERO ORBITING PROFILE IMAGE STYLING
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.hero-img-orbit {
  display: none;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(139, 92, 246, 0.25);
  display: none;
}

.orbit-ring-1 {
  width: 85%;
  height: 85%;
  animation: spin 30s linear infinite;
}

.orbit-ring-2 {
  width: 105%;
  height: 105%;
  border: 1px dashed rgba(6, 182, 212, 0.15);
  animation: spin 45s linear infinite reverse;
}

.orbit-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.orbit-dot-1 {
  width: 12px;
  height: 12px;
  top: 7.5%;
  left: 50%;
  margin-left: -6px;
  animation: float-orbit-dot 6s ease-in-out infinite;
}

.orbit-dot-2 {
  width: 8px;
  height: 8px;
  bottom: 2.5%;
  left: 50%; 
  margin-left: -4px;
  animation: float-orbit-dot 8s ease-in-out infinite -2s;
}

.orbit-dot-3 {
  width: 10px;
  height: 10px;
  top: 50%;
  right: -2.5%;
  margin-top: -5px;
  animation: float-orbit-dot 7s ease-in-out infinite -4s;
}

@keyframes float-orbit-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--accent-primary); }
  50% { transform: scale(1.3); box-shadow: 0 0 20px var(--accent-secondary); }
}

.hero-glow {
  display: none;
}

.hero-img-wrapper {
  z-index: 2;
  position: relative;
  width: 310px;
  height: 390px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: none;
  border-radius: 22px;
  transform: perspective(900px) translate3d(0, 0, 0) rotateX(0) rotateY(0);
  transition: transform 0.22s ease-out, box-shadow var(--transition-normal);
  will-change: transform;
}

.hero-img-wrapper:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.hero-img-wrapper img {
  border-radius: inherit;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
}

.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: 15px;
}

.hero-social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.hero-social-link:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.hero-tag-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse-dot 1.2s ease-in-out infinite alternate;
}

/* ==========================================================================
   COMPONENT STYLE COMPATIBILITY & OVERRIDES
   ========================================================================== */

/* About Section Overrides */
.about-avatar {
  width: 120px;
  height: 120px;
  background: transparent;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  animation: none;
  border-radius: 50%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about-avatar:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  transform: scale(1.05);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.38);
}

.about-card-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-card-role {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.about-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition-fast);
}

.about-stat:hover {
  transform: translateX(5px);
}

.about-stat-icon {
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--accent-primary);
}

.about-stat-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: block;
}

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

.about-quote {
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-secondary);
  background: rgba(6, 182, 212, 0.03);
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
  margin: 15px 0;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}

.about-education {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 16px;
}

.education-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.education-table th,
.education-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-color);
}

.education-table th {
  color: var(--accent-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

body.light-mode .education-table th {
  background: rgba(0, 0, 0, 0.03);
}

.education-table tr:last-child td {
  border-bottom: 0;
}

.education-table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

.education-table td:last-child {
  color: var(--accent-primary);
  font-weight: 600;
  white-space: nowrap;
}

.education-row {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    background var(--transition-fast);
}

.education-row:nth-child(1) {
  transition-delay: 0.18s;
}

.education-row:nth-child(2) {
  transition-delay: 0.32s;
}

.education-row:nth-child(3) {
  transition-delay: 0.46s;
}

.slide.active-slide .education-row {
  opacity: 1;
  transform: translateY(0);
}

.education-row:hover {
  background: rgba(139, 92, 246, 0.06);
}

/* Skills Marquee Container */
.skills-marquee-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  position: relative;
}

/* Premium blurred fade boundaries on left & right sides */
.skills-marquee-container::before,
.skills-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.skills-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.skills-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

/* Marquee track */
.skills-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.skills-marquee + .skills-marquee {
  margin-top: 0 !important;
}

.skills-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  align-items: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Slide Left Animation */
.skills-marquee[data-direction="left"] .skills-marquee-track {
  animation: marquee-scroll-left 34s linear infinite;
}

/* Slide Right Animation */
.skills-marquee[data-direction="right"] .skills-marquee-track {
  animation: marquee-scroll-right 38s linear infinite;
}

/* Hover-pause effect */
.skills-marquee:hover .skills-marquee-track {
  animation-play-state: paused;
}

/* Keyframes */
@keyframes marquee-scroll-left {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marquee-scroll-right {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Chip override for Marquee track spacing */
.skills-marquee-track .skill-chip {
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

/* Skills Section Overrides */
.skill-chip {
  min-height: 62px;
  padding: 14px 22px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.skill-chip:hover::after {
  opacity: 0.04;
}

.skill-chip:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: var(--shadow-sm), 0 0 15px rgba(139, 92, 246, 0.08);
}

.skill-chip-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--accent-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  z-index: 1;
}

.skill-chip-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: block;
}

body.light-mode .skill-chip-icon {
  background: rgba(0, 0, 0, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  .skills-marquee-track {
    animation: none !important;
  }

  .education-row {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .skills-marquee-container {
    width: calc(100vw - 28px);
    padding: 18px 0 6px;
    gap: 14px;
  }

  .skills-marquee-container::before,
  .skills-marquee-container::after {
    width: 44px;
  }

  .skills-marquee {
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }

  .skills-marquee-track {
    gap: 12px;
  }

  .skills-marquee[data-direction="left"] .skills-marquee-track {
    animation-duration: 24s;
  }

  .skills-marquee[data-direction="right"] .skills-marquee-track {
    animation-duration: 27s;
  }

  .skill-chip {
    min-height: 52px;
    padding: 11px 16px;
    gap: 9px;
    font-size: 0.84rem;
    border-radius: 10px;
  }

  .skill-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 0.78rem;
  }

  .about-education {
    border-radius: 12px;
  }

  .education-table,
  .education-table thead,
  .education-table tbody,
  .education-table tr,
  .education-table th,
  .education-table td {
    display: block;
  }

  .education-table thead {
    display: none;
  }

  .education-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .education-table tr:last-child {
    border-bottom: 0;
  }

  .education-table td {
    padding: 0;
    border-bottom: 0;
  }

  .education-table td + td {
    margin-top: 8px;
  }

  .education-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .education-table td:nth-child(1)::before {
    content: "Qualification";
  }

  .education-table td:nth-child(2)::before {
    content: "Institution";
  }

  .education-table td:nth-child(3)::before {
    content: "Status";
  }

  .education-table td:last-child {
    white-space: normal;
  }
}

/* Services Overrides */
.service-number {
  position: absolute;
  top: -10px;
  right: 15px;
  font-size: 5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-card:hover .service-number {
  opacity: 0.08;
  transform: translateY(5px);
}

/* Projects Overrides */
.project-img-container.project-img-alt::before {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.project-emoji {
  font-size: 3rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-emoji svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent-secondary);
  stroke-width: 1.5;
  fill: none;
  display: block;
  transition: stroke var(--transition-fast);
}

.project-card:hover .project-emoji svg {
  stroke: var(--accent-primary);
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0));
  opacity: 0.12;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.project-card:hover .project-img-overlay {
  opacity: 0.24;
}

/* Contact Overrides */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 30px;
  border-radius: 20px;
  gap: 30px;
  height: 100%;
}

.contact-info-title {
  font-size: 1.8rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.contact-info-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 15px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.3s ease;
}

.contact-detail:hover {
  transform: translateX(6px);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

body.light-mode .contact-detail-icon {
  background: rgba(0, 0, 0, 0.03);
}

.contact-detail:hover .contact-detail-icon {
  background: var(--accent-gradient);
  color: #fff;
  transform: scale(1.1);
}

.contact-detail small {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-detail p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.contact-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.contact-social-btn:hover {
  transform: scale(1.15) rotate(5deg);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* Footer layout inside Contact slide */
.footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 15px;
  background-color: transparent;
  width: 100%;
}

.footer-tagline {
  color: var(--accent-secondary);
}

/* ==========================================================================
   ENTRANCE ANIMATION REVEAL SYSTEM
   ========================================================================== */
.anim-item {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.anim-item[data-anim="fade-up"] {
  transform: translateY(40px);
}

.anim-item[data-anim="fade-left"] {
  transform: translateX(40px);
}

.anim-item[data-anim="fade-right"] {
  transform: translateX(-40px);
}

.anim-item[data-anim="zoom-in"] {
  transform: scale(0.9);
}

/* Triggered states when slide has active-slide class */
.slide.active-slide .anim-item {
  opacity: 1;
}

.slide.active-slide .anim-item[data-anim="fade-up"] {
  transform: translateY(0);
}

.slide.active-slide .anim-item[data-anim="fade-left"] {
  transform: translateX(0);
}

.slide.active-slide .anim-item[data-anim="fade-right"] {
  transform: translateX(0);
}

.slide.active-slide .anim-item[data-anim="zoom-in"] {
  transform: scale(1);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 60px 0;
  }

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

  .hero-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-content {
    align-items: center;
    order: 2;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle-container {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    max-width: 280px;
    order: 1;
    margin-top: 8px;
    margin-bottom: 6px;
  }

  .hero-img-wrapper {
    width: 210px;
    height: 265px;
  }

  .hero-img-orbit {
    width: 115%;
    height: 115%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    flex-direction: column;
    padding: 40px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    transition: right var(--transition-normal);
    z-index: 100;
    align-items: flex-start;
  }

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

  .hamburger {
    display: block;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-float-badge {
    display: none;
  }

  body {
    cursor: auto;
  }

  a, button, input, textarea {
    cursor: auto;
  }

  .btn {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
}

/* Duplicate mybox override - keep for backwards compatibility */
.mybox {
  background-color: transparent;
  color: white;
  padding: 4px;
  border-radius: 50%;
}

/* ===== CINEMATIC HERO ===== */
#hero {
  background:
    radial-gradient(ellipse 48% 44% at 50% 30%, rgba(139, 92, 246, 0.17), transparent 72%),
    var(--bg-primary);
  overflow: hidden;
}

#hero .slide-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-height) + 18px);
  padding-bottom: 32px;
}

#hero .hero-cinematic {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  min-height: calc(100vh - var(--header-height) - 50px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}

#hero .hero-eyebrow {
  position: relative;
  z-index: 4;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.28rem;
  text-transform: uppercase;
}

#hero .hero-eyebrow span {
  color: var(--accent-secondary);
}

#hero .hero-visual {
  position: relative;
  width: 240px;
  height: 190px;
  max-width: none;
  margin: 0;
  z-index: 3;
  animation: hero-photo-float 5s ease-in-out infinite;
}

#hero .hero-img-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  animation: hero-cutout-floating 5s ease-in-out infinite;
  transform: none;
}

#hero .hero-img-wrapper::before {
  content: "";
  display: block;
  position: absolute;
  inset: -24px;
  z-index: -1;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.12) 60%, transparent 75%);
  animation: hero-warm-glow 3.2s ease-in-out infinite;
}

#hero .hero-img-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  transform: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
}

#hero .hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 720px;
  align-items: center;
}

#hero .hero-title {
  margin: -20px 0 0;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 7.3vw, 6.4rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-shadow:
    0 0 18px rgba(6, 182, 212, 0.3),
    0 0 46px rgba(139, 92, 246, 0.22);
}

#hero .hero-subtitle-container {
  justify-content: center;
  min-height: 24px;
  margin-top: 18px;
}

#hero .hero-subtitle {
  color: var(--accent-secondary);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

#hero .hero-desc {
  max-width: 540px;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
}

#hero .hero-buttons {
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

#hero .hero-buttons .btn {
  min-width: 132px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.86rem;
}

#hero .hero-buttons .btn-primary {
  color: #ffffff;
  border: 0;
  background: var(--accent-gradient);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.38);
}

#hero .hero-buttons .btn-secondary {
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  background: transparent;
}

/* ===== UNIFIED PURPLE–CYAN THEME ACROSS ALL SLIDES ===== */
.slide {
  background:
    radial-gradient(circle at 18% 18%, rgba(139, 92, 246, 0.09), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(6, 182, 212, 0.07), transparent 32%),
    var(--bg-primary);
}

#hero {
  background:
    radial-gradient(ellipse 48% 44% at 50% 30%, rgba(139, 92, 246, 0.17), transparent 72%),
    radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.07), transparent 30%),
    var(--bg-primary);
}

.section-title {
  text-shadow:
    0 0 22px rgba(139, 92, 246, 0.16),
    0 0 34px rgba(6, 182, 212, 0.08);
}

.glass,
.about-card,
.skill-card,
.service-card,
.project-card,
.contact-info,
.contact-info-panel,
.contact-form-panel {
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.045), rgba(6, 182, 212, 0.025)),
    var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-md);
}

.about-card:hover,
.skill-card:hover,
.service-card:hover,
.project-card:hover,
.contact-info:hover,
.contact-info-panel:hover,
.contact-form-panel:hover {
  border-color: rgba(6, 182, 212, 0.28);
  box-shadow:
    var(--shadow-lg),
    0 0 28px rgba(139, 92, 246, 0.12),
    0 0 18px rgba(6, 182, 212, 0.08);
}

.about-card-name,
.skill-title,
.service-title,
.project-title,
.contact-info-title {
  color: var(--text-primary);
}

.about-card-role,
.skill-desc,
.service-desc,
.project-desc,
.contact-info-desc {
  color: var(--text-secondary);
}

.project-tag,
.skill-tag,
.about-stat {
  border-color: rgba(139, 92, 246, 0.16);
  background: rgba(139, 92, 246, 0.07);
}

#hero .hero-buttons .btn-secondary:hover {
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-ember {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 7px 1px rgba(6, 182, 212, 0.75);
  opacity: 0;
  animation: hero-ember-rise linear infinite;
}

.hero-ember:nth-child(3n) {
  background: var(--accent-primary);
  box-shadow: 0 0 7px 1px rgba(139, 92, 246, 0.75);
}

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

@keyframes hero-warm-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes hero-ember-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.4; }
  100% { transform: translate(var(--ember-drift, 0), -105vh); opacity: 0; }
}

@media (max-width: 768px) {
  #hero .slide-inner {
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 18px;
  }

  #hero .hero-cinematic {
    min-height: calc(100vh - var(--header-height) - 30px);
  }

  #hero .hero-eyebrow {
    margin-bottom: 10px;
    font-size: 0.65rem;
    letter-spacing: 0.2rem;
  }

  #hero .hero-visual {
    width: 180px;
    height: 145px;
  }

  #hero .hero-img-wrapper {
    width: 180px;
    height: 180px;
  }

  #hero .hero-title {
    margin-top: -12px;
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  #hero .hero-desc {
    max-width: 92%;
    margin-top: 14px;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  #hero .hero-subtitle-container {
    margin-top: 13px;
  }

  #hero .hero-buttons {
    margin-top: 18px;
  }
}

/* ===== ORIGINAL PORTFOLIO THEME + REFERENCE PHOTO ANIMATION ONLY ===== */
.slide,
#hero {
  background: transparent;
}

.glass,
.about-card,
.skill-card,
.service-card,
.project-card,
.contact-info,
.contact-info-panel,
.contact-form-panel {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-md);
}

#hero .slide-inner {
  display: block;
  padding: 20px 24px;
}

#hero .hero-grid {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - var(--header-height) - 40px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  text-align: left;
}

#hero .hero-content {
  width: auto;
  max-width: 640px;
  align-items: flex-start;
  gap: 0;
}

#hero .hero-tag {
  margin-bottom: 20px;
}

#hero .hero-title {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4.7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: none;
}

#hero .hero-subtitle-container {
  justify-content: flex-start;
  margin-top: 0;
}

#hero .hero-subtitle {
  color: var(--accent-secondary);
  font-size: 1.2rem;
}

#hero .hero-desc {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

#hero .hero-buttons {
  justify-content: flex-start;
  margin-top: 26px;
}

#hero .hero-buttons .btn {
  min-width: 0;
  padding: 12px 28px;
  font-size: 0.95rem;
}

#hero .hero-buttons .btn-primary {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-glow);
}

#hero .hero-buttons .btn-secondary {
  color: var(--text-primary);
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
}

#hero .hero-visual {
  position: relative;
  width: clamp(400px, 38vw, 520px);
  max-width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  margin: 0 auto;
  animation: none;
}

#hero .hero-glow {
  display: block;
  width: 88%;
  height: 88%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.08) 48%, transparent 72%);
}

#hero .hero-img-wrapper,
#hero .hero-cutout-float {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: hero-cutout-floating 5s ease-in-out infinite;
}

#hero .hero-img-wrapper::before {
  display: none;
}

#hero .hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  transform: scale(1.14);
  transform-origin: center;
  filter:
    drop-shadow(0 18px 24px rgba(0, 0, 0, 0.3))
    drop-shadow(0 0 18px rgba(139, 92, 246, 0.18));
}

@keyframes hero-cutout-floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  #hero .hero-img-wrapper,
  #hero .hero-cutout-float {
    animation: none;
  }
}

/* Keep the portrait fully framed on common laptop viewports. */
@media (min-width: 769px) and (max-width: 1366px) {
  #hero .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: clamp(20px, 3vw, 36px);
  }

  #hero .hero-visual {
    width: clamp(350px, 36vw, 460px);
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 1;
  }

  #hero .hero-img-wrapper,
  #hero .hero-cutout-float {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  #hero .hero-img-wrapper img {
    object-fit: contain;
    object-position: center;
    transform: scale(1.14);
    transform-origin: center;
  }
}

@media (max-width: 768px) {
  #hero {
    align-items: flex-start;
    padding: calc(var(--header-height) + 14px) 0 48px;
  }

  #hero .slide-inner {
    padding: 0 18px;
    max-height: none;
    overflow: visible;
  }

  #hero .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    min-height: auto;
  }

  #hero .hero-content {
    align-items: center;
    order: 2;
    width: 100%;
    max-width: 520px;
  }

  #hero .hero-tag {
    align-self: center;
    margin-bottom: 14px;
  }

  #hero .hero-title {
    margin-bottom: 10px;
    font-size: clamp(2.05rem, 9.5vw, 2.8rem);
    line-height: 1.05;
  }

  #hero .hero-subtitle-container,
  #hero .hero-buttons {
    justify-content: center;
  }

  #hero .hero-desc {
    max-width: 95%;
    margin-top: 14px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.84rem, 3.6vw, 0.95rem);
    line-height: 1.55;
  }

  #hero .hero-buttons {
    width: 100%;
    gap: 12px;
    margin-top: 20px;
  }

  #hero .hero-buttons .btn {
    width: min(44vw, 165px);
    min-width: 0;
    padding: 11px 18px;
    font-size: 0.88rem;
  }

  #hero .hero-socials {
    justify-content: center;
    margin-top: 18px;
  }

  #hero .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(220px, 70vw, 320px);
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    margin: 0 auto;
    order: 1;
  }

  #hero .hero-glow {
    width: 100%;
    height: 100%;
  }

  #hero .hero-img-wrapper,
  #hero .hero-cutout-float {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  #hero .hero-img-wrapper img {
    object-fit: contain;
    object-position: center;
    transform: scale(1.08);
    transform-origin: center;
  }
}

@media (max-width: 420px) {
  #hero {
    padding-top: calc(var(--header-height) + 6px);
  }

  #hero .hero-visual {
    width: clamp(210px, 72vw, 290px);
    min-height: 0;
  }

  #hero .hero-img-wrapper,
  #hero .hero-cutout-float {
    width: 100%;
    height: auto;
  }

  #hero .hero-desc {
    max-width: 100%;
  }

  #hero .hero-socials {
    margin-top: 12px;
  }
}

@media (max-width: 360px) {
  #hero .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  #hero .hero-buttons .btn {
    width: 100%;
  }
}

/* Text-first hero layout (portrait intentionally removed). */
#hero .hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

#hero .hero-content {
  width: min(100%, 820px);
  max-width: 820px;
  align-items: center;
}

#hero .hero-tag {
  align-self: center;
}

#hero .hero-subtitle-container,
#hero .hero-buttons,
#hero .hero-socials {
  justify-content: center;
}

#hero .hero-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Compact vertical qualification timeline inside the About section. */
.about-education {
  width: min(100%, 760px);
  margin: 16px auto 0;
  padding: 8px 0 4px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.qualification-title {
  margin: 0 0 18px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.about-education .education-timeline {
  max-width: none;
  margin: 0;
}

.about-education .education-timeline::before {
  top: 12px;
  bottom: 18px;
  height: auto;
  background: linear-gradient(
    to bottom,
    var(--accent-primary),
    var(--accent-secondary)
  );
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.about-education .timeline-item {
  margin-bottom: 16px;
}

.about-education .timeline-item:last-child {
  margin-bottom: 0;
}

.about-education .timeline-dot {
  top: 16px;
  width: 18px;
  height: 18px;
  border-width: 4px;
}

.about-education .timeline-card {
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.about-education .timeline-header {
  align-items: center;
  margin-bottom: 5px;
}

.about-education .timeline-degree {
  font-size: 1rem;
}

.about-education .timeline-inst {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.about-education .timeline-period {
  color: var(--accent-secondary);
}

.about-education .timeline-period-current {
  color: var(--accent-primary);
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.1);
}

@media (max-width: 480px) {
  .about-education {
    width: 100%;
    padding: 10px 0 4px;
  }

  .about-education .timeline-item {
    padding-left: 42px;
  }

  .about-education .timeline-card {
    padding: 12px 13px;
  }

  .about-education .timeline-header {
    align-items: flex-start;
  }
}

/* Skills folder / explorer interface. */
.skills-explorer {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.explorer-toolbar {
  min-height: 56px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.025);
}

.explorer-window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.explorer-window-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.55);
}

.explorer-window-controls span:first-child {
  background: #fb7185;
}

.explorer-window-controls span:nth-child(2) {
  background: #fbbf24;
}

.explorer-window-controls span:last-child {
  background: #34d399;
}

.explorer-address {
  min-width: 0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.78rem;
  white-space: nowrap;
}

.explorer-address strong {
  overflow: hidden;
  color: var(--text-primary);
  text-overflow: ellipsis;
}

.explorer-home-icon {
  width: 13px;
  height: 11px;
  position: relative;
  border: 1.5px solid var(--accent-secondary);
  border-top: 0;
  border-radius: 2px;
}

.explorer-home-icon::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: -5px;
  left: 1px;
  border-top: 1.5px solid var(--accent-secondary);
  border-left: 1.5px solid var(--accent-secondary);
  transform: rotate(45deg);
}

.explorer-chevron {
  color: var(--accent-primary);
}

.explorer-count {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: right;
}

.explorer-layout {
  min-height: 395px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.explorer-sidebar {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.08);
}

.explorer-nav-item {
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.explorer-nav-item.active {
  color: var(--text-primary);
  border-color: rgba(139, 92, 246, 0.18);
  background: rgba(139, 92, 246, 0.11);
}

.explorer-nav-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.08);
  font-size: 0.67rem;
  font-weight: 700;
}

.explorer-content {
  min-width: 0;
  padding: 18px 20px 20px;
}

.explorer-content-header {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.explorer-eyebrow {
  color: var(--accent-secondary);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.explorer-content-header h3 {
  margin-top: 3px;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.explorer-view-icon {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 2px;
}

.skill-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.skill-folder {
  min-width: 0;
  padding: 17px 15px 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.skill-folder::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -42px;
  bottom: -48px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  filter: blur(4px);
}

.skill-folder:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.045);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.folder-icon {
  width: 39px;
  height: 29px;
  margin: 5px 0 14px;
  display: block;
  position: relative;
  border-radius: 4px 5px 6px 6px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 7px 16px rgba(139, 92, 246, 0.22);
}

.folder-icon::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 7px;
  top: -5px;
  left: 2px;
  border-radius: 4px 4px 0 0;
  background: var(--accent-primary);
}

.folder-icon::after {
  content: "";
  position: absolute;
  inset: 5px 4px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.skill-folder h4 {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-folder p {
  min-height: 34px;
  margin-top: 5px;
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.folder-meta {
  margin-top: 9px;
  display: inline-block;
  position: relative;
  z-index: 1;
  color: var(--accent-secondary);
  font-size: 0.64rem;
  font-weight: 600;
}

body.light-mode .skills-explorer {
  background: rgba(255, 255, 255, 0.7);
}

body.light-mode .explorer-address,
body.light-mode .explorer-sidebar {
  background: rgba(15, 23, 42, 0.025);
}

@media (max-width: 900px) {
  .explorer-layout {
    grid-template-columns: 155px minmax(0, 1fr);
  }

  .skill-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .explorer-toolbar {
    grid-template-columns: 54px minmax(0, 1fr);
    padding-inline: 12px;
  }

  .explorer-count {
    display: none;
  }

  .explorer-layout {
    display: block;
  }

  .explorer-sidebar {
    padding: 10px;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: none;
  }

  .explorer-sidebar::-webkit-scrollbar {
    display: none;
  }

  .explorer-nav-item {
    flex: 0 0 auto;
    padding: 8px 10px;
  }

  .explorer-content {
    padding: 16px 14px 18px;
  }
}

@media (max-width: 420px) {
  .skills-explorer {
    border-radius: 14px;
  }

  .explorer-window-controls span {
    width: 8px;
    height: 8px;
  }

  .explorer-address {
    padding-inline: 10px;
  }

  .skill-folder-grid {
    grid-template-columns: 1fr;
  }

  .skill-folder {
    padding: 15px;
  }
}

/* Reference-inspired centered technology icon grid. */
#skills {
  background:
    radial-gradient(circle at 50% 42%, rgba(59, 130, 246, 0.08), transparent 42%),
    transparent;
}

/* Structured toolkit: separate technical tools from creative strengths. */
.skills-toolkit {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.toolkit-group {
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(111, 150, 239, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 45%),
    rgba(25, 33, 50, 0.74);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.toolkit-group-header {
  min-height: 54px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.toolkit-group-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 14px;
  color: #dbeafe;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(6, 182, 212, 0.72));
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.2);
  font: 800 0.78rem/1 Arial, sans-serif;
}

.toolkit-group-icon-creative {
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.88), rgba(236, 72, 153, 0.72));
}

.toolkit-group-header h3 {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.2;
}

.toolkit-group-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.77rem;
}

.toolkit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#skills .slide-inner {
  max-width: 1180px;
}

#skills .section-header {
  margin-bottom: clamp(34px, 6vh, 58px);
}

#skills .section-title {
  color: #6f96ef;
  text-shadow: 0 0 24px rgba(79, 124, 230, 0.18);
}

#skills .section-title::after {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: #6f96ef;
  box-shadow: 0 0 12px rgba(79, 124, 230, 0.3);
}

.skills-flame {
  display: inline-block;
  -webkit-text-fill-color: initial;
  filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.28));
  transform: translateY(2px);
}

.skills-icon-grid {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.skill-icon-tile {
  aspect-ratio: 1;
  min-width: 0;
  padding: 12px 8px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 10px;
  color: var(--text-secondary);
  background: #20283a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-icon-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 45%);
  pointer-events: none;
}

.skill-icon-tile:hover {
  transform: translateY(-7px) scale(1.03);
  border-color: rgba(111, 150, 239, 0.42);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.27),
    0 0 20px rgba(79, 124, 230, 0.13);
}

.skill-icon-tile > span:last-child {
  width: 100%;
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tech-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1;
}

.logo-html,
.logo-css {
  clip-path: polygon(8% 0, 92% 0, 82% 86%, 50% 100%, 18% 86%);
  font-size: 2rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.logo-html {
  background: linear-gradient(90deg, #e44d26 50%, #f16529 50%);
  font-size: 0.92rem;
}

.logo-css {
  background: linear-gradient(90deg, #1572b6 50%, #33a9dc 50%);
}

.logo-js {
  align-items: end;
  justify-items: end;
  padding: 6px;
  color: #171717;
  border-radius: 2px;
  background: #f7df1e;
  font-size: 1.45rem;
}

.logo-web {
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-size: 1rem;
}

.logo-java {
  color: #f89820;
  border: 3px solid #5382a1;
  border-radius: 50%;
  background: rgba(83, 130, 161, 0.12);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.logo-python {
  border-radius: 16px;
  background: linear-gradient(135deg, #3776ab 0 50%, #ffd343 50% 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.logo-c,
.logo-cpp {
  border-radius: 50%;
  background: linear-gradient(135deg, #659ad2, #315a94);
}

.logo-cpp {
  font-size: 0.92rem;
}

.logo-ui {
  border-radius: 15px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

.logo-video {
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  font-size: 1.45rem;
}

.logo-content {
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  font-size: 1.65rem;
}

.logo-market {
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  font-size: 1.7rem;
}

.logo-data {
  color: #122033;
  border-radius: 14px;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  font-size: 1.7rem;
}

.logo-git {
  color: #fff;
  background: #f05032;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  font-size: 0.82rem;
}

.logo-team {
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  font-size: 2rem;
}

.logo-creative {
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #8b5cf6);
  font-size: 1.7rem;
}

.logo-communication {
  border-radius: 50% 50% 50% 12px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.logo-problem {
  border-radius: 50%;
  color: #172033;
  background: linear-gradient(135deg, #facc15, #fb923c);
  font-size: 2rem;
}

.logo-collaboration {
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981, #14b8a6);
  font-size: 2rem;
}

.logo-learning {
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  font-size: 1.65rem;
}

.logo-time {
  border: 4px solid #60a5fa;
  border-radius: 50%;
  color: #e0f2fe;
  background:
    linear-gradient(90deg, transparent 48%, #60a5fa 48% 52%, transparent 52%) center 52% / 40% 40% no-repeat,
    rgba(37, 99, 235, 0.16);
  box-shadow: inset 0 0 12px rgba(96, 165, 250, 0.16);
  font-size: 0.7rem;
}

body.light-mode .skill-icon-tile {
  border-color: rgba(15, 23, 42, 0.09);
  color: var(--text-secondary);
  background: #eef2f8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

body.light-mode .toolkit-group {
  border-color: rgba(37, 99, 235, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent 45%),
    rgba(241, 245, 249, 0.9);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1000px) {
  .skills-toolkit {
    width: min(100%, 720px);
    grid-template-columns: 1fr;
  }

  .toolkit-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .skills-icon-grid {
    width: min(100%, 720px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  #skills .section-header {
    margin-bottom: 30px;
  }

  .skills-icon-grid {
    width: min(100%, 430px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
  }

  .skills-toolkit {
    width: min(100%, 430px);
    gap: 16px;
  }

  .toolkit-group {
    padding: 16px;
    border-radius: 18px;
  }

  .toolkit-group-header {
    margin-bottom: 16px;
  }

  .toolkit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .skill-icon-tile {
    padding: 10px 6px 8px;
  }

  .tech-logo {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 360px) {
  .toolkit-group-header p {
    display: none;
  }

  .skills-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep the About profile card visible beside the taller qualification column. */
@media (min-width: 769px) {
  #about .about-grid {
    align-items: start;
  }

  #about .about-card {
    align-self: start;
    margin-top: -32px;
  }
}

/* Qualification pinned card stack. */
.about-scroll-content {
  min-height: 100%;
}

#about .slide-inner {
  overscroll-behavior-y: auto;
}

.about-education .education-timeline {
  width: min(100%, 700px);
  margin-inline: auto;
  padding-bottom: 150px;
}

.about-education .education-timeline::before,
.about-education .timeline-dot {
  display: none;
}

.about-education .qualification-stack-card {
  position: sticky;
  top: 18px;
  z-index: 2;
  padding-left: 0;
  margin-bottom: 22px;
  transform-origin: top center;
}

.about-education .qualification-stack-card:nth-child(2) {
  top: 40px;
  z-index: 3;
}

.about-education .qualification-stack-card:nth-child(3) {
  top: 62px;
  z-index: 4;
}

.about-education .qualification-stack-card .timeline-card {
  min-height: 112px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.045)),
    #111a2a;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  will-change: transform, opacity;
}

.about-education .qualification-stack-card:nth-child(2) .timeline-card {
  margin-inline: 8px;
}

.about-education .qualification-stack-card:nth-child(3) .timeline-card {
  margin-inline: 16px;
}

body.light-mode .about-education .qualification-stack-card .timeline-card {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.04)),
    #f8fafc;
}

@media (max-width: 768px) {
  .about-education .qualification-stack-card {
    top: calc(var(--header-height) + 14px);
  }

  .about-education .qualification-stack-card:nth-child(2) {
    top: calc(var(--header-height) + 34px);
  }

  .about-education .qualification-stack-card:nth-child(3) {
    top: calc(var(--header-height) + 54px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-education .qualification-stack-card .timeline-card {
    will-change: auto;
  }
}

/* Compact About + qualification stack for laptop-sized screens. */
@media (min-width: 769px) and (max-width: 1366px) {
  #about .slide-inner {
    padding: 14px 28px 24px;
  }

  #about .section-header {
    margin-bottom: 24px;
  }

  #about .about-grid {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(26px, 3.5vw, 46px);
  }

  #about .about-card {
    max-width: 340px;
    margin-top: -16px;
    padding: 22px;
  }

  #about .about-avatar {
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
  }

  #about .about-card-role {
    margin-bottom: 14px;
  }

  #about .about-stats {
    gap: 8px;
  }

  #about .about-stat {
    padding: 9px 10px;
  }

  #about .about-bio {
    gap: 12px;
  }

  #about .about-heading {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
  }

  #about .about-text {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  #about .about-quote {
    margin: 8px 0;
    padding: 14px 16px;
  }

  #about .about-education {
    width: min(100%, 640px);
    margin-top: 8px;
  }

  #about .qualification-title {
    margin-bottom: 12px;
  }

  #about .about-education .education-timeline {
    width: min(100%, 620px);
    padding-bottom: 82px;
  }

  #about .about-education .qualification-stack-card {
    margin-bottom: 14px;
  }

  #about .about-education .qualification-stack-card .timeline-card {
    min-height: 88px;
    padding: 12px 15px;
  }

  #about .about-education .timeline-header {
    margin-bottom: 3px;
  }
}

@media (min-width: 769px) and (max-height: 700px) {
  #about .section-header {
    margin-bottom: 16px;
  }

  #about .about-card {
    margin-top: -10px;
  }

  #about .about-education .education-timeline {
    padding-bottom: 60px;
  }
}

/* Final About layout: equal profile and biography panels, qualification below. */
#about .about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(28px, 4vw, 52px);
}

#about .about-card,
#about .about-bio {
  width: 100%;
  min-height: 410px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass-bg);
  box-shadow: var(--shadow-md);
}

#about .about-card {
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#about .about-bio {
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#about .about-heading {
  margin-bottom: 2px;
}

#about .about-text {
  margin: 0;
}

#about .about-quote {
  margin: 6px 0 0;
}

#about .about-education {
  width: min(100%, 780px);
  margin: 38px auto 0;
}

@media (min-width: 769px) and (max-width: 1366px) {
  #about .about-card,
  #about .about-bio {
    min-height: 350px;
    padding: 22px;
  }

  #about .about-grid {
    gap: clamp(24px, 3vw, 38px);
  }

  #about .about-education {
    margin-top: 28px;
  }
}

@media (max-width: 768px) {
  #about .about-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  #about .about-card,
  #about .about-bio {
    min-height: 0;
    padding: 22px 18px;
  }

  #about .about-education {
    margin-top: 28px;
  }
}
