html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Poppins", sans-serif;
}

.spline-wrapper {
  width: 100%;
  height: 100vh;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.spline-wrapper.is-ready {
  opacity: 1;
}

a[href*="utm_source=spline-viewer"],
a[href*="utm_campaign=spline-logo"],
*[class*="watermark"],
*[id*="watermark"],
*[class*="Watermark"],
*[id*="Watermark"],
svg[id*="SplineWatermark"],
*[data-watermark] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #d32150;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: white;
  font-size: 18px;
  margin-top: 20px;
}

.reload-notice {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 10, 12, 0.92);
  color: #fff;
  padding: 18px 28px;
  border-radius: 999px;
  font-size: 18px;
  letter-spacing: 0.3px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10000;
}

.reload-notice.is-visible {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.portfolio-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: none;
  pointer-events: none;
}

.split-container {
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: space-between;
  align-items: stretch;
  pointer-events: none;
  padding: 30px;
  box-sizing: border-box;
  gap: 20px;
}

.left-panel {
  width: 400px;
  background: rgba(20, 9, 14, 0.603);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  overflow-y: auto;
  border-radius: 20px;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid hsla(346, 55%, 48%, 0.349);
}

.profile-name {
  font-size: 32px;
  font-weight: 700;
  color: rgb(255, 255, 255);
  margin: 0 0 8px 0;
  text-align: left;
}

.profile-role {
  font-size: 25px;
  color: hsl(346, 55%, 48%);
  margin-bottom: 5px;
}

.profile-bio {
  color: rgba(196, 196, 196, 0.8);
  line-height: 1.6;
  font-size: 16px;
  margin-bottom: 5px;
  text-align: left;
}

.profile-email {
  color: hsl(346, 55%, 48%);
  font-size: 15px;
  margin-bottom: 2px;
  text-align: left;
  width: 100%;
  align-self: flex-start;
}

.profile-email a {
  color: hsl(346, 55%, 48%);
  text-decoration: none;
}

.profile-email a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  margin-top: 30px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 50, 98, 0.8);
  transform: translateY(-2px);
}

.center-gap {
  flex: 1;
  position: relative;
  pointer-events: none;
}

.right-panel {
  width: 600px;
  background: rgba(20, 9, 14, 0.603);
  padding: 40px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  border-radius: 20px;
}

.right-panel::-webkit-scrollbar {
  width: 8px;
}

.right-panel::-webkit-scrollbar-track {
  background: rgba(203, 83, 111, 0.05);
  border-radius: 4px;
}

.right-panel::-webkit-scrollbar-thumb {
  background: rgba(203, 96, 114, 0.2);
  border-radius: 4px;
}

.right-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(94, 16, 35, 0.3);
}

.section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid hsla(346, 55%, 48%, 0.548);
}

.section-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 16px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.skill-icon {
  position: relative;
  width: 60px;
  height: 60px;
  background: rgba(230, 42, 95, 0.2);
  border: 1px solid rgba(240, 64, 111, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.detail-view {
  background: #0f0a0d;
  color: #ffffff;
}

.detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
  box-sizing: border-box;
}

.detail-page .project-link {
  display: inline-block;
  margin-bottom: 24px;
}

.detail-page ul {
  padding-left: 0;
}

.project-fullimage-list {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  justify-content: flex-start;
}

/* Alignment options */
.project-fullimage-list.center {
  justify-content: center;
}

.project-fullimage-list.left {
  justify-content: flex-start;
}

.project-fullimage-list.right {
  justify-content: flex-end;
}

.project-fullimage-list li {
  margin: 0;
  flex-shrink: 0;
}

.skill-icon svg {
  width: 35px;
  height: 35px;
  fill: white;
}

.skill-icon:hover {
  background: rgba(247, 35, 102, 0.4);
  transform: translateY(-10px);
  border-color: rgba(249, 44, 98, 0.6);
}

.skill-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 9, 14, 0.95);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border: 1px solid rgba(249, 44, 98, 0.3);
}

.skill-icon:hover::after {
  opacity: 1;
}

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

.project-card {
  background: rgba(60, 40, 48, 0.5);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.61);
  border-color: rgba(246, 26, 70, 0.493);
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 15px;
}

.project-media {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  flex-shrink: 0;
}

