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

body {
  background: #000;
  color: #fff;
  font-family: system-ui, sans-serif;
}

h1{
  margin-bottom: 32px;
}

h2 {
  font-weight: lighter;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 360px;
  position: fixed;
  height: auto;
  padding: 24px;
  top: 60px;
}

.sidebar-glow {
  position: absolute;
  border-radius: 28px;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  box-shadow:
    0 0 0 1px #1f1f1f,
    0 0 40px rgba(58, 255, 143, 0.08);
}

.profile-card {
  position: relative;
  padding: 20px;
  height: 100%;
  z-index: 1;
}

.profile-card {
  position: relative;
  background: #0f0f0f;
  border-radius: 24px;
  padding: 20px;
  height: 100%;
  box-shadow: inset 0 0 0 1px #1f1f1f;
  text-align: center;
}

.experience-card img {
  width: 40px;
}

.exp-description {
  color: #c2c2c2;
  text-align: justify;
  margin-bottom: 8px;
}

.exp-img {
  display: flex;
  gap: 16px;
}

.exp-title h3{
  font-weight: 300;
  padding: 0 0 4px 0;
}

.exp-divider {
  height: 1px;
  width: 100%;
  margin: 14px 0 18px;
  background: rgba(255, 255, 255, 0.08);
}

.exp-period {
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  background-color: #1f1f1f;
  padding: 8px 16px;
  height: max-content;
  color: #fff;
}

.exp-title p {
  color: #c2c2c2;
  font-size: 14px;
}

.profile-image img {
  width: 100%;
  border-radius: 16px;
}

.socials {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-span {
  color: #28e98c;
}

.hello {
  font-size: 24px;
  color: #c2c2c2;
  padding-top: 80px;
  margin-bottom: 16px;
}

.socials a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 8px 12px;
}


.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3aff8f;
  border-radius: 16px;
  padding: 16px;
  border: 0.5px solid #3a3a3a;
  width: 165px;
  margin: 16px auto;
}

.dot {
  width: 8px;
  height: 8px;
  background: #3aff8f;
  border-radius: 50%;
  animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(58, 255, 143, 0.6);
  }
  70% {
    opacity: 0.4;
    box-shadow: 0 0 0 6px rgba(58, 255, 143, 0);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(58, 255, 143, 0);
  }
}


.socials {
  display: flex;
  gap: 14px;
  font-size: 18px;
  margin: 16px 0;
}

.actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
   display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.primary {
  background: #3aff8f;
  color: #000;
}

.secondary {
  background: #161616;
  color: #fff;
}

.content {
  margin-left: 360px;
  width: calc(100vw - 360px);
  height: 100vh;
  overflow-y: auto;
  padding: 56px;
  scroll-behavior: smooth;
}

.section {
  margin-bottom: 96px;
}

.section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.stats {
  display: flex;
  gap: 48px;
  margin-top: 32px;
  overflow: auto;
}

.experience-card {
  background: linear-gradient(180deg, #141414, #0e0e0e);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px #1f1f1f;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: #0f0f0f;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #1f1f1f;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.hero-about {
  margin-bottom: 16px;
}

.arrow-btn {
  background: #161616;
  border-radius: 50%;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.skill {
  background: #0f0f0f;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: inset 0 0 0 1px #1f1f1f;
}

.skill img {
  width: 32px;
  height: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  background: #0f0f0f;
  padding: 18px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px #1f1f1f;
}

.contact-item i {
  font-size: 20px;
  color: #3aff8f;
  margin-top: 4px;
}

.contact-item span {
  font-size: 13px;
  color: #aaa;
}

.contact-item strong {
  font-size: 15px;
  font-weight: 500;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: #0f0f0f;
  border-radius: 14px;
  border: none;
  padding: 14px;
  color: #fff;
  box-shadow: inset 0 0 0 1px #1f1f1f;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.content::-webkit-scrollbar {
  width: 4px;
}

.content::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.08);
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.project {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
}

.project-carousel {
   position: relative;
  height: 260px;
  border-radius: 20px;
  background: #0b0b0b;
  box-shadow: inset 0 0 0 1px #1f1f1f;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;

  object-fit: contain;
  object-position: center;

  padding: 12px;
  background: #0b0b0b;
  cursor: zoom-in;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.project-content h3 {
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tags span {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #161616;
  box-shadow: inset 0 0 0 1px #1f1f1f;
}

.project-content p {
  max-width: 680px;
  line-height: 1.6;
  color: #ccc;
}

.project-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;

  background: #0f0f0f;
  color: #fff;

  box-shadow:
    inset 0 0 0 1px #262626,
    0 4px 12px rgba(0, 0, 0, 0.4);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px #3aff8f,
    0 8px 20px rgba(0, 0, 0, 0.6);
}

.project-btn.primary {
  background: #3aff8f;
  color: #000;
}

.project-btn.secondary {
  background: #161616;
  color: #fff;
}

.project-btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 0 0 1px #3aff8f,
    0 4px 10px rgba(0, 0, 0, 0.5);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 72px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-modal.open {
  opacity: 1;
  visibility: visible;
}

.image-modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.image-modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.image-modal-close,
.image-modal-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: background 0.2s ease;
}

.image-modal-close:hover,
.image-modal-nav:hover {
  background: rgba(0, 0, 0, 0.85);
}

.image-modal-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.image-modal-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
}

.image-modal-nav.prev {
  left: 20px;
}

.image-modal-nav.next {
  right: 20px;
}

.image-modal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}



@media (max-width: 1200px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    top: 0px;
  }

  .content {
    margin-left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 24px;
  }

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

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

  .carousel-track img {
    width: 100%;
  }
  .project-carousel {
    height: 220px;
  }

  .hello {
    padding-top: 0px;
  }

  .image-modal {
    padding: 64px 16px 24px;
  }

  .image-modal-close {
    top: 12px;
    right: 12px;
  }

  .image-modal-nav.prev {
    left: 8px;
  }

  .image-modal-nav.next {
    right: 8px;
  }
}

