/* Premium landing refinements built on the existing Bootstrap/theme styles. */
:root {
  --accent: #e84545;
  --ink: #2d3033;
  --muted: #6c7279;
  --navy: #292c47;
  --navy-soft: #3a3e64;
  --surface: #f6f7f9;
  --line: #e8ecee;
}

.skip-link {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  left: 20px;
  padding: 10px 14px;
  position: fixed;
  top: -60px;
  z-index: 100000;
}

.skip-link:focus {
  color: #fff;
  top: 20px;
}

.profile-banner {
  min-height: 720px;
  overflow: hidden;
  position: relative;
}

.profile-banner:before {
  background:
    linear-gradient(90deg, rgba(22, 25, 43, 0.9) 0%, rgba(41, 44, 71, 0.72) 48%, rgba(41, 44, 71, 0.38) 100%);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.profile-banner:after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  content: "";
  height: 360px;
  position: absolute;
  right: -120px;
  top: 190px;
  transform: rotate(18deg);
  width: 360px;
}

.profile-banner .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  padding-top: 150px;
}

.profile-hero {
  max-width: 920px;
  padding-top: 0;
  text-align: left;
}

.profile-kicker,
.section-label {
  color: #fff;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.profile-kicker {
  background-color: rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
}

.section-label {
  color: var(--accent);
  display: block;
}

.profile-hero h1 {
  color: #fff;
  font-size: 58px;
  line-height: 1.1;
  margin: 0 0 26px;
  max-width: 980px;
  text-transform: none;
}

.profile-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 23px;
  line-height: 1.45;
  margin: 0 0 36px;
  max-width: 760px;
}

.profile-actions .btn,
.final-actions .btn {
  box-shadow: 0 12px 28px rgba(232, 69, 69, 0.22);
  margin: 0 12px 12px 0;
  transition: box-shadow 0.3s, transform 0.3s, background-color 0.3s, color 0.3s;
}

.profile-actions .btn:hover,
.final-actions .btn:hover {
  box-shadow: 0 16px 34px rgba(232, 69, 69, 0.28);
  transform: translateY(-2px);
}

.profile-btn-secondary {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: none !important;
  padding-bottom: 13px;
  padding-top: 13px;
}

.profile-btn-secondary:hover,
.profile-btn-secondary:focus {
  background-color: #fff;
  color: var(--navy);
}

.hero-panel {
  animation: premiumFadeUp 0.7s ease both;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  margin-top: 30px;
  padding: 28px;
}

.hero-panel-line {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  padding: 0 0 22px;
  margin-bottom: 22px;
}

.hero-panel-line:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero-panel-line span {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-panel-line strong {
  color: #fff;
  display: block;
  font-size: 18px;
  line-height: 26px;
}

.profile-intro,
.profile-experience,
.technologies-section {
  background-color: #fff;
}

.profile-intro h2,
.profile-intro h3,
.profile-experience h2,
.profile-services h2,
.method-section h2,
.intervention-section h2,
.technologies-section h2,
.profile-final-cta h2 {
  margin-top: 0;
}

.profile-bio-row {
  align-items: center;
  display: flex;
}

.profile-photo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(41, 44, 71, 0.08);
  padding: 30px;
  text-align: center;
}

.profile-photo-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(41, 44, 71, 0.98), rgba(58, 62, 100, 0.9));
  border-radius: 12px;
  display: flex;
  height: 260px;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.profile-photo-placeholder:after {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  height: 180px;
  position: absolute;
  width: 180px;
}

