/* Styles copied and adapted from vibecoding_tutorial/app/globals.css */
:root {
    --background: #ffffff;
    --foreground: #09090b;
    --card: #ffffff;
    --card-foreground: #09090b;
    --popover: #ffffff;
    --popover-foreground: #09090b;
    --primary: #7c3aed;
    /* Violet 600 */
    --primary-foreground: #ffffff;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --border: #e4e4e7;
    --input: #e4e4e7;
    --ring: #7c3aed;
    --radius: 0.5rem;
}

.dark {
    --background: #09090b;
    --foreground: #fafafa;
    --card: #18181b;
    /* Zinc 900 */
    --card-foreground: #fafafa;
    --popover: #18181b;
    --popover-foreground: #fafafa;
    --primary: #c084fc;
    /* Purple 400 */
    --primary-foreground: #09090b;
    --secondary: #27272a;
    --secondary-foreground: #fafafa;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    --accent: #27272a;
    --accent-foreground: #fafafa;
    --destructive: #7f1d1d;
    --destructive-foreground: #fef2f2;
    --border: #27272a;
    --input: #27272a;
    --ring: #c084fc;
}

/* Reset and Base Styles to mimic Tailwind Preflight + key utilities */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-width: 0;
    border-style: solid;
    border-color: var(--border);
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;

    /* cool background effect */
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-size: 200% 200%;
    animation: gradient-animation 15s ease infinite;
}

/* Light mode specific background override for a softer look */
:root:not(.dark) body {
    background-image:
        radial-gradient(at 40% 20%, hsla(28, 100%, 74%, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.1) 0px, transparent 50%);
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Typography & Utilities */
h1 {
    font-size: 2.25rem;
    /* text-4xl */
    line-height: 2.5rem;
    font-weight: 800;
    /* font-extrabold */
    letter-spacing: -0.025em;
    /* tracking-tight */
    margin-bottom: 0.5rem;
}

p {
    color: var(--muted-foreground);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout Utilities */
.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.p-6 {
    padding: 1.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.text-center {
    text-align: center;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 64rem;
    /* max-w-4xl roughly */
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Components */
.navbar {
    border-bottom-width: 1px;
    background-color: var(--background);
    /* can be backdrop-blur in future if needed */
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    /* Just for the theme toggle for now */
    align-items: center;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: var(--accent);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .card-grid > .card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 0.75rem);
    }
}

.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--card);
    color: var(--card-foreground);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* shadow-sm */
    padding: 1.5rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    border-color: var(--ring);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* shadow-md */
}

.card-title {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 600;
    /* font-semibold */
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.card-desc {
    font-size: 0.875rem;
    /* text-sm */
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.button-group {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    height: 2.5rem;
    /* h-10 */
    padding-left: 1rem;
    padding-right: 1rem;
    transition: colors 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid var(--input);
    background-color: var(--background);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

/* Icons (simple svg placeholder styling) */
.icon {
    width: 1.2rem;
    height: 1.2rem;
}

/* Branding */
.university-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.course-code {
    color: var(--muted-foreground);
    font-weight: 400;
}

/* Team Section */
.team-section {
    margin-top: 5rem;
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    /* Reduced gap */
    max-width: 56rem;
    /* Constrain width to keep them closer */
    margin: 0 auto;
}

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

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

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    transition: background-color 0.2s, transform 0.2s;
}

.team-member:hover {
    background-color: var(--accent);
    /* Subtle hover background */
    transform: translateY(-4px);
    /* Slight lift */
}

.team-avatar {
    width: 140px;
    /* Larger size */
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--background);
    /* Clean border seamlessly blending with bg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Nice shadow */
    background-color: var(--card);
}

.team-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
    letter-spacing: 0.01em;
}