/* ==========================================================================
   Modern Portfolio Design System - styles.css
   ========================================================================== */

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

/* CSS Custom Variables for Theme Control */
:root {
  /* Light Theme Variables */
  --bg-color: #F8FAFC;
  --surface-color: #FFFFFF;
  --surface-muted: #F1F5F9;
  
  --primary-color: #6366F1;      /* Modern Indigo */
  --primary-glow: rgba(99, 102, 241, 0.15);
  --primary-gradient: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  
  --accent-color: #F59E0B;       /* Energetic Amber */
  --accent-glow: rgba(245, 158, 11, 0.2);
  --accent-gradient: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  
  --text-main: #0F172A;          /* Deep Slate */
  --text-muted: #64748B;         /* Slate Grey */
  --text-inverse: #FFFFFF;
  
  --border-color: #E2E8F0;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --hover-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.05);
  --floating-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-color: #0B0F19;
  --surface-color: #111827;
  --surface-muted: #1F2937;
  
  --primary-color: #818CF8;
  --primary-glow: rgba(129, 140, 248, 0.2);
  --primary-gradient: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
  
  --accent-color: #FBBF24;
  --accent-glow: rgba(251, 191, 36, 0.25);
  --accent-gradient: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-inverse: #0B0F19;
  
  --border-color: #374151;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  --hover-shadow: 0 20px 45px -15px rgba(129, 140, 248, 0.2), 0 0 0 1px rgba(129, 140, 248, 0.1);
  --floating-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.4);
  
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

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

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

/* Reusable Components & Layout Utility */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

section {
  padding: clamp(1.8rem, 3.5vw, 3rem) 0;
  position: relative;
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

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

/* Section Header Styles */
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw + 1rem, 2.2rem);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1rem;
}

.text-center {
  text-align: center;
}

/* Header / Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: padding var(--transition-normal), background-color var(--transition-normal);
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.8rem 0;
  box-shadow: var(--card-shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(80vw, 320px);
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6rem 2rem 2rem 2rem;
  gap: 1.8rem;
  list-style: none;
  transition: right var(--transition-normal);
  z-index: 999;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-muted);
  position: relative;
  display: block;
  padding: 0.5rem 0;
  width: 100%;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

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

.nav-social-item {
  display: flex;
  align-items: center;
}

.nav-social-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  padding: 0.2rem;
}

.nav-social-link-icon:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

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

/* Theme Switcher Toggle */
.theme-toggle-btn {
  background: var(--surface-muted);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--border-color);
  color: var(--primary-color);
}

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

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
  background-color: var(--surface-muted);
}

.nav-talk-btn {
  display: none;
}

