/* ============================================
   Sarvesh Patel — Enterprise Portfolio
   Premium CSS Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --secondary: #4F46E5;
  --accent: #0EA5E9;
  --bg: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --bg-tertiary: #F3F4F6;
  --dark: #111827;
  --dark-secondary: #1F2937;
  --text: #374151;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --border: rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 64px rgba(37, 99, 235, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 72px;
}

[data-theme="dark"] {
  --bg: #111827;
  --bg-secondary: #1F2937;
  --bg-tertiary: #374151;
  --dark: #F9FAFB;
  --dark-secondary: #E5E7EB;
  --text: #D1D5DB;
  --text-light: #9CA3AF;
  --text-muted: #6B7280;
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(31, 41, 55, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 64px rgba(37, 99, 235, 0.2);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

::selection {
  background: var(--primary);
  color: #fff;
}

/* --- Page Loader --- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pulse-logo 1.5s ease infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto 16px;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  animation: load-progress 1.8s ease forwards;
}

.loader-text {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes load-progress {
  to { width: 100%; }
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
.navbar {
  height: var(--nav-height);
  padding: 0;
  background: transparent;
  transition: all var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--dark);
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-size: 15px;
  font-weight: 600;
}

.navbar-nav .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 16px !important;
  position: relative;
  transition: color var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 24px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

.btn-hire {
  padding: 8px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md) !important;
}

.navbar-toggler {
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2837, 99, 235, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: #fff;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 26px;
  background: transparent;
  transition: all var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 600;
  padding: 12px 24px;
  transition: all var(--transition);
}

.btn-ghost:hover {
  color: var(--primary);
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.glass-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* --- Section Utilities --- */
.section-padding {
  padding: 120px 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.particles-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(79, 70, 229, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(14, 165, 233, 0.05) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-greeting {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 4px;
}

.hero-specialty {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.typing-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  min-height: 32px;
}

.typing-label {
  font-size: 15px;
  color: var(--text-light);
  white-space: nowrap;
}

.typed-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.typed-cursor {
  color: var(--primary);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-social a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 16px;
  transition: all var(--transition);
}

.hero-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
}

.hero-location i {
  color: var(--primary);
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.hero-image-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 4s ease infinite;
}

.hero-image-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 2px solid rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  animation: ring-rotate 20s linear infinite;
}

.hero-image-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateX(-50%);
}

