/* ============================================
   Hassan Javed Portfolio — Premium Dark Theme
   ============================================ */

:root {
  --black: #000000;
  --black-soft: #0a0a0a;
  --black-card: #111111;
  --black-elevated: #1a1a1a;
  --white: #ffffff;
  --white-soft: #f5f5f5;
  --gray-100: #e5e5e5;
  --gray-200: #a3a3a3;
  --gray-300: #737373;
  --gray-400: #525252;
  --gray-500: #404040;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-glow: rgba(59, 130, 246, 0.4);
  --blue-subtle: rgba(59, 130, 246, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --section-gap: 5rem;
  --card-gap: 1.5rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
  --text-glow: 0 0 18px rgba(59, 130, 246, 0.25), 0 0 48px rgba(59, 130, 246, 0.12);
  --header-height: 72px;
  --whatsapp-green: #25d366;
  --whatsapp-green-dark: #128c7e;
  --whatsapp-glow: rgba(37, 211, 102, 0.45);
  --whatsapp-glass: rgba(37, 211, 102, 0.12);
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--black);
  color: var(--white-soft);
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

body.loaded {
  overflow-y: auto;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-accent {
  color: var(--blue-light);
  text-shadow: 0 0 18px rgba(96, 165, 250, 0.35);
}

/* ============================================
   Loading Screen
   ============================================ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2rem;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 30px var(--blue-glow);
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--gray-500);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px;
  animation: loaderFill 1.8s ease forwards;
}

@keyframes loaderFill {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.loader-text {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-300);
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  flex-shrink: 0;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.nav-logo:hover .nav-logo-img {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 20px var(--blue-glow);
}

.nav-logo-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav-menu.active {
  opacity: 1;
  visibility: visible;
}

.nav-link {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gray-200);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link--cta {
  padding: 0.75rem 2rem;
  border: 1px solid var(--blue);
  border-radius: 50px;
  color: var(--blue-light) !important;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: var(--blue-subtle);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px var(--blue-glow);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--blue-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  background: var(--blue-subtle);
}

.btn-full {
  width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  min-height: 100vh;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  padding: 2rem 0 4rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-avatar {
  width: clamp(100px, 18vw, 140px);
  height: clamp(100px, 18vw, 140px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(59, 130, 246, 0.35);
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.3),
    0 0 90px rgba(59, 130, 246, 0.16),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
  animation: avatarGlow 4s ease-in-out infinite;
}

@keyframes avatarGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.25), 0 0 80px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 50px rgba(59, 130, 246, 0.4), 0 0 100px rgba(59, 130, 246, 0.15); }
}

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-200) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles {
  min-height: 2rem;
  margin-bottom: 1.5rem;
}

.hero-role {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--blue-light);
  font-weight: 500;
}

.hero-role::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--blue);
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--gray-200);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 4rem;
}

.hero-scroll {
  display: flex;
  justify-content: center;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-300);
  transition: color var(--transition);
}

.scroll-indicator:hover {
  color: var(--blue-light);
}

.scroll-indicator-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Sections — Shared
   ============================================ */

.section {
  padding: var(--section-gap) 0;
  position: relative;
  background: transparent;
  z-index: 1;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.03em;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 1.5rem rgba(255, 255, 255, 0.02), 0 20px 80px rgba(59, 130, 246, 0.08);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 1.5rem rgba(255, 255, 255, 0.04), 0 22px 90px rgba(59, 130, 246, 0.16);
}

.section-title,
.hero-name,
.hero-role,
.hero-subtitle,
.about-lead,
.timeline-title,
.project-title,
.stats-platform-name,
.service-title {
  text-shadow: 0 0 16px rgba(59, 130, 246, 0.18), 0 0 32px rgba(59, 130, 246, 0.1);
}

.btn-primary,
.btn-outline,
.scroll-indicator:hover,
.timeline-dot,
.project-card:hover,
.stat-card:hover,
.service-card:hover {
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.15), 0 20px 60px rgba(59, 130, 246, 0.12);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   About Section
   ============================================ */

.about {
  background: transparent;
}

.about-grid {
  display: grid;
  gap: 3rem;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.about-text {
  color: var(--gray-200);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-specialties {
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.about-specialties-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.specialty-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.specialty-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-200);
  padding: 0.5rem 0;
}

.specialty-icon {
  color: var(--blue);
  font-size: 0.5rem;
}

/* ============================================
   Skills Section
   ============================================ */

.skills {
  background: transparent;
}

.skills-grid {
  display: grid;
  gap: var(--card-gap);
  align-items: stretch;
}

.skill-category {
  padding: 2rem;
  height: 100%;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.skill-category-icon {
  font-size: 1.25rem;
}

.skill-category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-size: 0.875rem;
  color: var(--gray-200);
  font-weight: 500;
}

.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-light);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.skill-bar-track {
  height: 4px;
  background: var(--black-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--blue-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--blue-glow);
}

/* ============================================
   Experience Timeline
   ============================================ */

.experience {
  background: transparent;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--blue);
  box-shadow: 0 0 15px var(--blue-glow);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--transition), box-shadow var(--transition);
}

