* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #ffd1dc 0%, #b8d8e0 50%, #ffdfba 100%);
    background-attachment: fixed;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    height: 70px;
}

.logo-image {
    max-height: 220px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #555555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #000000;
}

.nav-links .btn-portal {
    background-color: #111111;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-links .btn-portal:hover {
    background-color: #333333;
    color: #ffffff;
}

#main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

.page-section {
    padding: 60px 0;
    text-align: center;
}

.page-section h1 {
    font-size: 38px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #222222;
}

.page-section p {
    font-size: 18px;
    font-weight: 300;
    color: #555555;
    max-width: 1120px;
    margin: 0 auto;
    line-height: 1.7;
}

.intro-block {
    max-width: 1140px;
    margin: 40px auto 0 auto;
    padding: 35px 40px;

}

.intro-block p {
    font-size: 16px;
    color: #444444;
    line-height: 1.8;
    font-weight: 300;
    text-align: justify;
}

.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 40px 0 20px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-size: 20px;
    font-weight: bold;
}

.footer-contact {
    text-align: right;
    line-height: 1.8;
}

.footer-nav {
    padding: 20px 0;
    border-bottom: 1px solid #222;
}

.nav-links-footer {
    display: flex;
    list-style: none;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links-footer a {
    text-decoration: none;
    color: #bbb;
    transition: color 0.3s ease;
}

.nav-links-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #7f8c8d;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    padding: 20px 0;
}

.feature-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.feature-item h2 {
    font-size: 20px;
    color: #333333;
    margin-bottom: 16px;
    font-weight: 500;
}

.feature-item p {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
}

.story-section {
    max-width: 1120px;
    margin: 80px auto 40px auto;
    text-align: left;
}

.story-section h2 {
    font-size: 23px;
    font-weight: 1120;
    color: #111111;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.story-section p {
    font-size: 17px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0 30px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #222222;
    padding-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: -0.01em;
}

.footer-contact {
    text-align: right;
    line-height: 2;
    color: #888888;
}

.footer-nav {
    padding: 30px 0;
    border-bottom: 1px solid #222222;
}

.nav-links-footer {
    display: flex;
    list-style: none;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links-footer a {
    text-decoration: none;
    color: #888888;
    transition: color 0.3s ease;
}

.nav-links-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: #666666;
}

.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h1.animate-text {
    animation-delay: 0.1s;
}

p.animate-text {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@supports (animation-timeline: view()) {
    .feature-item.animate-text,
    .story-section .animate-text {
        opacity: 0;
        transform: translateY(60px);
        animation: scrollReveal linear forwards;
        view-timeline-name: --scroll-reveal;
        view-timeline-axis: block;
        animation-timeline: --scroll-reveal;
        animation-range: entry 5% entry 75%;
    }
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    padding: 20px 0;
}

.feature-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feature-item h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

@keyframes scrollReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@supports (animation-timeline: view()) {
    .feature-item.animate-text {
        opacity: 0;
        transform: translateY(50px);
        animation: scrollReveal linear forwards;
        view-timeline-name: --block-show;
        view-timeline-axis: block;
        animation-timeline: --block-show;
        animation-range: entry 10% entry 80%;
    }
}

#portal-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.portal-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.portal-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 250px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portal-card h3 {
    color: #333333;
    font-size: 22px;
    font-weight: 500;
}

#portal-login {
    max-width: 400px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

#portal-login h2 {
    margin-bottom: 30px;
    color: #222222;
    font-size: 24px;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.login-form label {
    font-size: 14px;
    color: #555555;
    font-weight: 500;
    margin-bottom: -5px;
}

.login-form input {
    padding: 12px 15px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    outline: none;
}

.login-form input:focus {
    border-color: #333333;
}

.btn-submit {
    background-color: #111111;
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #333333;
}

.btn-back {
    background-color: transparent;
    color: #777777;
    padding: 10px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 5px;
}

.btn-back:hover {
    color: #111111;
}

#dashboard-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    gap: 6px;
    padding: 6px;
    z-index: 9999;
    background: linear-gradient(135deg, #ffd1dc 0%, #b8d8e0 50%, #ffdfba 100%);
    box-sizing: border-box;
}

.dashboard-sidebar {
    width: 280px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
    height: 100%;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed #dddddd;
    margin-bottom: 20px;
    background-color: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar::after {
    content: '\1F464';
    font-size: 40px;
    color: #cccccc;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    text-align: center;
    margin-bottom: 10px;
}

.user-avatar {
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background-size: cover;
    background-position: center;
}

.user-avatar:hover {
    border-color: #333333;
    background-color: #f0f0f0;
}

#avatar-input {
    display: none;
}

.name-edit-box {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    width: 100%;
}

#input-new-name {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

#input-new-name:focus {
    border-color: #333333;
}

#btn-save-name {
    background-color: #111111;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#btn-save-name:hover {
    background-color: #333333;
}

.sidebar-bottom {
    display: flex;
    padding-top: 20px;
    border-top: 1px solid #f2e8eb;
}

.btn-logout {
    background: transparent;
    border: none;
    color: #c0392b;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.btn-logout:hover {
    color: #e74c3c;
}

.dashboard-content {
    flex: 1;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.dashboard-content h1 {
    font-size: 26px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 500;
}

.dashboard-content p {
    font-size: 16px;
    color: #666666;
    max-width: 650px;
    line-height: 1.8;
}