/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* BASE & GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0a0a;
  color: #f0f0f0;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* SCROLLBAR HIDING */
::-webkit-scrollbar {
  display: none;
}
body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* CUSTOM SELECTION STYLE */
::selection {
  background-color: #f0f0f0;
  color: #0a0a0a;
}
::-moz-selection {
  background-color: #f0f0f0;
  color: #0a0a0a;
}

/* SHARED CONTAINER */
.site-nav, .projects, .footer-content {
    max-width: 1280px; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem; /* p-4 */
}
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    letter-spacing: -0.05em; /* tracking-tighter */
    text-decoration: none;
    color: inherit;
}
.nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.menu-button {
    font-size: 1.25rem; /* text-xl */
    font-weight: 500; /* font-medium */
    letter-spacing: -0.05em; /* tracking-tighter */
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}
.login-guru-button {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    letter-spacing: -0.05em;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-top: 0.25rem;
}


/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}
.hero-headline {
    font-size: clamp(3.5rem, 12vw, 10rem); /* Reduced font size */
    font-weight: 900; /* font-black */
    text-transform: uppercase;
    line-height: 1; /* leading-none */
    letter-spacing: -0.05em; /* tracking-tighter */
    text-align: center;
    user-select: none;
}
.hero-line {
    display: block;
    overflow: hidden;
}
.hero-line span {
    display: inline-block;
}

/* PROJECTS SECTION */
.projects {
    padding: 5rem 1rem; /* py-20 px-4 */
}
.projects-header {
    margin-bottom: 4rem; /* mb-16 */
}
.projects-header p {
    font-size: 1.25rem; /* text-xl */
    font-weight: 500; /* font-medium */
    letter-spacing: -0.025em; /* tracking-tight */
}
.projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.project-item {
    margin-bottom: 0; /* Let grid gap handle spacing */
}
.teacher-only {
    display: none;
}
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.project-image-wrapper {
    overflow: hidden;
    border-radius: 0.5rem; /* rounded-lg */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: translate3d(0,0,0); /* Promotes to own layer for smoother animation */
}
.project-info {
    margin-top: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.project-title, .project-category {
    overflow: hidden; /* For reveal animation */
}
.project-title .reveal-text, .project-category .reveal-text {
    display: inline-block; /* For reveal animation */
}
.project-title {
    font-size: 1.2rem;
    font-weight: 700; /* font-bold */
    letter-spacing: -0.05em; /* tracking-tighter */
}
.project-category {
    font-size: 0.8rem;
    color: #a3a3a3; /* text-neutral-400 */
    margin-top: 0.25rem; /* mt-2 */
}

/* FOOTER */
.site-footer {
    position: relative;
    padding: 6rem 1rem; /* py-24 px-4 */
    overflow: hidden;
    background-color: #000;
}
.footer-content {
    text-align: center;
}
.footer-headline {
    font-size: 12vw;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.05em;
    user-select: none;
}
.footer-headline > div {
    overflow: hidden; /* For reveal animation */
}
.footer-headline span {
    display: inline-block;
}
.footer-email {
    display: inline-block;
    margin-top: 2rem; /* mt-8 */
    font-size: 1.25rem; /* text-xl */
    font-weight: 500;
    letter-spacing: -0.025em;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-email:hover {
    color: #d4d4d4; /* hover:text-neutral-300 */
}
.footer-bottom {
    margin-top: 4rem; /* mt-16 */
    font-size: 0.875rem; /* text-sm */
    color: #737373; /* text-neutral-500 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}
.social-links {
    display: flex;
    gap: 1.5rem; /* gap-6 */
}
.social-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #fff;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
.modal-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.modal-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.modal-links a {
    color: #f0f0f0;
    text-decoration: none;
    background-color: #2a2a2a;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.modal-links a:hover {
    background-color: #f0f0f0;
    color: #0a0a0a;
}


/* RESPONSIVE STYLES */
@media (min-width: 640px) { /* sm */
    .site-header { padding: 1.5rem; }
    .project-title { font-size: 3rem; } /* text-5xl */
    .footer-bottom { flex-direction: row; }
}
@media (min-width: 768px) { /* md */
    .site-header { padding: 2rem; }
    .projects { padding: 8rem 1.5rem; } /* py-32 px-6 */
    .projects-header { margin-bottom: 6rem; } /* mb-24 */
    .projects-header p { font-size: 1.5rem; } /* text-2xl */
    .projects-list {
        gap: 3rem;
    }
    .project-info { margin-top: 2rem; } /* mt-8 */
    .project-title { font-size: 3.75rem; } /* text-6xl */
    .project-category { font-size: 1.25rem; } /* text-xl */
    .site-footer { padding: 10rem 1.5rem; } /* py-40 px-6 */
    .footer-headline { font-size: 13vw; }
    .footer-email { font-size: 1.5rem; } /* text-2xl */
    .footer-bottom { margin-top: 6rem; } /* mt-24 */
}
@media (min-width: 1024px) { /* lg */
    .projects-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
        align-items: start;
    }
    .project-title { font-size: 4.5rem; } /* text-7xl */
    .footer-headline { font-size: 14vw; }
    .footer-email { font-size: 1.875rem; } /* text-3xl */
}