.timeline-item.visible .timeline-dot {
  background: var(--blue);
}

.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, var(--blue), var(--glass-border));
  margin: 4px 0;
}

.timeline-content {
  flex: 1;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.timeline-years {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.6;
}

/* ============================================
   Projects Section
   ============================================ */

.projects {
  background: transparent;
}

.projects-grid {
  display: grid;
  gap: var(--card-gap);
  align-items: stretch;
}

.project-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.25);
}

.project-card:hover::before {
  opacity: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-500);
  line-height: 1;
}

.project-status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
}

.project-status--live {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.project-status--template {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.project-desc {
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-features li {
  font-size: 0.8rem;
  color: var(--gray-300);
  padding: 0.35rem 0.85rem;
  background: var(--black-elevated);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blue-light);
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 6px;
  background: var(--blue-subtle);
}

/* ============================================
   Social Proof
   ============================================ */

.social-proof {
  background: transparent;
}

.stats-grid {
  display: grid;
  gap: var(--card-gap);
  align-items: stretch;
}

.stats-platform {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stats-platform-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.stats-icon {
  width: 32px;
  height: 32px;
  color: var(--blue-light);
}

.stats-platform-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
}

.stat-card {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.stat-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.25rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ============================================
   Services Section
   ============================================ */

.services {
  background: transparent;
}

.services-grid {
  display: grid;
  gap: var(--card-gap);
  align-items: stretch;
}

.service-card {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--gray-300);
  line-height: 1.6;
  flex: 1;
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
  background: transparent;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.contact-item-value {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}

.contact-link {
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--blue-light);
}

.contact-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--black-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-subtle);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.25rem;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  background: transparent;
}

.footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.footer-built {
  font-size: 1.1rem;
  color: var(--gray-200);
  margin-bottom: 0.5rem;
}

.footer-built strong {
  color: var(--white);
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--gray-400);
  letter-spacing: 0.02em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--gray-300);
  transition: all var(--transition);
}

.footer-top svg {
  width: 18px;
  height: 18px;
}

.footer-top:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  background: var(--blue-subtle);
}

/* ============================================
   Floating WhatsApp Button
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--whatsapp-green);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(37, 211, 102, 0.35);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(37, 211, 102, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-4px) scale(1.06);
  color: #34eb77;
  border-color: rgba(37, 211, 102, 0.65);
  background: var(--whatsapp-glass);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.5),
    0 0 36px var(--whatsapp-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  outline: none;
}

.whatsapp-float:active {
  transform: translateY(-2px) scale(1.02);
}

.whatsapp-float__icon {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  fill: currentColor;
  filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.35));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover .whatsapp-float__icon,
.whatsapp-float:focus-visible .whatsapp-float__icon {
  transform: scale(1.08);
}

.whatsapp-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-green);
  opacity: 0;
  pointer-events: none;
  animation: whatsappPulse 4s ease-out infinite;
}

@keyframes whatsappPulse {
  0%,
  72%,
  100% {
    transform: scale(1);
    opacity: 0;
  }

  8% {
    transform: scale(1);
    opacity: 0.55;
  }

  38% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  z-index: 3;
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--white);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.88);
  border-top: 1px solid rgba(37, 211, 102, 0.28);
  border-right: 1px solid rgba(37, 211, 102, 0.28);
  transform: translateY(-50%) rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover .whatsapp-float__tooltip,
  .whatsapp-float:focus-visible .whatsapp-float__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }
}

@media (max-width: 767px) {
  .whatsapp-float {
    width: 62px;
    height: 62px;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .whatsapp-float__icon {
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   Responsive — Tablet & Desktop
   ============================================ */

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .specialty-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  :root {
    --section-gap: 7rem;
    --card-gap: 2rem;
  }

  .container {
    padding: 0 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    gap: 2rem;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 0.875rem;
  }

  .nav-link--cta {
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
  }

  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .contact-form {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    max-width: 800px;
  }

  .timeline-content {
    padding: 2rem 2.25rem;
  }
}

@media (min-width: 1280px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skill-category:last-child {
    grid-column: span 1;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-avatar {
    animation: none;
  }

  .whatsapp-float__pulse {
    animation: none;
  }
}
