/* ============================================================
   CLAYMORPHISM THEME - Soft 3D Clay, Organic, Tactile
   ============================================================ */

[data-theme="claymorphism"] {
  --bg: #fdf0d5;
  --bg-secondary: #f5e6c8;
  --bg-card: #ffffff;
  --ink: #331832;
  --ink-soft: #5e6472;
  --accent: #f0544f;
  --accent-bright: #fcab64;
  --accent-glow: rgba(240, 84, 79, 0.3);
  --muted: #73615f;
  --border: rgba(240, 84, 79, 0.15);
  --glass: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(240, 84, 79, 0.1);
  --shadow-sm: 4px 4px 8px #d1c4a3, -4px -4px 8px #ffffff;
  --shadow-md: 8px 8px 16px #d1c4a3, -8px -8px 16px #ffffff;
  --shadow-lg: 16px 16px 32px #d1c4a3, -16px -16px 32px #ffffff;
  --shadow-inset: inset 4px 4px 8px #d1c4a3, inset -4px -4px 8px #ffffff;

  /* Clay specific */
  --clay-radius: 28px;
  --clay-radius-sm: 16px;
  --clay-radius-lg: 40px;
}

[data-theme="claymorphism"] body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(240, 84, 79, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(252, 171, 100, 0.06) 0%, transparent 40%);
}

[data-theme="claymorphism"] .nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none;
  box-shadow: var(--shadow-sm);
}

[data-theme="claymorphism"] .nav-logo .logo-mark {
  background: linear-gradient(135deg, #f0544f, #fcab64);
  box-shadow: var(--shadow-sm), 0 0 20px var(--accent-glow);
}

[data-theme="claymorphism"] .nav-links a {
  color: var(--ink-soft);
}

[data-theme="claymorphism"] .nav-links a:hover {
  color: var(--accent);
}

[data-theme="claymorphism"] .nav-links a::after {
  background: var(--accent);
}

/* Light theme contrast fix: hero eyebrow (accent-bright ≈ 1.7:1 on cream) → ink-soft */
[data-theme="claymorphism"] .hero-eyebrow {
  color: var(--ink-soft);
}

/* Light theme contrast fix: hero name's shimmer mid-stop (#fcab64 ≈ 1.7:1 on cream) → accent */
[data-theme="claymorphism"] .hero-name {
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 50%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="claymorphism"] .btn-primary {
  background: linear-gradient(135deg, #f0544f, #fcab64);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  border: none;
}

[data-theme="claymorphism"] .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

[data-theme="claymorphism"] .btn-primary:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-inset);
}

[data-theme="claymorphism"] .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
}

[data-theme="claymorphism"] .btn-ghost:hover {
  border-color: #b0413e;
  color: #b0413e;
  background: rgba(240, 84, 79, 0.08);
  box-shadow: var(--shadow-sm);
}

[data-theme="claymorphism"] .btn-download {
  background: linear-gradient(135deg, #f0544f, #fcab64);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

[data-theme="claymorphism"] .btn-download.caught {
  background: linear-gradient(135deg, #fcab64, #fcd29f);
}

/* Clay cards - soft 3D effect */
[data-theme="claymorphism"] .about-card,
[data-theme="claymorphism"] .project-card,
[data-theme="claymorphism"] .skill-category,
[data-theme="claymorphism"] .learning-card,
[data-theme="claymorphism"] .contact-card,
[data-theme="claymorphism"] .stat-item {
  background: var(--bg-card);
  border: none;
  border-radius: var(--clay-radius);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="claymorphism"] .about-card:hover,
[data-theme="claymorphism"] .project-card:hover,
[data-theme="claymorphism"] .skill-category:hover,
[data-theme="claymorphism"] .learning-card:hover,
[data-theme="claymorphism"] .contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

[data-theme="claymorphism"] .about-card:active,
[data-theme="claymorphism"] .project-card:active,
[data-theme="claymorphism"] .skill-category:active,
[data-theme="claymorphism"] .learning-card:active,
[data-theme="claymorphism"] .contact-card:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-inset);
}

/* Pressed clay effect on hero cards */
[data-theme="claymorphism"] .hero-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--clay-radius);
  box-shadow: var(--shadow-md);
}

[data-theme="claymorphism"] .hero-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

