/**
 * Kennedy Maina Portfolio - Modern Adaptive Light & Dark Theme
 * Design System inspired by clean, modern aesthetic (Warm coral-orange #ff7235, dark navy #0f172a / #0a0f1d)
 * Continuous Single-Page Layout with Unbounded Cutout Imagery
 */

/* ================================================================
   1. CSS VARIABLES & DESIGN SYSTEM
================================================================ */
:root {
  --primary:         #ff7235;
  --primary-hover:   #f95a15;
  --primary-light:   #fff5f0;
  --primary-rgb:     255, 114, 53;
  --secondary:       #2563eb;
  --bg-body:         #ffffff;
  --bg-alt:          #f8fafc;
  --bg-card:         #ffffff;
  --text-heading:    #0f172a;
  --text-body:       #475569;
  --text-muted:      #94a3b8;
  --border:          #e2e8f0;
  --border-light:    #f1f5f9;
  --shadow-sm:       0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md:       0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg:       0 20px 45px rgba(0, 0, 0, 0.08);
  --radius-pill:     50px;
  --radius-card:     16px;
  --radius-sm:       10px;
}

/* ================================================================
   2. GLOBAL RESET & TYPOGRAPHY
================================================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body);
  background: var(--bg-body);
  line-height: 1.7;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  color: var(--text-heading);
  font-weight: 700;
  margin-top: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

p {
  margin-top: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ================================================================
   3. FIXED TOP NAVBAR (MATCHING REFERENCE DESIGN)
================================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

#site-header.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

/* Monogram Logo matching reference (Orange outline box) */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-box {
  width: 44px;
  height: 44px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 114, 53, 0.15);
  transition: transform 0.25s ease;
}

.brand-wrapper:hover .brand-box {
  transform: scale(1.05);
}

.brand-box span {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  line-height: 1;
}

.brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

.nav-menu ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: #334155;
  font-size: 15px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
  padding: 6px 0;
}

.nav-menu a:hover,
.nav-menu .active > a {
  color: var(--primary);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu .active > a::after {
  width: 100%;
}

.btn-hire-me {
  display: inline-block;
  padding: 10px 28px;
  background: var(--primary);
  color: #ffffff !important;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 114, 53, 0.35);
  transition: all 0.3s ease;
}

.btn-hire-me:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 114, 53, 0.45);
  text-decoration: none;
}

.mobile-nav-toggle {
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-heading);
  line-height: 1;
  padding: 4px;
}

/* ================================================================
   4. HERO SECTION (MATCHING REFERENCE DESIGN)
================================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  padding-top: 115px;
  padding-bottom: 60px;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Vertical Social Icons on Far Left */
.hero-social-sidebar {
  position: absolute;
  left: 35px;
  top: 48%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 10;
}

.hero-social-sidebar a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.hero-social-sidebar a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(4px);
}

.hero-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 18px;
  font-family: "Poppins", sans-serif;
  margin-bottom: 8px;
}

.hero-text h1 {
  font-size: 58px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -1.2px;
}

.hero-text h2 {
  font-size: 24px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-text h2 .typing {
  color: var(--primary);
}

.hero-desc {
  color: var(--text-body);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 30px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-primary-pill {
  padding: 13px 34px;
  background: var(--primary);
  color: #ffffff !important;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 114, 53, 0.35);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-pill:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 114, 53, 0.45);
  text-decoration: none;
}

.btn-outline-pill {
  padding: 12px 32px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-pill:hover {
  background: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  text-decoration: none;
}

/* UNBOUNDED CUTOUT PERSON PHOTO (NO BOUNDING BOX) */
.hero-photo-wrap {
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-unbounded-cutout {
  max-height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  transition: transform 0.4s ease;
}

.hero-unbounded-cutout:hover {
  transform: translateY(-4px) scale(1.015);
}

/* FLOATING STATS PILL (MATCHING REFERENCE IMAGE) */
.hero-stats-bar {
  margin-top: 25px;
  background: #ffffff;
  border-radius: var(--radius-pill);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  padding: 18px 45px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.hero-stat-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-heading);
  line-height: 1.2;
}

.hero-stat-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.stat-divider {
  width: 1px;
  height: 38px;
  background: var(--border);
}

/* ================================================================
   5. CONTINUOUS SECTIONS GENERAL
================================================================ */
section {
  position: relative;
  width: 100%;
  padding: 95px 0 85px;
  scroll-margin-top: 80px;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.8px;
}

.section-title p {
  color: var(--text-body);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
}

/* ================================================================
   6. ABOUT SECTION ("MY INTRO") - UNBOXED & CARDLESS INTEGRATED FLOW
================================================================ */
.about-showcase-wrap {
  text-align: center;
  position: relative;
}

.about-unbounded-graphic {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  transition: transform 0.4s ease;
}

.about-unbounded-graphic:hover {
  transform: translateY(-4px) scale(1.01);
}

.about-bio-flow {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.about-bio-flow h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
  letter-spacing: -0.6px;
  line-height: 1.25;
}

.about-bio-flow p {
  color: var(--text-body);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-bio-flow p strong {
  color: var(--text-heading);
}

.about-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 24px 0 28px 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 576px) {
  .about-specs-grid {
    grid-template-columns: 1fr;
  }
}

.about-spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-body);
  padding: 6px 0;
}

.about-spec-item i {
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.about-spec-item strong {
  color: var(--text-heading);
  min-width: 80px;
  font-weight: 700;
}

.about-spec-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.about-spec-item a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Visual Product Cards (01 - 06) in About Me Section */
.about-ecosystem-flow {
  margin-top: 60px;
  padding-top: 45px;
  border-top: 1px solid var(--border-light);
}

.about-ecosystem-header {
  margin-bottom: 32px;
  text-align: left;
}

.about-ecosystem-header h4 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.about-ecosystem-header p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  max-width: 680px;
}

.about-product-visual-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: calc(100% - 24px);
  margin-bottom: 24px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.about-product-visual-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 114, 53, 0.35);
}

