/* ============================================
   DHIRAJ SAH PORTFOLIO - CUSTOM STYLES
   ============================================ */

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

/* ─── CSS Variables ─── */
:root {
  --primary: #0f172a;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --secondary: #22c55e;
  --secondary-dark: #16a34a;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #263347;
  --border: rgba(99, 102, 241, 0.2);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-2: linear-gradient(135deg, #22c55e 0%, #06b6d4 100%);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(99, 102, 241, 0.25);
  --shadow-accent: 0 0 30px rgba(99, 102, 241, 0.3);
  --shadow-green: 0 0 30px rgba(34, 197, 94, 0.3);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Variables */
.light-mode {
  --primary: #f8fafc;
  --bg-dark: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border: rgba(99, 102, 241, 0.2);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(99, 102, 241, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Scroll Progress Bar ─── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-1);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* ─── Animated Cursor ─── */
#cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease;
  mix-blend-mode: screen;
}
#cursor-follower {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(99, 102, 241, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transition: all 0.3s ease;
}
.cursor-hover { transform: scale(2.5) !important; }

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}
.light-mode .navbar.scrolled {
  background: rgba(248, 250, 252, 0.92);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.1);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-nav {
  padding: 0.5rem 1.25rem;
  background: var(--gradient-1);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}
.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 5rem 2rem 2rem;
  backdrop-filter: blur(20px);
}
.mobile-menu.open { right: 0; }
.mobile-menu .nav-links {
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu .nav-links a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border-radius: 0.75rem;
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--gradient-1);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(99, 102, 241, 0.6);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-3px);
}

/* ─── Glass Cards ─── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}

/* ─── Section Base ─── */
.section {
  padding: 6rem 0;
}
.section-sm { padding: 4rem 0; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.green-text { color: var(--secondary); }

/* ─── Hero Section ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?w=1920&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-dark) 40%, transparent 100%),
              linear-gradient(to top, var(--bg-dark) 10%, transparent 60%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  top: -100px;
  right: 5%;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  bottom: 10%;
  right: 30%;
  animation-delay: 3s;
}
.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  top: 30%;
  left: 5%;
  animation-delay: 5s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--secondary);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease forwards;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-typing-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease 0.4s both;
}
.typing-prefix { color: var(--text-secondary); font-weight: 400; }
#typing-text {
  color: var(--accent-light);
  font-weight: 600;
  border-right: 2px solid var(--accent);
  padding-right: 4px;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  50% { border-color: transparent; }
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-stat-item .stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-top: 0.25rem;
}
.hero-image-wrapper {
  position: relative;
  animation: fadeInRight 1s ease 0.3s both;
}
.hero-img-frame {
  width: 100%;
  max-width: 480px;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-accent);
}
.hero-img-frame img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  display: block;
}
.hero-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(99,102,241,0.3) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.hero-floating-card {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 0.875rem 1.25rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: float 4s ease-in-out infinite;
}
.hero-floating-card.card-1 {
  bottom: -20px;
  left: -30px;
  animation-delay: 0s;
}
.hero-floating-card.card-2 {
  top: 30px;
  right: -30px;
  animation-delay: 2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floating-card-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.floating-card-label { font-size: 0.7rem; color: var(--text-muted); }
.floating-card-value { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

/* ─── About Preview ─── */
.about-preview-img {
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}
.about-preview-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  border-radius: 1.5rem;
  transition: transform 0.5s ease;
}
.about-preview-img:hover img { transform: scale(1.04); }
.about-preview-img::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: linear-gradient(to top, rgba(99,102,241,0.4) 0%, transparent 60%);
  z-index: 1;
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}
.about-badge .exp-num {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.about-badge .exp-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.info-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.info-pill .pill-icon { font-size: 1rem; }

/* ─── Skills ─── */
.skill-item { margin-bottom: 1.5rem; }
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.skill-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.skill-icon { font-size: 1.1rem; }
.skill-percent {
  font-size: 0.875rem;
  color: var(--accent-light);
  font-weight: 600;
}
.skill-bar {
  height: 6px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient-1);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-fill.green { background: var(--gradient-2); }

/* ─── Service Cards ─── */
.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  border: 1px solid transparent;
  background: var(--gradient-1) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.service-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.service-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--secondary), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.25rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
  transition: var(--transition);
}
.timeline-item:hover::before {
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2), 0 0 20px rgba(99, 102, 241, 0.5);
}
.timeline-date {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-light);
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.timeline-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.timeline-company {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── Project Cards ─── */
.project-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
  border-color: var(--accent);
}
.project-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img img { transform: scale(1.08); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  gap: 1rem;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.project-overlay-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.project-body { padding: 1.5rem; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}
.project-tag {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-light);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.project-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.project-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ─── Testimonials ─── */
.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}
.testimonial-quote {
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
}
.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.stars {
  color: #fbbf24;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* ─── Stats Counter ─── */
.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}
.stat-card .counter {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-card .counter-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ─── Blog Cards ─── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
  border-color: var(--accent);
}
.blog-img {
  height: 200px;
  overflow: hidden;
}
.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.08); }
.blog-body { padding: 1.5rem; }
.blog-category {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-light);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.blog-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.blog-card:hover .blog-title { color: var(--accent-light); }
.blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.blog-read-more {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.3s ease;
}
.blog-read-more:hover { gap: 0.75rem; }

