* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Georgia, "Times New Roman", Times, serif;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

/* Layout variables */
:root {
  --header-height: 80px;
  --header-gap: 0px;
  --platform-blue: #1e66ff;
}

html {
  scroll-padding-top: calc(var(--header-height) + var(--header-gap));
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: calc(var(--header-height) + var(--header-gap));
}

/* Header / Nav */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
  padding: 20px 70px;
  color: goldenrod;
  position: fixed;
  top: 0;
  left: 0;
  background-color: grey;
  box-shadow: 0 4px 15px black;
  z-index: 10;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background-color: goldenrod;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

nav a:hover {
  transform: translateY(-2px);
  background-color: #daa520;
}

nav a:focus {
  outline: 3px solid rgba(218, 165, 32, 0.3);
  outline-offset: 2px;
}

h3 {
  font-size: 25px;
  cursor: pointer;
  color: goldenrod;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55), 0 0 8px rgba(218, 165, 32, 0.12);
  transition: transform 180ms ease, text-shadow 180ms ease, color 180ms ease;
}

h3:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  text-shadow: 0 8px 20px rgba(218, 165, 32, 0.5), 0 0 20px rgba(218, 165, 32, 0.25);
}

/* Hero */
.contain {
  text-align: center;
  background-image: url("bgi3.jpg");
  padding-top: 140px;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: scroll;
  background-size: cover;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.logo {
  width: 100px;
  height: 100px;
  background-color: black;
  color: goldenrod;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
}

h1 {
  font-size: 50px;
  margin: 10px 0;
  color: beige;
}

.pg {
  color: beige;
  font-size: 20px;
  padding: 5px 0;
  font-weight: bold;
}

.buttons {
  padding-top: 20px;
  padding-bottom: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.btn {
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  background-color: goldenrod;
  color: #fff;
  box-shadow: 0 6px 16px rgba(218, 165, 32, 0.2);
  display: inline-block;
}

.btn:hover {
  transform: translateY(-3px);
  background-color: #daa520;
  box-shadow: 0 12px 24px rgba(218, 165, 32, 0.3);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(218, 165, 32, 0.15);
}

.vmw,
.git {
  background-color: goldenrod;
  color: #fff;
}

/* About */
.about-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  padding: 80px 60px;
  gap: 40px;
  background-color: grey;
}

.abouti img {
  width: 100%;
  max-width: 310px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.aboutc h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.aboutc p {
  font-size: 18px;
  line-height: 1.6;
  color: black;
  text-align: justify;
}

/* Projects */
.projects-section {
  padding: 60px 40px;
  background-color: grey;
}

.projects-section h2 {
  text-align: center;
  font-size: 32px;
  color: black;
  margin-bottom: 40px;
}

.projects-note {
  margin-top: 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 102, 255, 0.08), rgba(30, 102, 255, 0.02));
  border: 2px solid rgba(30, 102, 255, 0.2);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 8px 24px rgba(30, 102, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 300ms ease;
}

.projects-note:hover {
  background: linear-gradient(135deg, rgba(30, 102, 255, 0.12), rgba(30, 102, 255, 0.05));
  border-color: rgba(30, 102, 255, 0.35);
  box-shadow: 0 12px 32px rgba(30, 102, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.projects-note p {
  color: #222;
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

.projects-note .telegram-link {
  color: goldenrod;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: color 200ms ease;
  display: inline-block;
  padding-bottom: 2px;
}

.projects-note .telegram-link:hover {
  color: #0047cc;
}

.prg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.prc {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px grey;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.prc:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px grey;
}

.prc img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.prj-info {
  padding: 20px;
}

.prj-info h3 {
  color: blue;
  font-size: 20px;
  margin-bottom: 10px;
}

.prj-info p {
  font-size: 15px;
  line-height: 1.5;
  color: black;
  margin-bottom: 15px;
}

.btn-prj {
  color: blue;
  text-decoration: none;
  font-weight: 500;
}

/* Skills */
.st-section {
  padding: 60px 40px;
  text-align: center;
  background-color: grey;
}

.st-section h2 {
  font-size: 32px;
  color: black;
  margin-bottom: 40px;
}

.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: left;
}

.st-groups h3 {
  font-size: 20px;
  color: blue;
  margin-bottom: 15px;
}

.st-groups li {
  margin-bottom: 10px;
  color: black;
  font-size: 16px;
}

/* Contact */
.git-section {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(to bottom, rgb(30, 30, 143) 30%, rgba(23, 17, 54, 0.822) 70%);
}

.platform-meta {
  overflow: hidden;
}

.git-section h2 {
  font-size: 32px;
  color: beige;
  margin-bottom: 15px;
}

.git-section p {
  font-size: 18px;
  color: #313030;
  padding-top: 16px;
}

.git-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  margin: 30px auto;
  max-width: 600px;
  width: 90%;
}

.contact-channels .channels {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f6f6f8;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: goldenrod;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(30, 102, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.platform-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(30, 102, 255, 0.18), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.platform-link:active {
  transform: translateY(2px);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.platform-meta label {
  display: block;
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
}

.platform-name {
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
}

.platform-handle {
  font-size: 14px;
  color: #111;
}

.platform-icon {
  width: 22px;
  height: 22px;
  color: var(--platform-blue);
  transition: color 160ms ease, transform 160ms ease;
}

.platform-link:hover .platform-icon {
  color: #fff;
  transform: scale(1.06);
}

.platform-link:active .platform-icon {
  transform: scale(0.98);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-row input,
textarea {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: 1px solid beige;
  border-radius: 5px;
}

.btn-message {
  padding: 14px 30px;
  background-color: blue;
  color: beige;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-message:hover {
  background-color: darkblue;
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: rgb(17, 17, 44);
  padding: 30px 20px;
  text-align: center;
}

.footer p {
  color: #aaa;
  font-size: 15px;
}


/* ============= MOBILE NAVIGATION ============= */
@media (max-width: 850px) {
  nav ul {
    position: fixed;
    top: var(--header-height);
    right: 0;
    background: grey;
    width: 220px;
    height: calc(100vh - var(--header-height));
    flex-direction: column;
    padding: 25px 20px;
    gap: 25px;
    transform: translateX(100%);
    transition: 0.3s ease;
  }

  nav ul.show {
    transform: translateX(0);
  }

  /* Hamburger */
  header {
    padding: 20px 30px;
  }

  header::after {
    content: "☰";
    font-size: 30px;
    cursor: pointer;
    color: white;
    display: block;
  }

  header.clicked::after {
    content: "✖";
  }

  header.clicked nav ul {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  .pg {
    font-size: 16px;
  }

  .logo {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }

  .contain {
    padding-top: 120px;
  }

  header {
    padding: 15px 25px;
  }
}

@media (max-width: 850px) {
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 25px;
  }

  .aboutc p {
    text-align: left;
  }

  .abouti img {
    max-width: 250px;
  }
}

@media (max-width: 650px) {
  .prj-info h3 {
    font-size: 18px;
  }

  .prj-info p {
    font-size: 14px;
  }

  .projects-section {
    padding: 40px 20px;
  }
}

@media (max-width: 700px) {
  .st-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .st-groups ul {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .contact-channels .channels {
    flex-direction: column;
  }

  .contact-item {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .footer p {
    font-size: 13px;
    line-height: 1.6;
  }
}
