/* ==========================================================================
   Sirius Studio — Senior Software Engineer Portfolio Website
   Design Theme: Clean Figma Community Minimalist Architecture
   ========================================================================== */

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  outline: none;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
}

/* Global Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ==========================================================================
   CINEMATIC VIDEO PRELOADER (Preserved Lo-Fi Intro)
   ========================================================================== */
.preloader-overlay {
  position: fixed;
  inset: 0;
  background: #0B0E14;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  width: 100%;
}

.preloader-video-frame {
  position: relative;
  width: min(440px, 90vw);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000000;
}

.preloader-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preloader-audio-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-fast);
}

.preloader-meta-bar {
  width: min(440px, 90vw);
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preloader-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #9CA3AF;
}

.preloader-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.preloader-counter {
  color: #F59E0B;
  font-weight: 600;
}

.preloader-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10B981, #059669);
  transition: width 0.08s linear;
}

.preloader-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.preloader-hint {
  font-size: 0.8rem;
  color: #6B7280;
  font-style: italic;
}

.preloader-skip-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #D1D5DB;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preloader-skip-pill:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   HEADER & STICKY NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 6px 2px;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-green);
  border-radius: var(--radius-full);
}

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

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-badge);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.nav-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.nav-whatsapp-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: #FFFFFF;
}

.nav-whatsapp-btn:hover {
  background: #20ba5a;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-badge);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION (Matching Figma Community Layout)
   ========================================================================== */
.hero-section {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  background: var(--bg-page);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

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

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.hero-pill-badge .sparkle {
  color: var(--accent-amber);
}

.hero-heading {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.hero-heading span.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, #4B5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-heading span.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #9CA3AF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typewriter Terminal Bar */
.hero-typewriter-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(0.92rem, 1.6vw, 1.15rem);
  font-weight: 600;
  color: var(--accent-green);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  min-height: 44px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

[data-theme="dark"] .hero-typewriter-box {
  background: #0D0D0D;
  border-color: #242424;
}

.typewriter-prompt {
  color: var(--accent-amber);
  font-weight: 700;
  user-select: none;
}

.typewriter-dynamic-text {
  color: var(--text-primary);
  word-break: break-word;
}

.typewriter-cursor {
  display: inline-block;
  color: var(--accent-green);
  font-weight: 700;
  animation: blinkTerminalCursor 0.8s infinite;
  margin-left: 2px;
}

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

.hero-lead-text {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.hero-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-xl);
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.social-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.hero-metrics-bar {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* HERO RIGHT: CIRCULAR VIDEO FRAME (Seamless Dual-Buffered Video Loop) */
.hero-visual-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding-bottom: 24px;
}

.hero-halo-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--bg-circle-halo);
  filter: blur(48px);
  z-index: 1;
  pointer-events: none;
  animation: haloBreath 6s ease-in-out infinite;
}

@keyframes haloBreath {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-circle-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}

.hero-circle-frame {
  width: min(380px, 80vw);
  height: min(380px, 80vw);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-circle);
  border: 4px solid var(--circle-border);
  background: #000000;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.hero-circle-frame video,
.hero-loop-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.14s ease-in-out;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: opacity, transform;
}

.hero-loop-video.active {
  opacity: 1;
  z-index: 2;
}

.hero-status-pill {
  position: absolute !important;
  bottom: -14px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-full) !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  white-space: nowrap !important;
  z-index: 10 !important;
  margin: 0 !important;
}

[data-theme="dark"] .hero-status-pill {
  background: #0D0D0D;
  border-color: #262626;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.15);
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-page);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-badge);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

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

/* ==========================================================================
   SKILLS & TECHNICAL ARCHITECTURE SECTION
   ========================================================================== */
.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.skill-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.skill-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  flex: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  background: var(--bg-badge);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* ==========================================================================
   WORK EXPERIENCE & COMMERCIAL LEADERSHIP TIMELINE
   ========================================================================== */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 860px;
  margin: 0 auto;
}

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  transition: all var(--transition-normal);
}

.experience-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.exp-left {
  display: flex;
  flex-direction: column;
}

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

.exp-company {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-amber);
  margin-bottom: var(--space-xs);
}