.about-product-visual-card .product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.about-product-visual-card .product-num-badge {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.about-product-visual-card .product-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.25s ease;
}

.about-product-visual-card:hover .product-icon-wrap {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.about-product-visual-card h5 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.about-product-visual-card .product-visual-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.about-product-visual-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.about-product-visual-card .product-link-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.2s ease;
}

.about-product-visual-card .product-link-btn i {
  transition: transform 0.2s ease;
}

.about-product-visual-card .product-link-btn:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

.about-product-visual-card .product-link-btn:hover i {
  transform: translateX(4px);
}

/* Contact Showcase Unbounded Graphic */
.contact-showcase-wrap {
  text-align: center;
  position: relative;
  margin-bottom: 12px;
}

.contact-unbounded-graphic {
  max-width: 320px;
  max-height: 240px;
  object-fit: contain;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto 8px auto;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  transition: transform 0.3s ease;
}

.contact-unbounded-graphic:hover {
  transform: translateY(-3px) scale(1.01);
}

.contact-quick-info {
  background: transparent;
  padding: 10px 0;
}

/* ================================================================
   7. SERVICES / WHAT I DO SECTION (MATCHING REFERENCE)
================================================================ */
.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 35px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 24px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 114, 53, 0.4);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #ffffff;
}

.service-card h4 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.service-card p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ================================================================
   8. EDUCATION & CERTIFICATIONS
================================================================ */
.edu-card, .cert-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 24px;
}

.edu-card:hover, .cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 114, 53, 0.35);
}

.edu-card h4, .cert-card h4 {
  font-size: 19px;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.edu-card h4 a {
  color: var(--text-heading);
  text-decoration: none;
}

.edu-card h4 a:hover {
  color: var(--primary);
}

.edu-program {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 8px;
}

.edu-period {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.edu-card h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.edu-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--text-body);
  font-size: 14px;
}

.edu-card ul li {
  margin-bottom: 4px;
}

.cert-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ================================================================
   9. EXPERIENCE SECTION (CENTER-LINE ALTERNATING ROWS : 1 ITEM PER ROW)
================================================================ */
.exp-controls-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.exp-dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-filter-label {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.exp-filter-label i {
  color: var(--primary);
  font-size: 17px;
}

.exp-year-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff7235' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 40px 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  min-width: 250px;
}

.exp-year-dropdown:focus, .exp-year-dropdown:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 114, 53, 0.15);
}

.exp-year-pills-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-year-btn {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.25s ease;
}

.exp-year-btn:hover, .exp-year-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 114, 53, 0.25);
}

/* Center-Line Alternating Timeline Container */
.center-timeline-wrap {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Central Continuous Line down the exact 50% center */
.center-timeline-wrap::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 114, 53, 0.15) 0%, var(--primary) 8%, var(--primary) 92%, rgba(255, 114, 53, 0.15) 100%);
  transform: translateX(-50%);
  border-radius: 4px;
  z-index: 1;
}

/* Timeline Row (100% Full-Width Row so opposite side is COMPLETELY EMPTY) */
.timeline-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  margin-bottom: 42px;
  box-sizing: border-box;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.timeline-row.left-row {
  justify-content: flex-start;
  transform: translateX(-40px);
}

.timeline-row.right-row {
  justify-content: flex-end;
  transform: translateX(40px);
}

.timeline-row.in-view,
.timeline-row.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.timeline-row.filtered-hidden {
  display: none !important;
}

/* Center Node on the central line - Perfect Blending with Opaque Mask */
.timeline-row-node {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #fff7f2 100%);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 5px #ffffff, 0 0 0 9px rgba(255, 114, 53, 0.22), 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  z-index: 10;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-row:hover .timeline-row-node,
.timeline-row.in-view .timeline-row-node,
.timeline-row.is-revealed .timeline-row-node {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 5px #ffffff, 0 0 0 10px rgba(255, 114, 53, 0.35), 0 6px 18px rgba(255, 114, 53, 0.4);
  transform: translateX(-50%) scale(1.08);
}

/* Content Column (Occupies 50% width, leaving the other half 100% blank) */
.timeline-col {
  width: 50%;
  box-sizing: border-box;
  position: relative;
}

.timeline-row.left-row .timeline-col {
  padding-right: 50px;
}

.timeline-row.right-row .timeline-col {
  padding-left: 50px;
}

/* Horizontal Connector Line between center node and card */
.timeline-row.left-row .timeline-col::after {
  content: "";
  position: absolute;
  top: 45px;
  right: 24px;
  width: 26px;
  height: 2px;
  background: linear-gradient(to left, var(--primary), rgba(255, 114, 53, 0.25));
  z-index: 3;
}

.timeline-row.right-row .timeline-col::after {
  content: "";
  position: absolute;
  top: 45px;
  left: 24px;
  width: 26px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), rgba(255, 114, 53, 0.25));
  z-index: 3;
}

