/* ==========================================================================
   Selam-B Technical and Vocational College — Core Design System
   Human Editorial Architecture Stylesheet (2026)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Ethiopic:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  /* Brand Color Tokens */
  --color-primary: #E87A1E;
  --color-primary-light: #FF9F43;
  --color-primary-dark: #C96A15;

  /* Dark Theme Surfaces */
  --color-dark-900: #0B0B14;
  --color-dark-800: #121222;
  --color-dark-700: #1A1A2E;
  --color-dark-600: #25253D;

  /* Neutral Light Surfaces */
  --color-light-50: #FAFAF8;
  --color-light-100: #F4F4F0;

  /* Text Colors */
  --color-text-main: #FAFAFA;
  --color-text-muted: #A1A1AA;
  --color-text-dim: #71717A;

  /* Accents */
  --color-accent-gold: #F5A623;
  --color-accent-emerald: #10B981;

  /* Borders & Glassmorphism */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-lighter: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(18, 18, 34, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Typography Scales */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-amharic: 'Noto Sans Ethiopic', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.35rem);
  --text-xl: clamp(1.35rem, 1.2rem + 0.8vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem);
  --text-3xl: clamp(2.1rem, 1.7rem + 1.8vw, 3rem);
  --text-hero: clamp(2.4rem, 1.8rem + 3.2vw, 4.5rem);

  /* Human Architectural Radii (Minimal 6px - 8px, NO rounded AI bento shapes) */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* Shadows (Natural dark shadows, NO neon glow) */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.15);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.25);
  --shadow-lg: 0 16px 36px rgba(0,0,0,0.4);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 200ms var(--ease-in-out-smooth);
  --transition-base: 350ms var(--ease-out-expo);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Defaults
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: initial;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark-900);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.amharic-text {
  font-family: var(--font-amharic), var(--font-body);
  line-height: 1.7;
}

::selection {
  background: var(--color-primary);
  color: #FFF;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-dark-900);
}
::-webkit-scrollbar-thumb {
  background: var(--color-dark-600);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. Typography Utility Classes
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-eyebrow, .section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-eyebrow::before, .section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   4. Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(3.5rem, 6vw, 7rem) 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-dark-800);
}

.section-darker {
  background-color: var(--color-dark-900);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   5. Navigation Bar & Mobile Drawer
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(232, 122, 30, 0.4));
  transition: var(--transition-fast);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  color: #FFF;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--color-primary-light);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #FFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-gold));
  transition: width 300ms var(--ease-out-expo);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 24px;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #FFF;
  border-radius: 2px;
  transition: var(--transition-base);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: var(--color-dark-800);
  border-left: 1px solid var(--border-light);
  z-index: 1005;
  padding: 5.5rem 1.75rem 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 350ms var(--ease-out-expo);
  box-shadow: -10px 0 30px rgba(0,0,0,0.6);
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--color-primary-light);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 1004;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out-expo);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   6. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: transform 300ms var(--ease-out-expo), box-shadow 300ms var(--ease-out-expo), background 300ms ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(232, 122, 30, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 122, 30, 0.5);
}

.btn-secondary {
  background: var(--color-dark-700);
  color: #FFF;
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--color-dark-600);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #FFF;
  border: 1px solid var(--border-lighter);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   7. Human Architectural Card System (NO AI Bento Shapes)
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-dark-800);
  border-top: 2px solid var(--color-primary); /* Architectural top accent */
  border-inline: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  border-radius: var(--radius-lg); /* Clean 8px radius */
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 300ms var(--ease-out-expo), border-color 300ms ease, box-shadow 300ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-inline-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  border-top-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg);
}

/* Clean Inline Card Icon (No inner rounded background box) */
.card-icon-inline {
  width: 24px;
  height: 24px;
  color: var(--color-primary-light);
  margin-bottom: 1rem;
}

/* Program Card Layout with Image Thumbnail */
.program-card-item {
  background: var(--color-dark-800);
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 300ms var(--ease-out-expo), border-color 300ms ease, box-shadow 300ms ease;
  text-decoration: none;
}

.program-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg);
}

.program-card-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.program-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out-expo);
}

.program-card-item:hover .program-card-thumb img {
  transform: scale(1.06);
}

.program-card-num {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  color: #FFF;
  background: rgba(11, 11, 20, 0.85);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(6px);
}

.program-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   8. Preloader & Scroll Progress & Floating Actions
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-dark-900);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 600ms ease, visibility 600ms ease;
}

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

.preloader-gear {
  width: 80px;
  height: 80px;
  animation: spin 3s linear infinite;
  filter: drop-shadow(0 0 20px var(--color-primary));
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.preloader-text {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary-light);
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-gold));
  z-index: 1001;
  width: 0%;
  transition: width 100ms ease-out;
}

.floating-telegram-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 990;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: #24A1DE;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(36, 161, 222, 0.4);
  transition: transform 300ms var(--ease-out-expo), box-shadow 300ms ease;
}

.floating-telegram-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(36, 161, 222, 0.6);
}

.floating-telegram-btn svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   9. Footer Component
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-dark-900);
  border-top: 1px solid var(--border-light);
  padding: 4.5rem 0 2rem 0;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: var(--text-sm);
  max-width: 320px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-display);
  color: #FFF;
  font-size: var(--text-base);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-link:hover {
  color: var(--color-primary-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: var(--text-sm);
}

.footer-contact-item svg {
  color: var(--color-primary-light);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

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

.back-to-top-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 200ms ease;
}

.back-to-top-btn:hover {
  color: var(--color-primary-light);
}

/* --------------------------------------------------------------------------
   10. Responsive Overrides
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