.exp-summary {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-period-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-badge);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* ==========================================================================
   RECENT PROJECTS & PLATFORMS (8 Production Platforms)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

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

.project-thumb-box {
  width: 100%;
  height: 210px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.project-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb-box img {
  transform: scale(1.04);
}

.project-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
}

.project-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1;
}

.project-tags-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.project-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.btn-inspect {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-badge);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.btn-inspect:hover {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.btn-live-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-live-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CREDENTIALS & EDUCATION
   ========================================================================== */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.credential-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.credential-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
}

.cred-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid var(--accent-green-border);
  align-self: flex-start;
  margin-bottom: var(--space-sm);
}

.cred-degree {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cred-institution {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

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

/* ==========================================================================
   CONTACT & EXECUTIVE HOTLINE
   ========================================================================== */
.contact-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 64px) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero-card h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: var(--space-sm);
}

.contact-hero-card p {
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto var(--space-xl);
}

.contact-hotline-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-fast);
}

.contact-hotline-pill svg {
  fill: #FFFFFF;
}

.contact-hotline-pill:hover {
  background: #20ba5a;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.45);
}

.contact-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.email-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.email-copy-pill:hover {
  background: var(--bg-badge);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-light);
  background: var(--bg-app);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

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

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

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

.footer-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

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

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

  .hero-social-row {
    justify-content: center;
  }

  .hero-metrics-bar {
    justify-content: center;
  }
}

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

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-whatsapp-btn span {
    display: none;
  }

  .nav-whatsapp-btn {
    padding: 8px;
    width: 38px;
    height: 38px;
    justify-content: center;
  }

  .hero-metrics-bar {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .experience-card {
    flex-direction: column;
    gap: 12px;
  }

  .exp-period-badge {
    align-self: flex-start;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .skills-bento-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero-circle-frame {
    width: min(290px, 78vw);
    height: min(290px, 78vw);
  }

  .hero-status-pill {
    bottom: -13px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    -webkit-transform: translateX(-50%) !important;
    padding: 6px 14px !important;
    font-size: 0.72rem !important;
    margin: 0 !important;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  .hero-typewriter-box {
    font-size: 0.88rem;
    padding: 7px 12px;
    min-height: 40px;
  }

  .hero-heading {
    font-size: clamp(2rem, 8.5vw, 2.75rem);
    line-height: 1.15;
  }

  .hero-lead-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

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

  .section-description {
    font-size: 0.92rem;
  }

  .project-body {
    padding: 18px 16px;
  }

  .project-thumb-box {
    height: 190px;
  }

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

  .contact-box {
    padding: 28px 18px;
  }

  .contact-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 380px) {
  .hero-circle-frame {
    width: 240px;
    height: 240px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .hero-pill-badge {
    font-size: 0.74rem;
    padding: 5px 12px;
  }
}


/* Mobile Nav Drawer Overlay */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-app);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
}

.mobile-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-badge);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  list-style: none;
}

.mobile-drawer-link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   DYNAMIC MOTION & SITE ANIMATIONS
   ========================================================================== */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlowRing {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

/* Hero Entrance Staggering */
.hero-content > * {
  animation: heroFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-pill-badge { animation-delay: 0.05s; }
.hero-heading { animation-delay: 0.15s; }
.hero-lead-text { animation-delay: 0.25s; }
.hero-actions { animation-delay: 0.35s; }
.hero-social-row { animation-delay: 0.45s; }
.hero-metrics-bar { animation-delay: 0.55s; }

.hero-circle-container {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both, floatSubtle 6s ease-in-out 1.2s infinite;
}

/* Scroll-Triggered Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Micro-Interactions on Interactive Elements */
.skill-card,
.project-card,
.experience-card,
.credential-box {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.skill-card:hover,
.project-card:hover,
.credential-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.experience-card:hover {
  transform: translateX(4px);
  border-color: var(--border-medium);
}

.project-thumb-box {
  overflow: hidden;
}

.project-thumb-box img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb-box img {
  transform: scale(1.04);
}

.btn-primary:active,
.btn-secondary:active,
.nav-whatsapp-btn:active {
  transform: scale(0.97);
}
