/* ===== General Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===== Layout ===== */
body {
  font-family: 'Times New Roman', Times, serif;
  overflow-x: hidden;
  color: #000;
  background: #FFC2D9;
  transition: background-color 0.8s ease;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF99BE, #96CBFC, #4E8BC4);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== Mouse Glow ===== */
.mouse-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(150, 203, 252, 0.25) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.15s ease-out, top 0.15s ease-out;
}

/* ===== Particle Canvas ===== */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 30px;
  right: 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1000;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-list li a {
  text-decoration: none;
  color: #4E8BC4;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s;
}

.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4E8BC4;
  transition: width 0.3s ease;
}

.nav-list li a:hover {
  color: #FF99BE;
}

.nav-list li a:hover::after {
  width: 100%;
  background: #FF99BE;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 28px;
  color: #4E8BC4;
  z-index: 1001;
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-title {
  font-size: 80px;
  font-weight: bold;
  color: #4E8BC4;
  letter-spacing: 4px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease forwards 0.3s;
}

.hero-subtitle {
  margin-top: 16px;
  font-size: 18px;
  color: #4E8BC4;
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.7s;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  color: #4E8BC4;
  animation: bounce 2s infinite;
  transition: opacity 0.3s ease;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* ===== About Section ===== */
.about-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

#aboutCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* About Content — no box, open layout */
.about-content {
  max-width: 1000px;
  width: 100%;
  display: flex;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Profile Image with 3D Halo Rings ===== */
.about-image-container {
  flex-shrink: 0;
  width: 360px;
  height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.image-placeholder {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #FF99BE, #96CBFC);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  box-shadow:
    0 0 40px rgba(255, 153, 190, 0.35),
    0 0 80px rgba(150, 203, 252, 0.2);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-image[src]:not([src=""]) {
  display: block;
}

/* 3D Halo Rings */
.halo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border-style: solid;
  transform-origin: center center;
}

.halo-ring-1 {
  width: 300px;
  height: 300px;
  margin-top: -150px;
  margin-left: -150px;
  border-width: 2px;
  border-color: rgba(255, 194, 217, 0.6);
  animation: haloOrbit1 8s linear infinite;
}

.halo-ring-2 {
  width: 340px;
  height: 340px;
  margin-top: -170px;
  margin-left: -170px;
  border-width: 1.5px;
  border-color: rgba(150, 203, 252, 0.5);
  animation: haloOrbit2 12s linear infinite;
}

.halo-ring-3 {
  width: 380px;
  height: 380px;
  margin-top: -190px;
  margin-left: -190px;
  border-width: 1px;
  border-color: rgba(78, 139, 196, 0.3);
  animation: haloOrbit3 16s linear infinite;
}

@keyframes haloOrbit1 {
  0%   { transform: rotateX(65deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateZ(360deg); }
}

@keyframes haloOrbit2 {
  0%   { transform: rotateX(55deg) rotateY(30deg) rotateZ(0deg); }
  100% { transform: rotateX(55deg) rotateY(30deg) rotateZ(-360deg); }
}

@keyframes haloOrbit3 {
  0%   { transform: rotateX(70deg) rotateY(-20deg) rotateZ(0deg); }
  100% { transform: rotateX(70deg) rotateY(-20deg) rotateZ(360deg); }
}

/* ===== About Text — no box, text shadow for readability ===== */
.about-text-container {
  flex: 1;
}

.about-text {
  font-size: 22px;
  line-height: 2;
  color: #fff;
  font-weight: 500;
  text-shadow:
    0 1px 3px rgba(78, 139, 196, 0.4),
    0 0 20px rgba(78, 139, 196, 0.15);
}

/* Fade-in animation */
.fade-in-element {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 40px 20px 50px;
  color: #FF99BE;
  font-size: 13px;
  letter-spacing: 1.5px;
  position: relative;
}

.footer-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #FF99BE, #4E8BC4);
  margin: 0 auto 24px;
  border-radius: 2px;
}

.footer-name {
  font-weight: bold;
  color: #FF99BE;
}

.footer-year {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 1px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero-title { font-size: 56px; }
  .about-text { font-size: 19px; }
  .about-content { gap: 45px; }

  .about-image-container { width: 250px; height: 250px; }
  .image-placeholder { width: 190px; height: 190px; }
  .halo-ring-1 { width: 260px; height: 260px; margin-top: -130px; margin-left: -130px; }
  .halo-ring-2 { width: 295px; height: 295px; margin-top: -147px; margin-left: -147px; }
  .halo-ring-3 { width: 330px; height: 330px; margin-top: -165px; margin-left: -165px; }
}

@media (max-width: 768px) {
  .navbar { top: 20px; right: 20px; }

  .menu-toggle {
    display: block;
    position: fixed;
  }

  .nav-list {
    position: fixed;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 20px 28px;
    display: none;
    box-shadow: 0 10px 30px rgba(78, 139, 196, 0.2);
    border: 1px solid rgba(150, 203, 252, 0.3);
  }

  .nav-list.active {
    display: flex;
    animation: slideIn 0.3s ease;
  }

  @keyframes slideIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-list li a { font-size: 16px; }
  .hero-title { font-size: 40px; letter-spacing: 2px; }
  .hero-subtitle { font-size: 14px; letter-spacing: 4px; }
  .about-text { font-size: 17px; }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 0 15px;
  }

  .about-image-container { width: 240px; height: 240px; }
  .image-placeholder { width: 180px; height: 180px; }
  .halo-ring-1 { width: 250px; height: 250px; margin-top: -125px; margin-left: -125px; }
  .halo-ring-2 { width: 280px; height: 280px; margin-top: -140px; margin-left: -140px; }
  .halo-ring-3 { width: 310px; height: 310px; margin-top: -155px; margin-left: -155px; }

  .scroll-indicator { bottom: 30px; font-size: 28px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .about-text { font-size: 15px; }
  .navbar { top: 15px; right: 15px; }

  .about-image-container { width: 220px; height: 220px; }
  .image-placeholder { width: 160px; height: 160px; }
  .halo-ring-1 { width: 220px; height: 220px; margin-top: -110px; margin-left: -110px; }
  .halo-ring-2 { width: 250px; height: 250px; margin-top: -125px; margin-left: -125px; }
  .halo-ring-3 { width: 270px; height: 270px; margin-top: -135px; margin-left: -135px; }
}