:root {
  --bg: #f6f3ef;
  --surface: #ffffff;
  --surface-soft: #efebe5;
  --text: #161616;
  --muted: #6c6c72;
  --line: rgba(22, 22, 22, 0.08);
  --accent: #ff7a2f;
  --accent-dark: #e56418;
  --dark: #101114;
  --shadow-lg: 0 30px 80px rgba(17, 17, 17, 0.12);
  --shadow-md: 0 20px 45px rgba(17, 17, 17, 0.08);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.section-space {
  padding: 110px 0;
}

.section-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 1.75rem;
}

.section-heading h2,
#about h2,
.contact-box h2 {
  max-width: 720px;
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.12;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: 16px;
}

.navbar {
  background: rgba(246, 243, 239, 0.84);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.06);
  padding: 0.9rem 1.2rem;
}

.navbar-brand {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem !important;
  transition: color 0.25s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--text);
}

.btn-accent {
  background: var(--accent);
  border: 0;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(255, 122, 47, 0.25);
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--accent-dark);
  color: #fff;
}

.hero {
  padding-top: 70px;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.hero-title span {
  color: var(--accent);
}

.hero-text,
.lead-copy,
.project-content p,
.feature-card p,
.testimonial-card p,
.contact-box p,
.blog-body small,
.site-footer,
.metric p {
  color: var(--muted);
}

.hero-text {
  max-width: 560px;
  font-size: 1.05rem;
}

.hero-metrics {
  max-width: 520px;
}

.metric {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.metric h3 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 800;
}

.metric p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.hero-card-main {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #ded6cc, #b8b5b0);
  box-shadow: var(--shadow-lg);
  min-height: 520px;
}

.hero-card-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-badge,
.floating-panel {
  position: absolute;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.floating-badge {
  left: -10px;
  bottom: 68px;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.floating-panel {
  right: -15px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  max-width: 250px;
}

.floating-panel p {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.floating-panel strong {
  display: block;
  line-height: 1.4;
}

.feature-card,
.project-card,
.testimonial-card,
.blog-card {
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, 0.04);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.feature-card {
  padding: 2rem 1.7rem;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease,
    color 0.28s ease;
}

.feature-card:hover,
.project-card:hover,
.blog-card:hover {
  transform: translateY(-6px);
}

.feature-card-dark,
.testimonial-card-dark {
  background: var(--dark);
  color: #fff;
}

.feature-card-dark p,
.testimonial-card-dark p,
.testimonial-card-dark span {
  color: rgba(255, 255, 255, 0.7);
}

.feature-card p,
.feature-card h3,
.feature-card .icon-wrap {
  transition: color 0.28s ease, background-color 0.28s ease;
}

.feature-card-dark .icon-wrap {
  background: rgba(255, 122, 47, 0.16);
}

.icon-wrap {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 122, 47, 0.12);
  color: var(--accent);
  border-radius: 16px;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.feature-card h3,
.project-content h3,
.blog-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.text-link {
  color: var(--text);
  font-weight: 700;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.project-card {
  overflow: hidden;
}

.project-card-lg .project-thumb {
  min-height: 360px;
}

.project-thumb {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: linear-gradient(135deg, #d6d1ca, #c0bbb3);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(10, 12, 18, 0.12);
  opacity: 0;
  transition: opacity 0.35s ease, background-color 0.35s ease;
}

.project-demo-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 122, 47, 0.3);
  transform: translateY(-8px);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-demo-btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.project-thumb-actions {
  display: flex;
  gap: 1rem;
}

.project-thumb-action {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.35rem;
  backdrop-filter: blur(8px);
  transform: translateY(10px);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.project-thumb-action:hover {
  background: rgba(255, 122, 47, 0.9);
  border-color: rgba(255, 122, 47, 1);
  color: #fff;
}

.project-card:hover .project-thumb img {
  opacity: 0.45;
  transform: scale(1.04);
}

.project-card:hover .project-thumb-overlay {
  opacity: 1;
  background: rgba(10, 12, 18, 0.36);
}

.project-card:hover .project-demo-btn,
.project-card:hover .project-thumb-action {
  transform: translateY(0);
}

.project-content {
  padding: 1.6rem;
}

.project-subtitle {
  margin: -0.2rem 0 0.8rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (min-width: 992px) {
  .work-grid {
    --bs-gutter-x: 80px;
  }
}

.project-tag {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 122, 47, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tags span {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.testimonial-card {
  padding: 1.8rem;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease,
    color 0.28s ease;
}

.testimonial-card p,
.testimonial-card h4,
.testimonial-card strong,
.testimonial-card span,
.testimonial-card .stars {
  transition: color 0.28s ease, background-color 0.28s ease;
}

.stars {
  margin-bottom: 1rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.testimonial-card strong {
  display: block;
  margin-top: 1.1rem;
}

.testimonial-card-dark strong,
.testimonial-card-dark h4 {
  color: #fff;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.skills-intro {
  max-width: 780px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.skill-group-card {
  height: 100%;
  padding: 2rem 1.7rem;
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, 0.04);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease,
    color 0.28s ease;
}

.skill-group-card-dark {
  background: var(--dark);
  color: #fff;
}

.skill-group-card-dark .skill-group-copy,
.skill-group-card-dark .skill-meter-item p,
.skill-group-card-dark .skill-meter-head span {
  color: rgba(255, 255, 255, 0.72);
}

.skill-group-card-dark .skill-meter-head strong,
.skill-group-card-dark h3 {
  color: #fff;
}

.skill-group-card:hover {
  transform: translateY(-6px);
}

.skill-group-card h3,
.skill-group-copy,
.skill-group-kicker,
.skill-group-icon,
.skill-meter-head strong,
.skill-meter-head span,
.skill-meter-item p,
.skill-meter {
  transition:
    color 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.skill-group-card-dark .skill-group-icon {
  background: rgba(255, 122, 47, 0.16);
}

.skill-group-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  border-radius: 18px;
  background: rgba(255, 122, 47, 0.12);
  color: var(--accent);
  font-size: 1.45rem;
}

.skill-group-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-group-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.skill-group-copy {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.skill-meter-item {
  margin-bottom: 1.25rem;
}

.skill-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.skill-meter-head strong {
  font-size: 0.98rem;
  line-height: 1.4;
}

.skill-meter-head span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.skill-meter-item p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.skill-meter {
  height: 10px;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.skill-group-card-dark .skill-meter {
  background: rgba(255, 255, 255, 0.12);
}

.skill-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a2f 0%, #ff9a4d 100%);
  box-shadow: 0 10px 24px rgba(255, 122, 47, 0.24);
}

.contact-box {
  padding: 3rem;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 47, 0.22), transparent 28%),
    linear-gradient(135deg, #0d0e12 0%, #1a1b22 45%, #23252f 100%);
  border-radius: 30px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.contact-list i {
  color: var(--accent);
}

.contact-form .form-control {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  min-height: 56px;
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.contact-form .form-control:focus {
  border-color: rgba(255, 122, 47, 0.6);
  box-shadow: 0 0 0 0.25rem rgba(255, 122, 47, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-footer {
  padding: 24px 0 40px;
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 991.98px) {
  .site-header {
    padding-top: 10px;
  }

  .navbar {
    border-radius: 26px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-visual,
  .about-photo {
    min-height: auto;
  }

  .hero-card-main {
    min-height: 420px;
  }

  .floating-badge {
    left: 20px;
    bottom: 28px;
  }

  .floating-panel {
    right: 20px;
    bottom: -24px;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 82px 0;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-card-main {
    min-height: 340px;
  }

  .feature-card,
  .testimonial-card,
  .contact-box {
    padding: 1.45rem;
  }

  .floating-panel {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }

  .floating-badge {
    position: static;
    display: inline-flex;
    margin-top: 1rem;
  }

  .contact-box {
    padding: 2rem 1.35rem;
  }
}

.admin-body {
  background: #f5f7fb;
  color: #0f172a;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  background: linear-gradient(180deg, #141a23, #0b1018);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
}

.admin-brand {
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-nav {
  padding: 18px 14px;
  display: grid;
  gap: 6px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-nav-link i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  opacity: 0.95;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-nav-link.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 6px;
}

.admin-main {
  display: grid;
  grid-template-rows: 76px 1fr;
  min-width: 0;
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.7);
}

.admin-icon-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.9);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(15, 23, 42, 0.08);
}

.admin-user-name {
  font-weight: 700;
  line-height: 1.05;
}

.admin-user-role {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.55);
}

.admin-content {
  padding: 26px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.02));
}

.admin-content-surface {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  min-height: calc(100vh - 76px - 52px);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

@media (max-width: 991.98px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }
}
