
:root {
  --primary-purple: #6E44FF;
  --accent-teal: #00D2D7;
  --text-dark-gray: #333333;
  --text-light-gray: #6c757d;
  --background-white: #FFFFFF;
  --card-background: #F8F9FA;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- GLOBAL RESETS & TYPOGRAPHY --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  background-color: var(--background-white);
  color: var(--text-dark-gray);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center; /* Center text globally as requested */
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--text-dark-gray);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 3.8rem); }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); }
p { margin-bottom: 1.5rem; color: var(--text-light-gray); max-width: 720px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.25rem; font-weight: 400; }
a { color: var(--primary-purple); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-teal); }

/* --- HEADER & NAVIGATION --- */
.site-header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #EAECEF;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 90px;
  width: auto;
}

.nav-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark-gray);
  cursor: pointer;
}

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

.main-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark-gray);
  padding-bottom: 8px;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-purple);
  transition: width 0.3s ease-out;
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

/* --- MAIN CONTENT & SECTIONS --- */
main {
  padding: 4rem 0;
}

.page-header {
  margin-bottom: 3rem;
}

/* --- BUTTONS --- */
.btn {
  padding: 0.8rem 2.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: inline-block;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-purple);
  color: var(--background-white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background-color: #5830e0;
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}

.btn-secondary:hover {
  background-color: var(--accent-teal);
  color: var(--background-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 210, 215, 0.3);
}

/* --- HERO SECTION (Homepage) --- */
.hero {
  padding: 5rem 0;
}

.hero h1 {
  color: var(--primary-purple);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* --- CARDS (Features, Resources, Profiles) --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left; /* Override global center for card content */
}

.card {
  background: var(--background-white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #EAECEF;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  margin-bottom: 0.8rem;
}

.card svg {
  width: 45px;
  height: 45px;
  margin-bottom: 1.5rem;
  color: var(--primary-purple);
}

/* --- RESOURCES PAGE --- */
.resource-header {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resource-header a {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-weight: 600;
}

.resource-header a.active {
  background-color: var(--primary-purple);
  color: white;
  border-color: var(--primary-purple);
}

.resource-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  text-align: left;
}

.resource-card .btn {
  flex-shrink: 0;
  margin-left: 1.5rem;
}

/* --- CONTACT PAGE FORM --- */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card-background);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: left; /* Override global center for form */
  border: 1px solid #EAECEF;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid #ced4da;
  font-family: inherit;
  font-size: 1rem;
}

.form-actions {
  text-align: right;
  margin-top: 2rem;
}

/* --- PROFILES PAGE --- */
#search-bar {
  width: 100%;
  max-width: 400px;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid #ced4da;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.profile-card {
  padding: 2rem;
}
.profile-card h3 { text-align: center; }
.profile-card .social-links { text-align: center; margin-top: 1rem; }
.profile-card .social-links a { margin: 0 0.5rem; }

/* --- FOOTER --- */
.site-footer {
  background-color: var(--card-background);
  color: var(--text-light-gray);
  padding: 2.5rem 0;
  margin-top: 4rem;
  border-top: 1px solid #EAECEF;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.built-by-students {
  font-style: italic;
  color: #888;
}


/* --- RESPONSIVE STYLES (Mobile First) --- */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--background-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
    z-index: 1000;
  }
  
  .main-nav.is-open {
    transform: translateX(0);
    display: flex;
  }

  .main-nav a {
    font-size: 1.5rem;
    margin: 1.2rem 0;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-left, .footer-right {
    text-align: center;
  }
}

@media (min-width: 576px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

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

@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
   .resource-content .card-grid {
    grid-template-columns: 1fr;
  }
}