/* Decorative Background SVG Blobs */
.bg-blob {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

[data-theme="dark"] .bg-blob {
  opacity: 0.2;
}

.blob-primary {
  background: var(--primary-color);
  top: 10%;
  right: -5%;
}

.blob-accent {
  background: var(--accent-color);
  bottom: 15%;
  left: -10%;
}

.blob-secondary {
  background: #3B82F6;
  top: 50%;
  right: 15%;
}

/* Floating Animations */
@keyframes floatY1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatY2 {
  0% { transform: translateY(-10px) rotate(-1deg); }
  50% { transform: translateY(10px) rotate(1deg); }
  100% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes floatCircle {
  0% { transform: rotate(0deg) translate(8px) rotate(0deg); }
  100% { transform: rotate(360deg) translate(8px) rotate(-360deg); }
}

@keyframes pulseBorder {
  0% { border-color: var(--primary-color); box-shadow: 0 0 0 0 var(--primary-glow); }
  50% { border-color: var(--accent-color); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { border-color: var(--primary-color); box-shadow: 0 0 0 0 var(--primary-glow); }
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  padding: 5.5rem 0 2.5rem 0;
  overflow: hidden;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-greeting {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw + 1rem, 3.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  color: var(--text-main);
  margin-bottom: 1.5rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
}

.typing-text {
  background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  margin-left: 0.4rem;
  letter-spacing: -0.5px;
}

.typing-cursor {
  display: inline-block;
  color: #38BDF8;
  font-weight: 300;
  margin-left: 2px;
  animation: blinkCursor 0.8s infinite;
}

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

.hero-desc {
  font-size: clamp(1rem, 1.5vw + 0.8rem, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
}

.hero-social-icon-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: var(--hover-shadow);
}

/* Hero Visual (Organic Blob Photo & Floating Tech Icons) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
  width: 100%;
}

.avatar-blob-bg {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(59, 130, 246, 0.08) 70%, transparent 100%);
  border-radius: 50%;
  filter: blur(45px);
  z-index: 1;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.85; }
}

.avatar-frame-wrapper {
  position: relative;
  z-index: 2;
  padding: 10px;
  animation: floatHeroFrame 6s ease-in-out infinite alternate;
}

@keyframes floatHeroFrame {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Organic Fluid Blob Frame for Photo (Larger & Floating) */
.avatar-frame {
  width: 380px;
  height: 420px;
  border-radius: 54% 46% 62% 38% / 42% 58% 42% 58%;
  overflow: hidden;
  position: relative;
  background: var(--surface-color);
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(99, 102, 241, 0.35),
    0 0 45px rgba(99, 102, 241, 0.3);
  transition: border-radius 0.6s ease, box-shadow 0.5s ease;
  cursor: pointer;
}

.avatar-frame:hover {
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(99, 102, 241, 0.7),
    0 0 55px rgba(99, 102, 241, 0.45);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform 0.6s ease;
}

.avatar-frame:hover .avatar-img {
  transform: scale(1.05);
}



/* Core Competencies (Interactive Graph) Section */
.skills-graph-container {
  position: relative;
  width: 100%;
  height: clamp(280px, 40vh, 350px);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .skills-graph-container {
  background-color: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(10px);
}

.skill-node {
  position: absolute;
  width: clamp(96px, 15vw, 130px);
  height: clamp(96px, 15vw, 130px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.8rem;
  cursor: grab;
  user-select: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  z-index: 5;
  touch-action: none;
}

.skill-node:active {
  cursor: grabbing;
}

.skill-node:hover {
  transform: scale(1.06);
  box-shadow: var(--floating-shadow);
  border-color: var(--primary-color) !important;
}

.skill-node-text {
  font-size: clamp(0.7rem, 2vw + 0.2rem, 0.85rem);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.skill-node-subtext {
  font-size: clamp(0.55rem, 1.5vw + 0.1rem, 0.68rem);
  letter-spacing: 0.5px;
}

.graph-instruction {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* About & Education & Certifications Styles */
.about-content.centered-about {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.about-header-grid {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: 3rem;
  align-items: stretch;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .about-header-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
  }
}

.about-photo-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 10px;
  box-shadow: var(--card-shadow), 0 15px 35px -10px rgba(0, 0, 0, 0.15);
  display: flex;
  width: 100%;
  max-width: 360px;
  height: 100%;
  min-height: 0;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

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

.about-photo-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: var(--surface-muted);
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform var(--transition-normal);
}

.about-photo-card:hover .about-photo-img {
  transform: scale(1.03);
}

.about-text-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0.3rem 0 1rem 0;
  color: var(--text-main);
  line-height: 1.25;
}

.about-bio-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Stat Metric Cards Row */
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: auto;
}

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

.about-stat-box {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.1rem 0.6rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.about-stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.about-stat-box .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
}

.about-stat-box .stat-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.3rem;
  line-height: 1.3;
}

.edu-cert-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.column-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edu-list, .cert-list-simple {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.edu-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.edu-date {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.edu-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

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

.edu-score {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-top: 0.5rem;
}

.cert-card-simple {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

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

.cert-card-simple-icon {
  width: 52px;
  height: 52px;
  background-color: var(--surface-muted);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.cert-sap-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-card-simple-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.cert-card-simple-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-bio {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.about-highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about-highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.about-highlight-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.about-highlight-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Process Section */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--surface-color);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 1.8rem;
  color: var(--primary-color);
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.process-step:hover .process-icon-wrapper {
  transform: scale(1.1);
  border-color: var(--primary-color);
}

.process-step .step-number {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0 1rem;
}

/* Connecting Process Arrows (SVG background lines) */
.process-connector {
  display: none;
  position: absolute;
  top: 40px;
  left: 15%;
  width: 70%;
  height: 30px;
  z-index: 1;
  pointer-events: none;
}

.connector-line {
  stroke: var(--border-color);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  fill: none;
}

/* Experience Section (Simplified Column Layout) */
.experience-list-simple {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.experience-item-simple {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.experience-item-simple:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.exp-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.exp-company {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.exp-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  background-color: var(--primary-glow);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  white-space: nowrap;
}

.exp-details {
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-details li {
  position: relative;
  padding-left: 1.5rem;
}

.exp-details li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.8rem;
}

/* Portfolio Section (Projects Grid with Filter) */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

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

.portfolio-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.portfolio-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modern dynamic code graphic inside placeholder portfolio thumbs */
.portfolio-thumb .project-placeholder {
  font-family: monospace;
  font-weight: bold;
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

.portfolio-thumb .project-placeholder-small {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.portfolio-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(99, 102, 241, 0.4);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-thumb::after {
  opacity: 1;
}

.portfolio-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.portfolio-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.portfolio-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
  margin-top: auto;
}

.portfolio-link-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.portfolio-link-btn:hover {
  color: var(--accent-color);
}

/* Contact CTA Banner Box */
.contact-banner {
  background: var(--primary-gradient);
  border-radius: 32px;
  padding: 3rem 2rem;
  box-shadow: 0 25px 50px -12px var(--primary-glow);
  position: relative;
  overflow: hidden;
  z-index: 2;
  margin-bottom: -1.5rem; /* overlaps footer slightly */
}

.contact-banner.centered-banner {
  display: block;
  text-align: center;
}

.footer {
  background-color: var(--surface-muted);
  padding: 3.5rem 0 2rem 0; /* extra top padding to accommodate banner overlap */
  border-top: 1px solid var(--border-color);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  color: var(--text-muted);
  max-width: 400px;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact-item svg {
  color: var(--primary-color);
}

.footer-newsletter h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-newsletter p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

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

.contact-form .form-group {
  width: 100%;
}

.contact-input {
  width: 100%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-textarea {
  border-radius: 18px;
  min-height: 100px;
  resize: vertical;
}

.contact-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-submit-email {
  width: 100%;
  border-radius: 50px;
  margin-top: 0.4rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

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

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.social-icon:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
}

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

/* Custom Toast Notification styles */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--surface-color);
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-main);
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left-color: #10B981;
}

/* Responsive Styles */
/* ==========================================================================
   Awesome Projects Themed Card Highlights
   ========================================================================== */
.portfolio-card.project-ai {
  border-top: 4px solid #8B5CF6; /* Violet */
}
.portfolio-card.project-ai:hover {
  box-shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.2), 0 0 0 1px rgba(139, 92, 246, 0.1);
  border-color: #8B5CF6;
}
.portfolio-card.project-ai .portfolio-category {
  color: #8B5CF6;
}
.portfolio-card.project-ai .portfolio-thumb .project-placeholder {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  color: #8B5CF6;
}

.portfolio-card.project-erp {
  border-top: 4px solid #0EA5E9; /* Sky Blue */
}
.portfolio-card.project-erp:hover {
  box-shadow: 0 20px 40px -15px rgba(14, 165, 233, 0.2), 0 0 0 1px rgba(14, 165, 233, 0.1);
  border-color: #0EA5E9;
}
.portfolio-card.project-erp .portfolio-category {
  color: #0EA5E9;
}
.portfolio-card.project-erp .portfolio-thumb .project-placeholder {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  color: #0EA5E9;
}

.portfolio-card.project-cyber {
  border-top: 4px solid #10B981; /* Emerald Green */
}
.portfolio-card.project-cyber:hover {
  box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.1);
  border-color: #10B981;
}
.portfolio-card.project-cyber .portfolio-category {
  color: #10B981;
}
.portfolio-card.project-cyber .portfolio-thumb .project-placeholder {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  color: #10B981;
}

/* ==========================================================================
   Floating WhatsApp Contact Button
   ========================================================================== */
.whatsapp-btn-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
}

.whatsapp-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
}

.whatsapp-toggle:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  z-index: 2;
  fill: currentColor;
}

/* WhatsApp Pulse Ring Animation */
.whatsapp-btn-container .pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.45;
  animation: pulseWhatsApp 2.5s infinite;
  z-index: 1;
}

@keyframes pulseWhatsApp {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Projects Section Styling (Grid View) */
.project-card-premium {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  position: relative;
}

.project-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 5;
}

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

.project-card-image-col {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.project-theme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card-premium:hover .project-theme-img {
  transform: scale(1.05);
}

.project-card-content-col {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-card-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.project-tech-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  background-color: var(--surface-muted);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.project-card-icon {
  font-size: 2rem;
}

.project-card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
}

.project-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.project-card-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.project-card-footer .btn-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
}

/* ==========================================================================
   AI Resume Analyzer Live Theme Animation
   ========================================================================== */
.resume-theme-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-theme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: focus-resume-img 6s infinite alternate ease-in-out;
}

.resume-theme-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.resume-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(14, 165, 233, 0.8);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.6), 0 0 5px rgba(14, 165, 233, 0.4);
  animation: scanning 4s infinite linear;
  pointer-events: none;
}

@keyframes focus-resume-img {
  0% { transform: scale(1) translateY(0); filter: brightness(1); }
  100% { transform: scale(1.1) translateY(-2%); filter: brightness(1.05); }
}

@keyframes scanning {
  0% { top: -5%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 105%; opacity: 0; }
}

/* ==========================================================================
   AI Voice Assistant Live Theme Animation
   ========================================================================== */
.voice-theme-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-theme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pulse-voice-img 4s infinite ease-in-out alternate;
}

