* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #f7f7fb;
  color: #15151d;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 20, 30, 0.08);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  color: #6c42e8;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s;
}

.nav a:hover {
  color: #6c42e8;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 27px;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(108, 66, 232, 0.18), transparent 30%),
    radial-gradient(circle at 85% 70%, rgba(50, 122, 255, 0.14), transparent 30%),
    #f7f7fb;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 70px;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eee8ff;
  color: #6c42e8;
  font-weight: 700;
  font-size: 13px;
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.03;
  letter-spacing: -3px;
}

.hero h1 span {
  color: #6c42e8;
}

.hero-text {
  max-width: 650px;
  color: #5e5e6f;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: #6c42e8;
  color: white;
  box-shadow: 0 14px 35px rgba(108, 66, 232, 0.28);
}

.btn-secondary {
  background: white;
  border: 1px solid #ddddec;
}

.mini-stats {
  display: flex;
  gap: 34px;
  margin-top: 38px;
}

.mini-stats div {
  display: flex;
  flex-direction: column;
}

.mini-stats strong {
  font-size: 24px;
}

.mini-stats span {
  color: #777789;
  font-size: 13px;
}

.hero-card {
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(108, 66, 232, 0.24), rgba(43, 116, 255, 0.12));
  filter: blur(20px);
}

.code-window {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: #12121b;
  color: white;
  box-shadow: 0 30px 80px rgba(20, 20, 40, 0.24);
  transform: rotate(2deg);
}

.window-top {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
}

.window-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #6c42e8;
}

.window-top span:nth-child(2) {
  opacity: 0.7;
}

.window-top span:nth-child(3) {
  opacity: 0.4;
}

pre {
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.9;
}

.purple { color: #a98cff; }
.green { color: #86e6b5; }
.orange { color: #ffb67e; }

.section {
  padding: 100px 0;
}

.section-dark {
  background: #12121b;
  color: white;
}

.section-heading {
  max-width: 750px;
  margin-bottom: 44px;
}

.section-heading span {
  color: #6c42e8;
  font-weight: 700;
  font-size: 14px;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.about-grid,
.skills-grid,
.projects-grid {
  display: grid;
  gap: 22px;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-card,
.skill-card,
.project-card {
  border-radius: 22px;
}

.about-card {
  padding: 28px;
  background: white;
  border: 1px solid #e8e8f0;
}

.about-card h3,
.skill-card h3,
.project-info h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.about-card p,
.skill-card p,
.project-info p {
  color: #6b6b7a;
}

.skills-grid {
  grid-template-columns: repeat(4, 1fr);
}

.skill-card {
  padding: 26px;
  background: #1b1b27;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-card p {
  color: #b6b6c3;
}

.skill-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #6c42e8;
  font-weight: 800;
  font-size: 13px;
}

.projects-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  overflow: hidden;
  background: white;
  border: 1px solid #e8e8f0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(25, 25, 45, 0.12);
}

.project-preview {
  height: 210px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 23px;
  font-weight: 800;
}

.preview-one {
  background: linear-gradient(135deg, #6c42e8, #9d79ff);
}

.preview-two {
  background: linear-gradient(135deg, #212334, #444a71);
}

.preview-three {
  background: linear-gradient(135deg, #327aff, #6c42e8);
}

.project-info {
  padding: 24px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0edff;
  color: #6c42e8;
  font-size: 12px;
  font-weight: 700;
}

.contact-section {
  padding-top: 20px;
}

.contact-box {
  padding: 52px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(135deg, #6c42e8, #8059ef);
  color: white;
}

.contact-box h2 {
  margin: 15px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
}

.contact-box p {
  max-width: 680px;
  color: rgba(255,255,255,.82);
}

.contact-box .badge {
  background: rgba(255,255,255,.14);
  color: white;
}

.btn-light {
  flex-shrink: 0;
  background: white;
  color: #6c42e8;
}

.footer {
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #767686;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    max-width: 620px;
  }

  .contact-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .nav {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    padding: 20px;
    border-radius: 18px;
    display: none;
    flex-direction: column;
    gap: 18px;
    background: white;
    box-shadow: 0 18px 50px rgba(20, 20, 35, 0.14);
  }

  .nav.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    padding-top: 115px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .mini-stats {
    gap: 18px;
    justify-content: space-between;
  }

  .contact-box {
    padding: 34px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .mini-stats {
    align-items: flex-start;
  }

  .mini-stats strong {
    font-size: 20px;
  }

  .code-window {
    padding: 17px;
  }

  pre {
    font-size: 12px;
  }
}

/* Content-only additions: original visual system is preserved. */
.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: 92px;
  height: 52px;
  object-fit: contain;
}

.project-info {
  display: flex;
  flex-direction: column;
  min-height: 245px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 20px;
  color: #6c42e8;
  font-size: 13px;
  font-weight: 800;
}

.project-link:hover {
  text-decoration: underline;
}

.project-link-muted {
  color: #8b8b99;
  cursor: default;
}

.project-link-muted:hover {
  text-decoration: none;
}

@media (max-width: 700px) {
  .logo img {
    width: 82px;
    height: 46px;
  }
}

@media (max-width: 480px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-grid,
  .projects-grid,
  .about-grid,
  .skills-grid {
    min-width: 0;
  }

  .hero-content,
  .hero-card,
  .project-card,
  .project-info {
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 58px);
    overflow-wrap: anywhere;
  }

  .mini-stats {
    flex-wrap: wrap;
  }

  .code-window {
    max-width: 100%;
  }

  .project-preview {
    height: 185px;
    padding: 18px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .project-info {
    min-height: 0;
  }
}

@media (max-width: 340px) {
  .container {
    width: min(100% - 18px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .nav {
    top: 68px;
    left: 9px;
    right: 9px;
  }

  .logo img {
    width: 74px;
    height: 42px;
  }

  .mini-stats {
    gap: 12px 18px;
  }

  .contact-box {
    padding: 28px 18px;
  }
}

/* Keep the original textual logo; add the user's AW mark beside it. */
.logo {
  gap: 8px;
}
.logo img.logo-mark {
  width: 34px;
  height: 30px;
  object-fit: cover;
  object-position: center;
}
.logo span {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .logo img.logo-mark {
    width: 31px;
    height: 28px;
  }
}

/* Project logos: keep the original card/gradient design, add each real brand mark. */
.project-preview {
  padding: 22px;
}

.project-logo {
  display: block;
  width: auto;
  max-width: min(82%, 330px);
  max-height: 158px;
  object-fit: contain;
  border-radius: 16px;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 20, 35, 0.16);
}

.project-logo-wide {
  max-width: min(88%, 360px);
}

.project-logo-edge {
  max-width: min(88%, 360px);
  max-height: 160px;
  padding: 0;
  overflow: hidden;
}

/* Use the complete AmirWeb brand logo instead of a custom text lockup. */
.logo img {
  width: 118px;
  height: 64px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .logo img {
    width: 104px;
    height: 56px;
  }

  .project-logo,
  .project-logo-edge {
    max-width: 86%;
    max-height: 138px;
  }
}

@media (max-width: 340px) {
  .logo img {
    width: 94px;
    height: 52px;
  }

  .project-logo,
  .project-logo-edge {
    max-width: 92%;
    max-height: 126px;
  }
}
