/* ==========================================================================
   COMPONENTS STYLES
   Author: Michael Kevin Descvio Wando Taher
   ========================================================================== */

/* ==========================================================================
   1. Floating Navbar & Mobile Menu
   ========================================================================== */
.site-header {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
  pointer-events: none;
}

.nav-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--nav-border);
  border-radius: 9999px;
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(2, 12, 27, 0.45);
  max-width: 900px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

.nav-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.08);
  box-shadow: 0 0 12px var(--accent-glow);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
}

/* Mobile Hamburger Button */
.menu-toggle-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  background: var(--bg-card);
}

.menu-toggle-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .menu-toggle-btn {
    display: flex;
  }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 26, 0.7);
  backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  width: 280px;
  height: 100%;
  background: var(--bg-main);
  border-left: 1px solid var(--card-border);
  padding: 5.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-nav-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-primary);
  background: var(--accent-subtle);
  border-color: var(--accent-border);
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 4rem;
  position: relative;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Avatar Presentation */
.hero-avatar-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--bg-card) 50%, var(--accent-deep) 100%);
  box-shadow: 0 0 25px var(--accent-glow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
}

.avatar-container:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.5);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 2px solid var(--bg-main);
  filter: grayscale(15%);
  transition: filter 0.5s ease;
}

.avatar-container:hover .avatar-img {
  filter: grayscale(0%);
}

.avatar-badge-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-active);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--status-active-glow);
  animation: pulse-glow 2s infinite;
}

.academic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  width: fit-content;
}

/* Name & Headline */
.hero-name {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-top: 0.25rem;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: -0.01em;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 780px;
  text-align: justify;
}

/* "Reach Me Out" Section (Inspired by 4rc0) */
.reach-out-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  width: 100%;
}

.reach-out-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.reach-out-label svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.social-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.social-badge-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* Subtle 4rc0 Tilt Effect */
.social-badge-btn:nth-child(odd) {
  transform: rotate(5deg);
}

.social-badge-btn:nth-child(even) {
  transform: rotate(-5deg);
}

.social-badge-btn:hover {
  transform: rotate(0deg) scale(1.15);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 20px var(--accent-glow);
  color: var(--accent-primary);
  z-index: 10;
}

.social-badge-btn svg {
  width: 22px;
  height: 22px;
}

/* CTA Action Buttons */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-primary) 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px var(--accent-glow);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   3. Key Metrics Bar
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  width: 100%;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

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

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

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ==========================================================================
   4. Skills & Marquee
   ========================================================================== */
.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  overflow: hidden;
  margin-block: 2rem;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.marquee-left {
  animation: scroll-left 32s linear infinite;
}

.marquee-right {
  animation: scroll-right 32s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  user-select: none;
  transition: all 0.25s ease;
}

.marquee-pill svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.marquee-pill:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
  transform: translateY(-2px);
}

/* Domain Skills Filter Tabs */
.skills-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
}

.skill-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skill-tab-btn:hover,
.skill-tab-btn.active {
  color: var(--accent-primary);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
}

.skills-domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .skills-domain-grid {
    grid-template-columns: 1fr;
  }
}

.domain-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.domain-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.domain-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.domain-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.domain-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.domain-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.domain-badge {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-main);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.domain-card:hover .domain-badge {
  border-color: rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   5. Experience Timeline
   ========================================================================== */
.timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--card-border), transparent);
}

@media (max-width: 640px) {
  .timeline-wrapper::before {
    left: 14px;
  }
}

.timeline-item {
  position: relative;
  padding-left: 3.5rem;
}

@media (max-width: 640px) {
  .timeline-item {
    padding-left: 2.5rem;
  }
}

.timeline-node {
  position: absolute;
  left: 11px;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 2;
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  .timeline-node {
    left: 5px;
    width: 18px;
    height: 18px;
  }
}

.timeline-item:hover .timeline-node {
  background: var(--accent-primary);
  transform: scale(1.2);
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
}

.timeline-card:hover {
  border-color: var(--card-border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.timeline-role-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: 0.15rem;
}

.timeline-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

@media (max-width: 640px) {
  .timeline-meta-col {
    align-items: flex-start;
  }
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-main);
  border: 1px solid var(--card-border);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.timeline-location {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Bulleted Points */
.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-block: 1rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 1.1rem;
  line-height: 1.3;
}

.timeline-bullets strong {
  color: var(--text-primary);
}

/* Timeline Tags */
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.timeline-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--tag-text);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

/* Award Highlight Badge */
.award-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* ==========================================================================
   6. Featured Projects
   ========================================================================== */
.featured-project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
}

@media (max-width: 900px) {
  .featured-project-card {
    grid-template-columns: 1fr;
  }
}

.featured-project-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -10px rgba(2, 12, 27, 0.7), var(--shadow-glow);
}

.project-details {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-tag-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  font-weight: 700;
}

.project-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.project-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.project-highlights-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.project-highlights-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

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

.project-preview-wrap {
  position: relative;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--card-border);
  overflow: hidden;
}

@media (max-width: 900px) {
  .project-preview-wrap {
    border-left: none;
    border-top: 1px solid var(--card-border);
    min-height: 260px;
  }
}

.project-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.5s ease;
}

.featured-project-card:hover .project-preview-img {
  transform: scale(1.04);
}

/* ==========================================================================
   7. Leadership & Volunteering Spotlight
   ========================================================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.leadership-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s ease;
}

.leadership-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.leadership-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.leadership-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.leadership-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.leadership-org {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
}

/* ==========================================================================
   8. Certifications & Education
   ========================================================================== */
.edu-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .edu-cert-grid {
    grid-template-columns: 1fr;
  }
}

.cert-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all 0.3s ease;
}