.voice-theme-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

@keyframes pulse-voice-img {
  0% { transform: scale(1); filter: hue-rotate(0deg) brightness(1); }
  100% { transform: scale(1.15); filter: hue-rotate(20deg) brightness(1.2); }
}

/* ==========================================================================
   ERP Leetcode Tracker Live Theme Animation
   ========================================================================== */
.code-theme-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-theme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pan-code-img 12s infinite alternate ease-in-out;
}

.code-theme-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

@keyframes pan-code-img {
  0% { transform: scale(1.05) translate(0, 0); filter: brightness(0.9); }
  50% { transform: scale(1.15) translate(-1.5%, 1.5%); filter: brightness(1.1); }
  100% { transform: scale(1.05) translate(1.5%, -1.5%); filter: brightness(0.9); }
}

/* ==========================================================================
   FinGuard RAG Live Theme & Footer Tagline Styles
   ========================================================================== */
.finguard-theme-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finguard-theme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pan-finguard-img 12s infinite alternate ease-in-out;
}

.finguard-theme-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

@keyframes pan-finguard-img {
  0% { transform: scale(1.05) translate(0, 0); filter: brightness(0.95); }
  50% { transform: scale(1.15) translate(1.5%, -1.5%); filter: brightness(1.1); }
  100% { transform: scale(1.05) translate(-1.5%, 1.5%); filter: brightness(0.95); }
}

