*,
*::before,
*::after {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;

  background-color: #1d1e22;

  color: #d4d4dc;

  line-height: 1.7;
}

header {
  position: sticky;

  top: 0;

  z-index: 900;

  background-color: rgba(29, 30, 34, 0.98);

  border-bottom: 1px solid rgba(212, 212, 220, 0.1);

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 18px 80px;
}

.logo {
  font-size: 20px;

  font-weight: 700;

  color: #1d1e22;

  background-color: #feda6a;

  padding: 10px 22px;

  border-radius: 12px;

  text-decoration: none;

  flex-shrink: 0;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);

  box-shadow: 0 6px 20px rgba(254, 218, 106, 0.3);
}

#desktopNav ul {
  list-style: none;

  display: flex;

  gap: 30px;
}

#desktopNav a {
  text-decoration: none;

  font-weight: 500;

  font-size: 15px;

  color: #feda6a;

  padding-bottom: 3px;

  border-bottom: 2px solid transparent;

  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

#desktopNav a:hover,
#desktopNav a.active {
  border-bottom-color: #feda6a;
}

.hamburger {
  display: none;

  flex-direction: column;

  justify-content: center;

  gap: 6px;

  cursor: pointer;

  z-index: 1001;

  background: none;

  border: none;

  padding: 4px;

  width: 36px;

  height: 36px;
}

.hamburger span {
  width: 28px;

  height: 3px;

  background-color: #feda6a;

  border-radius: 3px;

  display: block;
}

.mobile-nav-close {
  position: absolute;

  top: 20px;

  right: 20px;

  background: none;

  border: none;

  cursor: pointer;

  z-index: 1002;

  width: 36px;

  height: 36px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;
}

.mobile-nav-close span {
  position: absolute;

  width: 26px;

  height: 3px;

  background-color: #feda6a;

  border-radius: 3px;

  display: block;

  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav-close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-nav-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-nav-close:hover span {
  opacity: 0.7;
}

.mobile-nav {
  position: fixed;

  top: 0;

  right: -100%;

  width: 72%;

  max-width: 320px;

  height: 100%;

  background-color: #1d1e22;

  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.35);

  padding-top: 90px;

  transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);

  z-index: 1000;

  overflow: visible;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav ul {
  list-style: none;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 0;
}

.mobile-nav li {
  width: 100%;

  text-align: center;

  opacity: 0;

  transform: translateX(30px);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.mobile-nav.open li:nth-child(1) {
  opacity: 1;

  transform: translateX(0);

  transition-delay: 0.1s;
}

.mobile-nav.open li:nth-child(2) {
  opacity: 1;

  transform: translateX(0);

  transition-delay: 0.18s;
}

.mobile-nav.open li:nth-child(3) {
  opacity: 1;

  transform: translateX(0);

  transition-delay: 0.26s;
}

.mobile-nav.open li:nth-child(4) {
  opacity: 1;

  transform: translateX(0);

  transition-delay: 0.34s;
}

.mobile-nav.open li:nth-child(5) {
  opacity: 1;

  transform: translateX(0);

  transition-delay: 0.42s;
}

.mobile-nav a {
  display: block;

  padding: 16px 20px;

  text-decoration: none;

  font-size: 18px;

  font-weight: 600;

  color: #feda6a;

  border-bottom: 1px solid rgba(212, 212, 220, 0.1);

  transition: background-color 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background-color: rgba(254, 218, 106, 0.1);
}

.overlay {
  display: none;

  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  z-index: 999;
}

.overlay.show {
  display: block;
}

section {
  padding: 90px 80px;
}

section:nth-child(even) {
  background-color: rgba(254, 218, 106, 0.05);
}

.section-label {
  display: inline-block;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 2.5px;

  text-transform: uppercase;

  color: #feda6a;

  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);

  font-weight: 700;

  color: #ffffff;

  margin-bottom: 48px;
}

#home {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 100px 80px 80px;

  gap: 40px;

  min-height: calc(100vh - 62px);

  overflow: hidden;
}

.hero-text {
  flex: 1;

  max-width: 600px;

  min-width: 0;
}

.hero-text h1 {
  font-size: clamp(44px, 5.5vw, 78px);

  font-weight: 700;

  line-height: 1.1;

  color: #ffffff;
}

.hero-text .subtitle {
  font-size: 20px;

  font-weight: 600;

  color: #feda6a;

  margin: 16px 0 12px;
}

.hero-text .description {
  color: #ffffff;

  max-width: 520px;

  line-height: 1.8;
}

.hero-buttons {
  margin-top: 34px;

  display: flex;

  gap: 14px;

  flex-wrap: wrap;

  max-width: 100%;
}

