/* ================================================================
   ONE PIECE — Global Styles
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  /* One Piece Logo Palette */
  --navy: #080e1a;
  --navy-light: #0f1a2e;
  --navy-mid: #142240;
  --blue: #4a9bd9;
  --blue-light: #6db8f0;
  --blue-dim: #2e6ea3;
  --blue-glow: rgba(74, 155, 217, .15);
  --straw: #d4a84b;
  --straw-light: #f0cc73;
  --rope: #8b6914;
  --crimson: #c0392b;
  --crimson-light: #e74c3c;
  --white: #f0f4fa;
  --text: #c8d6e8;
  --text-muted: #5e7a9a;
  --shadow: rgba(0, 0, 0, .6);
  --frame-bg: #0a1424;
  --frame-size: 6px;
  --navbar-h: 76px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow: hidden;
}

/* ---------- Viewport Frame ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  border: var(--frame-size) solid var(--frame-bg);
  border-top: none;
  pointer-events: none;
  z-index: 1000;
}

/* ---------- Scrollable Content Area ---------- */
.content {
  position: fixed;
  top: var(--navbar-h);
  left: var(--frame-size);
  right: var(--frame-size);
  bottom: var(--frame-size);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2.5rem 3rem 4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-dim) transparent;
}

.content::-webkit-scrollbar {
  width: 5px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background: var(--blue-dim);
  border-radius: 3px;
}

/* ================================================================
   NAVBAR — Premium, with large centered logo
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: linear-gradient(180deg, var(--frame-bg) 0%, rgba(10, 20, 36, .95) 100%);
  border-bottom: 1px solid rgba(74, 155, 217, .08);
  z-index: 900;
}

/* Subtle bottom glow line */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 155, 217, .25), var(--blue), rgba(74, 155, 217, .25), transparent);
  opacity: .6;
}

.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.navbar__logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(74, 155, 217, .25)) drop-shadow(0 0 30px rgba(74, 155, 217, .08));
  transition: filter .4s ease, transform .4s var(--ease-out);
}

.navbar__logo:hover img {
  filter: drop-shadow(0 4px 20px rgba(74, 155, 217, .4)) drop-shadow(0 0 40px rgba(74, 155, 217, .15));
  transform: scale(1.06);
}

/* Spacer to keep logo centered */
.navbar__spacer {
  width: 100px;
}

/* VIT-AP University Logo */
.navbar__vit {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar__vit img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .3));
  transition: transform .3s ease, filter .3s ease;
}

.navbar__vit:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .4));
}

/* ---------- Section Headers ---------- */
.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--white);
  text-align: center;
  margin-bottom: .4rem;
  letter-spacing: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 2.5rem;
  letter-spacing: .5px;
}

/* ---------- Decorative Divider ---------- */
.gold-divider {
  width: 60px;
  height: 2px;
  margin: 0 auto 2.5rem;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  position: relative;
}

.gold-divider::after {
  content: '⚓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: .7rem;
  color: var(--blue);
  background: var(--navy);
  padding: 0 .6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --frame-size: 4px;
    --navbar-h: 64px;
  }

  .content {
    padding: 1.5rem 1rem 2rem;
  }

  .navbar__logo img {
    height: 42px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  :root {
    --frame-size: 3px;
    --navbar-h: 56px;
  }

  .content {
    padding: 1rem .75rem 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .navbar__logo img {
    height: 36px;
  }

  .navbar__spacer {
    width: 60px;
  }

  .navbar__vit img {
    height: 28px;
  }
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(74, 155, 217, .08);
}

.footer-content {
  max-width: 500px;
  margin: 0 auto;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: grayscale(.3) opacity(.6);
  margin-bottom: .8rem;
  transition: filter .3s ease;
}

.footer-logo:hover {
  filter: grayscale(0) opacity(.9);
}

.footer-tagline {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: .3px;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 155, 217, .2), transparent);
  margin: 0 auto 1rem;
}

.footer-credits {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

.footer-credits strong {
  color: var(--blue);
  font-weight: 600;
}

.footer-copy {
  font-size: .7rem;
  color: rgba(94, 122, 154, .4);
  letter-spacing: .3px;
}