/* ==========================================================================
   Devix Design System - Muddasir Ahmad Portfolio
   Theme: Premium Dark Tech Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Colors */
  --bg-primary: #0b0d14;
  --bg-secondary: #10131f;
  --bg-card: #151928;
  --bg-card-hover: #1c2236;
  --bg-glass: rgba(21, 25, 40, 0.75);

  --accent-purple: #6c5ce7;
  --accent-cyan: #00cec9;
  --accent-blue: #0984e3;
  --accent-pink: #fd79a8;

  --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  --gradient-glow: linear-gradient(135deg, rgba(108, 92, 231, 0.3) 0%, rgba(0, 206, 201, 0.3) 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);

  --text-main: #f1f2f6;
  --text-body: #a0a8c0;
  --text-muted: #626b84;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(108, 92, 231, 0.4);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(108, 92, 231, 0.35);

  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Global Reset & Base Setup
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(108, 92, 231, 0.4);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--accent-cyan);
}

/* Selection */
::selection {
  background: rgba(108, 92, 231, 0.4);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Preloader SVG Animation
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

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

.preloader-svg {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.preloader-svg circle {
  fill: none;
  stroke: var(--accent-purple);
  stroke-width: 4;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: preloaderCircle 2s infinite ease-in-out;
  transform-origin: center;
}

.preloader-svg path {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: preloaderPath 1.5s infinite alternate ease-in-out;
}

.load-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-main);
}

.load-text span {
  display: inline-block;
  animation: letterPulse 1.2s infinite ease-in-out;
}

.load-text span:nth-child(1) { animation-delay: 0.1s; }
.load-text span:nth-child(2) { animation-delay: 0.2s; }
.load-text span:nth-child(3) { animation-delay: 0.3s; }
.load-text span:nth-child(4) { animation-delay: 0.4s; }
.load-text span:nth-child(5) { animation-delay: 0.5s; }
.load-text span:nth-child(6) { animation-delay: 0.6s; }
.load-text span:nth-child(7) { animation-delay: 0.7s; }

@keyframes preloaderCircle {
  0% { stroke-dashoffset: 280; transform: rotate(0deg); }
  50% { stroke-dashoffset: 70; transform: rotate(180deg); }
  100% { stroke-dashoffset: 280; transform: rotate(360deg); }
}

@keyframes preloaderPath {
  0% { stroke-dashoffset: 120; }
  100% { stroke-dashoffset: 0; }
}

@keyframes letterPulse {
  0%, 100% { transform: translateY(0); color: var(--text-main); }
  50% { transform: translateY(-8px); color: var(--accent-cyan); }
}

/* --------------------------------------------------------------------------
   Dual Magnetic Mouse Follower Cursor
   -------------------------------------------------------------------------- */
.mouseCursor {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99990;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.15s ease-out;
}

.cursor-outer {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(108, 92, 231, 0.6);
  background: rgba(108, 92, 231, 0.05);
}

.cursor-inner {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.cursor-hover .cursor-outer {
  width: 60px;
  height: 60px;
  border-color: var(--accent-cyan);
  background: rgba(0, 206, 201, 0.1);
}

.cursor-hover .cursor-inner {
  opacity: 0;
}

@media (max-width: 991px) {
  .mouseCursor { display: none !important; }
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
#header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 20px 0;
  transition: var(--transition-normal);
}

#header-sticky.sticky {
  padding: 12px 0;
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

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

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
  transition: var(--transition-normal);
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.mobile-toggle-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Offcanvas Drawer */
.offcanvas-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-light);
  z-index: 100000;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.offcanvas-drawer.open {
  right: 0;
}

.offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.offcanvas-overlay.open {
  opacity: 1;
  visibility: visible;
}

.offcanvas-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.offcanvas-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.mobile-nav-list li {
  margin-bottom: 16px;
}

.mobile-nav-list a {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-body);
}

.mobile-nav-list a:hover {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   Section Common Styling
   -------------------------------------------------------------------------- */
section {
  padding: 100px 0;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 640px;
  margin-bottom: 50px;
}

/* Glowing background ambient shapes */
.bg-glow-1 {
  position: absolute;
  top: 10%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-2 {
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
#hero {
  min-height: 100vh;
  padding-top: 160px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(0, 206, 201, 0.1);
  border: 1px solid rgba(0, 206, 201, 0.3);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(0, 206, 201, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 206, 201, 0); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

.hero-intro {
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 16px;
  max-width: 620px;
}

.hero-secondary {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
  transition: var(--transition-normal);
  border: none;
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 206, 201, 0.5);
  color: #ffffff;
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-normal);
}

.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-purple);
  color: var(--text-main);
  transform: translateY(-3px);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-avatar-frame {
  position: relative;
  width: 360px;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  background: var(--bg-card);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 242, 254, 0.12);
}

.hero-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-tech-badge {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-tech-badge i {
  font-size: 1.5rem;
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   About & Statistics
   -------------------------------------------------------------------------- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.7;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-main);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 8px;
}

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

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-text-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 206, 201, 0.15);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
}

.service-number {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 600;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-body);
  border: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   Tech Stack & Skills
   -------------------------------------------------------------------------- */
.tech-category-title {
  font-size: 1rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.skill-card:hover {
  border-color: var(--accent-purple);
  background: rgba(108, 92, 231, 0.15);
  transform: translateY(-2px);
}

/* Infinite Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.marquee-content {
  display: inline-flex;
  gap: 40px;
  animation: marquee 25s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.marquee-item i {
  color: var(--accent-cyan);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Projects Section & Dynamic Filters
   -------------------------------------------------------------------------- */
.project-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

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

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-card);
}

.project-img-box {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

.project-number-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(11, 13, 20, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  border: 1px solid var(--border-light);
}

.project-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-category {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 20px;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

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

.btn-sm-details {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.4);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-sm-details:hover {
  background: var(--accent-purple);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Process Workflow Section
   -------------------------------------------------------------------------- */
.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  height: 100%;
}

.process-step-num {
  font-size: 2.5rem;
  font-family: var(--font-mono);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.process-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Research & Technical Interests Section
   -------------------------------------------------------------------------- */
.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.interest-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
}

.interest-item i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Timeline (Experience & Education)
   -------------------------------------------------------------------------- */
.timeline-tree {
  position: relative;
  padding-left: 30px;
}

.timeline-tree::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  width: 2px;
  height: 100%;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -30px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

.timeline-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
}

.timeline-period {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.timeline-role {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.timeline-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.timeline-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Blog / Technical Insights
   -------------------------------------------------------------------------- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-img-box {
  height: 180px;
  width: 100%;
  overflow: hidden;
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Contact Section & Form
   -------------------------------------------------------------------------- */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 206, 201, 0.12);
  border: 1px solid rgba(0, 206, 201, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control-custom {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control-custom:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.25);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9995;
  transition: var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* Back to top button */
.back-to-top-btn {
  position: fixed;
  bottom: 100px;
  right: 34px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 9990;
  transition: var(--transition-fast);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 40px 0 20px 0;
}

/* Project Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

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

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
