/* ==========================================================================
   Design Tokens / Variables
   ========================================================================== */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a2e;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-tertiary: #6b6b80;
  --text-muted: #4a4a5a;
  
  --accent-primary: #6366f1;  /* Indigo */
  --accent-secondary: #8b5cf6; /* Purple */
  --accent-tertiary: #a78bfa;
  --gradient-start: #6366f1;
  --gradient-end: #a855f7;
  --gradient-text: linear-gradient(135deg, #6366f1, #a855f7, #6366f1);
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);
  --border-color-focus: rgba(99, 102, 241, 0.5);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  --shadow-glow-lg: 0 0 40px rgba(99, 102, 241, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  --container-width: 1200px;
  --section-padding: 120px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--accent-primary);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  color: transparent;
  background-size: 200%;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* ==========================================================================
   Background Animation
   ========================================================================== */
#bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  will-change: transform;
}

.blob-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  left: -10%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
  animation: float1 20s ease-in-out infinite alternate;
}

.blob-2 {
  width: 400px;
  height: 400px;
  top: 10%;
  right: -5%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.4));
  animation: float2 25s ease-in-out infinite alternate-reverse;
}

.blob-3 {
  width: 350px;
  height: 350px;
  bottom: -5%;
  left: 30%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(6, 182, 212, 0.4));
  animation: float3 22s ease-in-out infinite alternate;
}

.blob-4 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: -5%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4), rgba(99, 102, 241, 0.2));
  animation: float4 28s ease-in-out infinite alternate-reverse;
}

#particle-canvas {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

#mouse-glow {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
  will-change: left, top;
}

@keyframes float1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.1); }
  100% { transform: translate(-50px, 150px) scale(0.9); }
}

@keyframes float2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 100px) scale(1.15); }
  100% { transform: translate(50px, -50px) scale(0.85); }
}

@keyframes float3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, -80px) scale(0.95); }
  100% { transform: translate(-100px, 50px) scale(1.1); }
}

@keyframes float4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -150px) scale(1.2); }
  100% { transform: translate(50px, -100px) scale(0.9); }
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: padding var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base);
}

.navbar.scrolled {
  padding: 12px 0;
  background-color: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-dot {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  padding: 8px 20px;
  border-radius: var(--radius-full);
  color: #fff !important;
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform var(--transition-spring);
  z-index: 999;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--accent-primary);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-glass);
  border-color: var(--border-color-hover);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--text-secondary);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.about-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.about-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Roles Section
   ========================================================================== */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.role-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.role-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
}

.role-card:hover::before {
  opacity: 1;
}

.role-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.role-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-tertiary);
}

.role-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.role-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.role-apply-link {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.role-apply-link:hover {
  color: var(--accent-tertiary);
}

/* ==========================================================================
   Process/Timeline Section
   ========================================================================== */
.process-section {
  position: relative;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.2), transparent);
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  flex-shrink: 0;
  position: relative;
}

.timeline-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--bg-glass);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-tertiary);
  backdrop-filter: blur(10px);
  z-index: 1;
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-number {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  background-color: rgba(99, 102, 241, 0.1);
}

.timeline-content {
  padding-top: 8px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Notes Section
   ========================================================================== */
.notes-grid {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.note-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition-base);
}

.note-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

.note-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #22c55e; /* Accent green */
  margin-top: 2px;
}

.note-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Application Form
   ========================================================================== */
.application-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-progress {
  height: 4px;
  background-color: var(--bg-glass);
  border-radius: var(--radius-full);
  margin-bottom: 48px;
  overflow: hidden;
}

/* ===========================================================================
   Current Project Section
   ========================================================================== */
.project-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-overview-card,
.why-hiring-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.project-overview-card {
  padding: 32px;
}

.project-overview-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.project-overview-card > p,
.why-hiring-card p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.project-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.project-capabilities span {
  padding: 7px 12px;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.why-hiring-card {
  padding: 32px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.12));
}

.why-hiring-label {
  display: block;
  color: var(--accent-tertiary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.form-progress-text {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin: -34px 0 40px;
  text-align: right;
}

.form-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.5s ease;
}

fieldset.form-section {
  border: none;
  padding: 0;
  margin: 0 0 48px;
}

.form-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  display: block;
}

