/* =========================
   MODERN THEME & BASE
========================= */
:root {
  /* Colors */
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #3385d6;
  --secondary: #00d4aa;
  --accent: #ff6b6b;

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #e2e8f0;
  --bg-card: #ffffff;

  /* Text */
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-inverse: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4a90e2 0%, #0d47a1 100%);
  --gradient-hero: linear-gradient(135deg, #1a1c2e 0%, #0d47a1 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f0f4f8 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* Layout */
  --sidebar-w: 280px;
  --topbar-h: 70px;
  --container-max: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Dark theme */
body.dark {
  --bg-primary: #0a192f;
  --bg-secondary: #112240;
  --bg-tertiary: #233554;
  --bg-card: #112240;
  --gradient-primary: linear-gradient(135deg, #3498db 0%, #0d47a1 100%);
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --gradient-card: linear-gradient(145deg, #1e293b 0%, #334155 100%);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: -9999px;
  background: var(--primary);
  color: var(--text-inverse);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* =========================
   SIDEBAR NAVIGATION
========================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--gradient-primary);
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  z-index: 100;
  box-shadow: var(--shadow-xl);
  transition: width var(--transition-normal), padding var(--transition-normal);
}

.sidebar.collapsed {
  width: 70px;
  padding: 1.5rem 0.5rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  margin-bottom: 1rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
  flex: 1;
}

.sidebar.collapsed .brand {
  font-size: 1.25rem;
  transform: scale(0);
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.brand::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.sidebar.collapsed .brand::after {
  opacity: 0;
  width: 0;
}

/* Collapsed brand indicator */
.sidebar.collapsed::before {
  content: 'AH';
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-inverse);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.3s ease 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

.sidebar-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--text-inverse);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 1.125rem;
  font-weight: bold;
  position: absolute;
  right: 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed .sidebar-toggle {
  position: static;
  right: auto;
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toggle-icon {
  transition: transform var(--transition-normal);
  display: inline-block;
}

.sidebar.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.nav {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav li {
  margin: 0.5rem 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.sidebar.collapsed .nav-link {
  padding: 0.75rem 0.5rem;
  justify-content: center;
  margin: 0.25rem 0;
  border-radius: 10px;
  position: relative;
}

.nav-icon {
  font-size: 1.125rem;
  min-width: 20px;
  text-align: center;
  transition: all var(--transition-fast);
}

.sidebar.collapsed .nav-icon {
  font-size: 1.25rem;
}

.nav-text {
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.sidebar.collapsed .nav-text {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  position: absolute;
  left: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  z-index: 1000;
  margin-left: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.sidebar.collapsed .nav-link:hover .nav-text {
  opacity: 1;
  transform: translateX(0);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left var(--transition-normal);
}

.nav-link:hover::before {
  left: 0;
}

.nav-link:hover {
  color: var(--text-inverse);
  transform: translateX(5px);
}

.sidebar.collapsed .nav-link:hover {
  transform: translateX(0) scale(1.08);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
  font-weight: 600;
}

.sidebar.collapsed .nav-link.active {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mode-btn {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
  border: none;
  padding: 0.875rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.sidebar.collapsed .mode-btn {
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  position: relative;
}

.mode-icon {
  font-size: 1.125rem;
  transition: all var(--transition-fast);
}

.sidebar.collapsed .mode-icon {
  font-size: 1.25rem;
}

.mode-text {
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.sidebar.collapsed .mode-text {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  position: absolute;
  left: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  z-index: 1000;
  margin-left: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.sidebar.collapsed .mode-btn:hover .mode-text {
  opacity: 1;
  transform: translateX(0);
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
}

.summary {
  display: none;
}

/* =========================
   MAIN LAYOUT
========================= */
main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}

body.sidebar-collapsed main {
  margin-left: 70px;
}

section {
  padding: 4rem 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* =========================
   HERO SECTION
========================= */
.hero {
  background: var(--gradient-hero);
  color: var(--text-inverse);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  position: relative;
}

.profile-img-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  perspective: 800px;
  position: relative;
}

/* Profile photo shine sweep */
.profile-flip-front::after,
.profile-flip-back::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 45%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  animation: profileShine 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
  border-radius: 0;
}

@keyframes profileShine {
  0%, 25%  { left: -75%; opacity: 0; }
  30%      { opacity: 1; }
  60%      { left: 150%; opacity: 0; }
  100%     { left: 150%; opacity: 0; }
}

/* Coin flip */
.profile-flip {
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 50%;
}

.profile-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 50%;
}

.profile-flip.flipped .profile-flip-inner {
  transform: rotateY(180deg);
}

.profile-flip-front,
.profile-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden;
}

.profile-flip-back {
  transform: rotateY(180deg);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.status-indicator {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 14px;
  height: 14px;
  background-color: #2ecc71;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px rgba(46,204,113,0.35);
  z-index: 10;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.greeting {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.name {
  display: block;
  background: linear-gradient(45deg, #ffffff, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.typewriter {
  border-right: 2px solid var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
  animation: blink 0.7s step-end infinite;
  display: inline-block;
  max-width: 100%;
}

@keyframes blink {
  50% {
    border-color: transparent
  }
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-hero,
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-hero {
  background: var(--text-inverse);
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.btn-hero-outline {
  background: transparent;
  color: var(--text-inverse);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-inverse);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid var(--text-inverse);
  border-bottom: 2px solid var(--text-inverse);
  transform: rotate(45deg);
  opacity: 0.7;
}

/* =========================
   ABOUT SECTION
========================= */
#about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skills-section h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.skills-grid {
  display: grid;
  gap: 1.5rem;
}

.skill-category h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.skill-bar {
  background: var(--bg-tertiary);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50px;
  width: 0;
  transition: width 2s ease-out;
  position: relative;
}

.skill-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* Learning Section */
.learning-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.learning-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.learning-item:hover {
  transform: translateY(-5px);
}

.learning-icon {
  font-size: 2rem;
  color: var(--primary);
  background: var(--bg-secondary);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-content {
  flex: 1;
}

.learning-content h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.learning-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.progress {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 1.5s ease-in-out;
}

@media (min-width: 768px) {
  .learning-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* =========================
   EXPERIENCE SECTION
========================= */
#experience {
  background: var(--bg-primary);
}

.experience-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
}

.experience-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 0;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 0 4px var(--primary);
}

.experience-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.experience-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.experience-content h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.experience-content ul {
  list-style: none;
  padding: 0;
}

.experience-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.experience-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* =========================
   CERTIFICATIONS SECTION
========================= */
#certifications {
  background: var(--bg-secondary);
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cert-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.cert-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cert-icon {
  font-size: 1.5rem;
  min-width: 40px;
  text-align: center;
}

.cert-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.cert-info p {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.cert-info small {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--bg-tertiary);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 102, 204, 0.1);
}

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

.project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
}

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

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-preview {
  width: 100%;
  height: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* Project preview styles */
.crm-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.workflow-preview {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.todo-preview {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.mock-dots {
  display: flex;
  gap: 0.25rem;
}

.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.mock-title {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.mock-content {
  display: flex;
  gap: 1rem;
  flex: 1;
}

.mock-sidebar {
  width: 60px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-nav-item {
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}

.mock-nav-item.active {
  background: rgba(255, 255, 255, 0.5);
}

.mock-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-card {
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.workflow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.step-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.workflow-arrow {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.todo-interface {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.todo-input {
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 0.875rem;
}

.todo-check {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.todo-item.completed .todo-check {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  padding: 0.75rem 1.5rem;
  background: var(--text-inverse);
  color: var(--primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tech span {
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-metrics {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.project-metrics span {
  position: relative;
}

.project-metrics span:not(:last-child)::after {
  content: '•';
  position: absolute;
  right: -0.6rem;
}

/* =========================
   CONTACT SECTION
========================= */
#contact {
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

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

.contact-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-fast);
}

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

.contact-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-card p {
  color: var(--text-secondary);
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

.availability {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--secondary);
}

.availability-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.availability-status span {
  font-weight: 600;
  color: var(--text-primary);
}

.availability p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.contact-form-container {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid var(--bg-tertiary);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.error {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.2em;
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
}

.btn-loading {
  display: none;
}

.btn-primary.loading .btn-text {
  display: none;
}

.btn-primary.loading .btn-loading {
  display: inline;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
}

.form-status.ok {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status.err {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* =========================
   BACK TO TOP BUTTON
========================= */
#backToTop {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-primary);
  color: var(--text-inverse);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 50;
}

#backToTop.show {
  display: flex;
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Pulsing ring around back-to-top */
#backToTop::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient-primary);
  animation: backTopPulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes backTopPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Download CV button — glow border + shine */
.btn-download {
  border-color: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  animation: cvGlow 2.5s ease-in-out infinite;
}

@keyframes cvGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 255, 255, 0.15), 0 0 20px rgba(0, 212, 170, 0.1); }
  50%       { box-shadow: 0 0 16px rgba(255, 255, 255, 0.35), 0 0 32px rgba(0, 212, 170, 0.25); }
}

.btn-download::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 45%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite 1.2s;
  pointer-events: none;
}

@keyframes btnShine {
  0%, 35%  { left: -75%; opacity: 0; }
  40%      { opacity: 1; }
  70%      { left: 150%; opacity: 0; }
  100%     { left: 150%; opacity: 0; }
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes float {

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

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

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes pulse {

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

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-10px) translateX(-50%);
  }

  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {

  from,
  to {
    border-color: transparent;
  }

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

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 1024px) {
  /* Hide the sidebar drawer on mobile — use full-screen modal instead */
  .guide-drawer { display: none !important; }
  /* Hide desktop guide button from mobile top bar */
  .nav-guide-item { display: none !important; }
  /* Show guide inside hamburger dropdown on mobile */
  .nav-guide-mobile-li { display: block; }

  :root {
    --sidebar-w: 0;
  }

  .sidebar {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: var(--topbar-h);
    width: 100% !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 1.5rem !important;
    z-index: 999;
    gap: 1rem;
  }

  .sidebar.collapsed {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
  }

  .sidebar.collapsed::before {
    display: none;
  }

  .sidebar-header {
    margin-bottom: 0;
    flex: 1;
    justify-content: flex-start;
    position: static;
  }

  .sidebar-toggle {
    display: none;
  }

  .brand {
    margin-bottom: 0;
    font-size: 1.25rem;
    opacity: 1 !important;
    text-align: left;
    flex: none;
  }

  .brand::after {
    display: none;
  }

  .mode-btn {
    margin: 0;
    margin-left: auto;
    width: auto;
    padding: 0.5rem;
    font-size: 0.875rem;
    order: 1;
    flex-shrink: 0;
    gap: 0;
    min-width: 44px;
    justify-content: center;
  }

  .mode-icon {
    font-size: 1rem;
  }

  .mode-text {
    display: none;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-inverse);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    order: 2;
    flex-shrink: 0;
    margin-left: 0.5rem;
  }

  .hamburger:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--topbar-h);
    background: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
  }

  .sidebar.open .nav {
    background: var(--gradient-primary);
    padding: 1rem 1.5rem;
    max-height: 60vh;
    box-shadow: var(--shadow-lg);
  }

  .nav-link {
    padding: 1rem 1.25rem;
    justify-content: flex-start;
  }

  .nav-text {
    opacity: 1 !important;
    position: static !important;
  }

  .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-inverse);
  }

  main {
    margin-left: 0 !important;
    padding-top: var(--topbar-h);
  }

  body.sidebar-collapsed main {
    margin-left: 0 !important;
  }

  section {
    scroll-margin-top: calc(var(--topbar-h) + 20px);
  }

  .container {
    padding: 0 1.5rem;
  }

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

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

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

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

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

  .experience-timeline::before {
    left: 20px;
  }

  .experience-item {
    padding-left: 60px;
  }

  .experience-item::before {
    left: 11px;
  }
}

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

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

  .greeting {
    font-size: 1.25rem;
  }

  /* Fix subtitle clipping on mobile */
  .hero-subtitle {
    font-size: 0.82rem;
    padding: 0 1rem;
    word-break: break-word;
  }
  .typewriter {
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    text-align: center;
  }

  /* Smaller back-to-top button on mobile */
  #backToTop {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    right: 1rem;
    bottom: 1rem;
  }

  /* Smaller bot on mobile — scale the character, keep animation on wrapper */
  .site-bot {
    right: calc(1rem - 5px);
    bottom: calc(1rem + 42px);
  }
  .bot-char {
    transform: scale(0.72);
    transform-origin: bottom center;
  }
  .site-bot.dog-sat .bot-char {
    transform: scale(0.72);
    animation: botFloat 3.2s ease-in-out infinite;
  }
  .site-bot.bot-stopped .bot-char {
    animation-play-state: paused;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

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

  .projects-filter {
    flex-direction: column;
    align-items: center;
  }

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

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .hero-inner {
    padding: 1rem;
  }

  .profile-img-placeholder {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
  }

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

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

  .contact-form-container {
    padding: 1.5rem;
  }

  .sidebar {
    padding: 0.75rem 1rem !important;
    gap: 0.75rem;
  }

  .brand {
    font-size: 1.125rem;
  }

  .mode-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }

  .mode-text {
    display: none;
  }

  .hamburger {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }
}

/* =========================
   CERTIFICATE MODAL & VISUALS
========================= */
.cert-item {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cert-item[data-cert-images] {
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Background image overlay */
.cert-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--cert-bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(1);
}

.cert-item[data-cert-images]:hover::before {
  opacity: 0.25;
  transform: scale(1.1);
}

.cert-item[data-cert-images]:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  /* background: var(--bg-card); Removed to let image show through/blend better if needed, or keep overlapping */
}

/* Ensure text stays on top */
.cert-item>* {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

body.dark .cert-item>* {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.cert-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 2000;
  /* Sit on top */
  padding-top: 50px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9);
  /* Black w/ opacity */
  backdrop-filter: blur(5px);
}

/* Modal Content (image) */
.cert-modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* The Close Button */
.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--secondary);
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
  .cert-modal-content {
    width: 95%;
  }
}

/* Modal Navigation Buttons */
.modal-prev,
.modal-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2002;
  text-decoration: none;
}

.modal-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.modal-prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--secondary);
}

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

.site-footer {
  background: var(--gradient-hero);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 2rem;
  margin-left: var(--sidebar-w);
  transition: margin-left var(--transition-normal);
}

body.sidebar-collapsed .site-footer {
  margin-left: 60px;
}

@media (max-width: 1024px) {
  .site-footer {
    margin-left: 0;
    margin-top: var(--topbar-h);
    /* Push content above fixed bot + back-to-top button */
    padding-bottom: 6rem;
  }
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}


.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 170, 0.25);
}

.footer-made {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-heart {
  color: #ff6b6b;
  font-size: 0.85rem;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
}

.footer-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  vertical-align: middle;
  opacity: 0.85;
}

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

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* =========================
   PROJECT DETAIL MODAL
========================= */

.project-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 2rem 1rem;
}

.project-modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.project-modal-box {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  max-width: 720px;
  width: 100%;
  position: relative;
  animation: zoomIn 0.3s ease;
  overflow: hidden;
  margin: auto;
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  line-height: 1;
}

.project-modal-close:hover {
  background: var(--secondary);
}

.project-modal-image-area {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1c2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.project-modal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.project-modal-placeholder i {
  font-size: 3rem;
}

.project-modal-placeholder span {
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

.project-modal-body {
  padding: 2rem;
}

.project-modal-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  background: rgba(0, 212, 170, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.project-modal-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.project-modal-body > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-modal-section {
  margin-bottom: 1.5rem;
}

.project-modal-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

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

.pm-tag {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 999px;
  border: 1px solid var(--bg-tertiary);
}

.project-modal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-modal-section ul li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.project-modal-section ul li i {
  color: var(--secondary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.project-modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-tertiary);
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pm-btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.pm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pm-btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.pm-btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .project-modal-body {
    padding: 1.5rem 1rem;
  }

  .project-modal-image-area {
    height: 180px;
  }

  .project-modal-body h2 {
    font-size: 1.25rem;
  }
}

/* =========================
   DESIGN ENHANCEMENTS
========================= */

/* Animated underline on section titles */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.6s ease 0.2s;
  transform-origin: center;
}

section.animated .section-title::after {
  transform: scaleX(1);
}

/* Staggered project card entrance */
.project-card.animate-on-scroll:nth-child(2) {
  transition-delay: 0.15s;
}

.project-card.animate-on-scroll:nth-child(3) {
  transition-delay: 0.3s;
}

/* Enhanced project card hover */
.project-card:hover {
  transform: translateY(-10px) scale(1.01);
}

/* project-link button reset */
.project-link {
  border: none;
  cursor: pointer;
}

/* =========================
   WEB PROJECT MOCKUPS
========================= */

/* TRP Kitchen Solutions */
.kitchen-preview {
  background: linear-gradient(135deg, #b5451b 0%, #e07b39 100%);
}

.kitchen-mockup {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.kitchen-hero {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.kitchen-services {
  display: flex;
  justify-content: space-around;
}

.ks-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: white;
  font-size: 0.75rem;
}

.ks-item i {
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 8px;
}

/* LJY Engineering Services */
.engineering-preview {
  background: linear-gradient(135deg, #1a2a4a 0%, #0d3060 100%);
}

.engineering-mockup {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.eng-title {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.eng-services {
  display: flex;
  justify-content: space-around;
}

.eng-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: #90caf9;
  font-size: 0.75rem;
}

.eng-item i {
  font-size: 1.25rem;
  background: rgba(144, 202, 249, 0.15);
  padding: 0.5rem;
  border-radius: 8px;
  color: #90caf9;
}

/* Checkers Game */
.checkers-preview {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.checkerboard {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-top: 0.25rem;
}

.cb-row {
  display: flex;
  gap: 2px;
}

.cb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cb.dark {
  background: #5d4037;
}

.cb.light {
  background: #efebe9;
}

.cb-piece {
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cb-piece.red {
  background: radial-gradient(circle at 35% 35%, #ef5350, #b71c1c);
}

.cb-piece.black {
  background: radial-gradient(circle at 35% 35%, #616161, #212121);
}

/* =========================
   GUIDE DRAWER (inside sidebar)
========================= */

/* Mobile guide nav item — hidden on desktop, shown inside hamburger on mobile */
.nav-guide-mobile-li { display: none; }
.nav-guide-mobile-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

/* Guide button — pinned at bottom of sidebar */
.nav-guide-item {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.nav-guide-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}
.nav-guide-btn.active {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
}

/* Drawer — overlays on top of sidebar content, slides up */
.guide-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(100% - 60px);   /* leave header visible */
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  border-top: 2px solid var(--primary);
  overflow: hidden;             /* clip content to drawer bounds */
}
.guide-drawer.open {
  transform: translateY(0);
}
/* Hide guide button when sidebar is collapsed — drawer would be too narrow */
.sidebar.collapsed .nav-guide-item { display: none; }

.guide-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  gap: 0.5rem;
}
.guide-drawer-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.guide-drawer-close:hover { background: rgba(255,255,255,0.38); }

.guide-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.guide-drawer-body::-webkit-scrollbar { width: 4px; }
.guide-drawer-body::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.guide-section h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 0.45rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
.guide-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.guide-section ul li {
  font-size: 0.775rem;
  color: var(--text-secondary);
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.45;
}
.guide-section ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.guide-section ul li strong { color: var(--text-primary); }

.guide-code {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  margin: 0;
  overflow-x: auto;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre;
}
.guide-version {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding-top: 0.3rem;
}

/* =========================
   GUIDE MOBILE MODAL
========================= */

.guide-mobile-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.55);
  align-items: flex-end;
  justify-content: center;
}
.guide-mobile-modal.open {
  display: flex;
}
.guide-mobile-inner {
  background: var(--bg-card);
  width: 100%;
  max-height: 85vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpModal 0.32s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.guide-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}
.guide-mobile-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-mobile-close:hover { background: rgba(255,255,255,0.38); }
.guide-mobile-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Only show on mobile */
@media (min-width: 1025px) {
  .guide-mobile-modal { display: none !important; }
}

/* =========================
   CHIBI ROBOT BOT
========================= */

/* Bot sits centered above #backToTop button */
.site-bot {
  position: fixed;
  right: calc(2rem - 9px);     /* center 68px head over 50px button: shift left 9px */
  bottom: calc(2rem + 58px);   /* 50px button height + 8px gap */
  z-index: 401;
  cursor: default;
  user-select: none;
  /* starts far off-screen to the left */
  transform: translateX(calc(-100vw - 200px));
  animation: rocketLaunch 1.3s cubic-bezier(0.12, 0, 0.18, 1) 1s 1 forwards;
}

/* After landing: clickable, stable */
.site-bot.dog-sat {
  cursor: grab;
  transform: translateX(0);
  animation: none;
}

/* Rocket shoots from left, slight overshoot, settles */
@keyframes rocketLaunch {
  0%   { transform: translateX(calc(-100vw - 200px)); }
  78%  { transform: translateX(14px);  }
  90%  { transform: translateX(-7px);  }
  100% { transform: translateX(0);     }
}

/* ── Character container ── */
.bot-char {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68px;
  filter: drop-shadow(0 6px 18px rgba(80,40,200,0.35));
}

/* Rocket flame trail — visible only while flying */
.site-bot:not(.dog-sat) .bot-char::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 28px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,100,0,0.55) 40%,
    rgba(255,210,60,0.95) 100%
  );
  border-radius: 50% 0 0 50%;
  filter: blur(7px);
  pointer-events: none;
}

/* Idle float once landed */
.site-bot.dog-sat .bot-char {
  animation: botFloat 3.2s ease-in-out infinite;
}
.site-bot.bot-stopped .bot-char {
  animation-play-state: paused;
}
@keyframes botFloat {
  0%, 100% { transform: translateY(0px);  }
  50%      { transform: translateY(-6px); }
}

/* ══════════════ HEAD ══════════════ */
.dog-head {
  position: relative;
  width: 68px;
  height: 64px;
  background: linear-gradient(170deg, #ffffff 60%, #eaeef4);
  border-radius: 34px 34px 26px 26px;
  z-index: 2;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.16),
    inset 0 -3px 8px rgba(0,0,0,0.05),
    inset 0 2px 6px rgba(255,255,255,0.9);
}

/* Round ear nubs */
.dog-ear {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  top: -9px;
  box-shadow: 0 -3px 8px rgba(0,0,0,0.1), inset 0 -2px 4px rgba(0,0,0,0.06);
}
.dog-ear-l { left: 6px; }
.dog-ear-r { right: 6px; }

/* Dark visor panel — clips eye movement */
.dog-visor {
  position: absolute;
  width: 50px;
  height: 34px;
  background: linear-gradient(160deg, #1a1b50, #2a1a68);
  border-radius: 13px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 7px;
  overflow: hidden;              /* clips iris when it tracks cursor */
  box-shadow:
    inset 0 3px 10px rgba(0,0,0,0.55),
    0 0 0 1px rgba(140,120,255,0.25);
}

/* Eye orb — outer glow, clips iris */
.dog-eye {
  width: 16px;
  height: 19px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 8px rgba(124,108,245,1), 0 0 20px rgba(124,108,245,0.5);
  animation: eyeGlow 2.4s ease-in-out infinite alternate,
             eyeBlink 6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes eyeGlow {
  from { box-shadow: 0 0 7px rgba(124,108,245,0.9),  0 0 16px rgba(124,108,245,0.4); }
  to   { box-shadow: 0 0 13px rgba(160,140,255,1),   0 0 28px rgba(124,108,245,0.7); }
}
@keyframes eyeBlink {
  0%, 88%, 100% { transform: scaleY(1);    }
  93%           { transform: scaleY(0.06); }
}

/* Iris — moves to track cursor via JS --px / --py */
.dog-iris {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #d4caff, #7c6cf5 65%, #4a35c8);
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform 0.08s ease-out;
  position: relative;
}
/* highlight dot */
.dog-iris::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  top: 3px;
  right: 2px;
}

/* =========================
   BOT CHAT BUBBLE
========================= */

.bot-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 255px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.2);
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 402;
}
.bot-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 20px;
  width: 16px;
  height: 16px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.bot-bubble.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.bot-bubble-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}
.bot-bubble-close:hover { color: var(--accent); }

.bot-messages {
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bot-msg {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-line;
  background: var(--bg-secondary);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  margin: 0;
}

.bot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}
.bot-suggestion-btn {
  font-size: 0.75rem;
  padding: 0.28rem 0.62rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}
.bot-suggestion-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .bot-bubble { width: 215px; right: -8px; }
}
/* ── CV Email Modal ─────────────────────────────── */
.cv-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cv-modal-overlay.open { display: flex; }

.cv-modal {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2.4rem 2rem 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: cvModalIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
  text-align: center;
}
@keyframes cvModalIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cv-modal-close {
  position: absolute;
  top: 0.9rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}
.cv-modal-close:hover { color: var(--text-primary); }

.cv-modal-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  box-shadow: 0 6px 20px rgba(14,165,233,0.4);
  border: 3px solid #0ea5e9;
  overflow: hidden;
}
.cv-modal-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cv-modal h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.cv-modal p {
  margin: 0 0 1.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cv-input-wrap {
  position: relative;
  margin-bottom: 1rem;
}
.cv-input-wrap i {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: #0ea5e9;
  font-size: 0.9rem;
}
.cv-input-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.cv-input-wrap input:focus { border-color: #0ea5e9; }

.cv-send-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}
.cv-send-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.cv-send-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.cv-success {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  color: #065f46;
  font-size: 0.9rem;
  font-weight: 500;
}
.cv-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Viewer Counter ─────────────────────────────── */
.view-counter {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 300;
  background: rgba(14, 165, 233, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.15);
  pointer-events: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}
.view-counter i { color: #7dd3fc; font-size: 0.72rem; }
#viewBadgeImg {
  height: 16px;
  width: auto;
  display: block;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .view-counter { right: 8rem; top: 0.9rem; }
}
@media (max-width: 480px) {
  .view-counter { right: 7.5rem; padding: 0.24rem 0.5rem; }
}