.hero-profile-img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.floating-badge {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.floating-badge i {
  color: var(--primary);
  font-size: 14px;
}

.badge-1 {
  top: 15%;
  right: 5%;
  animation: float-badge 5s ease-in-out infinite;
}

.badge-2 {
  bottom: 25%;
  left: 0;
  animation: float-badge 5s ease-in-out infinite 1.5s;
}

.badge-3 {
  bottom: 10%;
  right: 10%;
  animation: float-badge 5s ease-in-out infinite 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scroll-line 2s ease infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Tech Marquee --- */
.tech-marquee-section {
  padding: 48px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.tech-marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-marquee {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  transition: color var(--transition);
}

.tech-item i {
  font-size: 22px;
  color: var(--primary);
  opacity: 0.7;
}

.tech-item:hover {
  color: var(--primary);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Statistics --- */
.stats-section {
  padding: 80px 0;
  background: var(--bg);
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  position: relative;
}

.stat-card .stat-number {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: var(--primary);
  display: inline;
  line-height: 1;
}

.stat-card .stat-suffix {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  display: inline;
}

.stat-card .stat-text {
  font-size: clamp(18px, 2.5vw, 24px);
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- About --- */
.about-section {
  background: var(--bg-secondary);
}

.about-accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  margin-top: 24px;
}

.about-content {
  padding: 40px;
}

.about-content .lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.6;
}

.about-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.pillar-item i {
  color: var(--primary);
  font-size: 14px;
}

.pillar-item:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
}

/* --- Experience Timeline --- */
.experience-section {
  background: var(--bg);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
}

.timeline-svg {
  width: 100%;
  height: 100%;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-right: calc(50% + 40px);
}

.timeline-item-right {
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 32px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid var(--bg);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-card {
  padding: 32px;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.company-logo.etelic { background: linear-gradient(135deg, #2563EB, #0EA5E9); }
.company-logo.dhl { background: linear-gradient(135deg, #FFCC00, #D40511); color: #D40511; font-size: 11px; }
.company-logo.dinfo { background: linear-gradient(135deg, #4F46E5, #7C3AED); }

.timeline-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-period {
  font-size: 13px;
  color: var(--text-muted);
}

.timeline-period i {
  margin-right: 4px;
}

.timeline-card > p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
}

/* --- Projects --- */
.projects-section {
  background: var(--bg-secondary);
}

.project-block {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.project-block:last-child {
  border-bottom: none;
}

.project-illustration {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.project-svg {
  width: 100%;
  height: auto;
  display: block;
}

.project-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.project-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--dark);
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.project-meta span {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-meta i {
  color: var(--primary);
}

.project-details {
  margin-bottom: 24px;
}

.detail-block {
  margin-bottom: 16px;
}

.detail-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.detail-block p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

.detail-block.impact {
  padding: 16px 20px;
  background: rgba(37, 99, 235, 0.05);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  transition: all var(--transition);
}

.feature-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.project-arch-diagram h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.arch-mini-svg {
  width: 100%;
  max-width: 500px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.project-stack span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.1));
  color: var(--primary);
  border-radius: var(--radius-full);
}

/* Commission Workflow */
.commission-workflow {
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.commission-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.commission-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.commission-step {
  text-align: center;
  opacity: 0.5;
  transition: all var(--transition);
}

.commission-step.active,
.commission-step.highlighted {
  opacity: 1;
}

.commission-step .step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin: 0 auto 6px;
  transition: all var(--transition);
}

.commission-step.active .step-circle,
.commission-step.highlighted .step-circle {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: scale(1.1);
}

.commission-step span {
  font-size: 10px;
  color: var(--text-light);
  display: block;
}

.commission-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

.commission-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.commission-note i {
  color: var(--primary);
}

/* --- Architecture Diagram --- */
.architecture-section {
  background: var(--bg);
}

.arch-diagram-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.arch-diagram {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arch-layer {
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.arch-layer.visible {
  opacity: 1;
  transform: translateY(0);
}

.arch-layer:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.arch-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.arch-layer span {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
  color: var(--primary);
  opacity: 0.4;
}

.connector-line {
  width: 2px;
  height: 16px;
  background: var(--primary);
  opacity: 0.3;
}

/* --- API Cards --- */
.api-section {
  background: var(--bg-secondary);
}

.api-card {
  padding: 28px;
  height: 100%;
}

.api-method {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.api-method.get {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.api-method.post {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.api-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.api-card code {
  display: block;
  font-size: 13px;
  color: var(--accent);
  background: var(--bg-tertiary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.api-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.api-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.api-tags span {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
}

/* --- Skills --- */
.skills-section {
  background: var(--bg);
}

.skill-category {
  padding: 32px;
  height: 100%;
}

.skill-category-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 16px;
}

.skill-category h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.skill-item {
  margin-bottom: 14px;
}

.skill-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.skill-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags-grid span {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  transition: all var(--transition);
}

.skill-tags-grid span:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.skill-highlight {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(79, 70, 229, 0.05));
}

/* --- Process Timeline --- */
.process-section {
  background: var(--bg-secondary);
}

.process-timeline {
  position: relative;
  padding: 40px 0;
}

.process-track {
  position: absolute;
  top: 68px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

.process-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.process-step {
  text-align: center;
  flex: 1;
  padding: 0 8px;
  opacity: 0.4;
  transition: all var(--transition);
}

.process-step.active {
  opacity: 1;
}

.process-icon {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  color: var(--text-light);
  transition: all var(--transition);
}

.process-step.active .process-icon {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.process-step h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.process-step p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Why Hire --- */
.why-hire-section {
  background: var(--bg);
}

.value-card {
  padding: 32px;
  height: 100%;
  text-align: center;
}

.value-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.1));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: var(--primary);
  transition: all var(--transition);
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  transform: scale(1.1);
}

.value-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Certifications --- */
.certifications-section {
  background: var(--bg-secondary);
}

.cert-card {
  padding: 40px 32px;
  text-align: center;
  height: 100%;
}

.cert-badge {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  color: #fff;
}

.cert-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.cert-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.cert-year {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 14px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-full);
}

/* --- Resume --- */
.resume-section {
  background: var(--bg);
}

.resume-wrapper {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.resume-preview {
  padding: 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.resume-document {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: #374151;
}

[data-theme="dark"] .resume-document {
  background: var(--bg-tertiary);
  color: var(--text);
}

.resume-header-doc h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.resume-header-doc > p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.resume-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.resume-contact-line i {
  margin-right: 4px;
  color: var(--primary);
}

.resume-section-doc {
  margin-top: 24px;
}

.resume-section-doc h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.resume-section-doc p {
  font-size: 14px;
  line-height: 1.7;
}

.resume-skills-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-skills-line span {
  font-size: 12px;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
}

.resume-section-doc ul {
  list-style: disc;
  padding-left: 20px;
}

.resume-section-doc li {
  font-size: 14px;
  margin-bottom: 6px;
}

.resume-actions {
  padding: 32px;
  text-align: center;
}

/* --- Contact --- */
.contact-section {
  background: var(--bg-secondary);
}

.contact-info-card {
  padding: 40px;
  height: 100%;
}

.contact-info-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}

.contact-item a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-form {
  padding: 40px;
}

.contact-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-form .form-control {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  transition: all var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.form-success {
  margin-top: 16px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.form-success i {
  margin-right: 8px;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: #D1D5DB;
  padding: 64px 0 32px;
}

[data-theme="dark"] .site-footer {
  background: #0B0F19;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.footer-brand p {
  font-size: 13px;
  color: #9CA3AF;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: #9CA3AF;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: #6B7280;
}

.footer-tagline {
  font-style: italic;
  color: #9CA3AF;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* --- SVG Animations --- */
.svg-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.5s ease;
}

.svg-draw.animated {
  stroke-dashoffset: 0;
}

.svg-fade {
  opacity: 0;
  transition: opacity 1s ease;
}

.svg-fade.animated {
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .hero-image-col {
    margin-top: 48px;
  }

  .hero-profile-img {
    width: 300px;
    height: 300px;
  }

  .hero-image-ring {
    width: 340px;
    height: 340px;
  }

  .floating-badge {
    display: none;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item,
  .timeline-item-right {
    padding-left: 56px;
    padding-right: 0;
  }

  .timeline-dot {
    left: 20px;
  }

  .process-steps {
    flex-wrap: wrap;
    gap: 24px;
  }

  .process-step {
    flex: 0 0 calc(33.333% - 16px);
  }

  .process-track {
    display: none;
  }

  .nav-actions {
    margin-top: 16px;
  }

  .commission-steps {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 80px 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .hero-profile-img {
    width: 260px;
    height: 260px;
  }

  .hero-image-ring {
    width: 300px;
    height: 300px;
  }

  .about-content {
    padding: 24px;
  }

  .timeline-card {
    padding: 20px;
  }

  .project-block {
    padding: 40px 0;
  }

  .arch-diagram {
    padding: 24px;
  }

  .process-step {
    flex: 0 0 calc(50% - 12px);
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .commission-arrow {
    display: none;
  }

  .commission-step {
    flex: 0 0 calc(33% - 8px);
  }
}

@media (max-width: 575.98px) {
  .stat-card {
    padding: 20px 12px;
  }

  .contact-info-card,
  .contact-form {
    padding: 24px;
  }

  .resume-preview {
    padding: 20px;
  }

  .resume-document {
    padding: 24px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .tech-marquee {
    animation: none;
  }
}

/* --- Print --- */
@media print {
  .page-loader,
  .scroll-progress,
  .navbar,
  .particles-bg,
  .back-to-top,
  .hero-scroll-indicator {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}
