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

/* CSS Variables for 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);
}

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

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

@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 borderPulse {
    0%, 100% { border-color: rgba(0, 217, 255, 0.3); }
    50% { border-color: rgba(0, 217, 255, 0.8); }
}

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

/* Body Styling */
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%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated background effect */
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;
}

/* Header Styling */
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);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 20px;
    animation: slideInDown 0.8s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    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;
}

.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 p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 3vw, 1.1rem);
}

/* Navigation Bar */
nav {
    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);
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    animation: slideInDown 1s ease-out 0.1s both;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

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));
    border-color: var(--primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

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

/* Main Content */
main {
    margin: 20px auto;
    max-width: 900px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px;
    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: slideInUp 0.8s ease-out 0.2s both;
}

main h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: clamp(1.4rem, 4vw, 2rem);
    animation: glow 3s ease-in-out infinite;
}

main p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

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

footer p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* 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 {
        font-size: 1.3rem;
        text-align: center;
    }

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

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

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

    nav {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 10px;
        margin-bottom: 15px;
        gap: 8px;
    }

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

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

    main {
        padding: 15px 10px;
        margin: 10px 0;
        max-width: 100%;
    }

    main h2 {
        font-size: 1.3rem;
    }

    main p {
        font-size: 0.9rem;
    }

    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: 10px;
        flex-direction: column;
    }

    header h1 {
        font-size: 1.1rem;
    }

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

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

    nav {
        padding: 8px 8px;
        margin-bottom: 10px;
        gap: 6px;
    }

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

    main {
        padding: 12px 8px;
        margin: 8px 0;
    }

    main h2 {
        font-size: 1.1rem;
    }

    main p {
        font-size: 0.85rem;
    }

    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%;
}
