@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --bg-color: #050816;
  --bg-grid: rgba(255, 255, 255, 0.02);
  --primary: #4F46E5;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --secondary: #06B6D4;
  --secondary-glow: rgba(6, 182, 212, 0.15);
  --accent: #22C55E;
  --accent-glow: rgba(34, 197, 94, 0.15);
  
  --card-bg: rgba(13, 17, 39, 0.45);
  --card-border: rgba(255, 255, 255, 0.05);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --nav-height: 80px;
}

/* --- RESET & FOUNDATION --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-color);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(79, 70, 229, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection */
::selection {
  background: rgba(6, 182, 212, 0.3);
  color: #fff;
}

/* --- BACKGROUND SYSTEMS --- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gradient-mesh {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 40% 70%, rgba(34, 197, 94, 0.05) 0%, transparent 40%);
  filter: blur(80px);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  opacity: 0.7;
}

.glowing-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: floatOrb 20s infinite ease-in-out alternate;
}

.glowing-orb.orb-2 {
  right: -50px;
  top: 40%;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.2); }
  100% { transform: translate(-50px, 120px) scale(0.9); }
}

/* --- NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(5, 8, 22, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
  transition: all 0.3s ease;
}

header.scrolled {
  height: 70px;
  background: rgba(5, 8, 22, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
}

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

.nav-cta {
  border: 1px solid var(--primary);
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--primary-glow);
  color: #fff !important;
  font-weight: 600;
  transition: all 0.3s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- PREMIUM CARD DESIGN (GLASSMORPHISM + GLOW) --- */
.glass-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}

/* Glow Border Hack using content mask composite */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(6, 182, 212, 0.4), rgba(34, 197, 94, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

/* --- GLOBAL LAYOUT & SECTIONS --- */
.section {
  position: relative;
  z-index: 2;
  padding: 140px 0; /* Increased padding for elegant whitespace */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-tag::before {
  content: '//';
  font-weight: bold;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.15;
}

.section-title span {
  background: linear-gradient(135deg, #fff 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 72px; /* Increased margin for whitespace spacing */
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(13, 17, 39, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  position: relative;
}

.hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-badge-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  color: #fff;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 6s linear infinite;
  display: block;
  margin-top: 12px;
}

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

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-desc strong {
  color: #fff;
}

/* Button Styling (Consistent Gradients) */
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  font-family: var(--font-body);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3b33c7 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5b53ff 0%, var(--primary) 100%);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
  transform: translateY(-2.5px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2.5px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--secondary) 0%, #0891b2 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #22d3ee 0%, var(--secondary) 100%);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.45);
  transform: translateY(-2.5px);
}

/* Stats Cards in Hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  background: rgba(13, 17, 39, 0.35);
  border: 1px solid var(--card-border);
  padding: 18px;
  border-radius: 12px;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stat-val span {
  color: var(--secondary);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Right Side - AI Illustration */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 480px;
}

.ai-illustration-box {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#neural-mesh-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.floating-ai-node {
  position: absolute;
  padding: 10px 16px;
  background: rgba(13, 17, 39, 0.6);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: floatBadge 6s infinite ease-in-out alternate;
}

.floating-ai-node svg {
  color: var(--secondary);
}

.floating-ai-node.node-1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.floating-ai-node.node-2 {
  bottom: 20%;
  right: 5%;
  animation-delay: -2s;
  animation-duration: 7s;
}

.floating-ai-node.node-3 {
  top: 60%;
  left: -20px;
  animation-delay: -4s;
  animation-duration: 8s;
}

@keyframes floatBadge {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(8px) rotate(-1deg); }
}

.scroll-down-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s, transform 0.3s;
}

.scroll-down-indicator:hover {
  transform: translate(-50%, -4px);
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
  transition: border-color 0.3s;
}

.scroll-down-indicator:hover .mouse-icon {
  border-color: var(--secondary);
}

.mouse-wheel {
  width: 4px;
  height: 6px;
  background-color: var(--secondary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelAnim 1.6s infinite ease-in-out;
}

@keyframes scrollWheelAnim {
  0% {
    top: 6px;
    opacity: 1;
    height: 4px;
  }
  50% {
    top: 14px;
    opacity: 0.5;
    height: 6px;
  }
  100% {
    top: 18px;
    opacity: 0;
    height: 4px;
  }
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.scroll-down-indicator:hover .scroll-text {
  color: var(--text-primary);
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.profile-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 4px;
}

.profile-meta p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary);
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
}

.quick-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fact-badge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.fact-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

/* Timeline Layout */
.timeline-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-card-title svg {
  color: var(--primary);
}

