/* ==========================================================================
   KHALID BOUIHI - PROFESSIONAL PORTFOLIO & CV WEBSITE
   Design: Modern, Elegant, Minimalist, 100% Responsive Design
   Accents: Deep Navy Blue (#1e3a8a), Royal Blue (#2563eb), Slate (#0f172a)
   ========================================================================== */

:root {
  /* Color Palette - White Dominant */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  
  /* Text Colors */
  --text-main: #0f172a;       /* Dark charcoal / navy */
  --text-muted: #475569;      /* Slate grey */
  --text-light: #64748b;      /* Light slate */
  
  /* Brand & Accents */
  --navy-primary: #1e3a8a;    /* Deep professional navy */
  --blue-accent: #2563eb;     /* Royal blue */
  --blue-hover: #1d4ed8;      /* Hover state */
  --blue-light: #eff6ff;      /* Very soft blue tint */
  --blue-border: #dbeafe;     /* Subtle blue border */
  --green-whatsapp: #16a34a;  /* WhatsApp green accent */
  --green-whatsapp-hover: #15803d;
  
  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-focus: #93c5fd;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(30, 58, 138, 0.1), 0 8px 10px -6px rgba(30, 58, 138, 0.04);
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1140px;
  --header-height: 72px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Strict Box Sizing & Anti-Horizontal Scroll */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body.no-scroll {
  overflow: hidden !important;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

ul, ol {
  list-style: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  touch-action: manipulation;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Responsive Fluid Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--blue-light);
  color: var(--navy-primary);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.text-center {
  text-align: center;
}

.center-block {
  margin-left: auto;
  margin-right: auto;
}

/* Touch-Friendly Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background-color: var(--navy-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--blue-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--navy-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--navy-primary);
  background-color: var(--blue-light);
  color: var(--navy-primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--green-whatsapp);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover, .btn-whatsapp:focus-visible {
  background-color: var(--green-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  min-height: 38px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  min-height: 50px;
  font-size: 1.025rem;
}

/* Header & Sticky Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-primary);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo-badge {
  background-color: var(--navy-primary);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--navy-primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  border: none;
  background: none;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.lang-btn.active {
  background-color: #ffffff;
  color: var(--navy-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-toggle:hover {
  background-color: var(--bg-tertiary);
}

/* Mobile Nav Backdrop */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Sections Base */
section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

section:nth-child(even) {
  background-color: var(--bg-secondary);
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-relocation {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.hero-badge-relocation i {
  color: #10b981;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--navy-primary);
  margin-bottom: 1.35rem;
  line-height: 1.4;
}

.hero-bio {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-contacts-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.quick-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  word-break: break-word;
}

.quick-contact-item:hover {
  color: var(--navy-primary);
}

.quick-contact-item i {
  color: var(--navy-primary);
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* Profile Photo Card */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background-color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.profile-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.profile-img-container {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: var(--bg-tertiary);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-status-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  max-width: 90%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Quick Stats Bar */
.stats-banner {
  background-color: var(--navy-primary);
  color: #ffffff;
  padding: 2rem 0;
  border-bottom: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 0.5rem;
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.stat-label {
  font-size: 0.875rem;
  color: #93c5fd;
  font-weight: 500;
}

/* About / Profile Dual Language */
.about-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 1rem;
}

.language-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn.active {
  background-color: var(--blue-light);
  color: var(--navy-primary);
}

.about-text-content {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.8;
  color: var(--text-main);
}

/* Looking for New Opportunities (Job Preferences) */
.job-pref-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 1rem;
}

.pref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}

.pref-badge {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pref-badge:hover {
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pref-badge i {
  color: var(--blue-accent);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.availability-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.check-item i {
  color: #16a34a;
  background-color: #dcfce7;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Why Hire Me? Cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.why-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-primary), var(--blue-accent));
  opacity: 0;
  transition: var(--transition);
}

.why-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: var(--blue-border);
}

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

.why-icon {
  width: 52px;
  height: 52px;
  background-color: var(--blue-light);
  color: var(--navy-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Experience Section Timeline */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 58px;
  height: 58px;
  background-color: #ffffff;
  border: 2px solid var(--navy-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-primary);
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.timeline-content {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-border);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.job-title {
  font-size: 1.25rem;
  color: var(--text-main);
}

.company-name {
  color: var(--navy-primary);
  font-weight: 600;
  font-size: 0.975rem;
}

.job-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-tertiary);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
}

.resp-list {
  margin-top: 1rem;
}

.resp-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.resp-list li::before {
  content: '•';
  position: absolute;
  left: 0.4rem;
  color: var(--blue-accent);
  font-size: 1.2rem;
  line-height: 1;
}

/* Skills & Personal Qualities */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.skills-column-title {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
}

.skill-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-size: 0.925rem;
}

.skill-card:hover {
  border-color: var(--navy-primary);
  transform: translateX(4px);
}

.skill-icon {
  width: 36px;
  height: 36px;
  background-color: var(--blue-light);
  color: var(--navy-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.qualities-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quality-tag {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.quality-tag:hover {
  background-color: var(--blue-light);
  border-color: var(--blue-border);
  color: var(--navy-primary);
}

.quality-tag i {
  color: var(--blue-accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Education, Certificates & Languages Grid */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.cred-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cred-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-border);
}

.cred-icon {
  width: 48px;
  height: 48px;
  background-color: var(--blue-light);
  color: var(--navy-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.lang-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-color);
  gap: 0.5rem;
}

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

.lang-name {
  font-weight: 600;
  color: var(--text-main);
}

.lang-level {
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background-color: var(--blue-light);
  color: var(--navy-primary);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Relocation Banner Section */
.relocation-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin: 1rem 0;
}

.relocation-banner h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

.relocation-banner p {
  color: #cbd5e1;
  font-size: clamp(0.975rem, 2vw, 1.15rem);
  max-width: 760px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
}

/* Documents Section */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.doc-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.doc-card:hover {
  border-color: var(--navy-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.doc-icon {
  width: 50px;
  height: 50px;
  background-color: var(--blue-light);
  color: var(--navy-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.doc-info {
  flex-grow: 1;
}

.doc-title {
  font-weight: 700;
  font-size: 1.025rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.doc-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card-info, .contact-form-container {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.contact-detail-item:hover {
  transform: translateX(4px);
}

.contact-detail-item:last-child {
  margin-bottom: 0;
}

.contact-detail-icon {
  width: 46px;
  height: 46px;
  background-color: var(--blue-light);
  color: var(--navy-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-detail-val {
  font-size: clamp(0.975rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

/* 16px font-size prevents iOS Safari input auto-zoom */
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: #0f172a;
  color: #ffffff;
  padding: 3.5rem 0 2rem 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid #334155;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #64748b;
  font-size: 0.85rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 90vw;
}

.toast {
  background-color: var(--navy-primary);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: var(--bg-tertiary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (BREAKPOINTS)
   ========================================================================== */

/* Laptop / Large Screens (max-width: 1200px) */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 2.5rem;
  }
}

/* Tablet Landscape / Medium Screen (max-width: 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .hero-badge-relocation {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas, .hero-contacts-quick {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .why-grid, .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Tablet Portrait & Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header-actions .btn {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  /* Mobile Slide Navigation Drawer */
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .why-grid, .credentials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top, .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Mobile Portrait (max-width: 576px) */
@media (max-width: 576px) {
  section {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 1.2rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .relocation-banner {
    padding: 2rem 1.25rem;
    margin: 1.5rem 0;
  }

  .relocation-banner h2 {
    font-size: 1.45rem;
  }

  .relocation-banner p {
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .relocation-banner .btn {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    box-sizing: border-box;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-item {
    padding: 0.35rem;
  }

  /* Compact Mobile Experience Timeline */
  .timeline::before {
    left: 14px;
  }

  .timeline-item {
    padding-left: 42px;
    margin-bottom: 1.75rem;
  }

  .timeline-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    left: 0;
    border-width: 2px;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  .timeline-header {
    flex-direction: column;
    gap: 0.4rem;
  }

  .job-date {
    align-self: flex-start;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-card-info > div:last-child {
    flex-direction: column;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 16px;
    max-width: none;
  }

  .toast {
    width: 100%;
    justify-content: center;
  }
}

/* Target Roles 3 Category Grid */
.target-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.target-group-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.target-group-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-border);
  transform: translateY(-3px);
}

.target-group-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--blue-light);
}

.target-group-icon {
  width: 44px;
  height: 44px;
  background-color: var(--blue-light);
  color: var(--navy-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.target-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.target-role-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.target-role-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-secondary);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.target-role-item i {
  color: var(--blue-accent);
  font-size: 0.85rem;
}

/* Relocation & Work Authorization Card */
.relocation-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-md);
  margin-top: 1.75rem;
}

.relocation-status-box {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.relocation-status-icon {
  width: 48px;
  height: 48px;
  background-color: var(--navy-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.relocation-status-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.45;
}

.relocation-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.relocation-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: #ffffff;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.relocation-check-item i {
  color: #16a34a;
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Dual Download Button Container */
.dual-download-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Relocation Banner Section */
.relocation-banner {
  background: linear-gradient(135deg, var(--navy-primary) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 2.75rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.relocation-banner h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
  line-height: 1.3;
}

.relocation-banner p {
  color: #e2e8f0;
  max-width: 780px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.7;
  font-size: 1rem;
}

.relocation-banner .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  word-wrap: break-word;
  word-break: break-word;
}

/* Small Mobile Screen (max-width: 380px) */
@media (max-width: 380px) {
  .logo span {
    font-size: 1rem;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .doc-card {
    flex-direction: column;
    text-align: center;
  }

  .doc-card .btn {
    width: 100%;
  }

  .relocation-banner {
    padding: 1.75rem 1rem;
  }

  .relocation-banner .btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.8rem 0.75rem;
  }
}