.cert-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.cert-issuer-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cert-logo-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-main);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-block: 0.5rem 0.25rem;
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. Contact Section & Toast
   ========================================================================== */
.contact-box {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 800px) {
  .contact-box {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }
}

.contact-box::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(60px);
  pointer-events: none;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-direct-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-main);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-direct-card:hover {
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
}

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

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-main);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

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

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-main);
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(2, 12, 27, 0.7);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 2000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   10. Resume / CV Interactive Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-card {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: var(--bg-main);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(2, 12, 27, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.active .modal-content-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg-card);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--status-danger);
  border-color: var(--status-danger);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  line-height: 1.6;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding-block: 2.5rem 3rem;
  background: var(--bg-main);
  position: relative;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

/* ==========================================================================
   PLAYFUL COASTAL TOYS & INTERACTIVE MICRO-COMPONENTS
   ========================================================================== */

/* Sound Toggle Button */
.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sound-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.sound-toggle-btn.sound-on {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Interactive Playground Canvas / Draggable Stickers in Hero */
.hero-stickers-container {
  position: relative;
  width: 100%;
  min-height: 52px;
  margin-block: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.draggable-sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  animation: sticker-idle 4s ease-in-out infinite;
  z-index: 10;
  will-change: transform;
}

.draggable-sticker:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
  z-index: 20;
}

.draggable-sticker.dragging {
  cursor: grabbing !important;
  opacity: 0.95;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.35);
  border-color: var(--accent-primary);
  transform: scale(1.08) rotate(3deg) !important;
  z-index: 100;
  transition: none !important;
}

.draggable-sticker .sticker-emoji {
  font-size: 1rem;
  line-height: 1;
}

.toy-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-left: 0.25rem;
  cursor: pointer;
  border: 1px dashed rgba(56, 189, 248, 0.4);
}

.toy-hint-pill:hover {
  background: rgba(56, 189, 248, 0.2);
}

/* Full-Screen Animated Ocean Wave Sweep Overlay (Multi-Layered) */
#wave-sweep-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
  transform: translateY(100%);
  opacity: 0;
  overflow: hidden;
}

#wave-sweep-overlay.active {
  animation: wave-sweep-in 1.2s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.wave-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
}

.wave-layer-1 {
  height: 70%;
  z-index: 1;
}
.wave-layer-2 {
  height: 55%;
  z-index: 2;
}
.wave-layer-3 {
  height: 45%;
  z-index: 3;
}

.wave-foam-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, transparent 30%, rgba(56, 189, 248, 0.08) 50%, rgba(14, 165, 233, 0.15) 70%, rgba(2, 132, 199, 0.25) 100%);
  z-index: 0;
}

/* Draggable Rubber Duck Pet */
.draggable-duck-pet {
  position: fixed;
  bottom: 100px;
  left: 30px;
  z-index: 900;
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
  transition: filter 0.2s ease;
}

.duck-inner {
  animation: duck-bob 3s ease-in-out infinite;
  transform-origin: center bottom;
}

.draggable-duck-pet:hover {
  filter: drop-shadow(0 8px 20px rgba(251, 191, 36, 0.5)) brightness(1.08);
}

.draggable-duck-pet.duck-dragging {
  cursor: grabbing !important;
  filter: drop-shadow(0 16px 32px rgba(251, 191, 36, 0.6)) brightness(1.1);
  transition: none !important;
}

.draggable-duck-pet.duck-dragging .duck-inner {
  animation: none !important;
}

.duck-svg {
  width: 72px;
  height: 72px;
  pointer-events: none;
}

.duck-speech {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid #fbbf24;
  color: var(--text-primary, #0f172a);
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1), 0 0 12px rgba(251, 191, 36, 0.25);
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 5;
}

.duck-speech.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

@media (max-width: 640px) {
  .draggable-duck-pet {
    bottom: 80px;
    left: 16px;
  }
  .duck-svg {
    width: 56px;
    height: 56px;
  }
}

/* 3D Interactive Tilt on Project Cards */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

.tilt-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.tilt-card:hover .tilt-glare {
  opacity: 1;
}

/* Click Water Bubbles Generator */
.click-bubble {
  position: fixed;
  pointer-events: none;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(56, 189, 248, 0.6) 60%, rgba(14, 165, 233, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6), inset 0 0 4px rgba(255, 255, 255, 0.8);
  animation: bubble-rise 0.75s ease-out forwards;
  z-index: 99998;
}

/* Mouse Cursor Water Ripple Trail */
.cursor-ripple {
  position: fixed;
  pointer-events: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  border: 1px solid rgba(56, 189, 248, 0.15);
  transform: translate(-50%, -50%) scale(1);
  animation: cursor-ripple-fade 0.6s ease-out forwards;
  z-index: 5;
}

@keyframes cursor-ripple-fade {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Cute Coastal Mascot Widget ("Kimi the Sea Turtle") */
.coastal-mascot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.mascot-speech-bubble {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--accent-primary);
  color: var(--text-primary);
  padding: 0.6rem 0.95rem;
  border-radius: 14px;
  border-bottom-right-radius: 3px;
  font-size: 0.825rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 15px rgba(56, 189, 248, 0.2);
  margin-bottom: 8px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mascot-speech-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mascot-avatar-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.35));
  border: 2px solid var(--accent-primary);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  user-select: none;
}

.mascot-avatar-btn:hover {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.5);
}

.mascot-avatar-btn:active {
  transform: scale(0.95);
}

.mascot-avatar-svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 640px) {
  .coastal-mascot-widget {
    bottom: 16px;
    right: 16px;
  }
  .mascot-avatar-btn {
    width: 46px;
    height: 46px;
  }
  .mascot-avatar-svg {
    width: 26px;
    height: 26px;
  }
}