/* ─── Filter Buttons ─── */
.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 1.5rem;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}
.modal-close:hover { background: rgba(255,255,255,0.2); }
.modal-img { width: 100%; height: 280px; object-fit: cover; border-radius: 1.25rem 1.25rem 0 0; }
.modal-body { padding: 2rem; }
.modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.modal-desc { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.modal-features h4 { font-weight: 700; margin-bottom: 0.75rem; }
.modal-features ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.modal-features li::before { content: '→'; color: var(--accent-light); }
.modal-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.modal-tool {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-light);
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ─── Contact ─── */
.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
}
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}
.light-mode .form-input,
.light-mode .form-textarea {
  background: rgba(0,0,0,0.03);
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(99, 102, 241, 0.05);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-input.error, .form-textarea.error { border-color: #ef4444; }
.form-error { font-size: 0.8rem; color: #ef4444; margin-top: 0.35rem; }
.contact-info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  margin-bottom: 1rem;
}
.contact-info-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.875rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-info-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.contact-info-value { font-weight: 600; font-size: 0.95rem; }
.contact-info-value a { color: var(--text-primary); text-decoration: none; transition: color 0.3s; }
.contact-info-value a:hover { color: var(--accent-light); }

/* ─── Social Sidebar ─── */
.social-sidebar {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 100;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: var(--shadow-accent);
}

/* ─── Back to Top ─── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 500;
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.7); }

/* ─── CTA Section ─── */
.cta-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 2rem;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

/* ─── Page Header ─── */
.page-header {
  padding: 8rem 0 4rem;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.page-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.page-header-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-header-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb span { color: var(--text-primary); }

/* ─── Footer ─── */
footer {
  background: #080e1a;
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
}
.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: inline-block;
}
.footer-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-heading { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.25rem; color: var(--text-primary); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-copy { color: var(--text-muted); font-size: 0.875rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 0.625rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

/* ─── Grid Utilities ─── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }

/* ─── Scroll Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ─── Keyframe Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ─── Divider ─── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 999px;
  margin: 1rem 0 1.5rem;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .social-sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .btn-nav { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .hero-image-wrapper { display: none; }
  .hero-floating-card.card-2 { display: none; }
  .cta-section { padding: 3rem 1.5rem; }
  .contact-form { padding: 1.5rem; }
  .social-sidebar { display: none; }
  .timeline { padding-left: 2rem; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-stats { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .modal-box { border-radius: 1rem; }
}

/* ─── Map ─── */
.map-wrapper {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 300px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

/* ─── Pagination ─── */
.pagination { display: flex; align-items: center; gap: 0.5rem; }
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--gradient-1);
  border-color: transparent;
  color: #fff;
}

/* ─── Checkbox ─── */
.checkbox-group { display: flex; flex-direction: column; gap: 0.75rem; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] { display: none; }
.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: var(--transition);
}
.checkbox-item input:checked ~ .custom-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}
.custom-checkbox::after { content: '✓'; color: white; font-size: 0.7rem; opacity: 0; }
.checkbox-item input:checked ~ .custom-checkbox::after { opacity: 1; }

/* Light Mode Adjustments */
.light-mode footer { background: #e8eaf0; }
.light-mode .hero-bg { opacity: 0.07; }
.light-mode .mobile-menu { background: #f1f5f9; }
