:root{
  --bg: #0b1220;
  --panel: #0a1b3a;
  --text: #ffffff;
  --muted: rgba(255,255,255,.75);
  --accent: #f5c400;
  --border: rgba(245,196,0,.22);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --maxw: 1100px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin:0;
  font-family: var(--font);
  background: radial-gradient(1200px 500px at 20% 0%, rgba(245,196,0,.08), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(10,27,58,.6), transparent 60%),
              var(--bg);
  color: var(--text);
  font-size: 18px; /* medium-sized text */
  line-height: 1.6;
}

a{ color: var(--text); text-decoration: none; }
a:hover{ color: var(--accent); }

.container{
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,18,32,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 200px;
}

.logo{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 6px;
}

.brand-name{
  font-weight: 700;
  letter-spacing: .2px;
}

.site-nav{
  display:flex;
  align-items:center;
  gap: 14px;
}

.site-nav a{
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
  opacity: .92;
}

.site-nav a:hover{
  background: rgba(245,196,0,.10);
  border: 1px solid rgba(245,196,0,.20);
}

.nav-cta{
  border: 1px solid rgba(245,196,0,.35);
  background: rgba(245,196,0,.08);
}

.nav-toggle{
  display:none;
  width: 46px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(245,196,0,.25);
  background: rgba(10,27,58,.35);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 10px;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  opacity: .9;
}

.content{
  padding: 28px 0 56px 0;
}

.card{
  background: linear-gradient(180deg, rgba(10,27,58,.55), rgba(10,27,58,.32));
  border: 1px solid rgba(245,196,0,.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

h1,h2,h3{
  line-height: 1.2;
  margin: 0 0 10px 0;
}
h1{ font-size: 2.0rem; }
h2{ font-size: 1.4rem; margin-top: 18px; }

.muted{ color: var(--muted); }

hr{
  border: none;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 22px 0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245,196,0,.35);
  background: rgba(245,196,0,.08);
  color: var(--text);
  cursor:pointer;
}
.btn:hover{ background: rgba(245,196,0,.14); color: var(--accent); }

input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
}
textarea{ min-height: 220px; }
label{ display:block; margin: 12px 0 6px; color: var(--muted); }

.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: top;
}
.table th{
  color: var(--muted);
  font-weight: 600;
}
.table tr:hover td{ background: rgba(245,196,0,.06); }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .grid{ grid-template-columns: 1fr; }
}

.gallery-item{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(245,196,0,.18);
  background: rgba(10,27,58,.24);
}
.gallery-item img{
  width: 100%;
  height: auto;
  display:block;
}
.gallery-caption{
  padding: 10px 12px;
  color: var(--muted);
  font-size: .95rem;
}

.video{
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(245,196,0,.18);
  background: rgba(0,0,0,.25);
}

.site-footer{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.footer-row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile nav */
@media (max-width: 820px){
  .nav-toggle{ display:block; }
  .site-nav{
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display:none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(11,18,32,.95);
    border: 1px solid rgba(245,196,0,.22);
    box-shadow: var(--shadow);
  }
  .site-nav.open{ display:flex; }
}

/* Active nav link */
.site-nav a.active{
  background: rgba(245,196,0,.14);
  border: 1px solid rgba(245,196,0,.30);
  opacity: 1;
}

/* Logo image */
.logo{
  width: auto;
  height: 42px;
  padding: 0;
  background: transparent;
  border: none;
}

/* Larger header logo */
.site-header .logo{
  height: 72px;   /* was ~42px */
  width: auto;
}
@media (max-width: 820px){
  .site-header .logo{
    height: 56px;
  }
}

/* Logo sizing by page */
/* Default (inner pages) */
.site-header .logo{
  height: 48px;
  transition: height .25s ease;
}

/* Home page gets hero-sized logo */
body.home-page .site-header .logo{
  height: 88px;
}

@media (max-width: 820px){
  .site-header .logo{
    height: 40px;
  }
  body.home-page .site-header .logo{
    height: 64px;
  }
}

/* --- Polish: home logo glow + intro animation --- */
body.home-page .site-header .logo{
  /* subtle glow that matches brand */
  filter: drop-shadow(0 0 10px rgba(245,196,0,.22)) drop-shadow(0 0 22px rgba(70,110,255,.12));
  animation: logoIntro .85s ease-out 1;
  transform-origin: left center;
}

@keyframes logoIntro{
  0%   { transform: translateY(-6px) scale(.92); opacity: 0; filter: drop-shadow(0 0 0 rgba(245,196,0,0)); }
  60%  { transform: translateY(0) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1.0); opacity: 1; }
}

/* --- Header shrink on scroll --- */
.site-header{
  transition: background .2s ease, border-color .2s ease;
}
.site-header .header-row{
  transition: padding .2s ease;
}
.site-header.shrunk .header-row{
  padding: 8px 0;
}
.site-header.shrunk{
  background: rgba(11,18,32,.88);
  border-bottom: 1px solid rgba(245,196,0,.10);
}

/* When header shrinks, reduce logo slightly */
.site-header.shrunk .logo{
  height: 40px !important;
}
body.home-page .site-header.shrunk .logo{
  height: 64px !important;
}

@media (max-width: 820px){
  .site-header.shrunk .logo{
    height: 34px !important;
  }
  body.home-page .site-header.shrunk .logo{
    height: 52px !important;
  }
}
