﻿/* AboutStyles.css - Consistent with main design system */

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(145deg, #1A2F45 0%, #31476B 100%);
    color: #D0D6DD;
    margin: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.6s ease;
}

.main-container {
    max-width: 95vw;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    letter-spacing: 0.02em;
}

.header-container {
    background: rgba(20, 35, 52, 0.85);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 12px 45px rgba(15, 20, 28, 0.85);
    padding: 0.4rem 1rem;
    margin: 0 auto;
    max-width: 95vw;
    width: 100%;
    height: 113px;
    text-align: center;
    border-bottom: 4px solid #1E3159;
    position: sticky;
    top: 0;
    z-index: 10000;
    backdrop-filter: saturate(200%) blur(14px);
    animation: headerPulse 4s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes headerPulse {
    0%, 100% {
        box-shadow: 0 12px 45px rgba(15, 20, 28, 0.85);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 16px 60px rgba(15, 20, 28, 1);
        transform: translateY(-2px);
    }
}

#pageTitle {
    font-family: 'Georgia', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #B0B5BD;
    letter-spacing: 0.15em;
    margin: 0 0 0.2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.75), 0 0 14px rgba(30, 48, 80, 0.8);
    text-transform: uppercase;
    animation: elegantGlow 2.8s ease-in-out infinite alternate;
    user-select: none;
    position: relative;
    z-index: 2;
}

@keyframes elegantGlow {
    0% {
        opacity: 0.8;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(40, 62, 100, 0.6);
    }

    100% {
        opacity: 1;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 24px rgba(40, 62, 100, 1);
    }
}

.nav-container {
    background: transparent;
    padding: 0.2rem 0;
    border-radius: 0;
}