.timeline-items {
  position: relative;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.timeline-items::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--primary);
  transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-role {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 2px 10px;
  border-radius: 100px;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- SERVICES & WORKFLOW --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.service-card .service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  color: var(--secondary);
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.workflow-title-box {
  text-align: center;
  max-width: 600px;
  margin: 100px auto 50px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.workflow-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(13, 17, 39, 0.6);
  color: var(--secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.workflow-step:hover .workflow-num {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.workflow-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 8px;
}

.workflow-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.workflow-connector {
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 1px;
  background: linear-gradient(90deg, var(--card-border), transparent);
  z-index: -1;
}

.workflow-step:last-child .workflow-connector {
  display: none;
}

/* --- SKILLS SECTION --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.skill-category-card {
  display: flex;
  flex-direction: column;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.skill-cat-icon {
  font-size: 1.4rem;
}

.skill-cat-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.skill-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tech Stack Section (Glowing Badges) */
.tech-stack-container {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(13, 17, 39, 0.4);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-badge:hover {
  border-color: var(--secondary);
  color: #fff;
  background: rgba(6, 182, 212, 0.06);
  box-shadow: 0 0 15px var(--secondary-glow);
  transform: translateY(-2px);
}

/* --- PROJECTS SECTION --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px; /* Increased gap for layout spacing */
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.05);
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 22, 0.8) 100%);
  pointer-events: none;
}

.project-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-metrics-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  padding: 2px 10px;
  border-radius: 100px;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.project-git-stats {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.project-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-features-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.project-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
}

.project-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  margin-top: auto;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: 4px;
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.project-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3e36c5 100%);
  border: 1px solid transparent;
  color: #fff;
}

.project-btn-primary:hover {
  background: linear-gradient(135deg, #5b53ff 0%, var(--primary) 100%);
  box-shadow: 0 0 12px var(--primary-glow);
}

.project-btn-secondary {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.project-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- CERTIFICATIONS SECTION --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 30px;
}

.cert-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  color: var(--secondary);
}

.cert-icon svg {
  width: 24px;
  height: 24px;
}

.cert-info {
  display: flex;
  flex-direction: column;
}

.cert-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.cert-org {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.cert-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 10px;
}

.certs-action-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.certs-view-all-btn {
  font-size: 0.95rem;
  padding: 14px 32px;
}

/* --- ACHIEVEMENTS SECTION --- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.ach-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ach-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 1px solid rgba(79, 70, 229, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  margin-bottom: 8px;
}

.ach-icon-box svg {
  width: 24px;
  height: 24px;
}

.ach-card:hover .ach-icon-box {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.ach-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.ach-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- RESUME & QUOTE --- */
.resume-quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.resume-download-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.resume-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.05em;
}

.resume-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.resume-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.resume-buttons {
  display: flex;
  gap: 16px;
  width: 100%;
}

.resume-buttons .btn {
  flex: 1;
  font-size: 0.88rem;
  padding: 12px 20px;
}

/* Professional Resume Preview Card (HTML Sheet) */
.resume-preview-card {
  background: #ffffff;
  color: #1f2937;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}

.resume-preview-card::before {
  display: none !important; /* Remove mask glow on the paper sheet */
}

.resume-preview-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 30px 60px rgba(79, 70, 229, 0.15);
}

.resume-preview-header {
  border-bottom: 1.5px solid #e5e7eb;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.resume-preview-header h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.resume-preview-header p {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.resume-preview-contact {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #6b7280;
  margin-top: 4px;
}

.resume-preview-section {
  margin-bottom: 14px;
}

.resume-preview-section h5 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 2px;
}

.resume-preview-item {
  margin-bottom: 6px;
}

.resume-preview-item strong {
  color: #1f2937;
  font-weight: 700;
}

.resume-preview-item span.preview-date {
  float: right;
  font-family: var(--font-mono);
  color: #9ca3af;
  font-size: 0.62rem;
}

/* Call to Action Banner */
.cta-banner {
  margin-top: 100px;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.12) 0%, rgba(13, 17, 39, 0.45) 60%);
  text-align: center;
  padding: 70px 60px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  font-size: 1rem;
  line-height: 1.7;
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.contact-link-item:hover {
  color: var(--secondary);
}

.contact-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary);
}

.contact-link-details {
  display: flex;
  flex-direction: column;
}

.contact-link-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-link-value {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.social-grids {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s;
}

.social-icon-btn:hover {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary-glow);
  transform: translateY(-2px);
}

/* Contact Button Panel */
.contact-form-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.btn-email-direct {
  width: 100%;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #3b33c7 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-email-direct:hover {
  background: linear-gradient(135deg, #5b53ff 0%, var(--primary) 100%);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
  transform: translateY(-2.5px);
  color: #fff;
}

.btn-whatsapp-direct {
  width: 100%;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp-direct:hover {
  background: linear-gradient(135deg, #34e073 0%, #25d366 100%);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transform: translateY(-2.5px);
  color: #fff;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
  background: rgba(5, 8, 22, 0.9);
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.footer-logo span {
  color: var(--secondary);
}

.footer-right {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger Children helper */
.stagger-container > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-container.active > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-container.active > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-container.active > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-container.active > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-container.active > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-container.active > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-container.active > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-container.active > *:nth-child(7) { transition-delay: 0.47s; }
.stagger-container.active > *:nth-child(8) { transition-delay: 0.54s; }


/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-stats {
    max-width: 500px;
  }
  
  .hero-visual {
    height: 400px;
    margin-top: 20px;
  }
  
  .about-grid, .projects-grid, .learning-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .workflow-connector {
    display: none;
  }
  
  .resume-quote-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .resume-download-card {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  
  .nav-container {
    padding: 0 24px;
  }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 60px 40px;
    gap: 40px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
    border-top: 1px solid var(--card-border);
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Menu icon animation */
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .certs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}



