:root {
  --bg-dark: #0b0f17;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.80);
  --bg-card-hover: rgba(31, 41, 55, 0.90);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #f59e0b;
  
  --amber-primary: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --amber-dark: #b45309;
  
  --emerald-accent: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  
  --blue-accent: #3b82f6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(30, 41, 59, 0.4) 0px, transparent 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Card System */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 15px 35px -10px rgba(245, 158, 11, 0.12);
}

/* Header & Nav */
.header-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0f17;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px var(--amber-glow);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--amber-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald-accent);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--emerald-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f17;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px var(--amber-glow);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Layout Main Container */
.main-container {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.5rem 4rem;
}

/* Hero Profile Section */
.hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.profile-card {
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 1.25rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--amber-primary);
  box-shadow: 0 0 25px var(--amber-glow);
}

.avatar-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--amber-primary);
  color: #0b0f17;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 2px solid var(--bg-dark);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.profile-role {
  color: var(--amber-primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.quick-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin: 1.25rem 0;
}

.stat-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-item:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #fff;
}

.contact-icon {
  color: var(--amber-primary);
  font-size: 1rem;
}

/* Bio & Expertise Card */
.bio-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-primary);
  margin-bottom: 0.75rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.pillar-item {
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all var(--transition-fast);
}

.pillar-item:hover {
  border-color: var(--amber-primary);
  transform: translateY(-3px);
}

.pillar-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.pillar-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.pillar-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Pricing & Prestations Grid */
.pricing-section {
  margin-bottom: 2.5rem;
  padding: 2.25rem;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pricing-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-smooth);
}

.pricing-card:hover {
  border-color: var(--amber-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(17, 24, 39, 0.9) 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--amber-primary);
  color: #0b0f17;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.pricing-header {
  margin-bottom: 1.25rem;
}

.pricing-category {
  font-size: 0.75rem;
  color: var(--amber-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0.35rem 0 0.5rem;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.85rem 0;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.price-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-features li span.check {
  color: var(--emerald-accent);
  font-weight: bold;
}

/* Quote Calculator / Devis Form */
.devis-section {
  margin-bottom: 2.5rem;
  padding: 2.25rem;
}

.devis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-input, .form-select, .form-textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--amber-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.estimation-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--amber-primary);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.est-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--amber-primary);
  margin: 0.5rem 0;
}

/* Skills & Language Bars */
.skills-languages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.skill-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-chip {
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 500;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.skill-chip.highlight {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.lang-row:last-child {
  border-bottom: none;
}

.lang-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.lang-level {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.lang-level.native {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
}

.lang-level.fluent {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-primary);
}

/* Experiences Timeline */
.timeline-section {
  margin-bottom: 2.5rem;
  padding: 2rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  margin-top: 1.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.timeline-period {
  font-size: 0.8rem;
  color: var(--amber-primary);
  font-weight: 600;
}

.timeline-details {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline-details ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-top: 0.4rem;
}

/* Gallery Section */
.gallery-section {
  margin-bottom: 3rem;
  padding: 2rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--amber-primary);
  color: #0b0f17;
  border-color: var(--amber-primary);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-subtle);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 23, 0.95) 0%, rgba(11, 15, 23, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.project-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber-primary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.project-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.project-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Lightbox Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  max-width: 900px;
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.modal-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.modal-caption {
  margin-top: 1rem;
  text-align: center;
  color: #fff;
  font-size: 1rem;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
  .devis-grid {
    grid-template-columns: 1fr;
  }
  .skills-languages-grid {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    grid-template-columns: 1fr;
  }
}
