/* About Page Styles */
/* This file contains styles specific to the About page */

/* CTF Accounts Section */
.ctf-accounts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin: 20px 0;
}

.ctf-accounts .htb-badge {
    height: 40px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.3);
    transform-origin: left center;
}

.ctf-accounts .tryhackme-badge {
    width: 350px;
    height: 90px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

@media (max-width: 600px) {
    .ctf-accounts .tryhackme-badge {
        width: 300px;
    }
}

/* Badge styling for about page */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    align-items: center;
    justify-content: flex-start;
}

.cert-badge {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    display: inline-block !important;
    margin: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
}

.cert-badge:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 255, 255, 0.4);
}

.badge-container a {
    display: inline-block;
    text-decoration: none;
}

/* About page TOC - Modern Glassmorphism Style */
.about-toc {
    position: fixed;
    left: 30px;
    top: 140px;
    width: 200px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideInLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-toc h4 {
    margin: 0 0 15px 0;
    color: #ff6b6b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.about-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-toc li {
    position: relative;
    margin: 10px 0;
    padding-left: 15px;
    transition: transform 0.2s ease;
}

.about-toc li:hover {
    transform: translateX(5px);
}

/* Custom indicator dot instead of tree */
.about-toc li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #666;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.about-toc li:hover::before {
    background-color: #ff6b6b;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
}

/* Remove the tree lines */
.about-toc li:last-child::before {
    content: '';
}

.about-toc a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: block;
    padding: 2px 0;
}

.about-toc a:hover {
    color: #fff;
}

/* Light Theme Adjustments */
body.light-theme .about-toc {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

body.light-theme .about-toc h4 {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .about-toc a {
    color: #555;
}

body.light-theme .about-toc a:hover {
    color: #ff6b6b;
}

body.light-theme .about-toc li::before {
    background-color: #bbb;
}

body.light-theme .about-toc li:hover::before {
    background-color: #ff6b6b;
}

@media (max-width: 1200px) {
    .about-toc {
        display: none;
    }
}
