/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

/* Remove iframe styles as they're not needed */

/* ===== SECTION TRANSITIONS ===== */
.section-container {
  width: 100%;
  transition: opacity 0.3s ease-out;
}

#loadingSection {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d0c0c; /* Dark background for a pleasant contrast */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#animationSection {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  opacity: 0;
  background-color: #D2D2D2;
  transition: opacity 0.4s ease;
}

#animationSection::before {
  position: absolute;
  width: min(1800px, 100vw);
  top: 0%;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  content: '';
  background-image: url(../image/bg-2.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top center;
  pointer-events: none;
}

#portfolioSection {
  position: absolute;
  top: 100vh; /* Start below the animation section */
  left: 0;
  width: 100%;
  opacity: 1;
  z-index: 10;
}

/* Portfolio section elements need proper margin for scrolling */
#portfolioSection .ra-section {
  scroll-margin-top: 80px; /* For smooth scrolling to sections */
}

/* ===== LOADING SECTION STYLES ===== */
#canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.loading-image {
  position: relative;
  width: 100%; /* adjust as needed */
  z-index: 1;
  animation: fadeIn 1s ease forwards;
}

.loading-image img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
}

/* Shine effect on image */
.loading-image .shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shineMove 2s infinite;
}

@keyframes shine {
  0% { background-position: -200%; }
  100% { background-position: 200%; }
}

/* Loading bar container */
.loading-bar-container {
  margin-top: 30px;
  width: 60%;
  max-width: 400px;
  height: 20px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Actual loading bar */
.loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #00ffc3, #3a6eff);
  border-radius: 10px;
  position: relative;
  transition: width 0.3s ease-in-out;
}

.loading-percentage {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 14px;
}

/* ===== ANIMATION SECTION STYLES ===== */
.banner {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* ===== SCROLL PROMPT ANIMATION ===== */
@keyframes bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-10px) translateX(-50%); }
} 