:root {
  --primary: #ff1a75;
  --primary-light: #ff4d94;
  --primary-dark: #cc0051;
  --secondary: #3e3e3e;
  --text-light: #f5f5f5;
  --text-dark: #212121;
  --bg-light: #ffffff;
  --bg-dark: #121212;
  --bg-light-accent: #f0f0f0;
  --bg-dark-accent: #1e1e1e;
  --transition-speed: 0.3s;
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  
  /* Consistent color scheme for all pages */
  --theme-primary: #ff1a75;
  --theme-secondary: #ff4d94;
  --theme-accent: #cc0051;
  --theme-success: #2ECC71;
  --theme-warning: #F39C12;
  --theme-danger: #E74C3C;
  --theme-info: #3498DB;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Dark mode initialization */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: background-color var(--transition-speed), color var(--transition-speed);
  overflow-x: hidden;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.dark-mode .navbar {
  background-color: var(--bg-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 10px;
  animation: pulse 3s infinite alternate;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s;
}

.logo-text:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-speed);
}

.dark-mode .nav-links a {
  color: var(--text-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width var(--transition-speed);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-dark);
  transition: color var(--transition-speed), transform 0.3s;
  position: relative;
  z-index: 1001;
  padding: 8px;
  outline: none;
}

.dark-mode .theme-toggle {
  color: var(--text-light);
}

.theme-toggle:hover {
  transform: rotate(30deg);
  color: var(--primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, var(--bg-light-accent), var(--bg-light));
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.dark-mode .hero {
  background: radial-gradient(circle at center, var(--bg-dark-accent), var(--bg-dark));
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.6s;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 26, 117, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 26, 117, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.dark-mode .btn-secondary {
  color: var(--text-light);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 26, 117, 0.2);
}

/* Particles Effect */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.particle {
  position: absolute;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.6;
}

/* Mission Section */
.mission {
  padding: 5rem 10%;
  background-color: var(--bg-light-accent);
  transition: background-color var(--transition-speed);
}

.dark-mode .mission {
  background-color: var(--bg-dark-accent);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.mission-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mission-statement {
  font-size: 1.3rem;
  text-align: center;
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Values Section */
.values {
  padding: 5rem 10%;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  padding: 2rem;
  border-radius: 10px;
  background-color: var(--bg-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s, background-color var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.dark-mode .value-card {
  background-color: var(--bg-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .value-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.value-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.value-description {
  line-height: 1.6;
}

/* History Section */
.history {
  padding: 5rem 10%;
  background-color: var(--bg-light-accent);
  transition: background-color var(--transition-speed);
}

.dark-mode .history {
  background-color: var(--bg-dark-accent);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s, transform 0.5s;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background-color: var(--bg-light);
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.dark-mode .timeline-content {
  background-color: var(--bg-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-date {
  color: var(--primary);
  font-weight: 600;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--bg-light-accent) 0%, var(--bg-light) 100%);
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
  transition: background-color var(--transition-speed);
}

.dark-mode .footer {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-accent) 100%);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
  animation: pulse 3s infinite alternate;
}

.footer-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.footer-message {
  max-width: 800px;
  margin-bottom: 3rem;
}

.footer-message .tagline {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-message .mission {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  border-top: 1px solid rgba(125, 125, 125, 0.1);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.9rem;
  opacity: 0.7;
  font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

/* Floating Elements */
.floating {
  animation: floating 3s ease-in-out infinite alternate;
}

@keyframes floating {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-15px);
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
}

/* Scroll Animation for Timeline */
.scroll-animation {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s, transform 0.8s;
}

.scroll-animation.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Global Styles for SciWeb 3.0 */

/* Base Elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  color: #4361ee;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

button, input, select, textarea {
  font-family: 'Poppins', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #4361ee;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: #495057;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: #4361ee;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 1.5rem;
}

/* Footer */
.footer {
  background-color: #343a40;
  color: #f8f9fa;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-branding {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-right: 1rem;
}

.footer-title {
  font-size: 1.8rem;
  margin: 0;
}

.footer-message {
  max-width: 500px;
}

.tagline {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.mission {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive Media Queries */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .nav-links li {
    margin-left: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-message {
    margin-top: 1.5rem;
  }
}

/* This is for teacher profile images in the class dashboard */
.teacher-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* Common button styles */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: #4361ee;
  color: white;
}

.btn-primary:hover {
  background-color: #3a0ca3;
}

.btn-secondary {
  background-color: #e9ecef;
  color: #495057;
}

.btn-secondary:hover {
  background-color: #dee2e6;
}

/* Status indicators for assignments */
.status-not_started {
  color: #495057;
}

.status-in_progress {
  color: #fd7e14;
}

.status-completed {
  color: #20c997;
}

.status-late {
  color: #dc3545;
}

.status-graded {
  color: #4361ee;
}

/* Event and assignment items */
.event-item {
  background-color: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.event-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.event-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  background-color: #e9ecef;
}

.event-date {
  font-size: 0.8rem;
  color: #6c757d;
}

.event-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.event-details {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: #6c757d;
}

.event-lab .event-type {
  background-color: #d8f3dc;
  color: #2d6a4f;
}

.event-quiz .event-type {
  background-color: #ffccd5;
  color: #9d0208;
}

.event-study_group .event-type {
  background-color: #d0d1ff;
  color: #3a0ca3;
}

/* Activity items */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.activity-item i {
  background-color: #e9ecef;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.activity-content {
  flex: 1;
}

.activity-time {
  font-size: 0.8rem;
  color: #6c757d;
} 