.professional-details-section .form-section-title {
  margin-bottom: 32px;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

/* Floating Labels Pattern */
.form-group input,
.form-group select,
.form-group textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  padding: 17px 20px;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  font-family: inherit;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
  outline: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-glass);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px;
  padding-right: 52px;
  cursor: pointer;
}

.form-group select option {
  background-color: #12121a;
  color: #f0f0f5;
  font: inherit;
}

.form-group select option:disabled {
  color: #6b6b80;
  background-color: #0a0a0f;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-color-focus);
  box-shadow: var(--shadow-glow);
  background-color: rgba(99, 102, 241, 0.05);
}

.form-group label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: top 0.2s ease, left 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  pointer-events: none;
  background-color: transparent;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group.has-value input ~ label,
.form-group.has-value select ~ label,
.form-group.has-value textarea ~ label,
.form-group input:-webkit-autofill ~ label,
.form-group select:focus ~ label {
  top: 0;
  left: 14px;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--accent-primary);
  background-color: var(--bg-primary);
  padding: 0 6px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}

/* URL hints appear only while these link fields are being completed. */
.link-placeholder-field input::placeholder {
  color: transparent;
}

.link-placeholder-field input:focus::placeholder {
  color: var(--text-tertiary);
}

.form-group textarea ~ label {
  top: 28px;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-glass) inset, var(--shadow-glow);
  caret-color: var(--text-primary);
  transition: background-color 9999s ease-out 0s;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ef4444;
}

.error-message {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 6px;
}

.form-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.form-status.error {
  color: #fca5a5;
}

.form-group.error .error-message {
  display: block;
}

.helper-text {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Skills Selector */
.skills-search-wrapper {
  position: relative;
  margin-bottom: 16px;
}

#skills-search {
  width: 100%;
  padding: 14px 20px;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-base);
}

#skills-search:focus {
  border-color: var(--border-color-focus);
  box-shadow: var(--shadow-glow);
  background-color: rgba(99, 102, 241, 0.05);
}

#skills-search::placeholder {
  color: var(--text-muted);
}

.selected-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 20px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  animation: scaleIn 0.2s ease-out;
}

.skill-tag-remove {
  cursor: pointer;
  opacity: 0.7;
  font-size: 1.1rem;
  line-height: 1;
  transition: opacity var(--transition-fast);
}

.skill-tag-remove:hover {
  opacity: 1;
}

.skill-tag-remove:focus-visible {
  outline-color: #ffffff;
}

.skills-dropdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 0;
}

.skill-chip {
  padding: 6px 14px;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.skill-chip:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.skill-chip.selected {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.skill-chip.hidden {
  display: none;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Project Entries */
.project-entry {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: all var(--transition-base);
}

.project-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-entry-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.remove-project-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.remove-project-btn:hover {
  background-color: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.add-project-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--bg-glass);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.add-project-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 132px;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
  filter: brightness(1.1);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

.submit-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.submit-btn.loading .submit-text {
  display: none;
}

.submit-btn.loading .submit-loader {
  display: block;
}

.submit-btn.loading::before {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  100% { left: 200%; }
}

/* ==========================================================================
   Success Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

/* Animated Checkmark */
.checkmark {
  width: 80px;
  height: 80px;
}

.checkmark-circle {
  stroke: var(--accent-primary);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: checkmark-circle 0.6s ease forwards;
}

.checkmark-check {
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkmark-check 0.3s ease 0.6s forwards;
}

@keyframes checkmark-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes checkmark-check {
  to { stroke-dashoffset: 0; }
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  color: transparent;
}

.modal-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.modal-close-btn {
  margin-top: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content p {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ==========================================================================
   Scroll Animations (Intersection Observer)
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up:nth-child(1) { transition-delay: 0s; }
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.fade-in-up:nth-child(5) { transition-delay: 0.4s; }
.fade-in-up:nth-child(6) { transition-delay: 0.5s; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }
  
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  
  .stat-item {
    min-width: 45%;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .roles-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-marker {
    transform: scale(0.8);
  }
  
  .timeline-item {
    gap: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }

  .project-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
  }
  
  .stat-item {
    min-width: 100%;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .about-card, .role-card, .note-card, .project-entry {
    padding: 20px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
