/* CSS Variables for consistent theming */
:root {
    --primary: #00d9ff;
    --secondary: #0099ff;
    --accent: #ff006e;
    --bg-dark: #0a0e27;
    --bg-darker: #050a1a;
    --text-light: #e0e7ff;
    --text-muted: #a0aec0;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(0, 217, 255, 0.2);
}

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

/* Keyframe Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(0, 217, 255, 0.5), 0 0 20px rgba(0, 153, 255, 0.3);
    }
    50% { 
        text-shadow: 0 0 20px rgba(0, 217, 255, 0.8), 0 0 40px rgba(0, 153, 255, 0.6);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Base Styles */
body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 153, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Header */

/* Reset margins inside header */
header, .header-content, .page-info, .header-subtitle {
  margin: 0;
  padding: 0;
}

header {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(0, 153, 255, 0.15));
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideInDown 0.8s ease-out;
    margin-bottom: 30px;
}

header h1 {
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 5px 0;
    animation: glow 3s ease-in-out infinite;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.page-name {
    color: var(--primary);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    margin: 0;
    animation: glow 3s ease-in-out infinite;
}

.header-subtitle {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    margin: 15px 0 0 0;
}

.header-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    margin: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary), #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}

header p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    margin-top: 8px;
}

.header-content {
  display: flex;
  align-items: center; /* Vertically center logo and text */
  justify-content: center; /* Center horizontally */
  gap: 12px; /* Space between logo and text */
  flex-wrap: wrap; /* Allow wrapping on small screens */
  margin-bottom: 8px;
}

#logo {
  margin: 0; /* Remove top margin */
  width: clamp(80px, 12vw, 120px);
  height: auto;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: float 4s ease-in-out infinite;
}

.page-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left; /* Align text left for better readability */
  gap: 4px;
  max-width: 300px; /* Limit width to avoid too much spacing */
}

.page-info h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary);
}

.page-info .page-name {
  margin: 0;
  font-size: 1rem;
  color: var(--secondary);
}

.header-subtitle {
  margin: 0 auto 12px;
  max-width: 600px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
}


#logo:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 36px rgba(0, 217, 255, 0.6);
}

/* Navigation margin */
nav {
  margin-top: 8px; /* reduce space between header and nav */
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.1), rgba(255, 0, 110, 0.05));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  animation: slideInDown 1s ease-out 0.1s both;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    border: 2px solid transparent;
    background: rgba(0, 217, 255, 0.1);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

nav a:hover,
nav a:focus {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

nav a:hover::before {
    left: 100%;
}

nav a.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.5);
}

.nav-quick {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 22px;
    background: rgba(0, 217, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 26px;
    font-weight: 700;
    border: 2px solid rgba(0, 217, 255, 0.3);
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: inline-block;
}

.nav-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: #000;
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.4);
}

/* Main Content */
main {
    margin: 30px auto;
    max-width: 900px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeUp 0.6s ease-out 0.2s both;
}

/* Sections */
section {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    background: rgba(0, 217, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    animation: scaleIn 0.6s ease-out both;
}

section:last-child {
    margin-bottom: 0;
}

section:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border);
    background: rgba(0, 217, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.2);
}

/* Headings */
h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: var(--primary);
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite;
}

/* Lists */
ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

ul li {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    transition: color 0.3s ease;
}

ul li:hover {
    color: var(--primary);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--secondary);
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 25px 20px;
    color: var(--text-muted);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(255, 0, 110, 0.05));
    border-top: 2px solid var(--glass-border);
    border-radius: 15px 15px 0 0;
    animation: slideInUp 0.8s ease-out 0.3s both;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

footer p {
    margin: 0;
}

/* Utility Classes */
.center {
    text-align: center;
}

.will-animate {
    will-change: transform, opacity;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
        width: 100%;
        overflow-x: hidden;
    }

    header {
        padding: 20px 10px;
        margin-bottom: 15px;
        border-radius: 15px;
    }

    .header-content {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    header h1,
    .header-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .page-info {
        align-items: center;
        text-align: center;
    }

    .page-name {
        font-size: 0.9rem;
    }

    header p {
        font-size: 0.9rem;
    }

    #logo {
        width: 70px !important;
        height: auto;
    }

    nav {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 10px;
        margin-top: 10px;
        gap: 6px;
    }

    nav ul {
        flex-direction: column;
        gap: 6px;
    }

    nav a {
        padding: 10px 12px;
        text-align: center;
        width: 100%;
        font-size: 0.85rem;
    }

    .nav-quick {
        flex-direction: column;
        gap: 6px;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    main {
        padding: 15px 10px;
        margin: 15px auto;
    }

    section {
        padding: 12px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 1.2rem;
    }

    ul {
        margin-left: 15px;
    }

    footer {
        margin-top: 20px;
        padding: 15px 10px;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
        width: 100%;
        overflow-x: hidden;
    }

    header {
        padding: 15px 8px;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .header-content {
        gap: 8px;
        flex-direction: column;
    }

    header h1,
    .header-title {
        font-size: 1.1rem;
    }

    .page-name {
        font-size: 0.8rem;
    }

    header p {
        font-size: 0.8rem;
    }

    #logo {
        width: 60px !important;
        height: auto;
        margin-top: 0;
    }

    nav {
        padding: 8px 8px;
        margin-top: 8px;
        gap: 5px;
    }

    nav ul {
        gap: 5px;
    }

    nav a {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .nav-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    main {
        padding: 12px 8px;
        margin: 10px auto;
    }

    section {
        padding: 10px;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    ul {
        margin-left: 12px;
        margin-bottom: 10px;
    }

    ul li {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    footer {
        margin-top: 15px;
        padding: 12px 8px;
        margin-left: -5px;
        margin-right: -5px;
    }
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  font-family: sans-serif;
  overflow-x: hidden; /* Prevent horizontal scroll */
  overflow-y: auto;   /* Enable vertical scroll */
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Use min-height to allow content to expand */
  width: 100%;
}
