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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

:root {
  --orange-primary: #ff6b35;
  --orange-dark: #e55a2b;
  --black: #1a1a1a;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray: #6c757d;
}

header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--orange-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--orange-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--black);
  transition: 0.3s;
}

.hero {
  background: linear-gradient(135deg,
      var(--orange-primary) 0%,
      var(--orange-dark) 100%);
  color: var(--white);
  padding: 100px 1.5rem 60px;
  text-align: center;
  box-shadow: 0px 5px 20px black;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 4vw, 1.2rem);
  max-width: 90%;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--orange-primary);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5jpx 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.portfolio {
  padding: 60px 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--black);
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.portfolio-item {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-content {
  padding: 1.2rem;
}

.portfolio-title {
  font-size: 1.15rem;
  color: var(--black);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.portfolio-desc {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.portfolio-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--orange-primary);
  color: var(--white);
  padding: 0.25rem 0.7rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

.load-more-btn,
.figma-load-more {
  display: block;
  margin: 3rem auto 0;
  background: var(--orange-primary);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.load-more-btn:hover,
.figma-load-more:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.load-more-btn:disabled,
.figma-load-more:disabled {
  background: var(--gray);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.portfolio-item.hidden {
  display: none;
}

.about {
  background: var(--gray-light);
  padding: 60px 1.5rem;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--black);
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  text-align: justify;
  line-height: 1.6;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-item {
  background: var(--white);
  padding: 0.7rem 1.3rem;
  border-radius: 25px;
  font-weight: 500;
  color: var(--orange-primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
}

.contact {
  padding: 60px 1.5rem;
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--orange-primary);
  border-radius: 40px;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 500;
}

.contact-link:hover {
  background: var(--orange-primary);
  transform: translateY(-2px);
}

footer {
  background: var(--black);
  color: var(--gray);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
}



.figma-item {
  cursor: pointer;
}

.figma-item img {
  cursor: pointer !important;
}

.figma-item:hover {
  transform: translateY(-8px);
}

.figma-item:hover img {
  transform: scale(1.08);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--orange-primary);
}

.lightbox-link {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange-primary);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.lightbox-link:hover {
  background: var(--orange-dark);
  transform: translateX(-50%) translateY(-2px);
}

html {
  scroll-behavior: smooth;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.2rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    gap: 1.2rem;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.8rem 0;
  }

  .hero {
    padding: 90px 1.2rem 100px;
  }

  .portfolio {
    padding: 50px 1.2rem;
  }

  .about,
  .contact {
    padding: 50px 1.2rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .portfolio-item img {
    height: 200px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .contact-link {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  footer {
    padding: 2rem 1.2rem;
  }

  .skills-grid {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .portfolio-item img {
    height: 180px;
  }

  .portfolio-content {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .load-more-btn,
  .figma-load-more {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
}