@charset "UTF-8";

/* Fonts */
@font-face { font-family: 'Thmanyah Sans'; src: url('fonts/thmanyahsans-Regular.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Thmanyah Sans'; src: url('fonts/thmanyahsans-Medium.woff2') format('woff2'); font-weight: 500; }
@font-face { font-family: 'Thmanyah Sans'; src: url('fonts/thmanyahsans-Bold.woff2') format('woff2'); font-weight: 700; }
@font-face { font-family: 'Thmanyah Sans'; src: url('fonts/thmanyahsans-Black.woff2') format('woff2'); font-weight: 900; }
@font-face { font-family: 'Thmanyah Serif Display'; src: url('fonts/thmanyahserifdisplay-Regular.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Thmanyah Serif Display'; src: url('fonts/thmanyahserifdisplay-Medium.woff2') format('woff2'); font-weight: 500; }
@font-face { font-family: 'Thmanyah Serif Display'; src: url('fonts/thmanyahserifdisplay-Bold.woff2') format('woff2'); font-weight: 700; }
@font-face { font-family: 'Thmanyah Serif Display'; src: url('fonts/thmanyahserifdisplay-Black.woff2') format('woff2'); font-weight: 900; }
@font-face { font-family: 'Thmanyah Serif Text'; src: url('fonts/thmanyahseriftext-Regular.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Thmanyah Serif Text'; src: url('fonts/thmanyahseriftext-Medium.woff2') format('woff2'); font-weight: 500; }
@font-face { font-family: 'Thmanyah Serif Text'; src: url('fonts/thmanyahseriftext-Bold.woff2') format('woff2'); font-weight: 700; }

/* Variables */
:root {
  --ksu-green: #196B24;
  --ksu-green-light: #4EA72E;
  --ksu-green-dark: #0B4A17;
  --ksu-gold: #0F9ED5;
  --ksu-gold-light: #0F9ED5;
  --medical-red: #d93838;
  --bg-dark: #0E2841;
  --bg-darker: #061524;
  --text-light: #f3f4f6;
  --text-muted: #a0aec0;
  
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-hover-border: rgba(15, 158, 213, 0.5);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --header-bg: rgba(14, 40, 65, 0.8);
}

body.light-theme {
  --bg-dark: #f8fafc;
  --bg-darker: #e2e8f0;
  --text-light: #0f172a;
  --text-muted: #475569;
  
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(0, 0, 0, 0.1);
  --card-hover-border: var(--ksu-gold);
  --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  
  --header-bg: rgba(255, 255, 255, 0.85);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Thmanyah Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
}

/* Background Effects */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at top right, rgba(15, 158, 213, 0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(25, 107, 36, 0.1), transparent 40%);
  pointer-events: none;
}

/* Header */
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  height: 48px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Thmanyah Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--card-bg);
  border-color: var(--ksu-gold);
  transform: scale(1.05);
}

/* Main Content */
.portal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding-top: calc(70px + 1.5rem);
  padding-bottom: calc(60px + 1.5rem);
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease forwards;
}

.hero-title {
  font-family: 'Thmanyah Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--text-light), var(--ksu-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}

.presentations-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--ksu-gold);
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* Grid Layout */
.presentations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Cards */
.presentation-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--pres-color, var(--ksu-gold));
  border-radius: 18px;
  padding: 1.25rem 1.25rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
}

.presentation-card.animate-in {
  animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.presentation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.presentation-card:hover::before {
  opacity: 1;
}

.presentation-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--pres-color, var(--card-hover-border));
  box-shadow: 0 15px 35px -5px var(--pres-color-shadow, rgba(15, 158, 213, 0.3));
}

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--pres-color-bg, rgba(15, 158, 213, 0.12));
  border: 1px solid var(--pres-color-border, rgba(15, 158, 213, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--pres-color, var(--ksu-gold));
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.presentation-card:hover .card-icon-wrapper {
  background: var(--pres-color, var(--ksu-gold)) !important;
  color: #fff !important;
  border-color: var(--pres-color, var(--ksu-gold)) !important;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 6px 20px var(--pres-color-shadow, rgba(0, 0, 0, 0.3));
}

.card-title {
  font-family: 'Thmanyah Serif Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 2;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--pres-color, var(--ksu-gold));
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.card-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border);
  position: relative;
  z-index: 2;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-item i {
  color: var(--pres-color, var(--ksu-gold));
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.card-tag {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-light);
  transition: all 0.3s ease;
}

.presentation-card:hover .card-tag {
  background: var(--pres-color-bg, rgba(15, 158, 213, 0.12));
  border-color: var(--pres-color-border, rgba(15, 158, 213, 0.3));
}

/* Footer */
.portal-footer {
  text-align: center;
  padding: 1rem 5%;
  border-top: 1px solid var(--card-border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

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

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

.footer-dev-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-dev-logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 10px rgba(15, 158, 213, 0.3));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.footer-dev-name {
  font-family: 'Thmanyah Serif Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ksu-gold);
}

.footer-dev-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-divider {
  width: 1px;
  height: 28px;
  background: var(--card-border);
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .presentations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-brand {
    gap: 1rem;
  }
  .brand-title {
    font-size: 1.2rem;
  }
  .brand-subtitle {
    display: none;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .presentations-grid {
    grid-template-columns: 1fr;
  }
}