.nav {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .nav li {
        --nav-index: 0;
        position: relative;
    }

        .nav li:nth-child(1) {
            --nav-index: 1;
        }

        .nav li:nth-child(2) {
            --nav-index: 2;
        }

        .nav li:nth-child(3) {
            --nav-index: 3;
        }

        .nav li:nth-child(4) {
            --nav-index: 4;
        }

        .nav li:nth-child(5) {
            --nav-index: 5;
        }

        .nav li a {
            color: #B0B5BD;
            font-size: clamp(0.85rem, 1vw, 0.95rem);
            font-weight: 500;
            text-decoration: none;
            padding: 0.5rem clamp(1rem, 1.5vw, 1.5rem);
            border-radius: 12px;
            background: rgba(45, 62, 90, 0.18);
            border: 1px solid transparent;
            box-shadow: 0 0 8px rgba(10, 20, 40, 0.25);
            transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
            user-select: none;
            cursor: pointer;
            animation: fadeInUp 1.2s cubic-bezier(0.36, 0, 0.24, 1) forwards;
            animation-delay: calc(0.12s * var(--nav-index));
            display: inline-block;
            position: relative;
            overflow: hidden;
            text-shadow: 0 0 1px rgba(0, 0, 0, 0.45);
            z-index: 1;
        }

            .nav li a::before {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                width: 0;
                height: 0;
                background: radial-gradient(circle, rgba(74, 104, 181, 0.5), transparent);
                border-radius: 50%;
                transform: translate(-50%, -50%);
                transition: width 0.5s ease, height 0.5s ease;
                z-index: -1;
            }

            .nav li a:hover::before,
            .nav li a:focus-visible::before {
                width: 300px;
                height: 300px;
            }

            .nav li a::after {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100%;
                background: linear-gradient(90deg, transparent, rgba(45, 62, 90, 0.45), transparent);
                transition: left 0.55s ease;
                z-index: 0;
            }

            .nav li a:hover::after,
            .nav li a:focus-visible::after {
                left: 100%;
            }

            .nav li a:hover,
            .nav li a:focus-visible,
            .nav li a[aria-current="page"] {
                color: #D8DCE2;
                background-color: #2F436F;
                border-color: #6F81A5;
                box-shadow: 0 0 20px #1E3159, inset 0 0 14px #4A68B5;
                transform: translateY(-2px);
                outline: none;
                z-index: 1;
            }

.section-title {
    font-family: 'Georgia', serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #94A0B2;
    text-transform: uppercase;
    text-align: center;
    margin: clamp(2.5rem, 4vw, 3.6rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    text-shadow: 0 0 10px rgba(50, 68, 112, 0.8);
    animation: slowGlow 3.2s ease-in-out infinite alternate;
    user-select: none;
}

@keyframes slowGlow {
    0% {
        text-shadow: 0 0 7px rgba(50, 68, 112, 0.6);
    }

    100% {
        text-shadow: 0 0 20px rgba(50, 68, 112, 1);
    }
}

.content-section {
    background: #2A3C5A;
    border-radius: 28px;
    max-width: clamp(600px, 90vw, 1000px);
    margin: 3.5rem auto;
    padding: clamp(2rem, 3.2vw, 4.8rem);
    color: #D8DCE2;
    font-family: 'Georgia', serif;
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
    line-height: 1.9;
    text-align: justify;
    border: 2px solid #43567A;
    box-shadow: 0 14px 45px rgba(30, 41, 68, 0.6);
    animation: contentFadeScale 1.8s cubic-bezier(0.36, 0, 0.24, 1) forwards;
    user-select: text;
}

@keyframes contentFadeScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* About page specific content styling */
.content-section p {
    margin-bottom: 1.5rem;
    text-indent: 2rem;
}

    .content-section p:first-of-type {
        font-size: clamp(1.2rem, 1.6vw, 1.55rem);
        font-weight: 600;
        color: #E8ECEF;
        text-indent: 0;
    }

.content-section h3 {
    font-family: 'Georgia', serif;
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    font-weight: 700;
    color: #B0B5BD;
    margin: 2rem 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 0 5px rgba(50, 68, 112, 0.6);
}

.content-section ul {
    margin: 1rem 0 1.5rem 2rem;
    padding: 0;
}

.content-section li {
    margin-bottom: 0.8rem;
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

    .content-section li::before {
        content: '▸';
        position: absolute;
        left: 0;
        color: #6F81A5;
        font-weight: bold;
        font-size: 1.2em;
    }

.content-section strong {
    color: #E8ECEF;
    font-weight: 700;
}

.content-section em {
    color: #B0B5BD;
    font-style: italic;
}

.button-container {
    text-align: center;
    margin: clamp(1.5rem, 3vw, 2rem) 0;
}

.home-button {
    font-family: 'Georgia', serif;
    font-size: clamp(0.95rem, 1.2vw, 1rem);
    background: #1A2A4D;
    color: #D8DCE2;
    padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1.5rem, 2.5vw, 2rem);
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(20, 29, 50, 0.75);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 1.5s cubic-bezier(0.36, 0, 0.24, 1) forwards;
    position: relative;
    overflow: hidden;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.02em;
}

    .home-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(74, 104, 181, 0.5), transparent);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.5s ease, height 0.5s ease;
        z-index: 0;
    }

    .home-button:hover::before,
    .home-button:focus-visible::before {
        width: 300px;
        height: 300px;
    }

    .home-button::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(45, 62, 90, 0.45), transparent);
        transition: left 0.55s ease;
        z-index: 0;
    }

    .home-button:hover::after,
    .home-button:focus-visible::after {
        left: 100%;
    }

    .home-button:hover,
    .home-button:focus-visible {
        background: #324A7A;
        box-shadow: 0 10px 30px rgba(34, 52, 90, 0.9), inset 0 0 12px rgba(88, 115, 185, 0.75);
        transform: translateY(-2px);
        outline: none;
    }

    .home-button span {
        position: relative;
        z-index: 1;
    }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 2560px) {
    .main-container {
        max-width: 90vw;
    }

    .header-container {
        max-width: 90vw;
    }
}

