/* ========================================
   XI-1 Saintek - Website Kelas
   SMA PGRI 3 Jakarta
   ======================================== */

/* ===== Root Variables ===== */
:root {
  --primary: #7e22ce;
  --primary-light: #a855f7;
  --primary-dark: #6b21a8;
  --secondary: #4f46e5;
  --accent: #ec4899;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --text: #1f2937;
  --text-light: #4b5563;
  --text-lighter: #9ca3af;
  --bg-light: #ffffff;
  --bg-gray: #f9fafb;
  --bg-dark: #111827;
  --bg-dark-light: #1f2937;
  --border-light: #e5e7eb;
  --border-dark: #374151;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-sans);
  
  --nav-height: 80px;
  --container-width: 1200px;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark Mode */
.dark-mode {
  --text: #f9fafb;
  --text-light: #e5e7eb;
  --text-lighter: #9ca3af;
  --bg-light: #111827;
  --bg-gray: #1f2937;
  --bg-dark: #0f172a;
  --bg-dark-light: #1e293b;
  --border-light: #374151;
  --border-dark: #4b5563;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-light);
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-light);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.dark-mode #preloader {
  background-color: var(--bg-dark);
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  text-align: center;
}

.loader-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.loader-inner span {
  display: inline-block;
}

.loader-inner span:first-child {
  color: var(--primary);
  margin-right: 0.25rem;
  animation: bounce 1.5s infinite 0.2s;
}

.loader-inner span:nth-child(2) {
  color: var(--text);
  animation: bounce 1.5s infinite 0.4s;
}

.loader-inner span:last-child {
  color: var(--primary);
  margin-left: 0.25rem;
  animation: bounce 1.5s infinite 0.6s;
}

.loader p {
  color: var(--text-light);
  letter-spacing: 0.1em;
  animation: fadeInOut 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===== Stars Background ===== */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.dark-mode .stars-container {
  opacity: 0.5;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.dark-mode .navbar {
  background-color: rgba(31, 41, 55, 0.95);
  border-bottom: 1px solid var(--border-dark);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  transition: height var(--transition-normal);
}

.navbar.scrolled .navbar-content {
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo .bracket {
  color: var(--primary);
}

.logo .highlight {
  color: var(--primary);
}

.desktop-menu {
  display: none;
}

@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
    gap: 1.5rem;
  }
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  color: var(--primary);
  background-color: rgba(126, 34, 206, 0.1);
}

.nav-link.active {
  color: white;
  background-color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle,
.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text);
  background-color: rgba(228, 228, 231, 0.4);
  transition: all var(--transition-normal);
}

.dark-mode .theme-toggle,
.dark-mode .mobile-menu-toggle {
  background-color: rgba(63, 63, 70, 0.4);
  color: var(--text-light);
}

.theme-toggle:hover,
.mobile-menu-toggle:hover {
  background-color: rgba(228, 228, 231, 0.8);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 350px;
  height: 100vh;
  background-color: var(--bg-light);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal);
  z-index: 999;
  overflow-y: auto;
}

.dark-mode .mobile-menu {
  background-color: var(--bg-dark);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.mobile-logo .bracket {
  color: var(--primary);
}

.mobile-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-light);
  background-color: var(--bg-gray);
  transition: all var(--transition-normal);
}

.mobile-close:hover {
  background-color: var(--primary);
  color: white;
  transform: rotate(90deg);
}

.mobile-menu-links {
  padding: 1.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  transition: all var(--transition-normal);
}

.mobile-nav-link i {
  width: 24px;
  margin-right: 1rem;
  color: var(--primary);
}

.mobile-nav-link:hover {
  background-color: var(--bg-gray);
  transform: translateX(5px);
}

.mobile-nav-link.active {
  color: white;
  background-color: var(--primary);
}

.mobile-nav-link.active i {
  color: white;
}

.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 998;
  backdrop-filter: blur(3px);
}

.mobile-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(50px);
}

.dark-mode .bg-blob {
  opacity: 0.15;
}

.bg-blob-1 {
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background-color: var(--primary);
}

.bg-blob-2 {
  top: 30%;
  left: -100px;
  width: 300px;
  height: 300px;
  background-color: var(--secondary);
}

.bg-blob-3 {
  bottom: -100px;
  right: 25%;
  width: 350px;
  height: 350px;
  background-color: var(--primary-light);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-top: var(--nav-height);
  position: relative;
  z-index: 1;
}

.profile-image {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 2rem;
}

