:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.07);
}

html[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    padding-top: 4.5rem; /* space for fixed nav on desktop */
}

/* Navigation */
.site-logo {
    display: block;
    margin: 2rem auto 0 auto;
    max-width: 300px;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
}

/* Decorative glow behind nav for blur effect */
.nav-glow {
    position: fixed;
    top: -20px;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 99;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 30% 100% at 20% 50%, rgba(59, 130, 246, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 25% 100% at 50% 50%, rgba(139, 92, 246, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 30% 100% at 80% 50%, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.nav-brand {
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.nav-brand:hover {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.03em;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Hide mobile header on desktop */
.mobile-header {
    display: none !important;
}

.hamburger {
    display: none !important;
}

@media (max-width: 767px) {
    body {
        padding-top: 0; /* remove desktop padding */
    }

    main {
        margin-top: 0;
        padding: 6.5rem 1rem 2rem 1rem !important;
    }

    /* mobile header with hamburger */
    .mobile-header {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        padding: 1rem;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 200;
        gap: 1rem;
    }

    .mobile-header h2 {
        flex: 1;
        font-size: 1.25rem;
        font-weight: 500;
        text-transform: lowercase;
        color: var(--text-primary);
        margin: 0;
    }

    .mobile-brand {
        flex: 1;
        font-size: 1.1rem;
        font-weight: 300;
        letter-spacing: 0.04em;
        text-transform: lowercase;
        color: var(--text-primary);
        text-decoration: none;
        margin: 0;
    }

    .hamburger {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        background: none;
        border: none;
        color: var(--text-primary);
        padding: 0.25rem;
    }

    .main-nav {
        position: fixed;
        top: 3.5rem;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        margin-top: 0.5rem;
        padding: 1rem;
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        z-index: 199;
    }

    .main-nav .nav-brand {
        display: none;
    }

    .main-nav .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .main-nav.open {
        display: flex !important;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        display: block;
    }

    .nav-link:last-child {
        border-bottom: none;
    }
}

/* theme toggle styling */
.theme-toggle-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.theme-toggle {
    width: 50px;
    height: 28px;
    background-color: var(--border);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.theme-toggle.light {
    background-color: #fbbf24;
}

.theme-toggle.light:hover {
    background-color: #f59e0b;
}

.theme-toggle.dark {
    background-color: #3b82f6;
}

.theme-toggle.dark:hover {
    background-color: #2563eb;
}

h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    text-align: center;
    margin: 0 0 2rem 0;
}

/* Main content area */
main {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    box-sizing: border-box;
}

/* Team Members Styles */
.team-members {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
}

@media (min-width: 600px) {
    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .team-members {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-member {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 1px 4px var(--shadow);
    padding: 1.5rem;
    width: 260px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--shadow);
}

@media (max-width: 599px) {
    .team-member {
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        padding: 1.5rem 1rem;
    }
}

.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    background: var(--border);
}

.team-member h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: lowercase;
}

.member-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.75rem 0 1rem 0;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.team-member p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0.5rem 0;
}

.team-member p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.team-member p:first-of-type {
    margin-bottom: 1rem;
}