/* Timeline Card */
.timeline-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 26px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 114, 53, 0.4);
}

/* Pointer Arrow */
.timeline-card::after {
  content: "";
  position: absolute;
  top: 32px;
  width: 0;
  height: 0;
  border: 9px solid transparent;
}

.timeline-row.left-row .timeline-card::after {
  right: -18px;
  border-left-color: #ffffff;
}

.timeline-row.right-row .timeline-card::after {
  left: -18px;
  border-right-color: #ffffff;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Card Header */
.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.timeline-year-chip {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.timeline-type-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.timeline-company-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.timeline-company-title a {
  color: var(--text-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.timeline-company-title a:hover {
  color: var(--primary);
}

.timeline-role-title {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.timeline-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.timeline-location i {
  color: var(--primary);
}

.timeline-duties {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.timeline-duties li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  font-size: 14px;
  color: #334155;
  line-height: 1.65;
}

.timeline-duties li::before {
  content: "\eb7a";
  font-family: "boxicons";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary);
  font-size: 15px;
}

.timeline-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.timeline-tag-pill {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.timeline-card:hover .timeline-tag-pill {
  background: #ffffff;
}

.timeline-tag-pill:hover {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* Mobile Responsiveness for Center Timeline */
@media (max-width: 768px) {
  .center-timeline-wrap::before {
    left: 20px;
    transform: none;
  }
  .timeline-row {
    margin-bottom: 28px;
    justify-content: flex-start !important;
    transform: translateY(25px) !important;
  }
  .timeline-row.in-view,
  .timeline-row.is-revealed {
    transform: translateY(0) !important;
  }
  .timeline-row-node {
    left: 0;
    top: 20px;
    transform: none !important;
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .timeline-row:hover .timeline-row-node,
  .timeline-row.in-view .timeline-row-node,
  .timeline-row.is-revealed .timeline-row-node {
    transform: scale(1.06) !important;
  }
  .timeline-col {
    width: 100% !important;
    padding-left: 56px !important;
    padding-right: 0 !important;
  }
  .timeline-row.left-row .timeline-col::after,
  .timeline-row.right-row .timeline-col::after {
    display: none;
  }
  .timeline-row.left-row .timeline-card::after,
  .timeline-row.right-row .timeline-card::after {
    left: -18px !important;
    right: auto !important;
    border-left-color: transparent !important;
    border-right-color: #ffffff !important;
  }
}


/* ================================================================
   10. PORTFOLIO / PROJECTS SECTION
================================================================ */
#portfolio-flters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  list-style: none;
  padding: 0;
}

#portfolio-flters li {
  padding: 8px 24px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
}

#portfolio-flters li.filter-active,
#portfolio-flters li:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(255, 114, 53, 0.3);
}

.portfolio-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 30px);
  position: relative;
}

.portfolio-wrap:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 114, 53, 0.35);
}

.portfolio-img-box {
  overflow: hidden;
  position: relative;
  height: 220px;
  background: #f1f5f9;
}

.portfolio-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-wrap:hover img {
  transform: scale(1.06);
}

/* Floating Category Pill on Image */
.portfolio-badge-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}

.badge-live {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.badge-system {
  background: rgba(255, 114, 53, 0.92);
  color: #ffffff;
}

.badge-ai {
  background: rgba(99, 102, 241, 0.92);
  color: #ffffff;
}

.badge-data {
  background: rgba(14, 165, 233, 0.92);
  color: #ffffff;
}

.portfolio-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-category-sub {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  margin-bottom: 6px;
}

.portfolio-info h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-heading);
  letter-spacing: -0.3px;
}

.portfolio-info p {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.portfolio-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.portfolio-tag-item {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 6px;
}

.portfolio-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.btn-project-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(255, 114, 53, 0.2);
}

.btn-project-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 114, 53, 0.3);
}

.btn-project-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  background: #ffffff;
  border: 1.5px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-project-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ================================================================
   PROJECT DETAILS MODAL STYLING
================================================================ */
.project-modal .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.project-modal .modal-header {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 28px;
  background: #ffffff;
}

.project-modal .modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
}

.project-modal .modal-body {
  padding: 28px;
  background: #ffffff;
}

.project-modal-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.project-modal-overview {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 22px;
}

.project-modal-features h5,
.project-modal-tech h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.project-modal-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
}

.project-modal-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

.project-modal-features li::before {
  content: "\eb7a";
  font-family: "boxicons";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--primary);
  font-size: 18px;
}

.project-modal-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-modal-tech-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(255, 114, 53, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.project-modal .modal-footer {
  border-top: 1px solid var(--border-light);
  padding: 16px 28px;
  background: #f8fafc;
}

/* ================================================================
   11. SKILLS SECTION
================================================================ */
.skill-group-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.skill-group-card:hover {
  box-shadow: var(--shadow-md);
}

.skill-group-card h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-heading);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
}

.skill-logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.skill-logos-grid img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.skill-logos-grid img:hover {
  transform: scale(1.08);
}