.btn {
  padding: 13px 28px;

  border-radius: 50px;

  font-weight: 600;

  font-size: 15px;

  font-family: "Poppins", sans-serif;

  text-decoration: none;

  display: inline-block;

  box-sizing: border-box;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary {
  background-color: #feda6a;

  color: #1d1e22;
}

.btn-outline {
  border: 2px solid #feda6a;

  color: #feda6a;
}

.btn:hover {
  transform: scale(1.05);

  box-shadow: 0 8px 24px rgba(254, 218, 106, 0.2);
}

.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  width: 440px;

  height: 440px;

  object-fit: cover;

  border-radius: 18px;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

#about .about-inner {
  display: flex;

  height: 593px;

  gap: 40px;

  align-items: stretch;
}

.about-card {
  background-color: #393f4d;

  border-radius: 18px;

  padding: 45px;

  max-width: 1000px;

  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);

  flex: 1;
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #feda6a;
  margin-bottom: 16px;
}

.about-card p {
  color: #ffffff;

  margin-bottom: 13px;

  line-height: 1.8;
}

.about-card a {
  color: #feda6a;

  text-decoration: none;

  font-weight: 600;
}

.about-card a:hover {
  text-decoration: underline;
}

.about-card ul {
  padding-left: 20px;
}

.about-card li {
  color: #ffffff;

  margin-bottom: 9px;
}

.social-links {
  display: flex;

  gap: 12px;

  margin-top: 22px;
}

.social-links a {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 40px;

  height: 40px;

  border-radius: 10px;

  background-color: rgba(212, 212, 220, 0.5);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.12);

  opacity: 0.85;
}

.social-links img {
  width: 20px;

  height: 20px;

  filter: brightness(0) invert(1);
}

#skills .skills-box {
  background-color: #393f4d;

  height: 600px;

  border-radius: 18px;

  padding: 48px 56px;

  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);

  max-width: 820px;

  margin: 0 auto;
}

.skill-item {
  margin-bottom: 46px;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-header {
  display: flex;

  justify-content: space-between;

  font-weight: 600;

  font-size: 15px;

  margin-bottom: 9px;

  color: #ffffff;
}

.skill-pct {
  color: #feda6a;
}

.bar-track {
  background-color: #393f4d;

  border-radius: 99px;

  height: 11px;

  overflow: hidden;
}

.bar-fill {
  height: 100%;

  border-radius: 99px;

  background: linear-gradient(90deg, #393f4d 0%, #feda6a 100%);
}
#projects .projects-list {
  display: flex;

  flex-direction: row;

  gap: 30px;

  max-width: 1300px;

  margin: 0 auto;
}

.project-card {
  background-color: #393f4d;

  border-radius: 18px;

  padding: 38px;

  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);

  max-width: 650px;
}