.profile-photo-placeholder span {
  color: #fff;
  font-size: 54px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.profile-lead {
  color: var(--ink);
  font-size: 22px;
  line-height: 34px;
  margin-bottom: 22px;
}

.profile-proof-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.profile-proof-grid div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.profile-proof-grid strong {
  color: var(--accent);
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.profile-proof-grid span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.section-copy {
  font-size: 16px;
  line-height: 27px;
  margin: 0 auto;
  max-width: 780px;
}

.section-copy-light {
  color: rgba(255, 255, 255, 0.72);
}

.profile-services,
.intervention-section,
.profile-final-cta {
  background-color: var(--surface);
}

.profile-card-row {
  margin-top: 50px;
}

.profile-card {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(41, 44, 71, 0.05);
  min-height: 300px;
  margin-bottom: 30px;
  padding: 32px 24px;
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.profile-card:hover {
  border-color: rgba(232, 69, 69, 0.45);
  box-shadow: 0 20px 44px rgba(41, 44, 71, 0.12);
  transform: translateY(-5px);
}

.profile-card .icon,
.approach-item .icon {
  color: var(--accent);
  display: block;
  font-size: 44px;
  margin-bottom: 22px;
}

.profile-card h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
  margin: 0 0 14px;
}

.profile-card p {
  margin-bottom: 0;
}

.intervention-grid,
.technology-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 44px;
}

.intervention-grid span,
.technology-grid span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(41, 44, 71, 0.04);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.intervention-grid span:hover,
.technology-grid span:hover {
  border-color: rgba(232, 69, 69, 0.5);
  color: var(--accent);
  transform: translateY(-3px);
}

.method-section {
  background-color: var(--navy-soft);
}

.method-section h2,
.method-section h3,
.method-section p {
  color: #fff;
}

.method-timeline {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 50px;
}

.method-timeline article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  min-height: 230px;
  padding: 24px;
  position: relative;
  transition: background-color 0.3s, transform 0.3s;
}

.method-timeline article:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.method-number {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  margin-bottom: 20px;
  width: 38px;
}

.method-timeline h3 {
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 12px;
}

.method-timeline p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.technology-grid {
  grid-template-columns: repeat(6, 1fr);
}

.experience-panel {
  border-left: 3px solid var(--accent);
  margin-bottom: 28px;
  padding-left: 24px;
}

.experience-panel h3 {
  font-size: 20px;
  margin-top: 0;
}

.linkedin-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  text-transform: uppercase;
}

.linkedin-link i,
.final-linkedin i {
  margin-right: 8px;
}

.linkedin-link:hover,
.linkedin-link:focus {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.profile-final-cta h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 920px;
}

.profile-final-cta p {
  font-size: 17px;
  line-height: 29px;
  margin: 24px auto 30px;
  max-width: none;
  white-space: nowrap;
}

.profile-final-cta .profile-btn-secondary {
  border-color: var(--navy);
  color: var(--navy);
}

.profile-final-cta .profile-btn-secondary:hover,
.profile-final-cta .profile-btn-secondary:focus {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.profile-final-cta .final-linkedin i {
  color: #0a66c2;
}

.profile-final-cta .final-linkedin:hover i,
.profile-final-cta .final-linkedin:focus i {
  color: #fff;
}

.contact-result {
  color: var(--ink);
  font-size: 15px;
  line-height: 24px;
  margin: 22px auto 0;
  max-width: 620px;
  min-height: 24px;
}

.contact-visible {
  color: var(--ink);
  font-size: 15px;
  margin: 18px auto 0;
}

.contact-visible strong {
  color: var(--accent);
}

.contact-result a {
  font-weight: 700;
}

.generated-mail-link {
  color: var(--accent);
  font-weight: 700;
}

@keyframes premiumFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-hero,
.profile-card,
.profile-photo-card,
.method-timeline article {
  animation: premiumFadeUp 0.6s ease both;
}

@media screen and (max-width: 1199px) {
  .navigation a {
    margin-left: 24px;
  }

  .profile-hero h1 {
    font-size: 50px;
  }

  .technology-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 991px) {
  .profile-banner {
    min-height: 680px;
  }

  .hero-grid {
    padding-top: 145px;
  }

  .profile-hero h1 {
    font-size: 44px;
  }

  .profile-bio-row {
    display: block;
  }

  .profile-photo-card {
    margin-bottom: 34px;
  }

  .profile-card {
    min-height: 278px;
  }

  .intervention-grid,
  .method-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .technology-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .profile-banner {
    min-height: 720px;
  }

  .hero-grid {
    padding-top: 145px;
  }

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

  .profile-hero h1 {
    font-size: 34px;
    line-height: 42px;
  }

  .profile-hero p,
  .profile-lead,
  .profile-final-cta p {
    font-size: 18px;
    line-height: 29px;
    white-space: normal;
  }

  .profile-actions .btn,
  .final-actions .btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 310px;
  }

  .profile-proof-grid,
  .intervention-grid,
  .method-timeline,
  .technology-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    min-height: 0;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .profile-hero h1 {
    font-size: 30px;
    line-height: 38px;
  }

  .profile-photo-placeholder {
    height: 220px;
  }
}
