/* ================================================================
   UniCheatSheet – About Page
   Modern Premium Dark Theme with Cyan Accents
   ================================================================ */

/* ---------- Design Tokens ---------- */
:root {
    --accent: #00e5ff;
    --accent-dim: rgba(0, 229, 255, 0.15);
    --accent-glow: rgba(0, 229, 255, 0.35);
    --surface: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(0, 229, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
body {
    background: #000a14;
    color: var(--text-primary);
    font-family: 'Inter', 'Montserrat', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Ambient floating particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(0, 229, 255, 0.12) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 70%, rgba(0, 229, 255, 0.08) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 60%, rgba(0, 229, 255, 0.06) 0%, transparent 100%),
        radial-gradient(2px 2px at 10% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: particleDrift 20s ease-in-out infinite alternate;
}

@keyframes particleDrift {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-15px) translateX(10px);
    }

    100% {
        transform: translateY(5px) translateX(-8px);
    }
}

/* ---------- Header Section ---------- */
#header {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    z-index: auto;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.about-container {
    min-height: 100vh;
    padding: 120px 40px 60px;
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    animation: contentReveal 0.8s ease-out both;
}

@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   IMAGE SECTION
   ============================================ */

.about-image {
    flex: 1;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    order: 2;
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition-smooth);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), transparent 50%, rgba(0, 229, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 2;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.06);
}

.about-image:hover::before {
    opacity: 1;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    order: 1;
}

/* ============================================
   ABOUT & PURPOSE SECTIONS
   ============================================ */

.about-section,
.purpose-section {
    padding: 40px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-smooth);
}

.about-section::before,
.purpose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.about-section:hover,
.purpose-section:hover {
    border-color: var(--border-hover);
}

.about-section:hover::before,
.purpose-section:hover::before {
    opacity: 1;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

.about-section h2,
.purpose-section h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    font-family: 'Inter', 'Montserrat', system-ui, sans-serif;
    text-align: left;
    position: relative;
    padding-bottom: 15px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.about-section h2::after,
.purpose-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(0, 229, 255, 0.3));
    border-radius: 2px;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================
   CONTENT TEXT
   ============================================ */

.about-content-text,
.purpose-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-content-text p,
.purpose-content p {
    margin-bottom: 12px;
}

/* Link styling */
.about-content-text a,
.purpose-content a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.about-content-text a::after,
.purpose-content a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.about-content-text a:hover::after,
.purpose-content a:hover::after {
    width: 100%;
}

.about-content-text a:hover,
.purpose-content a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* Lists */
.about-content-text ul,
.purpose-content ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.about-content-text li,
.purpose-content li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    transition: color 0.3s ease;
}

.about-content-text li::before,
.purpose-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.1em;
}

.about-content-text li:hover,
.purpose-content li:hover {
    color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background: rgba(0, 5, 15, 0.95);
    color: var(--text-primary);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.footer h3 {
    font-family: 'Inter', 'Montserrat', system-ui, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 2px;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media screen and (max-width: 1024px) {
    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-image,
    .content-wrapper {
        order: 0;
        width: 100%;
    }

    .about-image {
        height: 400px;
    }

    .about-section h2,
    .purpose-section h2 {
        text-align: center;
    }

    .about-section h2::after,
    .purpose-section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 768px) {
    .about-container {
        padding: 90px 25px 40px;
    }

    .about-image {
        height: 350px;
    }

    .about-section,
    .purpose-section {
        padding: 30px;
    }

    .about-section h2,
    .purpose-section h2 {
        font-size: 2.4rem;
    }

    .footer {
        padding: 20px 0;
    }

    .footer h3 {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 480px) {
    .about-container {
        padding: 80px 20px 30px;
    }

    .about-image {
        height: 250px;
    }

    .about-section,
    .purpose-section {
        padding: 25px;
    }

    .about-section h2,
    .purpose-section h2 {
        font-size: 2rem;
    }

    .about-content-text,
    .purpose-content {
        font-size: 1.05rem;
    }

    .footer {
        padding: 15px 0;
    }

    .footer h3 {
        font-size: 1.3rem;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 320px) {
    .about-container {
        padding: 70px 15px 25px;
    }

    .about-image {
        height: 180px;
        margin-bottom: 20px;
    }

    .about-section h2,
    .purpose-section h2 {
        font-size: 1.7rem;
    }
}