* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(34, 197, 94, 0.1),
      transparent 66%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(34, 197, 94, 0.1),
      transparent 66%
    ),
    #030712;
  background-attachment: fixed;
  color: #e5e7eb;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.22);
  z-index: 0;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  padding: 30px 0;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  /*text-align: center;*/
}

footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

footer a {
  color: #e5e7eb;
  font-weight: 700;
}

footer a:hover {
  color: #00ff5e;
}

.social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link img {
  display: block;
  width: 28px;
  height: 28px;
}

.footer-copy {
  min-width: 0;
}

.fb-like {
  min-height: 28px;
}

.container {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.11);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.logo-text {
  /*width: 38px;*/
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #06111f;
  font-weight: 900;
}
.logo-img {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background-image: url("/var/images/scaniatm_avatar.jpg");
  background-size: cover;
  color: #06111f;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-size: 15px;
}

.nav-links a:hover {
  color: #00ff5e;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 96px 0 72px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin-bottom: 22px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 0px;
  background: rgba(8, 13, 24, 0.86);
  color: #bae6fd;
  font-size: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 16px #22c55e;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
}

.highlight {
  color: #00ff5e;
}

.hero-text {
  max-width: 680px;
  color: #cbd5e1;
  font-size: 18px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border-radius: 0px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, cyan, #00ff5e);
  color: #06111f;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px #00ff5e;
}

.btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(8, 13, 24, 0.86);
  color: #e5e7eb;
}

.btn-secondary:hover {
  border-color: #00ff5e;
  color: #00ff5e;
}

.profile-card {
  position: relative;
  padding: 1px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  /*border-radius: 28px;*/
  background: rgba(8, 13, 24, 0.86);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.2),
    transparent,
    rgba(34, 197, 94, 0.16)
  );
  z-index: -1;
}

.terminal {
  /*border-radius: 18px;*/
  overflow: hidden;
  background: #00040a;
  border: 1px solid rgba(148, 163, 184, 0.11);
}

.terminal-top {
  display: flex;
  font-weight: bold;
  gap: 7px;
  padding: 13px;
  background: #202020;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.circle {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #64748b;
}

.terminal-body {
  background: #000000;
  padding: 22px;
  color: #d1fae5;
  font-family: Consolas, Monaco, monospace;
  font-size: 14px;
  min-height: 246px;
  overflow-wrap: anywhere;
}

.terminal-body p {
  margin-bottom: 9px;
  min-height: 1.2em;
}

.command {
  color: rgb(0, 255, 0);
}

.success {
  color: #22c55e;
}

.error {
  color: #ef4444;
}

.result {
  color: #bdbdbd;
}

section {
  padding: 72px 0;
}

.section-title {
  margin-bottom: 34px;
}

.section-title .section-label {
  display: block;
  color: #00ff5e;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.4px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.about-grid,
.services-grid,
.stats-grid {
  display: grid;
  gap: 20px;
}

.about-grid {
  grid-template-columns: 1fr 1fr;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 24px;
  border-radius: 0px;
  background: rgba(8, 13, 24, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.11);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #f8fafc;
}

.card p,
.card li {
  color: #cbd5e1;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.service-title h3 {
  margin-bottom: 0;
}

.service-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  font-size: 24px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.skill {
  --skill-color: #38bdf8;
  padding: 8px 11px;
  border-radius: 0px;
  background: rgba(10, 18, 32, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #dbeafe;
  font-size: 14px;
  cursor: default;
  transition: 0.22s ease;
}

.skill:hover {
  color: #020617;
  background: var(--skill-color);
  border-color: var(--skill-color);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px
    color-mix(in srgb, var(--skill-color) 36%, transparent);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  color: #00ff5e;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding-left: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.55);
}

.timeline-item h3 {
  font-size: 19px;
}

.timeline-item small {
  color: #38bdf8;
  font-weight: 700;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 0px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.16),
    rgba(34, 197, 94, 0.12)
  );
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #020617;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(16px) scale(0.92);
  transition: 0.25s ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, 720px);
  }

  .nav {
    min-height: 64px;
  }

  .hero,
  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    align-items: start;
    padding: 72px 0 56px;
  }

  .hero-text {
    max-width: none;
    margin-bottom: 0;
  }

  .profile-card {
    width: 100%;
  }

  .services-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .page {
    background:
      radial-gradient(
        circle at top left,
        rgba(56, 189, 248, 0.12),
        transparent 46%
      ),
      #030712;
  }

  .container {
    width: calc(100% - 24px);
  }

  header {
    position: static;
  }

  .nav {
    min-height: 58px;
  }

  .logo {
    gap: 9px;
    font-size: 15px;
  }

  .logo-img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  footer .footer-inner {
    align-items: center;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .social {
    justify-content: center;
    width: 100%;
  }

  .hero {
    gap: 24px;
    min-height: auto;
    padding: 44px 0 38px;
  }

  .badge {
    margin-bottom: 16px;
    padding: 7px 10px;
    font-size: 13px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 16px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.55;
  }

  .profile-card {
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.58);
  }

  .terminal-top {
    padding: 10px 12px;
    font-size: 13px;
  }

  .terminal-body {
    padding: 14px;
    min-height: 218px;
    font-size: 12px;
    line-height: 1.45;
  }

  .terminal-body p {
    margin-bottom: 7px;
  }

  .services-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 24px;
  }

  footer {
    padding: 22px 0 76px;
    font-size: 14px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 24px;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 18px);
  }

  h1 {
    font-size: 34px;
  }

  .terminal-body {
    padding: 12px;
    font-size: 11px;
  }
}

.text-black {
  color: #000 !important;
}

.text-white {
  color: #fff !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

.text-left {
  text-align: left !important;
}