.project-preview {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
}

.project-fullimage {
  width: 400px;
  height: 400px;
  border-radius: 20px;
  object-fit: cover;
  align-items: center;
}

.project-info {
  flex: 1;
}

.project-title {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px 0;
}

.project-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 14px;
}

.project-link {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(249, 54, 103, 0.253);
  border: 2px solid rgba(251, 38, 95, 0.5);
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: rgba(245, 49, 98, 0.6);
}

@media (max-width: 1024px) {
  .left-panel,
  .right-panel {
    width: 100%;
  }

  .split-container {
    flex-direction: column;
    overflow-y: auto;
  }

  .center-gap {
    display: none;
  }

  .right-panel {
    overflow-y: visible;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  html,
  body {
    overflow: hidden;
  }

  .portfolio-panel {
    top: 180px;
    height: calc(100vh - 180px);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }

  .split-container {
    padding: 20px;
    gap: 20px;
    height: auto;
    overflow: visible;
  }

  .left-panel {
    width: 100%;
    padding: 36px 24px;
    border-radius: 15px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4);
    min-height: 60vh;
    overflow: visible;
    margin: 0 0px 0 0;
  }

  .profile-image {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
  }

  .profile-name {
    font-size: 24px;
    margin-bottom: 5px;
  }

  .profile-role {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .profile-bio {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .profile-email {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .social-links {
    gap: 12px;
    margin-top: 20px;
  }

  .social-links a {
    width: 38px;
    height: 38px;
  }

  .social-links a svg {
    width: 18px;
    height: 18px;
  }

  .right-panel {
    width: 100%;
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.4);
    max-height: none;
    overflow: visible;
    margin: 0 0px 0 0;
  }

  .section {
    margin-bottom: 35px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .section-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .skills-grid {
    gap: 15px;
  }

  .skill-icon {
    width: 50px;
    height: 50px;
  }

  .skill-icon svg {
    width: 28px;
    height: 28px;
  }

  .project-card {
    padding: 18px;
  }

  .project-header {
    flex-direction: column;
    gap: 15px;
  }

  .project-media {
    gap: 20px;
  }

  .project-preview {
    width: 100%;
    height: auto;
    max-width: 280px;
  }

  .project-fullimage {
    width: 100%;
    height: auto;
    max-width: 280px;
  }

  .project-title {
    font-size: 20px;
  }

  .project-description {
    font-size: 13px;
  }

  .close-btn {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }

  .portfolio-panel {
    overflow: auto;
  }
}

@media (max-width: 480px) {
  html,
  body {
    overflow: hidden;
  }

  .portfolio-panel {
    top: 150px;
    height: calc(100vh - 150px);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }

  .split-container {
    padding: 15px;
    gap: 15px;
    height: auto;
    overflow: visible;
  }

  .left-panel {
    padding: 28px 18px;
    min-height: 55vh;
    overflow: visible;
    margin: 0 6px 0 0;
  }

  .profile-image {
    width: 150px;
    height: 150px;
    margin-bottom: 12px;
  }

  .profile-name {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .profile-role {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .profile-bio {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .profile-email {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .social-links {
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-links a {
    width: 34px;
    height: 34px;
  }

  .social-links a svg {
    width: 16px;
    height: 16px;
  }

  .right-panel {
    padding: 18px 15px;
    max-height: none;
    overflow: visible;
    margin: 0 6px 0 0;
  }

  .section {
    margin-bottom: 28px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .section-text {
    font-size: 13px;
  }

  .skills-grid {
    gap: 12px;
    justify-content: center;
  }

  .skill-icon {
    width: 45px;
    height: 45px;
  }

  .skill-icon svg {
    width: 24px;
    height: 24px;
  }

  .skill-icon::after {
    bottom: -40px;
    font-size: 11px;
  }

  .project-card {
    padding: 15px;
    margin-bottom: 15px;
  }

  .project-title {
    font-size: 18px;
  }

  .project-description {
    font-size: 12px;
  }

  .project-link {
    padding: 6px 16px;
    font-size: 12px;
  }

  .close-btn {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  .portfolio-panel {
    overflow: auto;
  }
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(99, 18, 35, 0.1);
  border: none;
  color: rgb(255, 255, 255);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
  pointer-events: auto;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}
