/* General styles */
body {
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    background-color: #020b16;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 191, 0.12), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(0, 145, 255, 0.08), transparent 50%),
        linear-gradient(130deg, #01070f 0%, #041b28 55%, #020b16 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 255, 149, 0.18) 55%, rgba(0, 0, 0, 0.45) 100%),
        repeating-linear-gradient(90deg, rgba(0, 255, 170, 0.12) 0 2px, transparent 2px 120px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='360'%3E%3Cg fill='%2300ff9d' font-family='Menlo,Monaco,monospace' font-size='16' opacity='0.55'%3E%3Ctext x='10' y='34'%3E1011001100110%3C/text%3E%3Ctext x='60' y='94'%3E0011010011110%3C/text%3E%3Ctext x='120' y='154'%3E0101100110101%3C/text%3E%3Ctext x='30' y='214'%3E1100101001110%3C/text%3E%3Ctext x='90' y='274'%3E0010110110011%3C/text%3E%3Ctext x='150' y='334'%3E0100110010101%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='420'%3E%3Cg fill='%2300ffe0' font-family='Menlo,Monaco,monospace' font-size='18' opacity='0.55' letter-spacing='2'%3E%3Ctext x='20' y='36'%3E%26lt;dita%26gt;%3C/text%3E%3Ctext x='120' y='96'%3E%26lt;xml%26gt;%3C/text%3E%3Ctext x='30' y='156'%3E%26lt;info%26gt;%3C/text%3E%3Ctext x='150' y='216'%3E%26lt;task%26gt;%3C/text%3E%3Ctext x='40' y='276'%3E%26lt;markdown%26gt;%3C/text%3E%3Ctext x='140' y='336'%3E%26lt;docs-as-code%26gt;%3C/text%3E%3Ctext x='10' y='396'%3E%26lt;tech-writer%26gt;%3C/text%3E%3C/svg%3E");
    background-size:
        100% 100%,
        180px 100%,
        220px 360px,
        260px 420px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    mix-blend-mode: screen;
    opacity: 0.95;
    pointer-events: none;
    z-index: -2;
    animation: matrixScroll 28s linear infinite;
}

body::after {
    content: '';
    position: fixed;
    inset: -12% -25% -5% -25%;
    background:
        radial-gradient(circle at 70% 12%, rgba(0, 255, 195, 0.26), transparent 55%),
        radial-gradient(circle at 15% 85%, rgba(0, 140, 255, 0.24), transparent 60%);
    filter: blur(90px);
    opacity: 0.9;
    animation: auroraShift 18s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes auroraShift {
    0% {
        transform: translate(-5%, -2%) scale(1);
    }
    50% {
        transform: translate(4%, 3%) scale(1.05);
    }
    100% {
        transform: translate(-2%, 4%) scale(0.98);
    }
}

@keyframes matrixScroll {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 0 600px, 0 0, 0 -600px, 0 900px;
    }
}

#matrixRain {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    margin: 0;
    padding: 0;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 10px rgba(0, 255, 138, 0.15));
    opacity: 0.8;
}

header {
    text-align: center;
    margin: 5vh 0 3vh;
    position: relative;
    z-index: 1;
    color: #eef3ff;
}

header::before {
    content: '';
    position: absolute;
    inset: -60px 15% auto;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 230, 255, 0.22) 0%, rgba(0, 140, 255, 0.15) 55%, transparent 80%);
    filter: blur(45px);
    z-index: -1;
}

.accordion-controls {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 0 20px;
}

.accordion-control {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
    animation: controlPulse 6s ease-in-out infinite;
}

.accordion-control:hover {
    background: linear-gradient(135deg, rgba(0, 230, 255, 0.3), rgba(0, 140, 255, 0.24));
    border-color: rgba(0, 212, 255, 0.7);
    transform: translateY(-2px);
}

.accordion-control:hover .control-icon {
    color: #fff;
}

.accordion-control:disabled,
.accordion-control:disabled:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
    animation: none;
}

.accordion-control:disabled .control-icon {
    color: #b3b3b3;
}

.control-icon {
    font-size: 22px;
    line-height: 1;
    color: #e2f7ff;
}

.rotate-90 {
    display: inline-block;
    transform: rotate(-90deg);
}

@keyframes controlPulse {
    0%, 100% {
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25), 0 0 0 rgba(0, 255, 255, 0);
    }
    50% {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 255, 255, 0.25);
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: #d7def8;
    transition: fill 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(0, 230, 255, 0.3), rgba(0, 140, 255, 0.24));
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
}

.social-link:hover svg {
    fill: #ffffff;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 26px 22px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 45px rgba(5, 6, 10, 0.6);
}

section:first-of-type {
    padding-top: 5px;
}

h1 {
    font-size: clamp(36px, 5vw, 72px);
    letter-spacing: clamp(2px, 1vw, 9px);
    color: #eef3ff;
    font-weight: 400;
    text-align: right;
    margin: 5vh auto;
    padding-right: 20px; /* Ensure alignment with accordion */
    max-width: 1200px; /* Same as section */
}

h2 {
    font-size: clamp(18px, 3vw, 24px);
    letter-spacing: 2px;
    text-align: center;
    font-weight: 400;
    color: #c5cee5;
}

p {
    text-align: left;
    max-width: 800px;
    margin: 20px auto;
    font-size: clamp(16px, 2vw, 18px);
    color: #666;
    line-height: 1.5;
}

/* Accordion button styles */

.accordion {
    background: rgba(8, 10, 16, 0.65);
    color: #dfe5ff;
    cursor: pointer;
    padding: 16px 18px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    outline: none;
    font-size: clamp(16px, 2vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
    margin-bottom: 8px;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(6, 6, 10, 0.65);
}

.accordion:hover {
    background: linear-gradient(135deg, rgba(0, 230, 255, 0.12), rgba(0, 140, 255, 0.12));
    color: #fff;
    border-color: rgba(0, 212, 255, 0.35);
}

.accordion:after {
    content: '\25BC';
    display: inline-block;
    font-size: 22px;
    line-height: 1;
    margin-left: 10px;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.accordion.active:after {
    transform: rotate(0deg);
}

.panel {
    padding: 14px 22px 24px;
    background: rgba(255, 255, 255, 0.9);
    margin: 12px auto;
    display: none;
    overflow: hidden;
    border-left: 4px solid rgba(0, 198, 255, 0.32);
    border-radius: 0 0 16px 16px;
}

.credential-entry {
    margin-bottom: 18px;
}

.credential-entry:last-of-type {
    margin-bottom: 0;
}

.accordion.active {
    background: linear-gradient(135deg, rgba(0, 230, 255, 0.09), rgba(0, 140, 255, 0.09));
    color: #fff;
    border-color: rgba(0, 212, 255, 0.35);
}

a {
    color: #00a1a1;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: #00ff99;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        text-align: center;
        margin: 40px auto;
        padding-right: 0;
    }

    section {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    header {
        margin-top: 30px;
        margin-bottom: 40px;
    }

    h1 {
        text-align: center;
        margin-right: 0;
    }

    h2 {
        font-size: 20px;
    }

    section {
        padding: 10px;
    }

    p {
        font-size: 16px;
        text-align: left;
        margin: 10px auto;
    }

    .accordion {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 14px;
        margin-top: 30px;
    }

    .accordion {
        font-size: 14px;
        padding: 10px;
    }

    .panel {
        padding: 8px;
    }
}
