/**
 * Project overrides for Tudorița Cara.
 * Keeps the Craftivo structure while adapting tone, contrast and page behavior.
 */

:root {
  --accent-color: #ff5a5f;
  --accent-soft: rgba(255, 90, 95, 0.15);
  --surface-color: #202020;
}

.hero::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.5));
}

.hero h1,
.hero h2,
.hero p {
  color: #ffffff;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
}

.hero-kicker {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-family: var(--nav-font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
  padding: 9px 18px;
  text-transform: uppercase;
}

.hero .social-links a {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.1);
}

.inner-page .header,
.page-404 .header {
  --background-color: rgba(20, 20, 20, 0.96);
}

.page-title {
  padding-top: 110px;
}

.section-title p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.profile-card,
.content-wrapper,
.service-item,
.exp-card,
.education-timeline,
.info-item,
.contact-preview-form,
.error-box {
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.28);
}

.profile-card,
.content-wrapper,
.service-item,
.exp-card,
.education-timeline,
.info-item,
.contact-preview-form {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-card .rating i {
  color: var(--accent-color);
}

.service-item p,
.exp-card .description,
.timeline-content .description,
.bio-section p,
.info-item p,
.form-note {
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.details-grid .detail-item strong {
  color: var(--heading-color);
}

.home-about-copy .bio-section {
  margin-bottom: 50px;
}

.home-about-copy .bio-section .section-tag,
.home-about-copy .skills-showcase .section-tag {
  background: var(--accent-soft);
  border-radius: 20px;
  color: var(--accent-color);
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding: 6px 16px;
  text-transform: uppercase;
}

.home-about-copy .bio-section h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.home-about-copy .bio-section p {
  font-size: 16px;
  line-height: 1.8;
}

.home-about-copy .details-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 50px;
}

.home-about-copy .details-grid .detail-item {
  align-items: center;
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  display: flex;
  gap: 15px;
  padding: 22px;
  transition: 0.3s;
}

.home-about-copy .details-grid .detail-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.home-about-copy .details-grid .detail-item i {
  color: var(--accent-color);
  font-size: 28px;
}

.home-about-copy .details-grid .detail-item .detail-content span {
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  display: block;
  font-size: 13px;
  text-transform: uppercase;
}

.home-about-copy .details-grid .detail-item .detail-content strong {
  color: var(--heading-color);
  display: block;
  font-size: 16px;
}

.home-about-copy .skills-showcase h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.home-about-copy .skills-showcase .skills-list .skill-item {
  margin-bottom: 28px;
}

.home-about-copy .skills-showcase .skills-list .skill-item .skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.home-about-copy .skills-showcase .skills-list .skill-item .skill-name {
  font-size: 15px;
  font-weight: 600;
}

.home-about-copy .skills-showcase .skills-list .skill-item .skill-percent {
  color: var(--accent-color);
  font-size: 15px;
  font-weight: 700;
}

.home-about-copy .skills-showcase .skills-list .skill-item .progress {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 10px;
  height: 10px;
}

.home-about-copy .skills-showcase .skills-list .skill-item .progress .progress-bar {
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #ffffff 20%));
  border-radius: 10px;
  height: 100%;
  position: relative;
  width: 0;
}

.story-section .section-header {
  margin-bottom: 40px;
}

.story-timeline {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.story-timeline .timeline-track {
  max-width: 940px;
  margin: 0 auto;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card {
  padding: 34px;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card h4 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-bottom: 10px;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card .institution {
  color: var(--accent-color);
  font-family: var(--nav-font);
  font-weight: 700;
  margin-bottom: 18px;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card .description {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 22px;
}

.story-mini-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
  padding-left: 28px;
  position: relative;
}

.story-mini-timeline::before {
  background: linear-gradient(180deg, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 60%));
  bottom: 10px;
  content: "";
  left: 7px;
  position: absolute;
  top: 10px;
  width: 2px;
}

.story-mini-item {
  display: block;
  padding: 0 0 22px;
  position: relative;
}

.story-mini-item:last-child {
  padding-bottom: 0;
}

.story-mini-item::before {
  background: var(--accent-color);
  border: 3px solid var(--surface-color);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 80%);
  content: "";
  height: 16px;
  left: -28px;
  position: absolute;
  top: 4px;
  width: 16px;
}

.story-mini-item span {
  background: color-mix(in srgb, var(--accent-color), transparent 86%);
  border-radius: 999px;
  color: var(--accent-color);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: flex-start;
  margin-bottom: 8px;
  padding: 6px 10px;
  text-align: left;
  white-space: nowrap;
}

.story-mini-item strong {
  color: var(--heading-color);
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 6px;
}

.story-mini-item p {
  color: color-mix(in srgb, var(--default-color), transparent 22%);
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 0;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card .story-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card .story-card-tags span {
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 78%);
  border-radius: 999px;
  color: var(--accent-color);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 7px 13px;
}

.contact-preview-form {
  background: var(--surface-color);
  border-radius: 18px;
  padding: 30px;
}

.contact .php-email-form .form-control:-webkit-autofill,
.contact .php-email-form .form-control:-webkit-autofill:hover,
.contact .php-email-form .form-control:-webkit-autofill:focus,
.contact .php-email-form textarea.form-control:-webkit-autofill,
.contact .php-email-form textarea.form-control:-webkit-autofill:hover,
.contact .php-email-form textarea.form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-color) inset;
  -webkit-text-fill-color: var(--default-color);
  caret-color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  transition: background-color 9999s ease-in-out 0s;
}

