/* -----------------------------------
   Root Variables
----------------------------------- */
:root {
    --bg-dark: #0f172a;
    --bg-light: #020617;
    --accent: #38bdf8;
    --text-light: #e5e7eb;
    --text-muted: #94a3b8;
}

body {
    font-size: 20px;
    background: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Make all images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -----------------------------------
   Avatar Images
----------------------------------- */
.avatar.amy-jo {
    background-image: url("https://github.com/Bitesize-Computing/cdn/blob/main/Amy's%20Avatar.png?raw=true");
}
.avatar.jonathan {
    background-image: url("https://github.com/Bitesize-Computing/cdn/blob/main/Jonathan's%20Photo.jpeg?raw=true");
}
.avatar.tom {
    background-image: url("https://github.com/Bitesize-Computing/cdn/blob/main/Tom's%20Photo.png?raw=true");
}

/* -----------------------------------
   Logo
----------------------------------- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.4));
}

.logo-text {
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 700;
}

/* -----------------------------------
   Word Roller Animation
----------------------------------- */
.word-roller {
    display: inline-block;
    height: 1.2em;
    overflow: hidden;
    vertical-align: middle;
}

.word-roller-inner {
    display: block;
    animation: rotateWords 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.word-roller-inner span {
    display: block;
    height: 1.2em;
    line-height: 1.2em;
}

@keyframes rotateWords {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(-1.2em); }
    40%  { transform: translateY(-2.4em); }
    60%  { transform: translateY(-3.6em); }
    80%  { transform: translateY(-4.8em); }
    100% { transform: translateY(-6em); }
}

/* -----------------------------------
   Navbar
----------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hamburger (desktop hidden) */
.hamburger {
    display: none;
    font-size: 2.2rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-light);
    padding: 10px;
}

/* -----------------------------------
   Sections
----------------------------------- */
.section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    max-width: 1100px;
    margin: auto;
}

.hero {
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
}

.hero span {
    color: var(--accent);
}

.hero p {
    max-width: 600px;
    margin: 1rem auto;
    color: var(--text-muted);
}

.cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.6rem;
    background: var(--accent);
    color: #020617;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

/* -----------------------------------
   Cards
----------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 1rem;
}

/* -----------------------------------
   Team Section
----------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--accent);
    margin: 0 auto 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* -----------------------------------
   Footer
----------------------------------- */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* -----------------------------------
   Contact Buttons
----------------------------------- */
#contact {
    text-align: center;
}

#contact p {
    max-width: 800px;
    margin: 0 auto;
}

#contact a {
    text-decoration: none;
}

#contact button {
    margin: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--bg-dark);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border 0.25s ease;
}

#contact button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
}

/* Social colours */
#contact a[href*="mailto"] button { border-color: #38bdf8; }
#contact a[href*="mailto"] button:hover { background: #38bdf8; color: #020617; }

#contact a[href*="discord"] button { border-color: #5865F2; }
#contact a[href*="discord"] button:hover { background: #5865F2; color: white; }

#contact a[href*="linkedin"] button { border-color: #0A66C2; }
#contact a[href*="linkedin"] button:hover { background: #0A66C2; color: white; }

#contact a[href*="facebook"] button { border-color: #1877F2; }
#contact a[href*="facebook"] button:hover { background: #1877F2; color: white; }

#contact a[href*="instagram"] button { border-color: #E1306C; }
#contact a[href*="instagram"] button:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    color: white;
}

/* -----------------------------------
   MOBILE STYLES
----------------------------------- */
@media (max-width: 768px) {

    /* Navbar improvements */
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .logo-img {
        height: 32px;
    }

    /* Hamburger visible */
    .hamburger {
        display: block;
    }

    /* Mobile dropdown menu */
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(2, 6, 23, 0.95);
        width: 220px;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        border-radius: 0 0 0 10px;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    /* Section spacing */
    .section {
        padding: 5rem 1.2rem 3rem;
        min-height: auto;
    }

    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .word-roller {
        height: 1.1em;
    }

    .avatar {
        width: 160px;
        height: 160px;
    }

    #contact button {
        width: 90%;
        max-width: 300px;
    }
}
