/* Reuse core variables to ensure font and color alignment */
:root {
    --color-background: #020617;
    --color-surface: #0f172a;
    --color-text: #f1f5f9;
    --color-text-secondary: #cbd5e1;
    --color-primary: #60a5fa;
    --color-primary-hover: #3b82f6;
    --color-accent: #a855f7;
    --color-border: #334155;
    --color-warning: #fbbf24;
    --neon-blue: #00f3ff;
}

/* Base Body Style */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* Header with identical Policy Gradient */
header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

header h1 {
    font-size: 3.4em;
    font-weight: 900;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 10px 0;
    letter-spacing: -0.03em;
}

/* Sticky Navigation with Backdrop Blur */
nav {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    padding: 16px 0;
    z-index: 100;
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
}

/* Navigation Container Spacing */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.9em;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

nav a:hover {
    background: rgba(96, 165, 250, 0.2);
    color: #00f3ff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}


/* Main Content Layout */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Section Glassmorphism & Entrance Animation */
section {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), rgba(30, 41, 59, 0.96));
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.9);
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
    font-weight: 900;
    border-bottom: 2px solid rgba(96, 165, 250, 0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

h3 {
    color: var(--color-text);
    margin-top: 25px;
    font-size: 1.3rem;
}

/* Boxes (Blue Border for Summary, Gradient for Contact) */
.summary-box {
    background: rgba(30, 41, 59, 0.8);
    border-left: 4px solid var(--color-primary);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: transform 0.3s ease;
}

.summary-box:hover {
    transform: scale(1.01);
}

.contact-box {
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.35), rgba(30, 41, 59, 0.98));
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.4);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.2);
}

/* Section 5 Gemini Warning Box Style */
.warning-box {
    border-color: var(--color-warning);
    background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.15), rgba(30, 41, 59, 0.98));
}

.contact-box a {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: bold;
}

/* Lists and Links */
p, li { color: var(--color-text-secondary); }
strong { color: var(--color-text); }

/* Footer Styling */

.site-footer {
  width: 100%;
  padding: 40px 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.footer-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #60a5fa, #a855f7, transparent);
}
.footer-content { display:flex; flex-direction:column; gap:10px; }
.footer-content a { color: inherit; text-decoration:none; margin-left:0px; font-size:0.9em; opacity:0.8; transition:opacity 0.3s ease; }
.footer-content a:hover { opacity:1; text-decoration:underline; color: var(--neon-blue); }
.footer-content p { color: #64748b; font-size: 0.85rem; letter-spacing: 0.05em; }
.footer-brand { color: #94a3b8; font-weight: 600; }
.footer-status { font-family: 'JetBrains Mono', monospace; font-size:0.7rem !important; color: #22c55e !important; opacity:0.8; }
.footer-status::before { content: '●'; margin-right:6px; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;}50%{opacity:0.3;} }
@media (max-width: 768px) {
  .site-footer {
    padding-bottom: 120px; /* 👈 space for side nav */
  }
}



#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background-color: var(--color-primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
}
/* Animation initial state - Add this to your legal CSS */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

/* Visible state triggered by JavaScript */
section.show {
    opacity: 1;
    transform: translateY(0);
}