/* ================================================================
   12. CONTACT SECTION & INTERACTIVE CONTACT FORM
================================================================ */
.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  height: auto;
  display: flex;
  flex-direction: column;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.contact-item:hover .contact-icon {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.contact-detail h5 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 3px 0;
  color: var(--text-heading);
}

.contact-detail p {
  font-size: 14px;
  color: var(--text-body);
  margin: 0;
}

.contact-detail a {
  color: var(--text-heading);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-detail a:hover {
  color: var(--primary);
}

.contact-social-wrap {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
}

.contact-social-wrap h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.social-links-row {
  display: flex;
  gap: 10px;
}

.social-links-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s ease;
}

.social-links-row a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 114, 53, 0.25);
}

/* Contact Form Card */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 38px 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.contact-form-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.contact-form-card > p {
  font-size: 14.5px;
  color: #64748b;
  margin-bottom: 26px;
}

.contact-form-element label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
  display: block;
}

.required-star {
  color: #ef4444;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
  transition: color 0.25s ease;
}

.contact-form-element .form-control {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px 10px 42px;
  font-size: 14px;
  color: var(--text-heading);
  background: #ffffff;
  transition: all 0.25s ease;
  height: 48px;
}

.contact-form-element select.form-control {
  padding-left: 42px;
  cursor: pointer;
}

.contact-form-element textarea.form-control {
  padding: 14px 16px;
  height: auto;
  border-radius: 12px;
  line-height: 1.6;
}

.contact-form-element .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 114, 53, 0.15);
  outline: none;
}

.contact-form-element .form-control:focus + i,
.input-with-icon:focus-within i {
  color: var(--primary);
}

.btn-submit-message {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8a54 100%);
  color: #ffffff;
  border: none;
  padding: 13px 38px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 114, 53, 0.3);
  transition: all 0.3s ease;
}

.btn-submit-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 114, 53, 0.4);
  color: #ffffff;
}

.btn-submit-message:active {
  transform: translateY(0);
}

