

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fafafb;
  margin: 0;
  color: #222;
}

html {
  scroll-behavior: smooth;
}



nav {
  background: #fff;
  border-bottom: 2px solid #e9e9e9;
  box-shadow: 0 1px 9px 0 rgba(0,0,0,0.01);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 18px 12px;
  justify-content: space-between;
}

.logo {
  font-weight: bold;
  font-size: 1.6em;
  padding-left: 5px;
}


.nav-links a {
  margin-left: 25px;
  color: #222;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.06em;
  transition: color 0.18s;
  display: inline-block;
  position: relative;
}

.nav-links a.active {
  color: #000;
  font-weight: 600;
}

.nav-links a:hover {
  color: #757677;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #222;
  border-radius: 999px;
  transition: width 0.22s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero-header {
  text-align: center;
  margin: 85px auto 50px auto;
  max-width: 890px;
  position: relative;
  padding: 0 20px;
}

.badge {
  display: inline-block;
  background: #fff;
  padding: 12px 34px;
  border-radius: 17px;
  font-size: 1.12em;
  color: #323348;
  font-weight: 500;
  box-shadow: 0 2px 22px 0 rgba(60,60,90,0.08);
  margin-bottom: 38px;
  border: 1.5px solid #ececef;
}

.badge i {
  margin-right: 11px;
  color: #929599;
}

.hero-header h1 {
  font-size: 3.5em;
  font-weight: 900;
  margin: 0 0 15px 0;
  letter-spacing: -0.01em;
}

.highlight {
  position: relative;
  z-index: 1;
  background: none;
  display: inline-block;
  font-weight: 900;
}

.highlight::after {
  content: "";
  display: block;
  width: 100%;
  height: 13px;
  background: #dadada;
  position: absolute;
  left: 0;
  bottom: 4px;
  z-index: -1;
  border-radius: 5px;
}

.subtitle {
  font-size: 1.5em;
  color: #555;
  margin-bottom: 19px;
  font-weight: 400;
}

.desc {
  color: #61677a;
  max-width: 700px;
  margin: 0 auto 44px auto;
  font-size: 1.18em;
  font-weight: 400;
  line-height: 1.55;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  padding: 16px 33px;
  border-radius: 11px;
  font-size: 1.13em;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 16px 0 rgba(36,56,80,0.08);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-dark {
  background: #222;
  color: #fff;
}

.btn-dark:hover {
  background: #838486;
  color: #fff;
}

.btn-light {
  background: #fff;
  color: #222;
  border: 1.5px solid #ececef;
}

.btn-light:hover {
  background: #f1f5ff;
  color: #828486;
}

.skills-title {
  text-align: center;
  font-size: 2.5em;
  font-weight: bold;
  margin: 50px 0 10px 0;
  letter-spacing: 0.01em;
}

.skills-desc {
  text-align: center;
  font-size: 1.13em;
  color: #555;
  margin-bottom: 30px;
}

.cards-grid {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 12px 40px 12px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 32px 0 rgba(30,50,80,0.13);
  border: 2px solid #edeef0;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 230px;
  transition: box-shadow 0.18s;
}

.card:hover {
  box-shadow: 0 3px 34px 0 rgba(30,50,80,0.19);
}

.card-icon {
  margin-bottom: 14px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6fa;
  box-shadow: 0 0 0 2px #eaeaea;
  font-size: 2em;
  color: #000;
}

.card h3 {
  margin: 0 0 8px 0;
  font-size: 1.19em;
}

.card-sub {
  color: #868686;
  font-size: 1em;
  margin-bottom: 10px;
  margin-top: -7px;
}

.card ul {
  list-style-type: disc;
  margin: 0 0 0 16px;
  padding: 0;
}

.card li {
  font-size: 1.06em;
  margin-bottom: 7px;
}

.project-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 18px 0 rgba(30,50,80,0.14);
  border: 2px solid #ececf0;
  margin-bottom: 34px;
  max-width: 420px;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow 0.15s;
}

.project-card:hover {
  box-shadow: 0 5px 26px 0 rgba(30,50,80,0.23);
}

.block-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.project-content {
  padding: 22px;
}

.project-content h3 {
  font-size: 1.28em;
  font-weight: 600;
  color: #929394;
  margin-bottom: 10px;
}

.project-content p {
  color: #6c6a7a;
  font-size: 1em;
  margin-bottom: 0;
}

.who-section {
  max-width: 1100px;
  margin: 70px auto 0 auto;
  padding: 0 20px 60px 20px;
  text-align: center;
}

.who-title {
  font-size: 2.5em;
  font-weight: bold;
  margin: 50px 0 10px 0;
  letter-spacing: 0.01em;
  text-align: center;
}

.who-desc {
  font-size: 1.13em;
  color: #555;
  margin: 0 0 30px 0;
}

.who-card {
  margin: 0 auto;
  max-width: 520px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 35px 0 rgba(30, 50, 80, 0.12);
  border: 2px solid #ececf0;
  padding: 22px 22px 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
}

.who-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f6f6fa;
  box-shadow: 0 0 0 2px #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.who-content {
  flex: 1;
}

