:root{
  --yellow: #FFEB3B;
  --navy: #001f3f;
  --purple: #6a0dad;
  --pink: #ff69b4;
  --text-dark: #1a1a1a;
  --text-transition: 1500ms;
  --red-glow: #ff0000;
  --golden-yellow-glow: #FFD700;
}

html,body{
  margin:0;
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background:var(--yellow);
  scroll-behavior: smooth;
  overflow-x:hidden;
}

section{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  text-align:center;
  position:relative;
  overflow:hidden;
}

#home{ background: var(--yellow); }
#index{ background: var(--navy); color: #fff; flex-direction: column; padding: 2rem; position: relative; }
#landing{ background:#001f3f; color:#fff; display:none; justify-content:center; align-items:center; flex-direction:column; text-align:center; padding:2rem; position: relative; }

.wrap{ width:100%; padding:1rem; opacity:0; animation: fadeIn 1.5s ease forwards; }
@keyframes fadeIn{ from{opacity:0; transform:scale(0.98);} to{opacity:1; transform:scale(1);} }
.card{ max-width:900px; width:100%; }
.headline{ font-size:clamp(32px,10vw,100px); line-height:1.1; margin:0; color:var(--text-dark); font-weight:700; letter-spacing:0; cursor:pointer; }

.rotator{ position:relative; display:inline-block; min-height: 1em; }
.rotator .item{ position:absolute; top:0; left:0; right:0; text-align:center; opacity:0; transition:opacity var(--text-transition) ease-in-out; will-change:opacity; }
.rotator .item.show{ opacity:1; z-index:1; }
.rotator .item.fade-out{ opacity:0; z-index:0; }
.rotator .item[data-lang="lat"]{ font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif; }

.btn-overlay{ display: none; }
#index img{ max-width: 80%; height: auto; z-index:1; display:block; image-rendering: optimizeQuality; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated; cursor:pointer; transition: transform 0.3s ease-in-out; }
#index img:hover { transform: scale(1.05); }

.bald-man{ position:absolute; top:20px; left:20px; width:160px; height:160px; border-radius: 50%; animation: rotateMan 5s linear infinite; z-index:2; cursor: pointer; display:flex; justify-content:center; align-items:center; }
.bald-man img{ width:100%; height:100%; border-radius:50%; }
@keyframes rotateMan{ 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.landing-title{ font-size:clamp(32px,8vw,64px); margin-bottom:1rem; }
.landing-text{ font-size:clamp(16px,4vw,24px); max-width:600px; margin-bottom:2rem; }
.landing-btn{ background:#FFEB3B; color:#001f3f; padding:1rem 2rem; text-decoration:none; font-size:1.25rem; border-radius:8px; font-weight:bold; transition: transform 0.2s; }
.landing-btn:hover{ transform: scale(1.05); }

.return-home-btn{ position:absolute; top:20px; left:20px; background:#FFEB3B; color:#001f3f; padding:0.5rem 1rem; border-radius:5px; text-decoration:none; font-weight:bold; z-index:1000; transition: background 0.2s; cursor:pointer; }
.return-home-btn:hover{ background: rgba(255,235,59,0.8); }

@media (min-width: 768px) {
  body {
    cursor: none;
  }
  .trail-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--red-glow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: transform 0.2s, opacity 1s, width 1s, height 1s;
    z-index: 9999;
    box-shadow: 0 0 5px var(--red-glow), 0 0 10px var(--red-glow);
  }
  .trail-particle.golden-yellow {
    background-color: var(--golden-yellow-glow);
    box-shadow: 0 0 5px var(--golden-yellow-glow), 0 0 10px var(--golden-yellow-glow);
  }
  #index img {
    max-width: 65%;
  }
}

/* Footer Styles */
footer {
  background: #111;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

footer h2 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #FFD700;
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

footer .copyright {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #aaa;
}
