* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: auto;
  overflow-y: scroll;
}

body::-webkit-scrollbar {
  display: none;
}

body {
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--bg-color);
  transition: background-color 0.3s ease;
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

*::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

button,
a,
div[class*="btn"],
div[class*="card"],
.nav-chip,
.contact-card,
.project-card,
.social-icon-home,
.footer-icon,
.footer-link,
.mobile-nav-item {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

*:focus {
  outline: none;
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--loader-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 9999;
  transition: opacity 0.4s;
}

#loader-name {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-grad-full);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#loader-bar {
  width: 100px;
  height: 2px;
  background: var(--loader-bar-bg);
  border-radius: 2px;
  overflow: hidden;
}

#loader-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-grad);
  animation: fill 1.2s ease forwards;
}

@keyframes fill {
  to { width: 100%; }
}

.loader-hide {
  opacity: 0;
  pointer-events: none;
}

#main-content {
  opacity: 0;
  transition: opacity 0.5s;
}

#main-content.visible {
  opacity: 1;
}

.section-placeholder {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px 24px;
}

.section-placeholder .container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
}

.section-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--text-muted);
}

.footer-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-pink);
}

#home-section,
#projects-section,
#skills-section,
#experience-section,
#contact-section {
  scroll-margin-top: 80px;
}

.projects-section {
  margin-top: 50px;
  margin-bottom: 40px;
}

.skills-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.section-placeholder {
  margin-top: 40px;
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .projects-section {
    margin-bottom: 30px;
  }
  .skills-section {
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .section-placeholder {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .projects-section {
    margin-bottom: 35px;
  }
  .skills-section {
    margin-top: 35px;
    margin-bottom: 35px;
  }
  .section-placeholder {
    margin-top: 35px;
    margin-bottom: 35px;
  }
}

@media (min-width: 1025px) {
  .projects-section {
    margin-bottom: 80px;
  }
  .skills-section {
    margin-top: 80px;
    margin-bottom: 60px;
  }
  .section-placeholder {
    margin-top: 60px;
    margin-bottom: 60px;
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.scroll-to-top.visible {
  opacity: 1;
  transform: scale(1);
}

.scroll-to-top-button {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #A855F7, #EC4899);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.scroll-to-top-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}

.scroll-to-top-button svg {
  width: 26px;
  height: 26px;
  stroke: white;
  stroke-width: 2;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
  }
  .scroll-to-top-button {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .scroll-to-top-button svg {
    width: 22px;
    height: 22px;
  }
}