@media (max-width: 1440px) {
    .main-container {
        max-width: 92vw;
        padding: 0 1.2rem;
    }

    .header-container {
        max-width: 92vw;
        padding: 0.4rem 0.8rem;
        height: 113px;
    }
}

@media (max-width: 1024px) {
    .main-container {
        padding: 0 1rem;
    }

    .header-container {
        padding: 0.4rem 0.7rem;
        max-width: 94vw;
    }

    .content-section {
        padding: 1.5rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.4rem 0.6rem;
        height: 113px;
        max-width: 96vw;
    }

    #pageTitle {
        font-size: clamp(1.2rem, 3vw, 1.7rem);
        margin-bottom: 0.1rem;
    }

    .nav {
        gap: clamp(0.8rem, 1.8vw, 1rem);
    }

        .nav li a {
            padding: 0.4rem clamp(0.8rem, 1.2vw, 1rem);
            font-size: clamp(0.8rem, 2.2vw, 0.9rem);
        }

    .content-section {
        padding: 1rem 0.5rem;
        font-size: clamp(0.9rem, 2.8vw, 1rem);
    }

        .content-section p {
            text-indent: 1rem;
        }

    .section-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .home-button {
        padding: 0.6rem clamp(1rem, 2vw, 1.2rem);
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }
}

@media (max-width: 600px) {
    .main-container,
    .header-container,
    .content-section {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding-left: clamp(0.4rem, 1.5vw, 0.6rem) !important;
        padding-right: clamp(0.4rem, 1.5vw, 0.6rem) !important;
        box-sizing: border-box;
    }

    .header-container {
        padding: 0.3rem 0.5rem;
        height: 113px;
    }

    #pageTitle {
        font-size: clamp(1rem, 2.8vw, 1.4rem);
        letter-spacing: 0.12em;
        margin-bottom: 0.1rem;
    }

    .nav {
        gap: clamp(0.5rem, 1.5vw, 0.7rem);
    }

        .nav li a {
            padding: 0.3rem clamp(0.6rem, 1vw, 0.8rem);
            font-size: clamp(0.75rem, 2vw, 0.85rem);
        }

    .content-section {
        padding: 0.8rem 0.4rem;
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    }

        .content-section p {
            text-indent: 0.5rem;
        }

    .section-title {
        font-size: clamp(1rem, 4.5vw, 1.3rem);
    }

    .home-button {
        padding: 0.6rem clamp(0.8rem, 1.8vw, 1rem);
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    }
}

@media (max-width: 400px) {
    .main-container {
        padding: 0 0.3rem;
    }

    .header-container {
        padding: 0.3rem 0.3rem;
        height: 113px;
        max-width: 100%;
        border-radius: 0;
    }

    #pageTitle {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        letter-spacing: 0.1em;
        margin-bottom: 0.1rem;
    }

    .nav {
        gap: clamp(0.4rem, 1.2vw, 0.5rem);
    }

        .nav li a {
            padding: 0.3rem clamp(0.5rem, 0.8vw, 0.6rem);
            font-size: clamp(0.7rem, 1.8vw, 0.8rem);
        }

    .content-section {
        padding: 0.6rem 0.3rem;
        font-size: clamp(0.8rem, 2.3vw, 0.9rem);
        margin: 0.8rem auto;
        border-radius: 10px;
    }

        .content-section p {
            text-indent: 0;
        }

    .section-title {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        margin: 1rem 0 0.8rem;
    }

    .home-button {
        padding: 0.5rem clamp(0.7rem, 1.5vw, 0.9rem);
        font-size: clamp(0.7rem, 1.7vw, 0.85rem);
    }
}