.project-card2 {
  background-color: #393f4d;

  border-radius: 18px;

  padding: 38px;

  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

.project-card h3 {
  font-size: 22px;

  font-weight: 700;

  color: #feda6a;

  margin-bottom: 12px;

  text-align: center;
}

.project-card2 h3 {
  font-size: 22px;

  font-weight: 700;

  color: #feda6a;

  margin-bottom: 12px;

  text-align: center;
}

.project-card p {
  color: #ffffff;

  line-height: 1.8;

  margin-bottom: 22px;
}

.project-card2 p {
  color: #ffffff;

  line-height: 1.8;

  margin-bottom: 22px;
}

.project-images {
  display: flex;

  gap: 14px;

  flex-wrap: wrap;

  justify-content: center;
}

.project-images img {
  width: 300px;

  height: 300px;

  object-fit: cover;

  border-radius: 12px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  transition: transform 0.3s ease;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox:target {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: default;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-button {
  position: absolute;
  top: -50px;
  right: 0;
  color: #feda6a;
  font-size: 40px;
  text-decoration: none;
  font-weight: bold;
  line-height: 1;
}

.close-button:hover {
  color: #ffffff;
}
.project-images img:hover {
  transform: scale(1.04);
}

#contact .contact-inner {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 44px;

  align-items: start;
}

.contact-info {
  display: flex;

  flex-direction: column;

  gap: 22px;
}

.contact-address {
  background-color: #393f4d;

  border-radius: 18px;

  padding: 30px;

  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

.contact-address h3 {
  font-size: 18px;

  font-weight: 700;

  color: #feda6a;

  margin-bottom: 12px;
}

.contact-address p {
  color: #ffffff;

  line-height: 2;
}

.map-wrap {
  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);

  height: 250px;
}

.map-wrap iframe {
  width: 100%;

  height: 100%;

  border: none;

  display: block;
}

.contact-form {
  background-color: #393f4d;

  border-radius: 18px;

  padding: 38px;

  height: 630px;

  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

.contact-form h3 {
  font-size: 20px;

  font-weight: 700;

  color: #ffffff;

  margin-bottom: 26px;
}

.form-group {
  display: flex;

  flex-direction: column;

  gap: 7px;

  margin-bottom: 18px;
}

label {
  font-weight: 600;

  font-size: 13px;

  color: #feda6a;
}

input,
textarea,
select {
  padding: 12px 15px;

  border: 1.5px solid #393f4d;

  border-radius: 11px;

  font-family: "Poppins", sans-serif;

  font-size: 14px;

  color: #d4d4dc;

  background-color: #1d1e22;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;

  border-color: #feda6a;

  box-shadow: 0 0 0 3px rgba(254, 218, 106, 0.1);
}

textarea {
  resize: vertical;

  min-height: 120px;
}

.btn-submit {
  width: 100%;

  padding: 14px;

  background-color: #feda6a;

  color: #1d1e22;

  border: none;

  border-radius: 11px;

  font-family: "Poppins", sans-serif;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;

  margin-top: 4px;
}

.btn-submit:hover {
  background-color: #ffffff;

  transform: scale(1.02);

  box-shadow: 0 6px 20px rgba(254, 218, 106, 0.2);
}

footer {
  background-color: #151619;

  color: #ffffff;

  text-align: center;

  padding: 28px 20px;

  font-size: 14px;
}

footer strong {
  color: #feda6a;
}

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background-color: white !important;
    font-family: "Times New Roman", Times, Georgia, serif !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  h1,
  h2,
  h3,
  h4,
  .section-label,
  .logo {
    font-family: Arial, Helvetica, sans-serif !important;
    color: #000 !important;
  }

  header,
  .hamburger,
  .mobile-nav,
  .overlay,
  .hero-buttons,
  .btn,
  .btn-submit,
  .social-links,
  .map-wrap,
  .contact-form,
  footer,
  .mobile-nav-close {
    display: none !important;
  }

  section {
    padding: 20px 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  #home {
    display: block !important;
    min-height: auto !important;
  }

  .hero-image img {
    width: 150px !important;
    height: auto !important;
    float: right;
    margin-left: 20px;
  }

  .about-card,
  .skill-item,
  .project-card,
  .project-card2,
  .contact-address,
  .hero-image {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    padding: 15px !important;
  }

  #contact {
    page-break-before: always;
    break-before: page;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }

  .bar-track {
    border: 1px solid #000 !important;
  }
  .bar-fill {
    background: #eee !important;
    border-right: 2px solid #000;
  }
}

@media (max-width: 1024px) {
  header {
    padding: 16px 40px;
  }

  #home {
    flex-direction: column;

    padding: 70px 40px 60px;

    height: auto;

    align-items: flex-start;
  }

  .hero-image {
    display: none;
  }

  .hero-text {
    margin-top: 50%;

    text-align: left;
  }

  section {
    padding: 70px 40px;
  }

  #about .about-inner {
    flex-direction: column;

    height: auto;
  }

  .about-card {
    height: auto;
  }

  #contact .contact-inner {
    grid-template-columns: 1fr;
  }

  #projects .projects-list {
    flex-direction: column;
  }

  .project-card {
    max-width: 100%;
  }

  .project-images img {
    width: 100%;

    height: 220px;
  }

  #skills .skills-box {
    height: auto;
  }

  .contact-form {
    height: auto;
  }
}

@media (max-width: 768px) {
  header {
    padding: 16px 20px;
  }

  #desktopNav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  #home {
    padding: 50px 20px 40px;

    overflow: hidden;
  }

  .hero-text {
    max-width: 100%;

    width: 100%;
  }

  .hero-text .description {
    max-width: 100%;
  }

  section {
    padding: 60px 20px;
  }

  .about-card {
    padding: 26px 18px;
  }
  .contact-form {
    padding: 26px 18px;

    height: auto;
  }

  #skills .skills-box {
    padding: 28px 20px;

    height: auto;
  }

  .hero-buttons {
    flex-direction: column;

    width: 100%;
  }

  .btn {
    width: 100%;

    text-align: center;
  }

  .project-images img {
    width: 100%;

    height: 190px;
  }

  #about .about-inner {
    height: auto;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 34px;
  }
  .hero-text {
    margin-top: 90px;
  }
  .hero-text .subtitle {
    font-size: 16px;
  }
  #skills .section-title {
    font-size: 28px;
  }
  .skills-box {
    min-height: 600px;
  }
  .skill-item {
    margin-top: 18px;
  }

  .project-card,
  .project-card2 {
    height: 400px;
  }
  .project-images {
    display: none;
  }
  .contact-address {
    padding: 22px 16px;
  }

  .contact-form {
    padding: 22px 16px;
  }
}
@media (max-width: 320px) {
  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text .subtitle {
    font-size: 14px;
  }

  header {
    padding: 12px 14px;
  }

  section {
    padding: 50px 14px;
  }
}
