/* style.css (FULL) */

/* ---------- Base ---------- */
*{ box-sizing: border-box; }

body{
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;

  background:
    linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.35)),
    url("mainPageImage.jpg") center / cover no-repeat fixed;
}

/* ---------- Header ---------- */
.top{
  text-align: center;
  padding: 24px 16px 12px;
}

.quote{
  display: inline-block;
  padding: 16px 28px;
  border-radius: 20px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.tamil{
  display: block;
  font-size: 26px;
  font-weight: 800;
}

.english{
  font-size: 14px;
  opacity: 0.8;
}

/* Tagline Descriptions */
.tagline{
  margin-top: 12px;
  font-size: 18px;     /* same scale as About / Poems */
  font-weight: 900;    /* clearly bolder */
  color: #1f1f1f;      /* solid, ink-like dark */
  letter-spacing: 0.3px;
}

/* ---------- Layout ---------- */
.layout{
  display: flex;
  gap: 60px;
  padding: 40px;
  align-items: center;
  justify-content: space-between;
}

/* Explicit desktop order */
.featured{ order: 1; }
.circle-nav{ order: 2; }

/* ---------- Featured ---------- */
.featured{
  max-width: 420px;
}

.featured h2{
  font-size: 30px;
  margin: 0 0 16px;
}

.featured-card{
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.2);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-link{
  text-decoration: none;
  color: #000;
  font-size: 18px;
  transition: opacity 280ms ease, transform 280ms ease;
  display: block;      
  width: 100%;            
  text-align: center;     
}

.featured-link:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
}

.featured-link.is-fading{
  opacity: 0;
  transform: translateY(6px);
}

/* ---------- Circle Nav ---------- */
.circle-nav{
  position: relative;
  width: 360px;
  height: 360px;
  flex-shrink: 0;
}

.nav-circle{
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  text-decoration: none;
  color: #000;

  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center;
  will-change: transform;
}

.nav-circle:hover{
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

/* Positions */
.c-about{ top:0; left:50%; transform:translate(-50%,0); }
.c-articles{ top:50%; right:0; transform:translate(0,-50%); }
.c-poems{ bottom:0; left:50%; transform:translate(-50%,0); }
.c-hope{ top:50%; left:0; transform:translate(0,-50%); }
.c-minis{ top:50%; left:50%; transform:translate(-50%,-50%); }

/* Keep base position on hover (scale only, no jump) */
.c-about:hover{ transform:translate(-50%,0) scale(1.06); }
.c-articles:hover{ transform:translate(0,-50%) scale(1.06); }
.c-poems:hover{ transform:translate(-50%,0) scale(1.06); }
.c-hope:hover{ transform:translate(0,-50%) scale(1.06); }
.c-minis:hover{ transform:translate(-50%,-50%) scale(1.06); }

/* ---------- Mobile ---------- */
@media (max-width: 900px){
  .layout{
    flex-direction: column;
    text-align: center;
    gap: 26px;
    padding: 26px 16px 40px;
  }

  /* Explicit mobile order: circles first, featured below */
  .circle-nav{ order: 1; }
  .featured{ order: 2; }
}

/* Optional: slightly smaller tagline on small phones */
@media (max-width: 600px){
  .tagline{ font-size: 16px; }
}