@media (max-width: 300px) {
    .main-container {
        padding: 0 0.2rem;
    }

    .header-container {
        padding: 0.2rem 0.2rem;
        height: 113px;
        max-width: 100%;
        border-radius: 0;
    }

    #pageTitle {
        font-size: clamp(0.8rem, 2.3vw, 1rem);
        letter-spacing: 0.08em;
        margin-bottom: 0.1rem;
    }

    .nav {
        gap: clamp(0.3rem, 1vw, 0.4rem);
    }

        .nav li a {
            padding: 0.2rem clamp(0.4rem, 0.7vw, 0.5rem);
            font-size: clamp(0.65rem, 1.7vw, 0.75rem);
        }

    .content-section {
        padding: 0.4rem 0.2rem;
        font-size: clamp(0.75rem, 2.2vw, 0.85rem);
    }

    .section-title {
        font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    }

    .home-button {
        padding: 0.4rem clamp(0.6rem, 1.3vw, 0.8rem);
        font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    }
}
@media (max-width: 320px) 
{
    .main-container {
        padding: 0 0.2rem;
    }

    .header-container {
        padding: 0.2rem 0.2rem;
        height: 113px;
        max-width: 100%;
        border-radius: 0;
    }

    #pageTitle {
        font-size: clamp(0.8rem, 2.3vw, 1rem);
        letter-spacing: 0.08em;
        margin-bottom: 0.1rem;
    }

    .nav {
        gap: clamp(0.3rem, 1vw, 0.4rem);
    }

        .nav li a {
            padding: 0.2rem clamp(0.4rem, 0.7vw, 0.5rem);
            font-size: clamp(0.65rem, 1.7vw, 0.75rem);
        }

    .content-section {
        padding: 0.4rem 0.2rem;
        font-size: clamp(0.75rem, 2.2vw, 0.85rem);
    }

    .section-title {
        font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    }

    .home-button {
        padding: 0.4rem clamp(0.6rem, 1.3vw, 0.8rem);
        font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    }
}

@media (max-width: 200px) {
    .main-container {
        padding: 0 0.1rem;
    }

    .header-container {
        padding: 0.2rem 0.1rem;
        height: 113px;
        max-width: 100%;
        border-radius: 0;
    }

    #pageTitle {
        font-size: clamp(0.7rem, 2vw, 0.9rem);
        letter-spacing: 0.06em;
        margin-bottom: 0.05rem;
    }

    .nav {
        gap: clamp(0.2rem, 0.8vw, 0.3rem);
        flex-direction: column;
        align-items: center;
    }

        .nav li a {
            padding: 0.2rem clamp(0.3rem, 0.6vw, 0.4rem);
            font-size: clamp(0.6rem, 1.5vw, 0.7rem);
        }

    .content-section {
        padding: 0.3rem 0.1rem;
        font-size: clamp(0.7rem, 2vw, 0.8rem);
        border-radius: 8px;
        margin: 0.6rem auto;
    }

    .section-title {
        font-size: clamp(0.8rem, 3vw, 1rem);
        margin: 0.8rem 0 0.6rem;
    }

    .home-button {
        padding: 0.3rem clamp(0.5rem, 1vw, 0.7rem);
        font-size: clamp(0.6rem, 1.3vw, 0.7rem);
    }
}

@media (min-width: 2560px) {
    .main-container {
        max-width: 85vw;
    }

    .header-container {
        max-width: 85vw;
        padding: 0.5rem 1.5rem;
    }

    #pageTitle {
        font-size: clamp(2rem, 3vw, 2.8rem);
    }

    .nav li a {
        font-size: clamp(1rem, 1.2vw, 1.2rem);
        padding: 0.6rem clamp(1.5rem, 2vw, 2rem);
    }

    .content-section {
        max-width: 1200px;
        padding: 5rem;
        font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    }

    .section-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }

    .home-button {
        font-size: clamp(1.1rem, 1.5vw, 1.2rem);
        padding: 0.8rem clamp(1.8rem, 2.5vw, 2.2rem);
    }
}