.btn-submit-message i {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.btn-submit-message:hover i {
  transform: translateX(4px) translateY(-2px);
}

.contact-alert {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-alert i {
  font-size: 22px;
  flex-shrink: 0;
}

/* ================================================================
   13. FOOTER
================================================================ */
.site-footer {
  position: relative;
  z-index: 10;
  clear: both;
  width: 100%;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 35px 0;
  text-align: center;
}

.site-footer .copyright {
  color: var(--text-body);
  font-size: 14px;
  margin-bottom: 4px;
}

.site-footer .copyright strong {
  color: var(--text-heading);
}

.site-footer .credits {
  color: var(--text-muted);
  font-size: 13px;
}

/* ================================================================
   14. MOBILE NAVIGATION, FLOATING TASKBAR & RESPONSIVE ARCHITECTURE
================================================================ */

/* --- Mobile Bottom Floating Taskbar / Navigation Dock --- */
.mobile-taskbar {
  position: fixed;
  bottom: 12px;
  left: 14px;
  right: 14px;
  margin: 0 auto;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 35px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 6px 10px;
  z-index: 9990;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: taskbar-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes taskbar-slide-up {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-taskbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.taskbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 16px;
  color: #64748b;
  min-width: 50px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.taskbar-icon-wrap {
  width: 34px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.taskbar-label {
  font-size: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 1px;
  transition: color 0.25s ease;
}

.taskbar-item:hover,
.taskbar-item:focus {
  color: var(--primary);
  text-decoration: none;
}

.taskbar-item.active {
  color: var(--primary);
}

.taskbar-item.active .taskbar-icon-wrap {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 4px 12px rgba(255, 114, 53, 0.35);
}

.taskbar-item.active .taskbar-label {
  font-weight: 700;
  color: var(--primary);
}

.taskbar-item.taskbar-contact-highlight .taskbar-icon-wrap {
  color: #10b981;
}

.taskbar-item.taskbar-contact-highlight.active .taskbar-icon-wrap {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.taskbar-item.taskbar-contact-highlight.active .taskbar-label {
  color: #10b981;
}

/* Floating Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(255, 114, 53, 0.4);
  font-size: 20px;
  z-index: 9980;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(255, 114, 53, 0.5);
  text-decoration: none;
}

/* --- Mobile Navigation Drawer & Backdrop --- */
.mobile-nav {
  position: fixed;
  top: 72px;
  right: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 16px;
  z-index: 9999;
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.98);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.mobile-nav-active .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav li {
  padding: 0;
  border-bottom: none;
}

.mobile-nav a {
  color: var(--text-heading);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav .active > a {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  transform: translateX(4px);
}

.mobile-nav-overly {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
}

/* Touch feedback and active tap animations */
.btn-primary-pill:active,
.btn-outline-pill:active,
.btn-project-primary:active,
.btn-project-outline:active,
.btn-submit-message:active,
.theme-toggle-btn:active,
.taskbar-item:active,
.exp-year-btn:active,
#portfolio-flters li:active,
.back-to-top:active {
  transform: scale(0.95) !important;
  transition: transform 0.12s ease !important;
}

/* ================================================================
   RESPONSIVE MEDIA QUERIES (TABLETS & DESKTOP ADJUSTMENTS)
================================================================ */
@media (max-width: 991px) {
  body {
    padding-bottom: 78px !important;
  }

  #site-header {
    height: 66px;
  }

  .brand-box {
    width: 38px;
    height: 38px;
  }

  .brand-box span {
    font-size: 19px;
  }

  .brand-name {
    font-size: 18px;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .hero-social-sidebar {
    display: none;
  }

  #hero {
    min-height: auto;
    padding-top: 86px;
    padding-bottom: 35px;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    margin-bottom: 28px;
  }

  .hero-text h1 {
    font-size: 38px;
    letter-spacing: -0.8px;
  }

  .hero-text h2 {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .hero-desc {
    margin: 0 auto 22px auto;
    font-size: 14.5px;
    max-width: 600px;
  }

  .hero-actions {
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-photo-wrap {
    margin-bottom: 20px;
  }

  .hero-unbounded-cutout {
    max-height: 320px;
  }

  .hero-photo-wrap::before {
    width: 280px;
    height: 280px;
  }

  .hero-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    border-radius: 20px;
    padding: 16px 20px;
    margin-top: 15px;
  }

  .stat-divider {
    display: none !important;
  }

  .hero-stat-item {
    gap: 12px;
  }

  .hero-stat-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .hero-stat-info h4 {
    font-size: 16px;
  }

  .hero-stat-info p {
    font-size: 12px;
  }

  section {
    padding: 56px 0 48px;
    scroll-margin-top: 66px;
  }

  .section-title {
    margin-bottom: 34px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .section-title p {
    font-size: 14.5px;
  }

  .about-showcase-wrap {
    margin-bottom: 24px;
  }

  .about-unbounded-graphic {
    max-width: 320px;
  }

  .about-bio-flow {
    text-align: center;
  }

  .about-bio-flow h3 {
    font-size: 23px;
  }

  .about-bio-flow p {
    text-align: left;
    font-size: 14.5px;
  }

  .about-bio-flow .d-flex {
    justify-content: center;
  }
}

/* ================================================================
   MOBILE PHONE OPTIMIZATIONS (<= 576px)
================================================================ */
@media (max-width: 576px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  #site-header {
    height: 62px;
  }

  .brand-name {
    font-size: 16.5px;
  }

  .brand-box {
    width: 34px;
    height: 34px;
  }

  .brand-box span {
    font-size: 17px;
  }

  #hero {
    padding-top: 76px;
    padding-bottom: 25px;
  }

  .hero-eyebrow {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .hero-text h1 {
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
  }

  .hero-text h2 {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  /* Compact balanced hero buttons on mobile */
  .hero-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 20px auto;
  }

  .btn-primary-pill,
  .btn-outline-pill {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: var(--radius-pill);
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255, 114, 53, 0.25);
  }

  .btn-primary-pill i,
  .btn-outline-pill i {
    font-size: 15px;
  }

  .hero-unbounded-cutout {
    max-height: 250px;
  }

  .hero-photo-wrap::before {
    width: 220px;
    height: 220px;
    bottom: 0;
  }

  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .hero-stat-item {
    gap: 8px;
  }

  .hero-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .hero-stat-info h4 {
    font-size: 14.5px;
  }

  .hero-stat-info p {
    font-size: 11px;
  }

  section {
    padding: 46px 0 38px;
    scroll-margin-top: 62px;
  }

  .section-eyebrow {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .section-title h2 {
    font-size: 25px;
    letter-spacing: -0.4px;
  }

  .section-title p {
    font-size: 13px;
    line-height: 1.55;
  }

  /* About section mobile */
  .about-unbounded-graphic {
    max-width: 240px;
  }

  .about-bio-flow h3 {
    font-size: 19px;
  }

  .about-bio-flow p {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .about-bio-flow .d-flex {
    flex-direction: row;
    gap: 8px;
    width: 100%;
    max-width: 360px;
    margin: 16px auto 0 auto;
  }

  .about-bio-flow .d-flex .btn-primary-pill,
  .about-bio-flow .d-flex .btn-outline-pill {
    flex: 1;
    padding: 10px 12px;
    font-size: 12.5px;
  }

  /* Services section mobile */
  .service-card {
    padding: 22px 18px;
    border-radius: 16px;
    margin-bottom: 14px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .service-card h4 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .service-card p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Experience section mobile */
  .exp-controls-container {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 30px;
    gap: 10px;
  }

  .exp-filter-label {
    font-size: 12px;
  }

  .exp-year-dropdown {
    min-width: 0;
    width: 100%;
    font-size: 13px;
    padding: 7px 32px 7px 14px;
  }

  .exp-year-pills-bar {
    display: flex !important;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .exp-year-pills-bar::-webkit-scrollbar {
    display: none;
  }

  .exp-year-btn {
    padding: 5px 14px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .center-timeline-wrap::before {
    left: 17px;
    width: 2.5px;
  }

  .timeline-row {
    margin-bottom: 20px;
  }

  .timeline-row-node {
    left: 0;
    top: 14px;
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .timeline-col {
    padding-left: 48px !important;
    padding-right: 0 !important;
  }

  .timeline-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .timeline-card-header {
    margin-bottom: 8px;
  }

  .timeline-year-chip {
    font-size: 11px;
    padding: 3px 10px;
  }

  .timeline-type-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .timeline-company-title {
    font-size: 15.5px;
    margin-bottom: 2px;
  }

  .timeline-role-title {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .timeline-location {
    font-size: 11.5px;
    margin-bottom: 8px;
  }

  .timeline-duties li {
    font-size: 12.5px;
    line-height: 1.55;
    padding-left: 18px;
    margin-bottom: 4px;
  }

  .timeline-duties li::before {
    font-size: 13px;
    top: 1px;
  }

  .timeline-tech-tags {
    gap: 4px;
    padding-top: 8px;
  }

  .timeline-tag-pill {
    font-size: 11px;
    padding: 2px 8px;
  }

  /* Portfolio section mobile */
  #portfolio-flters {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    margin: 0 -14px 20px -14px;
    padding: 4px 14px 10px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #portfolio-flters::-webkit-scrollbar {
    display: none;
  }

  #portfolio-flters li {
    padding: 6px 14px;
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .portfolio-wrap {
    margin-bottom: 20px;
    border-radius: 16px;
  }

  .portfolio-img-box {
    height: 175px;
  }

  .portfolio-wrap img {
    height: 175px;
  }

  .portfolio-badge-pill {
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 3px 10px;
  }

  .portfolio-info {
    padding: 16px 14px;
  }

  .portfolio-category-sub {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .portfolio-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .portfolio-info p {
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  .portfolio-tags-row {
    gap: 4px;
    margin-bottom: 12px;
  }

  .portfolio-tag-item {
    font-size: 10.5px;
    padding: 2px 8px;
  }

  .portfolio-actions-row {
    padding-top: 10px;
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .portfolio-actions-row .btn-project-primary,
  .portfolio-actions-row .btn-project-outline,
  .btn-project-primary,
  .btn-project-outline {
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 7px 12px;
    font-size: 12px;
  }

  /* Education & Certifications mobile */
  .edu-card, .cert-card {
    padding: 18px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .edu-card h4, .cert-card h4 {
    font-size: 16.5px;
  }

  .edu-program {
    font-size: 13px;
  }

  .edu-period {
    font-size: 11px;
    padding: 3px 10px;
    margin-bottom: 10px;
  }

  .edu-card h6 {
    font-size: 13px;
  }

  .edu-card ul {
    font-size: 12.5px;
    padding-left: 16px;
  }

  .cert-card p {
    font-size: 12.5px;
  }

  /* Skills section mobile */
  .skill-group-card {
    padding: 18px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .skill-group-card h4 {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .skill-logos-grid {
    gap: 14px;
    justify-content: center;
  }

  .skill-logos-grid img {
    height: 32px;
  }

  /* Contact section mobile */
  .contact-unbounded-graphic {
    max-height: 160px;
  }

  .contact-info-card {
    padding: 18px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 10px;
  }

  .contact-detail h5 {
    font-size: 13.5px;
  }

  .contact-detail p {
    font-size: 13px;
  }

  .contact-form-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .contact-form-card h3 {
    font-size: 20px;
  }

  .contact-form-card > p {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .contact-form-element .form-control {
    height: 44px;
    font-size: 13.5px;
    padding-left: 38px;
  }

  .input-with-icon i {
    left: 12px;
    font-size: 16px;
  }

  .btn-submit-message {
    width: 100%;
    justify-content: center;
    padding: 11px 20px;
    font-size: 14px;
  }

  /* Project Details Modal mobile */
  .project-modal .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .project-modal .modal-content {
    border-radius: 16px;
  }

  .project-modal .modal-header {
    padding: 14px 18px;
  }

  .project-modal .modal-title {
    font-size: 17px;
  }

  .project-modal .modal-body {
    padding: 16px 18px;
    max-height: 65vh;
    overflow-y: auto;
  }

  .project-modal-img {
    height: 180px;
    margin-bottom: 14px;
  }

  .project-modal-overview {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .project-modal-features h5,
  .project-modal-tech h5 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .project-modal-features li {
    font-size: 12.5px;
    padding-left: 20px;
  }

  .project-modal-features li::before {
    font-size: 15px;
  }

  .project-modal .modal-footer {
    padding: 12px 16px;
    flex-direction: column;
    gap: 8px;
  }

  .project-modal .modal-footer .btn-project-primary,
  .project-modal .modal-footer .btn-project-outline {
    width: 100%;
    justify-content: center;
  }

  /* Site Footer mobile */
  .site-footer {
    padding: 24px 0 10px 0;
  }

  .site-footer .copyright {
    font-size: 13px;
  }

  .site-footer .credits {
    font-size: 12px;
  }
}

/* ================================================================
   15. DYNAMIC ANIMATIONS, TRANSITIONS & SCROLL REVEAL ENGINE
================================================================ */

/* Keyframe Definitions */
@keyframes float-subtle {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes glow-pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.96);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@keyframes shine-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

@keyframes pulse-ring-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 114, 53, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 114, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 114, 53, 0);
  }
}

/* Floating Image Animations */
.hero-unbounded-cutout {
  animation: float-subtle 5s ease-in-out infinite;
}

.about-unbounded-graphic {
  animation: float-subtle 6s ease-in-out 1s infinite;
}

.contact-unbounded-graphic {
  animation: float-subtle 5.5s ease-in-out 0.5s infinite;
}

/* Ambient Backlight Glow behind Cutout Imagery */
.hero-photo-wrap::before {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 114, 53, 0.16) 0%, rgba(255, 114, 53, 0.04) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

/* Button Shine Sweep Effect */
.btn-primary-pill, .btn-submit-message, .btn-project-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-pill::after, .btn-submit-message::after, .btn-project-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: all 0.65s ease;
  pointer-events: none;
}

.btn-primary-pill:hover::after, .btn-submit-message:hover::after, .btn-project-primary:hover::after {
  left: 180%;
}

/* Interactive Card Elevations & Transitions */
.service-card, .edu-card, .cert-card, .about-product-visual-card, .contact-form-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 114, 53, 0.4);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(6deg);
  background: var(--primary);
  color: #ffffff;
}

.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
  border-color: rgba(255, 114, 53, 0.35);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
  border-color: rgba(255, 114, 53, 0.4);
  background: #ffffff;
}

/* Portfolio Card Zoom & Overlay */
.portfolio-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-wrap:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.09);
}

.portfolio-wrap:hover img {
  transform: scale(1.06);
}

.portfolio-wrap img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll-Reveal Framework */
.reveal-on-scroll {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(35px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.92);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* Gradient Text Shimmer */
.gradient-text-shimmer {
  background: linear-gradient(135deg, #0f172a 0%, #ff7235 50%, #0f172a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-text 6s linear infinite;
}

@keyframes shine-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text-orange {
  background: linear-gradient(135deg, #ff7235 0%, #f95a15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card Subtle Top Highlight */
.about-product-visual-card {
  position: relative;
  overflow: hidden;
}
.about-product-visual-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.about-product-visual-card:hover::before {
  opacity: 1;
}

/* Skill Group Card Hover Effects */
.skill-group-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 26px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.skill-group-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.07);
  border-color: rgba(255, 114, 53, 0.35);
}
.skill-logos-grid img {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.skill-logos-grid img:hover {
  transform: translateY(-4px) scale(1.08);
}

/* ================================================================
   16. THEME TOGGLE BUTTON & SMOOTH TRANSITIONS
================================================================ */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

#site-header,
.brand-box,
.service-card,
.edu-card,
.cert-card,
.portfolio-wrap,
.contact-info-card,
.contact-form-card,
.skill-group-card,
.hero-stats-bar,
.timeline-card,
.exp-controls-container,
.site-footer,
.modal-content {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  outline: none;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg) scale(1.08);
  box-shadow: 0 4px 16px rgba(255, 114, 53, 0.3);
}

.theme-toggle-btn i {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.theme-toggle-btn:active i {
  transform: rotate(180deg) scale(0.85);
}

/* ================================================================
   17. COMPREHENSIVE DARK THEME SYSTEM
================================================================ */
body.dark-theme,
[data-theme="dark"] {
  --bg-body:         #0a0f1d;
  --bg-alt:          #0e1526;
  --bg-card:         #131d31;
  --text-heading:    #f8fafc;
  --text-body:       #cbd5e1;
  --text-muted:      #94a3b8;
  --border:          #24324d;
  --border-light:    #1a263d;
  --primary-light:   rgba(255, 114, 53, 0.16);
  --shadow-sm:       0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md:       0 10px 30px rgba(0, 0, 0, 0.48);
  --shadow-lg:       0 20px 45px rgba(0, 0, 0, 0.6);
}

/* Header in dark mode */
body.dark-theme #site-header {
  background: rgba(10, 15, 29, 0.94);
  border-bottom-color: var(--border-light);
}

body.dark-theme #site-header.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

body.dark-theme .brand-box {
  background: #131d31;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(255, 114, 53, 0.25);
}

body.dark-theme .nav-menu a {
  color: #cbd5e1;
}

body.dark-theme .nav-menu a:hover,
body.dark-theme .nav-menu .active > a {
  color: var(--primary);
}

body.dark-theme .theme-toggle-btn {
  background: #131d31;
  border-color: #24324d;
  color: #fbbf24;
}

body.dark-theme .theme-toggle-btn:hover {
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
}

/* Social sidebar in dark mode */
body.dark-theme .hero-social-sidebar a {
  background: #131d31;
  border-color: var(--border);
  color: #cbd5e1;
}

body.dark-theme .hero-social-sidebar a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Hero elements in dark mode */
body.dark-theme .hero-text h2 {
  color: #e2e8f0;
}

body.dark-theme .hero-stats-bar {
  background: #131d31;
  border-color: var(--border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

body.dark-theme .hero-stat-info h4 {
  color: #f8fafc;
}

body.dark-theme .stat-divider {
  background: var(--border);
}

/* Cards & containers in dark mode */
body.dark-theme .service-card,
body.dark-theme .edu-card,
body.dark-theme .cert-card,
body.dark-theme .portfolio-wrap,
body.dark-theme .contact-info-card,
body.dark-theme .contact-form-card,
body.dark-theme .skill-group-card {
  background: #131d31;
  border-color: var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

body.dark-theme .service-card:hover,
body.dark-theme .edu-card:hover,
body.dark-theme .cert-card:hover,
body.dark-theme .portfolio-wrap:hover,
body.dark-theme .skill-group-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 114, 53, 0.45);
}

body.dark-theme .edu-card h6 {
  color: #f8fafc;
}

body.dark-theme .edu-card ul,
body.dark-theme .edu-card p {
  color: #cbd5e1 !important;
}

/* Experience timeline in dark mode */
body.dark-theme .exp-controls-container {
  background: #131d31;
  border-color: var(--border);
}

body.dark-theme .exp-year-dropdown {
  background-color: #0a0f1d;
  border-color: var(--border);
  color: #f8fafc;
}

body.dark-theme .exp-year-btn {
  background: #0a0f1d;
  border-color: var(--border);
  color: #cbd5e1;
}

body.dark-theme .exp-year-btn.active,
body.dark-theme .exp-year-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

body.dark-theme .timeline-card {
  background: #131d31;
  border-color: var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

body.dark-theme .timeline-row.left-row .timeline-card::after {
  border-left-color: #131d31;
}

body.dark-theme .timeline-row.right-row .timeline-card::after {
  border-right-color: #131d31;
}

body.dark-theme .timeline-row-node {
  background: linear-gradient(135deg, #131d31 0%, #0a0f1d 100%);
  border-color: var(--primary);
  box-shadow: 0 0 0 5px #0a0f1d, 0 0 0 9px rgba(255, 114, 53, 0.25), 0 4px 14px rgba(0, 0, 0, 0.45);
}

body.dark-theme .timeline-row:hover .timeline-row-node,
body.dark-theme .timeline-row.in-view .timeline-row-node,
body.dark-theme .timeline-row.is-revealed .timeline-row-node {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-color: #ffffff;
  box-shadow: 0 0 0 5px #0a0f1d, 0 0 0 10px rgba(255, 114, 53, 0.42), 0 6px 18px rgba(255, 114, 53, 0.45);
}

body.dark-theme .timeline-role-title {
  color: #e2e8f0;
}

body.dark-theme .timeline-duties li {
  color: #cbd5e1;
}

body.dark-theme .timeline-type-badge {
  background: #0a0f1d;
  color: #94a3b8;
}

body.dark-theme .timeline-tag-pill {
  background: #0a0f1d;
  border-color: var(--border);
  color: #cbd5e1;
}

body.dark-theme .timeline-card:hover .timeline-tag-pill {
  background: #131d31;
}

/* Portfolio in dark mode */
body.dark-theme #portfolio-flters li {
  background: #131d31;
  border-color: var(--border);
  color: #cbd5e1;
}

body.dark-theme #portfolio-flters li.filter-active,
body.dark-theme #portfolio-flters li:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

body.dark-theme .portfolio-tag-item {
  background: #0a0f1d;
  color: #94a3b8;
}

body.dark-theme .btn-project-outline {
  background: #0a0f1d;
  border-color: var(--border);
  color: #e2e8f0;
}

body.dark-theme .btn-project-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Modals in dark mode */
body.dark-theme .project-modal .modal-content {
  background: #131d31;
  border: 1px solid var(--border);
}

body.dark-theme .project-modal .modal-header {
  background: #131d31;
  border-bottom-color: var(--border);
}

body.dark-theme .project-modal .modal-header .close {
  color: #f8fafc;
}

body.dark-theme .project-modal .modal-body {
  background: #131d31;
}

body.dark-theme .project-modal-features li {
  color: #cbd5e1;
}

body.dark-theme .project-modal .modal-footer {
  background: #0a0f1d;
  border-top-color: var(--border);
}

/* Form inputs in dark mode */
body.dark-theme .contact-form-element .form-control {
  background-color: #0a0f1d;
  border-color: var(--border);
  color: #f8fafc;
}

body.dark-theme .contact-form-element .form-control:focus {
  background-color: #0a0f1d;
  border-color: var(--primary);
  color: #f8fafc;
}

body.dark-theme .contact-form-element .form-control::placeholder {
  color: #64748b;
}

body.dark-theme .social-links-row a {
  background: #0a0f1d;
  border-color: var(--border);
  color: #cbd5e1;
}

body.dark-theme .social-links-row a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Footer in dark mode */
body.dark-theme .site-footer {
  background: #070b14;
  border-top-color: var(--border);
}

body.dark-theme .mobile-nav {
  background: rgba(15, 23, 42, 0.96);
  border-color: var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

body.dark-theme .mobile-nav a {
  color: #f8fafc;
}

body.dark-theme .mobile-nav a:hover,
body.dark-theme .mobile-nav .active > a {
  background: rgba(255, 114, 53, 0.18);
  color: var(--primary);
}

/* Mobile Taskbar dock in dark mode */
body.dark-theme .mobile-taskbar {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(36, 50, 77, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.dark-theme .taskbar-item {
  color: #94a3b8;
}

body.dark-theme .taskbar-item:hover,
body.dark-theme .taskbar-item:focus {
  color: var(--primary);
}

body.dark-theme .taskbar-item.active {
  color: var(--primary);
}

body.dark-theme .taskbar-item.active .taskbar-icon-wrap {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 114, 53, 0.5);
}

body.dark-theme .taskbar-item.taskbar-contact-highlight .taskbar-icon-wrap {
  color: #10b981;
}

body.dark-theme .taskbar-item.taskbar-contact-highlight.active .taskbar-icon-wrap {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

body.dark-theme .back-to-top {
  background: var(--primary);
  box-shadow: 0 6px 20px rgba(255, 114, 53, 0.5);
}

/* Gradient shimmer text in dark mode */
body.dark-theme .gradient-text-shimmer {
  background: linear-gradient(135deg, #ffffff 0%, #ff7235 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


