/* AsoolSoft — Founder profile page
   Uses site base-color utilities (.base-bg, .base-color) where possible.
*/

.founder-page {
  --fp-text: #1c2434;
  --fp-muted: #5d6472;
  --fp-line: #e6e8ee;
  --fp-surface: #f7f8fa;
  --fp-radius: 6px;
  --fp-accent: #25d06f;
  color: var(--fp-text);
}

.founder-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.founder-page .fp-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.founder-page .fp-section {
  padding: 88px 0;
}

.founder-page .fp-section--alt {
  background: var(--fp-surface);
}

.founder-page .fp-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.founder-page .fp-heading {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.founder-page .fp-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fp-muted);
  margin: 0;
  max-width: 720px;
}

/* Hero */
.founder-hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.founder-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(37, 208, 111, 0.08), transparent 60%),
    linear-gradient(180deg, #f7f8fa 0%, #fff 55%);
  pointer-events: none;
  z-index: 0;
}

.founder-hero .fp-container {
  position: relative;
  z-index: 1;
}

.founder-hero__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.founder-hero__portrait {
  margin: 0;
  border-radius: var(--fp-radius);
  overflow: hidden;
  background: #eef1f6;
  aspect-ratio: 4 / 5;
  box-shadow: none;
  border: 1px solid var(--fp-line);
}

.founder-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-hero__name {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.founder-hero__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}

.founder-hero__summary {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fp-muted);
  margin: 0 0 28px;
  max-width: 560px;
}

.founder-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--fp-radius);
  text-decoration: none !important;
  transition: 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.fp-btn--primary {
  color: #fff !important;
}

.fp-btn--primary:hover {
  filter: brightness(0.95);
  color: #fff !important;
}

.fp-btn--ghost {
  background: #fff;
  color: var(--fp-text) !important;
  border-color: var(--fp-line);
}

.fp-btn--ghost:hover {
  border-color: currentColor;
}

.founder-hero__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.founder-hero__social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fp-line);
  border-radius: 50%;
  color: var(--fp-text);
  background: #fff;
  transition: 0.25s ease;
}

.founder-hero__social a:hover,
.founder-hero__social a:focus {
  color: #fff;
  outline: none;
}

/* About */
.founder-about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.founder-about__text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fp-muted);
  margin: 0 0 16px;
}

.founder-about__list {
  list-style: none;
  padding: 24px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
}

.founder-about__list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--fp-line);
}

.founder-about__list li:last-child {
  border-bottom: 0;
}

.founder-about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

/* Skills */
.founder-skills__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.founder-skill-card {
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  padding: 24px;
}

.founder-skill-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}

.founder-skill-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.founder-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--fp-surface);
  color: var(--fp-text);
  border: 1px solid var(--fp-line);
}

/* Timeline */
.founder-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 760px;
}

.founder-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--fp-line);
}

.founder-timeline__item {
  position: relative;
  padding: 0 0 28px 48px;
}

.founder-timeline__item:last-child {
  padding-bottom: 0;
}

.founder-timeline__dot {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--fp-line);
}

.founder-timeline__role {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.founder-timeline__period {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.founder-timeline__desc {
  margin: 0;
  color: var(--fp-muted);
  line-height: 1.7;
  font-size: 15px;
}

/* Projects */
.founder-projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.founder-project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  overflow: hidden;
  height: 100%;
  transition: border-color 0.25s ease;
}

.founder-project-card:hover {
  border-color: #cfd5e0;
}

.founder-project-card__media {
  background: #eef1f6;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--fp-line);
}

.founder-project-card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.founder-project-card__placeholder {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #9aa3b5;
}

.founder-project-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.founder-project-card__body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

.founder-project-card__body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fp-muted);
  margin: 0 0 16px;
  flex: 1;
}

.founder-project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.founder-project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.founder-project-card__links a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.founder-project-card__links a:hover,
.founder-project-card__links a:focus {
  text-decoration: underline !important;
}

/* Technologies */
.founder-tech__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.founder-tech__item {
  min-width: 120px;
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
}

/* Achievements */
.founder-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.founder-stat {
  text-align: center;
  padding: 28px 12px;
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
}

.founder-stat__value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.founder-stat__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fp-muted);
}

/* Contact */
.founder-contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.founder-contact__form {
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  padding: 28px;
}

.founder-contact__form .form-element {
  margin-bottom: 14px;
}

.founder-contact__form input,
.founder-contact__form textarea {
  width: 100%;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  padding: 12px 14px;
  font-size: 14px;
  background: #fff;
  color: var(--fp-text);
}

.founder-contact__form input:focus,
.founder-contact__form textarea:focus {
  outline: 2px solid rgba(37, 208, 111, 0.35);
  outline-offset: 1px;
}

.founder-contact__form textarea {
  min-height: 140px;
  resize: vertical;
}

.founder-contact__alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--fp-radius);
  font-size: 14px;
  font-weight: 600;
}

.founder-contact__alert--success {
  background: #e8f8ef;
  color: #146c3a;
}

.founder-contact__alert--error {
  background: #fdebec;
  color: #842029;
}

/* RTL */
[dir="rtl"] .founder-about__list li {
  padding: 10px 28px 10px 0;
}

[dir="rtl"] .founder-about__list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .founder-timeline::before {
  left: auto;
  right: 11px;
}

[dir="rtl"] .founder-timeline__item {
  padding: 0 48px 28px 0;
}

[dir="rtl"] .founder-timeline__dot {
  left: auto;
  right: 4px;
}

/* Responsive */
@media (max-width: 991px) {
  .founder-hero__grid,
  .founder-about__grid,
  .founder-contact__grid {
    grid-template-columns: 1fr;
  }

  .founder-hero__portrait {
    max-width: 280px;
    margin: 0 auto;
  }

  .founder-hero__name {
    font-size: 36px;
    text-align: center;
  }

  .founder-hero__title,
  .founder-hero__summary {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .founder-hero__actions,
  .founder-hero__social {
    justify-content: center;
  }

  .founder-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .founder-page .fp-section {
    padding: 64px 0;
  }
}

@media (max-width: 767px) {
  .founder-skills__grid,
  .founder-projects__grid {
    grid-template-columns: 1fr;
  }

  .founder-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder-hero__name {
    font-size: 30px;
  }

  .founder-page .fp-heading {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-btn,
  .founder-hero__social a,
  .founder-project-card {
    transition: none;
  }
}