[data-theme="claymorphism"] .hero-card:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: var(--shadow-inset);
}

/* Theme dropdown clay style */
[data-theme="claymorphism"] .theme-btn,
[data-theme="claymorphism"] .cycle-btn {
  background: var(--bg-card);
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

[data-theme="claymorphism"] .theme-btn:hover,
[data-theme="claymorphism"] .cycle-btn:hover,
[data-theme="claymorphism"] .cycle-btn.active {
  background: linear-gradient(135deg, #f0544f, #fcab64);
  color: #fff;
  box-shadow: var(--shadow-md);
}

[data-theme="claymorphism"] .theme-dropdown {
  background: var(--bg-card);
  border: none;
  border-radius: var(--clay-radius);
  box-shadow: var(--shadow-lg);
}

[data-theme="claymorphism"] .theme-option {
  color: var(--ink-soft);
  border-radius: var(--clay-radius-sm);
}

[data-theme="claymorphism"] .theme-option:hover {
  background: rgba(240, 84, 79, 0.1);
  color: var(--accent);
}

[data-theme="claymorphism"] .theme-option.active {
  background: linear-gradient(135deg, rgba(240, 84, 79, 0.2), rgba(252, 171, 100, 0.15));
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Tech badges clay style */
[data-theme="claymorphism"] .tech-badge,
[data-theme="claymorphism"] .skill-tag {
  background: var(--bg-secondary);
  border: none;
  border-radius: 999px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  padding: 0.35rem 0.9rem;
}

[data-theme="claymorphism"] .tech-badge:hover,
[data-theme="claymorphism"] .skill-tag:hover {
  background: linear-gradient(135deg, #f0544f, #fcab64);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Hobby icons - clay spheres */
[data-theme="claymorphism"] .hobby-icon {
  background: var(--bg-card);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  width: 90px;
  height: 90px;
}

[data-theme="claymorphism"] .hobby-icon:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

[data-theme="claymorphism"] .hobby-icon:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-inset);
}

/* Progress bar clay */
[data-theme="claymorphism"] .progress-bar {
  background: var(--bg-secondary);
  border-radius: 999px;
  box-shadow: var(--shadow-inset);
  height: 8px;
}

[data-theme="claymorphism"] .progress-fill {
  background: linear-gradient(135deg, #f0544f, #fcab64);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Timeline clay */
[data-theme="claymorphism"] .timeline::before {
  background: linear-gradient(180deg, #f0544f, #fcab64, transparent);
}

[data-theme="claymorphism"] .timeline-item::before {
  background: linear-gradient(135deg, #f0544f, #fcab64);
  box-shadow: var(--shadow-sm), 0 0 16px var(--accent-glow);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  left: -3.2rem;
}

/* Section eyebrow clay */
[data-theme="claymorphism"] .section-eyebrow::before {
  background: linear-gradient(135deg, #f0544f, #fcab64);
  box-shadow: var(--shadow-sm);
}

/* Floating clay blobs in hero */
[data-theme="claymorphism"] .hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 25%, rgba(240, 84, 79, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(252, 171, 100, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(240, 84, 79, 0.06) 0%, transparent 60%);
  animation: clay-float 25s ease-in-out infinite;
}

@keyframes clay-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  25% { transform: translate(3%, -2%) scale(1.03); opacity: 0.7; }
  50% { transform: translate(-2%, 3%) scale(0.97); opacity: 0.5; }
  75% { transform: translate(1%, -1%) scale(1.01); opacity: 0.6; }
}

/* Clay shine on hover */
[data-theme="claymorphism"] .project-card::after,
[data-theme="claymorphism"] .about-card::after,
[data-theme="claymorphism"] .learning-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 70%
  );
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border-radius: 50%;
}

[data-theme="claymorphism"] .project-card:hover::after,
[data-theme="claymorphism"] .about-card:hover::after,
[data-theme="claymorphism"] .learning-card:hover::after {
  transform: translateX(100%) translateY(100%);
}

/* Soft focus rings for accessibility */
[data-theme="claymorphism"] *:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(240, 84, 79, 0.4);
}

/* Stats inner clay */
[data-theme="claymorphism"] .stats-inner {
  background: var(--bg-card);
  border: none;
  border-radius: var(--clay-radius-lg);
  box-shadow: var(--shadow-lg);
}