@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    font-family: "Inter", sans-serif;
}

html,
body {
    height: 100%;
    overflow: auto;
    overflow-x: hidden;
}

#committee {
    min-width: 25vw;
    font-size: medium;
    padding: 6px;
}

#icons {
    font-size: 2rem;
    margin-inline: 0.5rem;
}

#images {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

ul {
    margin-left: 15px;
}

.navigation {
    background: #ffffffbf;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 8px 12px;
    border-bottom: 1px solid darkgray;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.left-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.right-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.title {
    background: transparent;
    border: none;
    font-family: "Press Start 2P", system-ui;
    font-size: 15px;
    font-weight: bold;
    padding: 6px 10px;
    cursor: pointer;
}

.btn {
    background: transparent;
    border: none;
    font-size: 14px;
    padding: 6px 8px;
    cursor: pointer;
    color: #000;
    white-space: normal;
    display: block;
}

header {
    background: url(asset/SS.jpeg) center/cover no-repeat;
    min-height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 3rem 1rem;
    background-attachment: scroll;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

header>section {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    padding: 0 12px;
}

.lead {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero {
    font-size: clamp(1.6rem, 8vw, 3.5rem);
    line-height: 1;
    font-weight: 800;
    max-width: 100%;
    box-sizing: border-box;
}

.typewriter {
    overflow: hidden;
    box-sizing: content-box;
    border-right: .15em solid white;
    white-space: nowrap !important;
    letter-spacing: .06em;
    animation: typing 2.5s steps(40, end), blink-caret 1s step-end 2.5;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: rgb(255, 255, 255);
    }
}

.typewriter,
.typedhero {
    display: inline-block;
    white-space: pre-wrap;
    border-right: .15em solid transparent;
}

.typing-active {
    border-right-color: currentColor;
    animation: blink-caret 0.8s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: currentColor
    }
}

section {
    padding: 30px 30px 0px 30px;
    max-width: 1100px;
    margin: auto;
}

article {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #007bff;
}

article p {
    font-size: 110%;
}

.contact-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #000;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

#documentation .contact-card {
    border-top: 4px solid rgb(0, 157, 255);
    border-left: none !important;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card p {
    font-size: 0.95rem;
    color: #555;
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.hamburgermenu {
    display: none;
    color: black;
}

@media (max-width: 900px) {
    .navigation {
        align-items: flex-start;
    }

    .right-buttons {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }

    .right-buttons.active {
        display: flex;
    }

    .hamburgermenu {
        display: block;
        width: auto;
        text-align: center;
        margin-left: auto;
        flex: 0 0 auto;
        margin-top: auto;
        margin-bottom: auto;
    }

    .btn {
        width: 100%;
        text-align: left;
    }

    .hero {
        font-size: clamp(1.6rem, 7.5vw, 2.8rem);
    }

    section {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    #images {
        width: 100%;
    }

    #committee {
        width: 100%;
    }

    .navigation {
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }

    .typewriter {
        white-space: pre-wrap;
    }

    .left-buttons {
        justify-content: space-between;
    }

    .right-buttons {
        align-items: flex-start;
    }

    .title {
        font-size: 13px;
        padding: 6px 8px;
    }

    .btn {
        font-size: 13px;
        padding: 8px;
    }

    header {
        padding: 2rem 12px;
        min-height: 40vh;
    }

    .hero {
        font-size: clamp(1.1rem, 6.5vw, 1.75rem);
        letter-spacing: 0.04em;
    }

    .lead {
        font-size: 0.95rem;
    }
}

/* Documentation Cards */
.doc-card {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: #fff;
    background-color: #1e1e1e;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    flex: 0 0 250px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.doc-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.doc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.doc-card-content {
    position: relative;
    z-index: 3;
    padding: 20px;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.doc-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}