.footer-tagline {
  text-align: center;
  margin-top: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
  letter-spacing: 0.2px;
}

/* ==========================================================================
   Structured CSS Mobile-First Media Queries
   ========================================================================== */

/* Tablets / Medium Screens (768px and above) */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: none;
    box-shadow: none;
    flex-direction: row;
    padding: 0;
    gap: 2.5rem;
    z-index: auto;
    transition: none;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0;
    width: auto;
  }

  .nav-talk-btn {
    display: inline-flex;
    padding: 0.6rem 1.4rem;
    font-size: 0.88rem;
    min-height: auto;
  }

  .hero-wrapper {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    text-align: left;
  }

  .hero-ctas {
    justify-content: flex-start;
  }

  .hero-visual {
    margin-top: 0;
    height: 480px;
  }

  .avatar-frame {
    width: 380px;
    height: 420px;
  }

  .avatar-blob-bg {
    width: 420px;
    height: 420px;
  }

  .badge-cgpa {
    top: 15%;
    left: -20px;
  }

  .badge-leet {
    bottom: 20%;
    right: -20px;
  }

  .badge-tech {
    bottom: 5%;
    left: 20px;
  }

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

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

  .process-connector {
    display: block;
  }

  .experience-list-simple {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .project-card-premium {
    grid-template-columns: 1fr 1.25fr;
  }

  .project-card-image-col {
    min-height: 270px;
  }

  .project-card-content-col {
    padding: 1.8rem 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktops / Large Screens (1024px and above) */
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Certificate Lightbox Modal Styles
   ========================================================================== */
.cert-card-interactive {
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.cert-card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.cert-card-interactive:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.cert-card-action {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--surface-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cert-card-interactive:hover .cert-card-action {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.cert-view-tag {
  display: inline-block;
}

/* Modal Structure */
.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

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

.cert-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cert-modal-container {
  position: relative;
  z-index: 10;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 1060px;
  width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cert-modal.active .cert-modal-container {
  transform: scale(1);
}

.cert-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--surface-muted);
  flex-shrink: 0;
}

.cert-modal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.cert-modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-color);
  margin: 0;
}

.cert-modal-issuer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cert-modal-close {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
  flex-shrink: 0;
}

.cert-modal-close:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: rotate(90deg);
}

.cert-modal-body {
  padding: 1rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.03);
}

.cert-modal-img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cert-modal-img {
  max-width: 100%;
  max-height: calc(85vh - 140px);
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.cert-modal-img:hover {
  transform: scale(1.01);
}

.cert-modal-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cert-modal-fallback {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.fallback-icon-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  background-color: var(--surface-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.cert-modal-fallback h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cert-modal-fallback p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

.cert-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--surface-muted);
  flex-shrink: 0;
}

.btn-modal-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .cert-modal {
    padding: 0.6rem;
  }
  
  .cert-modal-container {
    width: 100vw;
    max-height: 98vh;
    border-radius: 14px;
  }

  .cert-modal-header, .cert-modal-footer {
    padding: 0.8rem 1rem;
  }

  .cert-modal-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-modal-action {
    width: 100%;
    justify-content: center;
  }

  .cert-view-tag {
    display: none;
  }

  .cert-card-action {
    padding: 0.4rem;
  }

  .cert-modal-img {
    max-height: calc(80vh - 160px);
  }
}