.who-name {
  font-size: 1.2em;
  font-weight: 600;
  margin: 0 0 3px 0;
  color: #323348;
}

.who-role {
  margin: 0 0 8px 0;
  color: #7a7b88;
  font-size: 0.95em;
}

.who-text {
  margin: 0 0 14px 0;
  color: #61677a;
  font-size: 0.99em;
  line-height: 1.5;
}

.who-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: #222222;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  border: none;
  box-shadow: 0 2px 10px rgba(36, 56, 80, 0.08);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
    background 0.15s ease-out;
}

.who-btn:hover {
  background: #222222;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(36, 56, 80, 0.18);
}

.main-contact {
  text-align: center;
  margin: 60px auto 0 auto;
  max-width: 900px;
  padding: 0 16px;
}

.contact-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 12px;
}

.contact-sub {
  color: #888;
  font-size: 1.2em;
  margin-bottom: 32px;
}

.contact-card {
  background: #fff;
  margin: 0 auto 50px auto;
  border-radius: 18px;
  box-shadow: 0 6px 35px 0 rgba(30,50,80,0.12);
  border: 2px solid #ececf0;
  max-width: 600px;
  padding: 36px 20px 34px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card-header {
  font-size: 1.15em;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-card-header i {
  font-size: 1.21em;
}

.contact-card-desc {
  color: #888;
  font-size: 1.01em;
  margin-bottom: 11px;
}

.contact-card-email {
  font-size: 1.08em;
  margin: 0 0 23px 0;
  font-weight: bold;
}

.contact-card-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  font-size: 1em;
  box-shadow: 0 2px 12px 0 rgba(36,56,80,0.08);
  border: none;
  outline: none;
  transition: background 0.18s, color 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-btn.dark {
  background: #222;
  color: #fff;
}

.contact-btn.dark:hover {
  background: #5c5d5e;
  color: #fff;
}

.contact-btn.light {
  background: #fff;
  color: #5a5c5e;
  border: 1.5px solid #ececf0;
}

.contact-btn.light:hover {
  background: #f1f5ff;
  color: #5a5b5e;
}

.footer {
  text-align: left;
  font-size: 1em;
  color: #888;
  padding: 20px 20px;
  background: transparent;
  border-top: 1.5px solid #ececf0;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-nav a {
  color: #222;
  margin-left: 28px;
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #4e4f52;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #222222, #7b7fff);
  z-index: 9999;
  transition: width 0.08s linear;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 5px;
  }

  .nav-links a {
    margin-left: 0;
    font-size: 0.98em;
  }

  .hero-header h1 {
    font-size: 2.2em;
  }

  .subtitle {
    font-size: 1.1em;
  }

  .hero-header {
    margin-top: 46px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .hero-header {
    margin: 40px auto 35px auto;
    padding: 0 16px;
  }

  .hero-header h1 {
    font-size: 1.9em;
  }

  .subtitle {
    font-size: 1em;
  }

  .desc {
    font-size: 1.02em;
  }

  .project-img {
    height: 140px;
  }

  .footer {
    padding: 18px 14px;
    align-items: flex-start;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-nav a {
    margin-left: 0;
  }

  .who-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .who-avatar {
    margin-bottom: 6px;
  }

  .main-contact {
    padding: 0 12px;
  }

  .contact-card {
    max-width: 98vw;
  }
}
.skills-marquee {
  max-width: 1100px;
  margin: 32px auto 0 auto;
  overflow: hidden;
  padding: 0 10px;
}

.skills-track {
  display: flex;
  gap: 24px;
  animation: skills-scroll 112s linear infinite;
}

.card {
  flex: 0 0 260px;  
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 32px rgba(30,50,80,0.13);
  border: 2px solid #edeef0;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@keyframes skills-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-383%); }
}

@media (max-width: 800px) {
  .skills-marquee {
    padding: 0 6px;
  }

  .skills-track {
    animation-duration: 29s;
  }

  .card {
    flex: 0 0 80vw;
  }
}



@media (max-width: 600px) {
  body {
    text-align: center;
  }

  .hero-header {
    margin: 40px auto 35px auto;
    padding: 0 16px;
  }

  .hero-header h1,
  .subtitle,
  .desc {
    text-align: center;
  }

  .cards-grid,
  .skills-marquee,
  .who-section,
  .main-contact {
    padding: 0 14px;
  }

  .project-card {
    margin-left: auto;
    margin-right: auto;
  }

  .who-card {
    align-items: center;
    text-align: center;
  }

  .who-text {
    text-align: center;
  }

  .footer {
    align-items: center;
    text-align: center;
  }
}
