/* =========================
   GLOBAL
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  padding-top: 90px;
  background: #0b1120;
  overflow-x: hidden;
  color: #f8fafc;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  padding: 100px 10%;
  max-width: 1600px;
  margin: auto;
}

section:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

h1 {
  font-size: clamp(45px, 7vw, 80px);
  line-height: 1.1;
  letter-spacing: -2px;
}

h2 {
  font-size: 40px;
  letter-spacing: -1px;
}

h3 {
  font-size: 24px;
}

p {
  color: #94a3b8;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 4px;
  border-radius: 8px;
}

/* =========================
   NAVBAR
========================= */

.portfolio-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 10%;
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1000;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 28px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  z-index: 999;
  gap: 35px;
}

.nav-links a {
  position: relative;
  color: #94a3b8;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: #60a5fa;
  transition: 0.3s;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 9999;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 6px auto;
  background: white;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =========================
   HERO
========================= */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  min-height: 90vh;
}

.hero-content {
  max-width: 800px;
  animation: heroEnter 1s ease;
}

.hero-name {
  color: #60a5fa;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  margin-bottom: 30px;
  font-size: 14px;
}

.hero h2 {
  margin-top: 25px;
  color: #60a5fa;
  font-size: 32px;
}

.hero p {
  font-size: 20px;
  margin-top: 30px;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.hero-buttons a {
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.hero-buttons a:hover {
  transform: translateY(-5px);
  border-color: #60a5fa;
}

.hero-buttons a,
.contact-links a {
  cursor: pointer;
}

/* HERO IMAGE */
.profile-name {
  position: absolute;
  bottom: -47px;
  left: 50%;
  transform: translateX(-50%);
  background: 152033 (222 6% 84% / 0.85);
  backdrop-filter: blur(1px);
  padding: 10px 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 220px;
}

.profile-name h3 {
  color: white;
  font-size: 20px;
  margin: 0;
}

.hero-image {
  width: 350px;
  height: 350px;
  flex-shrink: 0;
  position: relative;
  animation: heroFloat 4s ease-in-out infinite;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: rgba(96, 165, 250, 0.15);
  filter: blur(40px);
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* HERO ANIMATION */

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.section-title p {
  color: #60a5fa;
  font-size: 18px;
  font-weight: bold;
}

/* =========================
   DESCRIPTION
========================= */

.description {
  max-width: 800px;
  font-size: 20px;
}

/* =========================
   JOURNEY TIMELINE
========================= */

.timeline {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -47px;
  top: 10px;
  width: 14px;
  height: 14px;
  background: #60a5fa;
  border-radius: 50%;
}

.timeline-item h3 {
  margin-bottom: 10px;
}

/* =========================
   EXPERIENCE CASE STUDY
========================= */

.experience-list {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.experience-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  transition: 0.4s ease;
  align-items: center;
}

.experience-item:hover {
  transform: translateY(-8px);
}

.experience-item img {
  width: 100%;
  height: 450px;
  transition: 0.4s;
  object-fit: cover;
  border-radius: 30px;
}

.experience-item:hover img {
  transform: scale(1.03);
  overflow: hidden;
}

.experience-content h3 {
  font-size: 35px;
  margin-bottom: 20px;
}

.experience-content p {
  font-size: 18px;
  max-width: 500px;
  margin-bottom: 30px;
}

/* alternate layout */

.experience-item:nth-child(even) {
  direction: rtl;
}

.experience-item:nth-child(even) .experience-content {
  direction: ltr;
}

/* =========================
   TECHNICAL GALLERY
========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1/1;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.15),
    transparent
  );
  opacity: 0.95;
  transition: 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82),
    rgba(0, 0, 0, 0.25),
    transparent
  );
}

.gallery-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.2);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  color: #7dd3fc;
}

.gallery-info {
  transform: translateY(8px);
  transition: 0.35s ease;
}

.gallery-info h3 {
  font-size: 15px;
  margin-bottom: 4px;
  color: white;
}

.gallery-info p {
  font-size: 12px;
  color: #cbd5e1;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

/* =========================
   SKILLS
========================= */

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.skills-list div {
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-list h3 {
  margin-bottom: 10px;
}

/* =========================
   PROJECT CARD
========================= */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  display: block;
  color: inherit;
}

.project-card article {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 35px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.35s ease;
}

.project-card article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(96, 165, 250, 0.18),
    transparent 40%
  );
  opacity: 0;
  transition: 0.35s;
}

.project-card:hover article {
  transform: translateY(-10px);
  border-color: #60a5fa;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-card:hover article::before {
  opacity: 1;
}

.project-card:hover .project-status {
  transform: translateY(-3px);
}

.project-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-header h3 {
  font-size: 24px;
}

.project-arrow {
  font-size: 28px;
  transition: 0.35s;
}

.project-card:hover .project-arrow {
  transform: translate(6px, -6px);
}

.project-status {
  display: inline-block;
  margin-top: 20px;
  padding: 5px 14px;
  border-radius: 999px;
  transition: 0.3s;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.project-status.active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.project-status.production {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}

.project-card p {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.project-card .tags {
  margin-top: 25px;
  position: relative;
  z-index: 1;
}

/* =========================
   TAGS
========================= */

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tags span {
  padding: 6px 15px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #cbd5e1;
}

/* =========================
   CONTACT
========================= */

.contact-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-links a {
  padding: 12px 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  transition: 0.3s;
}

.contact-links a:hover {
  border-color: #60a5fa;
  transform: translateY(-5px);
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 40px 10%;
  text-align: center;
  color: #64748b;
}

/* =========================
   GLIGHTBOX
========================= */

.gslide-description {
  border-radius: 18px;
  padding: 18px 22px;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  max-width: 700px;
  margin: 18px auto;
}

.gslide-title {
  color: white !important;
  font-size: 22px;
  margin-bottom: 8px;
}

.gslide-desc {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 15px;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 900px) {
  section {
    padding: 80px 6%;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-image {
    width: 250px;
    height: 250px;
  }

  .hero-buttons {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .experience-item:nth-child(even) {
    direction: ltr;
  }

  .experience-item img {
    height: 300px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  /* NAVBAR */
  .portfolio-nav {
    padding: 20px;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  @media (max-width: 900px) {
    .nav-links {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      min-height: 100vh;
      background: rgba(11, 17, 32, 0.97);
      backdrop-filter: blur(20px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 35px;
      padding: 120px 30px;
      transform: translateY(-100%);
      transition: 0.35s ease;
      z-index: 1000;
    }

    .nav-links.active {
      transform: translateY(0);
    }
  }

  .nav-links a {
    font-size: 15px;
  }

  @keyframes menuFade {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* HERO */

  .hero {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .hero p {
    font-size: 15px;
  }

  .badge {
    font-size: 11px;
    padding: 7px 14px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    display: flex;
    justify-content: center;
    margin-top: 35px;
  }

  .hero-image img {
    width: 220px;
    border-radius: 40% 60% 60% 40%;
    height: 220px;
  }

  /* GALLERY */

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .gallery-item {
    border-radius: 8px;
  }

  .gallery-item::after {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .gallery-overlay {
    padding: 10px;
  }

  .gallery-badge {
    font-size: 4px;
    padding: 2px 3px;
  }

  .gallery-info h3 {
    font-size: 5px;
  }

  .gallery-info p {
    font-size: 4px;
  }

  /* CONTACT */

  #contact {
    text-align: center;
  }

  .contact-links {
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }

  .contact-links a {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
  }
}
