:root {
    --bg: #0f172a;
    --panel: #1e293b;
    --text: #e5e7eb;
    --accent: #ffffff;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: opacity 0.3s ease;
    text-align: center;
}

body.fade-out {
    opacity: 0;
}

.tabs {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg);
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    overflow-x: auto;
    scroll-behavior: smooth;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab:hover {
    color: var(--accent);
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: transform 0.35s ease, width 0.35s ease;
    opacity: 0;
}

@media (max-width: 600px) {
    .tabs {
        gap: 1rem;
        padding: 0.75rem 0.5rem;
        justify-content: flex-start;
    }

    .tab {
        font-size: 0.95rem;
        padding: 0.25rem 0.4rem;
        flex-shrink: 0;
        min-width: fit-content;
    }
}

.container {
    margin: 80px auto 0 auto;
    max-width: 800px;
    padding: 0 1rem;
    animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 1rem auto;
    line-height: 1.6;
}

ul {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1rem auto;
    padding-left: 1.5rem;
    text-align: left;
}

ul li {
    margin-bottom: 0.75rem;
}

.specifics {
    background-color: var(--panel);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem auto;
    max-width: 600px;
    text-align: left;
}

.specifics button {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.specifics button::after {
    content: " ▼";
    float: right;
    transition: transform 0.3s ease;
}

.specifics.open button::after {
    transform: rotate(180deg);
}

.specifics-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        height 0.6s cubic-bezier(0.25,0.8,0.25,1),
        opacity 0.3s ease;
}

.image-carousel {
    margin: 3rem 0;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.image-carousel:active {
    cursor: grabbing;
    user-drag: none;
}

.image-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
    pointer-events: auto;
    touch-action: pan-y;
    cursor: grab;
}

.image-track img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    user-drag: none;
    -webkit-user-drag: none;
    flex-shrink: 0;
    border-radius: 8px;
    user-select: none;
    pointer-events: none;
    touch-action: none;

    transition: transform 0.25s ease, opacity 0.25s ease;
}

.image-track:active {
    cursor: grabbing;
}

.social-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links img:hover {
    transform: scale(1.15);
    opacity: 1;
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    p, ul { font-size: 1rem; }
    .image-track img { width: 150px; }
    .social-links img { width: 30px; height: 30px; }
}

.accomplishments-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.accomplishments-mascot {
    position: absolute;
    left: 0;
    top: 0;
    width: 260px;
    max-width: 30vw;
    user-select: none;
    pointer-events: none;
    flex-shrink: 0;
}

.accomplishments {
    position: relative;
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--panel);
    border-radius: 12px;
    overflow: hidden;
}

.accomplishments-track {
    display: flex;
    transition: transform 0.5s ease;
}

.accomplishment-slide {
    min-width: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.accomplishment-slide img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.video-embed {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 1.5rem auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.accomplishments-arrow {
    position: absolute;
    bottom: 12px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.accomplishments-arrow:hover {
    opacity: 1;
}

.accomplishments-arrow.left {
    left: 16px;
}

.accomplishments-arrow.right {
    right: 16px;
}

.accomplishments-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0 1rem;
}

.accomplishments-dots span {
    width: 10px;
    height: 10px;
    background-color: #64748b;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.accomplishments-dots span.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

.projects-layout {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.projects-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 260px;
    max-width: 30vw;
    flex-shrink: 0;
    pointer-events: none;
}

.projects-content {
    flex: 1;
}

.tiktok-video iframe {
    width: 325px;
    height: 570px;
    border: none;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .accomplishments-wrapper,
    .projects-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
    }

    .accomplishments-mascot,
    .projects-image {
        position: static;
        width: 200px;
        max-width: 70%;
        margin-bottom: 0.5rem;
        transform: none;
    }

    .accomplishments,
    .projects-content {
        max-width: 100%;
    }

    .projects-content ul {
        text-align: left;
    }
}

@media (min-width: 769px) {
    .accomplishments-wrapper,
    .projects-layout {
        position: relative;
    }

    .accomplishments-mascot,
    .projects-image {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 1;
    }

    .accomplishments-mascot {
        left: -40%;
        max-width: 400px;
    }

    .projects-image {
        left: -40%;
        max-width: 400px;
    }
}

hr {
    border: none;
    height: 1px;
    background-color: #64748b;
    margin: 1rem 0;
}

.projects-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.reset-link {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    top: auto;
    left: auto;
    background-color: var(--panel);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
}

.reset-link:hover {
    opacity: 1;
    transform: scale(1.05);
}

.bugdroid-slider {
    position: relative;
    max-width: 700px;
    margin: 2rem auto;
    background-color: var(--panel);
    border-radius: 12px;
    overflow: hidden;
}

.bugdroid-track {
    display: flex;
    transition: transform 0.5s ease;
}

.bugdroid-track img {
    min-width: 100%;
    height: 400px;
    object-fit: contain;
}

.bugdroid-text {
    max-width: 700px;
    margin: 1rem auto;
    text-align: center;
}

.bugdroid-text h2 {
    margin-bottom: 0.5rem;
}

.bugdroid-overlay h2,
.bugdroid-overlay p {
    background: rgba(15, 23, 42, 0.75);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.bugdroid-arrow {
    position: absolute;
    bottom: 12px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.bugdroid-arrow:hover {
    opacity: 1;
}

.bugdroid-arrow.left { left: 16px; }
.bugdroid-arrow.right { right: 16px; }

.bugdroid-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0 1rem;
}

.bugdroid-dots span {
    width: 10px;
    height: 10px;
    background-color: #64748b;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.bugdroid-dots span.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: #38bdf8;
    transform: scale(1.05);
}