.image-container {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 4px solid var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-image:hover .image-container {
  transform: scale(1.05);
}

.profile-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 4px solid rgba(126, 34, 206, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.title-text {
  color: var(--text);
}

.title-highlight {
  color: var(--primary);
}

.typing-container {
  height: 2.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.typing-effect {
  font-size: 1.5rem;
  color: var(--text-light);
  display: inline-block;
  border-right: 0.15em solid var(--primary);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.1em;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.text-highlight {
  color: var(--primary);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(126, 34, 206, 0.3);
}

.secondary-btn {
  background-color: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.dark-mode .secondary-btn {
  background-color: var(--bg-dark-light);
  color: var(--text-light);
  border-color: var(--border-dark);
}

.secondary-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.btn i {
  margin-right: 0.5rem;
}

.scroll-indicator {
  animation: bounce 2s infinite;
}

.scroll-text {
  display: block;
  font-size: 0.875rem;
  color: var(--text-lighter);
  margin-bottom: 0.5rem;
}

.scroll-icon {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary);
  border-radius: 25px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 6px;
  height: 10px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

/* ===== About Section ===== */
.about-section {
  background-color: var(--bg-gray);
}

.dark-mode .about-section {
  background-color: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  margin-top: 1rem;
}

.about-tabs {
  background-color: var(--bg-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.dark-mode .about-tabs {
  background-color: var(--bg-dark-light);
}

.tab-navigation {
  display: flex;
  background-color: var(--bg-gray);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dark-mode .tab-navigation {
  background-color: var(--bg-dark);
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  color: var(--text-light);
  min-width: 120px;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  background-color: var(--bg-light);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.dark-mode .tab-btn.active {
  background-color: var(--bg-dark-light);
}

.tab-content-container {
  padding: 0 1.5rem 1.5rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.story-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .story-layout {
    flex-direction: row;
  }
  .story-image-column {
    width: 30%;
  }
  .story-content-column {
    width: 70%;
  }
}

.about-image {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.content-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.quote-icon {
  color: var(--primary);
  margin-right: 0.5rem;
}

.content-paragraph {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Mission */
.mission-content {
  padding: 2rem 1rem;
}

.mission-header {
  text-align: center;
  margin-bottom: 2rem;
}

.mission-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  background-color: rgba(126, 34, 206, 0.1);
  border-radius: var(--radius-full);
}

.mission-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.mission-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.mission-statement {
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-gray);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal);
}

.dark-mode .value-card {
  background-color: var(--bg-dark);
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.create-icon {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.learn-icon {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.share-icon {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.value-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-description {
  color: var(--text-light);
  line-height: 1.6;
}

/* Approach */
.approach-content {
  padding: 2rem 1rem;
}

.approach-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.approach-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  background-color: rgba(126, 34, 206, 0.1);
  border-radius: var(--radius-full);
}

.approach-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.approach-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.approach-card {
  position: relative;
  padding: 1.5rem;
  background-color: var(--bg-gray);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.dark-mode .approach-card {
  background-color: var(--bg-dark);
}

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

.card-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  background-color: rgba(126, 34, 206, 0.05);
  border-bottom-left-radius: var(--radius-lg);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-right: 60px;
}

.card-description {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Students Section ===== */
.students-section {
  background-color: var(--bg-light);
}

.dark-mode .students-section {
  background-color: var(--bg-dark-light);
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.student-card {
  background-color: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.dark-mode .student-card {
  background-color: var(--bg-dark);
}

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

.student-avatar {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.student-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.student-gender {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.student-gender i {
  margin-right: 0.25rem;
}

.student-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== Homeroom Section ===== */
.homeroom-section {
  background-color: var(--bg-gray);
}

.dark-mode .homeroom-section {
  background-color: var(--bg-dark);
}

.homeroom-grid {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.homeroom-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  max-width: 400px;
  width: 100%;
  border-top: 4px solid var(--primary);
}

.dark-mode .homeroom-card {
  background-color: var(--bg-dark-light);
}

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

.homeroom-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.homeroom-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.homeroom-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.homeroom-subject {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.homeroom-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: rgba(126, 34, 206, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ===== Gallery Section ===== */
.gallery-section {
  background-color: var(--bg-light);
}

.dark-mode .gallery-section {
  background-color: var(--bg-dark-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  background-color: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.dark-mode .gallery-item {
  background-color: var(--bg-dark);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  background-color: rgba(126, 34, 206, 0.1);
}

.gallery-item h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gallery-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Contact Section ===== */
.contact-section {
  background-color: var(--bg-gray);
}

.dark-mode .contact-section {
  background-color: var(--bg-dark);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.dark-mode .contact-card {
  background-color: var(--bg-dark-light);
}

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

.contact-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.instagram-icon {
  color: #E1306C;
  background-color: rgba(225, 48, 108, 0.1);
}

.youtube-icon {
  color: #FF0000;
  background-color: rgba(255, 0, 0, 0.1);
}

.tiktok-icon {
  color: #000000;
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .tiktok-icon {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.whatsapp-icon {
  color: #25D366;
  background-color: rgba(37, 211, 102, 0.1);
}

.contact-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--bg-gray);
  color: var(--text);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.dark-mode .contact-link {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.contact-link:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
}

.dark-mode .footer {
  background-color: var(--bg-dark-light);
  border-color: var(--border-dark);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-logo .highlight {
  color: var(--primary);
}

.footer-logo .bracket {
  color: var(--primary);
}

.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--bg-gray);
  transition: all var(--transition-normal);
}

.dark-mode .social-icon {
  background-color: var(--bg-dark);
}

.social-icon:hover {
  transform: translateY(-3px);
  background-color: var(--primary);
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.dark-mode .footer-bottom {
  border-color: var(--border-dark);
}

.copyright {
  color: var(--text-light);
  font-size: 0.875rem;
}

.back-to-top {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--bg-gray);
  color: var(--text);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.dark-mode .back-to-top {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.back-to-top:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .typing-effect {
    font-size: 1.25rem;
  }
  
  .tab-navigation {
    flex-direction: column;
  }
  
  .tab-btn {
    padding: 0.5rem;
    min-width: unset;
  }
  
  .students-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .student-card {
    padding: 1rem;
  }
  
  .student-avatar {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
  
  .homeroom-card {
    padding: 2rem 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
  }
}