.contact .php-email-form .form-control:-webkit-autofill:focus,
.contact .php-email-form textarea.form-control:-webkit-autofill:focus {
  border-color: var(--accent-color);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-color) inset, 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 80%);
}

.contact-preview-form .form-control:disabled {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

.contact-preview-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.contact-social-links {
  display: flex;
  gap: 10px;
}

.contact-social-links a {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.compact-section {
  padding: 0;
}

.scroll-top {
  right: 24px;
  bottom: 24px;
}

.credits {
  font-size: 13px;
}

.header .logo .site-logo {
  border-radius: 12px;
  height: 38px;
  margin-right: 10px;
  width: 38px;
}

.footer .logo .footer-logo {
  border-radius: 12px;
  height: 42px;
  margin-right: 10px;
  width: 42px;
}

.footer .social-links a.website-social-link img {
  border-radius: 50%;
  height: 22px;
  object-fit: cover;
  width: 22px;
}

.navmenu a.dashboard-nav-link {
  color: var(--accent-color);
  font-weight: 800;
}

.navmenu a.dashboard-nav-link:hover,
.navmenu a.dashboard-nav-link.active {
  color: color-mix(in srgb, var(--accent-color), white 18%);
}

.auth-section {
  align-items: center;
  display: flex;
  min-height: 70vh;
}

.auth-card {
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.28);
  padding: 34px;
}

.auth-card-header {
  margin-bottom: 26px;
}

.auth-card-header h2 {
  font-size: 30px;
  margin: 12px 0;
}

.auth-card-header p,
.auth-form .form-label {
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.auth-form .form-control {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  color: var(--default-color);
  min-height: 50px;
}

.auth-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 80%);
}

.auth-form .form-control:-webkit-autofill,
.auth-form .form-control:-webkit-autofill:hover,
.auth-form .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-color) inset;
  -webkit-text-fill-color: var(--default-color);
  caret-color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  transition: background-color 9999s ease-in-out 0s;
}

.auth-submit {
  background: var(--accent-color);
  border: 0;
  border-radius: 50px;
  color: var(--contrast-color);
  font-weight: 700;
  padding: 13px 32px;
  transition: 0.3s;
  width: 100%;
}

.auth-submit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  transform: translateY(-2px);
}

.auth-logged-in {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px;
}

.auth-logged-in i {
  color: var(--accent-color);
  font-size: 28px;
}

.auth-logged-in p {
  margin: 0;
}

.dashboard-sidebar,
.dashboard-panel {
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.22);
  padding: 28px;
}

.dashboard-user {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), black 25%));
  border-radius: 50%;
  color: var(--contrast-color);
  display: inline-flex;
  font-weight: 800;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.dashboard-user h3 {
  font-size: 19px;
  margin: 0 0 4px;
}

.dashboard-user p,
.dashboard-note,
.dashboard-heading p,
.dashboard-form .form-label {
  color: color-mix(in srgb, var(--default-color), transparent 18%);
}

.dashboard-user p,
.dashboard-note {
  margin: 0;
}

.dashboard-logout-form {
  margin-top: 22px;
}

.dashboard-logout-form button {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 55%);
  border-radius: 50px;
  color: var(--accent-color);
  font-weight: 700;
  padding: 11px 20px;
  transition: 0.3s;
  width: 100%;
}

.dashboard-logout-form button:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.dashboard-tabs {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.dashboard-tabs button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--default-color);
  font-weight: 700;
  padding: 13px 16px;
  text-align: left;
  transition: 0.3s;
}

.dashboard-tabs button:hover,
.dashboard-tabs button.active {
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  color: var(--accent-color);
}

.dashboard-heading {
  margin-bottom: 24px;
}

.dashboard-heading h2 {
  font-size: 32px;
  margin: 12px 0;
}

.dashboard-tab-content {
  display: none;
}

.dashboard-tab-content.active {
  display: block;
}

.dashboard-tab-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.dashboard-form .form-control {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  color: var(--default-color);
  min-height: 50px;
}

.dashboard-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 80%);
}

.dashboard-form .form-control:-webkit-autofill,
.dashboard-form .form-control:-webkit-autofill:hover,
.dashboard-form .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-color) inset;
  -webkit-text-fill-color: var(--default-color);
  caret-color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  transition: background-color 9999s ease-in-out 0s;
}

.dashboard-submit {
  background: var(--accent-color);
  border: 0;
  border-radius: 50px;
  color: var(--contrast-color);
  font-weight: 700;
  padding: 13px 30px;
  transition: 0.3s;
}

.dashboard-submit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .header .btn-getstarted {
    display: none;
  }

  .footer .footer-about .logo {
    justify-content: center;
  }

  .footer .footer-about .social-links {
    justify-content: center;
  }

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

  .story-mini-timeline {
    padding-left: 26px;
  }

  .story-mini-item::before {
    left: -26px;
  }

  .page-title {
    padding-top: 96px;
  }

  .home-about-copy .bio-section h2 {
    font-size: 30px;
  }

  .home-about-copy .details-grid {
    grid-template-columns: 1fr;
  }
}
