/* ── Base ──────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    background-color: #0d0d0d;
    color: #d4d4d4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
}

body.tiled-bg {
    background-image: url('../images/block.png') !important;
    background-repeat: repeat;
    background-size: 100px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { color: #e8e8e8; margin-top: 0; }

p { color: #aaa; line-height: 1.65; }

a {
    color: #2ecc71;
    text-decoration: none;
    transition: color 0.15s;
}
a:visited { color: #2ecc71; }
a:hover   { color: #5df59a; }
a:active  { color: #2ecc71; }

/* ── Top Bar ────────────────────────────────────────────────── */
.topBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin: 16px 20px;
    border-radius: 12px;
    background-color: #111;
    border: 1px solid #1e1e1e;
}

/* ── Dropdown ───────────────────────────────────────────────── */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #161616;
    color: #2ecc71;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    border-radius: 8px;
    min-width: 110px;
    transition: border-color 0.2s, background 0.2s;
}
.dropbtn:hover {
    background-color: #1a1a1a;
    border-color: #2ecc71;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #141414;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    z-index: 100;
    border-radius: 10px;
    border: 1px solid #222;
    overflow: hidden;
    top: calc(100% + 6px);
    left: 0;
}

.dropdown-content a {
    color: #c8c8c8;
    padding: 11px 18px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
}
.dropdown-content a:visited { color: #c8c8c8; }
.dropdown-content a:hover {
    background-color: #1e1e1e;
    color: #2ecc71;
}

.dropdown:hover .dropdown-content { display: block; }

/* ── Lizard / Rat Buttons ───────────────────────────────────── */
.nav-buttons-container {
    display: flex;
    align-items: center;
}
.extra-buttons {
    display: flex;
    gap: 10px;
}

.lizardButton, .ratButton {
    background-color: #161616;
    color: #2ecc71;
    padding: 12px 18px;
    font-size: 20px;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}
.lizardButton:hover, .ratButton:hover {
    background-color: #1a1a1a;
    border-color: #2ecc71;
}

/* ── Content Container ──────────────────────────────────────── */
.content-container {
    width: 80%;
    background: #111;
    border: 1px solid #1e1e1e;
    margin: 2% auto;
    padding: 2%;
    border-radius: 14px;
    margin-bottom: 7%;
}

/* ── Bottom / Footer ────────────────────────────────────────── */
.bottom {
    text-align: center;
    padding: 20px 0;
}

/* ── Images ─────────────────────────────────────────────────── */
img { max-width: 100%; height: auto; }

#otlogo { width: 25%; height: auto; }

.github-logo { height: 1.5em; vertical-align: middle; }
.github-logo-card { width: 50px; height: 50px; margin-bottom: 15px; }

#conversationsimg { width: 60%; }

/* ── Project Cards ──────────────────────────────────────────── */
.project-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-card {
    background-color: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 24px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover {
    border-color: #2ecc71;
    transform: translateY(-2px);
}

.project-card h3 { color: #2ecc71; margin: 0 0 10px; }
.project-card p  { color: #999; margin: 0 0 15px; }

.languages { margin-bottom: 15px; }
.languages span {
    background-color: #162d1e;
    color: #2ecc71;
    border: 1px solid #2a5c3a;
    padding: 4px 10px;
    border-radius: 5px;
    margin: 0 4px;
    font-size: 0.85em;
}

.repo-link {
    color: #2ecc71;
    font-weight: 600;
    margin-top: auto;
}

/* ── Contact ────────────────────────────────────────────────── */
.contactList {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    max-width: 80%;
}
ul { list-style-type: none; padding-left: 0; }

/* ── About ──────────────────────────────────────────────────── */
.aboutUs { font-size: 1.1rem; line-height: 1.8; }

/* ── Falling Lizard Animation ───────────────────────────────── */
.falling-lizard {
    position: fixed;
    top: -50px;
    pointer-events: none;
    z-index: 9999;
    animation-name: fall;
    animation-timing-function: linear;
    user-select: none;
}
@keyframes fall {
    to { transform: translateY(110vh) rotate(720deg); }
}

/* ── Apps page (inline overrides live in apps.html) ─────────── */

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .content-container { width: 95%; padding: 10px; word-wrap: break-word; }

    h1 { font-size: 2em; }
    h3 { font-size: 1.5em; }
    h4 { font-size: 1.2em; }
    h5 { font-size: 1em; }
    p, a, li { font-size: 1.1em; }

    .dropbtn { font-size: 1.1em; }
    .github-logo { height: 2em; }
    #otlogo { width: 50%; }

    .topBar {
        flex-direction: row;
        align-items: stretch;
        justify-content: space-around;
        width: 95%;
        margin: 10px auto;
        padding: 5px;
    }

    .dropdown { flex-grow: 1; text-align: center; }

    .nav-buttons-container {
        display: flex;
        flex-grow: 1;
        justify-content: space-around;
        align-items: stretch;
    }

    .extra-buttons {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .lizardButton, .ratButton {
        aspect-ratio: 1/1;
        padding: 0;
        font-size: 1.2em;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-grow: 1;
        flex-basis: 0;
        margin: 0 5px;
    }

    .project-card { width: 100%; }
}
