/* ==========================================================================
   MODERN PORTFOLIO DESIGN SYSTEM
   Author: Alex Morgan Portfolio
   Theme: Clean Light Theme (Default & Exclusive)
   Features: Glassmorphism, Micro-interactions, High-Contrast Typography, Responsive
   ========================================================================== */

:root {
  /* Colors - Light Theme (Default & Only Theme) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(248, 250, 252, 0.92);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(2, 132, 199, 0.45);
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverted: #ffffff;

  /* Accent Gradients & Colors */
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-purple: #9333ea;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  --grad-primary: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --grad-accent: linear-gradient(135deg, #9333ea 0%, #0284c7 100%);
  --grad-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.12), transparent 70%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.09);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.2);
  --shadow-indigo-glow: 0 0 20px rgba(79, 70, 229, 0.2);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --container-max: 1240px;
  --navbar-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(var(--navbar-height) + 20px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Background Atmosphere */
.ambient-glow-1, .ambient-glow-2 {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.25;
}

.ambient-glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -50px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3), transparent 70%);
}

.ambient-glow-2 {
  width: 600px;
  height: 600px;
  bottom: 10%;
  left: -150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
}

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

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

ul {
  list-style: none;
}

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

/* Global Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Section Styling */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(2, 132, 199, 0.2);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 0.85rem;
  font-weight: 800;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
  user-select: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
}

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

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--accent-cyan);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(2, 132, 199, 0.06);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 1.9rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Cards System */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.2), transparent);
}

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.logo-text span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
}

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

.menu-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   HERO / ABOUT ME SECTION (Top of page)
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--navbar-height) + 3.5rem);
  padding-bottom: 6rem;
  position: relative;
}

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

.hero-badge-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--accent-emerald);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

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

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero-typed-text {
  color: var(--accent-cyan);
  border-right: 2px solid var(--accent-cyan);
  padding-right: 3px;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-cyan); }
}

.hero-about-bio {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-about-bio strong {
  color: var(--text-primary);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Profile Card Widget */
.hero-card-wrapper {
  position: relative;
}

.hero-profile-card {
  padding: 2.25rem;
  text-align: center;
  position: relative;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

.avatar-wrapper {
  position: relative;
  width: 146px;
  height: 146px;
  margin: 0 auto 1.5rem auto;
}

.avatar-box {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 100%);
  border: 3px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.22);
  overflow: hidden;
  position: relative;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform var(--transition-normal);
}

.hero-profile-card:hover .profile-img {
  transform: scale(1.06);
}

.avatar-badge-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 36px;
  height: 36px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.95rem;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.profile-name {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.profile-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.profile-quick-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.quick-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 0.55rem 0.75rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.quick-detail-item i {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

.profile-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  background: rgba(2, 132, 199, 0.08);
}

/* ==========================================================================
   SKILLS SECTION (Divided strictly into Automation Skills & Software Skills)
   ========================================================================== */
.skills-tabs-container, .project-tabs-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.skills-tab-btn, .project-tab-btn{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.skills-tab-btn.active, .skills-tab-btn:hover, .project-tab-btn.active, .project-tab-btn:hover {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.25);
}

.skills-section-panel, .project-section-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.skills-section-panel.active, .project-section-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.skills-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skills-group-title h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.skills-group-title span.badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  padding: 1.75rem;
}

.skill-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.skill-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.skill-icon-bubble.cyan {
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.skill-icon-bubble.indigo {
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-indigo);
  border: 1px solid rgba(79, 70, 229, 0.25);
}

.skill-icon-bubble.emerald {
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.skill-icon-bubble.purple {
  background: rgba(147, 51, 234, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(147, 51, 234, 0.25);
}

.skill-cat-title {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.skill-cat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.skill-item-bar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-item-info {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

.skill-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.skill-tag {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   PROJECTS SECTION (2 Distinct Sections: IoT Projects & Software Projects)
   ========================================================================== */
.project-section-wrapper {
  margin-bottom: 3.5rem;
  transition: all var(--transition-normal);
}

.project-section-wrapper:last-child {
  margin-bottom: 0;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-preview {
  height: 180px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ede9fe 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.project-graphic-icon {
  font-size: 3.5rem;
  color: rgba(2, 132, 199, 0.45);
  transition: transform var(--transition-normal);
}

.project-card:hover .project-graphic-icon {
  transform: scale(1.12);
  color: var(--accent-cyan);
}

.project-badge-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  border: 1px solid rgba(2, 132, 199, 0.25);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-metrics {
  background: var(--bg-tertiary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-emerald);
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-metrics i {
  color: var(--accent-emerald);
}

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

.tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-secondary);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.project-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
/* Default: Show IoT projects only */
#iotProjectsSection {
  display: none;
}

#softwareProjectsSection {
  display: block;
}

/* ==========================================================================
   EXPERIENCE & TRAININGS SECTION
   ========================================================================== */
.exp-trainings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.exp-column-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.exp-column-header h3 {
  font-size: 1.35rem;
}

.exp-column-header i {
  color: var(--accent-cyan);
  font-size: 1.25rem;
}

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

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 7px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, rgba(79, 70, 229, 0.2) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.35);
}

.timeline-card {
  padding: 1.35rem;
}

.timeline-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
}

.timeline-role {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.timeline-company-ERS {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.timeline-highlights {
  margin-top: 0.65rem;
  padding-left: 1.15rem;
  list-style: disc;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.timeline-highlights li {
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   ACHIEVEMENTS SECTION
   ========================================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
}

.achievement-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(217, 119, 6, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.achievement-details h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.achievement-issuer {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

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

/* ==========================================================================
   COMPETITION & LEADERSHIP SECTION
   ========================================================================== */
.competition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.leadership-card {
  padding: 1.75rem;
  position: relative;
}

.leadership-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.lead-category-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-indigo);
  font-weight: 700;
  border: 1px solid rgba(79, 70, 229, 0.25);
}

.lead-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.leadership-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.lead-role {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.lead-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.lead-outcomes {
  padding-left: 1.15rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  list-style: disc;
}

.lead-outcomes li {
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   EDUCATION SECTION
   ========================================================================== */
.education-container {
  max-width: 900px;
  margin: 0 auto;
}

.education-card {
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.edu-icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-cyan);
}

.edu-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.edu-degree {
  font-size: 1.35rem;
  font-weight: 700;
}

.edu-timeline-span {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 600;
}

.edu-institution {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.edu-grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-emerald);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.edu-coursework-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.edu-courses-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   BLOGS SECTION
   ========================================================================== */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-cover {
  height: 160px;
  background: linear-gradient(135deg, #ede9fe 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-cover i {
  font-size: 3rem;
  color: rgba(79, 70, 229, 0.45);
  transition: transform var(--transition-normal);
}

.blog-card:hover .blog-cover i {
  transform: scale(1.15);
  color: var(--accent-indigo);
}

.blog-read-time {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.blog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.blog-meta-row span.category {
  color: var(--accent-cyan);
  font-weight: 600;
}

.blog-title {
  font-size: 1.18rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: transparent;
  border: none;
}

.read-more-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESUME DOWNLOAD SECTION
   ========================================================================== */
.resume-section {
  position: relative;
}

.resume-showcase-box {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.resume-showcase-box::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08), transparent 70%);
  pointer-events: none;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.resume-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.resume-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.resume-item-check i {
  color: var(--accent-emerald);
}

.resume-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Document Preview Visual */
.resume-preview-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  position: relative;
  transform: rotate(1deg);
  transition: transform var(--transition-normal);
  font-family: var(--font-sans);
}

.resume-preview-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.resume-doc-header {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.doc-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.doc-sub {
  font-size: 0.75rem;
  color: #0284c7;
  font-weight: 600;
}

.doc-skeleton-line {
  height: 7px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.doc-skeleton-line.w-80 { width: 80%; }
.doc-skeleton-line.w-60 { width: 60%; }
.doc-skeleton-line.w-40 { width: 40%; }
.doc-skeleton-line.w-90 { width: 90%; }
.doc-skeleton-line.accent { background: #0284c7; height: 9px; width: 45%; margin-top: 0.85rem; }

.doc-verified-stamp {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  border: 2px dashed #059669;
  color: #059669;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 6px;
  transform: rotate(-8deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CONTACT ME SECTION (At the bottom)
   ========================================================================== */
.contact-section {
  padding-bottom: 7rem;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

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

.contact-info-card {
  padding: 1.5rem;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.contact-method-item:last-child {
  margin-bottom: 0;
}

.contact-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(2, 132, 199, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h5 {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-details a, .contact-details p {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0.1rem 0.3rem;
}

.contact-form-card {
  padding: 2.25rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

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

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #f1f5f9;
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scroll-top-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.scroll-top-btn:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   MODALS (Blog Reader, Resume Viewer, Interactive Details)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

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

.modal-header h3 {
  font-size: 1.3rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

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

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  line-height: 1.7;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-emerald);
  color: var(--text-primary);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

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

.toast-icon {
  color: var(--accent-emerald);
  font-size: 1.25rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-card-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }
  .exp-trainings-grid {
    grid-template-columns: 1fr;
  }
  .resume-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle-btn {
    display: block;
  }
  
  /* Side-sliding drawer from the right */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 4rem 2rem 2rem 2rem;
    gap: 1.2rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }

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

  /* Dynamically injected close button styling */
  .menu-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }
  
  .menu-close-btn:hover {
    color: var(--accent-primary, #0ea5e9);
  }
}

/* Ensure close button is invisible on desktop view */
@media (min-width: 769px) {
  .menu-close-btn {
    display: none;
  }
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
