/* ==========================================================================
   TEMIC 2026 Custom Stylesheet
   Built on top of Bootstrap 5.3.3
   ========================================================================== */

/* ─── COLOR PALETTE & DESIGN TOKENS ─── */
:root {
  /* UiTM Official Colors */
  --uitm-purple: #3A1152;
  --uitm-purple-light: #521875;
  --uitm-gold: #F2C94C;
  --uitm-gold-dark: #D4AF37;
  
  /* Primary & Theme Colors */
  --color-primary: var(--uitm-purple);
  --color-accent: var(--uitm-gold);
  --color-bg-dark: #0F0818;
  --color-bg-card: rgba(255, 255, 255, 0.04);
  --color-border: rgba(255, 255, 255, 0.08);
  
  /* Conference Unique Tracks */
  --color-iac: #2D9CDB;      /* Accounting - Professional Blue */
  --color-icect: #00F2FE;    /* Engineering - Tech Cyan/Teal */
  --color-tibec: #BB6BD9;    /* Business - Modern Purple */
  --color-imac: #F2994A;     /* Management/Computing - Warm Amber */

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --nav-height: 80px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── GLOBAL RESET & DECORATIVE STYLES ─── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background-color: var(--color-bg-dark);
  color: #E2E8F0;
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  color: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  border: 2px solid var(--color-bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ─── TYPOGRAPHY & GRADIENTS ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--uitm-gold) 0%, #FFFFFF 50%, var(--color-icect) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-uitm {
  background: linear-gradient(135deg, var(--uitm-purple) 0%, var(--uitm-purple-light) 100%);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--uitm-gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--uitm-gold);
}

/* ─── NAVBAR & HERO ─── */
.navbar-custom {
  height: var(--nav-height);
  background-color: rgba(15, 8, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  z-index: 1050;
}

.navbar-custom.scrolled {
  height: 70px;
  background-color: rgba(10, 5, 16, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand img {
  height: 48px;
  transition: var(--transition-smooth);
}

.navbar-custom.scrolled .navbar-brand img {
  height: 40px;
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #FFFFFF;
}

.navbar-brand-text span {
  color: var(--uitm-gold);
  font-weight: 900;
}

.nav-link {
  font-weight: 500;
  color: #CBD5E1 !important;
  transition: var(--transition-smooth);
  padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--uitm-gold) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
  background-image: radial-gradient(circle at 80% 20%, rgba(82, 24, 117, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 10% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 50%);
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(58, 17, 82, 0.3) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uitm-gold);
  border: 1px solid rgba(242, 201, 76, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background: rgba(242, 201, 76, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-tagline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--uitm-gold);
  box-shadow: 0 0 10px var(--uitm-gold);
  animation: pulse-glow 2s infinite;
}

/* ─── BUTTONS & UTILITIES ─── */
.btn-uitm-primary {
  background: linear-gradient(135deg, var(--uitm-purple) 0%, var(--uitm-purple-light) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-uitm-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(58, 17, 82, 0.4);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-uitm-outline {
  background: transparent;
  border: 2px solid var(--uitm-purple);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-uitm-outline:hover {
  background: rgba(58, 17, 82, 0.1);
  border-color: var(--uitm-purple-light);
  color: var(--uitm-gold);
  transform: translateY(-2px);
}

.btn-uitm-gold {
  background: linear-gradient(135deg, var(--uitm-gold) 0%, var(--uitm-gold-dark) 100%);
  border: none;
  color: #0F0818;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-uitm-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(242, 201, 76, 0.3);
  color: #0F0818;
}

/* ─── STUNNING GLASS CARD SYSTEM ─── */
.glass-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-smooth);
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ─── DYNAMIC SUB-CONFERENCE CARDS ─── */
.track-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transition: var(--transition-smooth);
}

/* Track Specific Highlights */
.track-iac::before { background-color: var(--color-iac); }
.track-icect::before { background-color: var(--color-icect); }
.track-tibec::before { background-color: var(--color-tibec); }
.track-imac::before { background-color: var(--color-imac); }

.track-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.track-iac:hover { border-color: rgba(45, 156, 219, 0.3); }
.track-icect:hover { border-color: rgba(0, 242, 254, 0.3); }
.track-tibec:hover { border-color: rgba(187, 107, 217, 0.3); }
.track-imac:hover { border-color: rgba(242, 153, 74, 0.3); }

.track-acronym {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.track-iac .track-acronym { color: var(--color-iac); }
.track-icect .track-acronym { color: var(--color-icect); }
.track-tibec .track-acronym { color: var(--color-tibec); }
.track-imac .track-acronym { color: var(--color-imac); }

.track-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.track-topics-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.track-topics-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #94A3B8;
}

.track-topics-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--uitm-gold);
}

.btn-track-submit {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  transition: var(--transition-smooth);
}

.track-iac .btn-track-submit {
  background: rgba(45, 156, 219, 0.1);
  color: var(--color-iac);
  border: 1px solid rgba(45, 156, 219, 0.3);
}
.track-iac .btn-track-submit:hover {
  background: var(--color-iac);
  color: #000000;
}

.track-icect .btn-track-submit {
  background: rgba(0, 242, 254, 0.1);
  color: var(--color-icect);
  border: 1px solid rgba(0, 242, 254, 0.3);
}
.track-icect .btn-track-submit:hover {
  background: var(--color-icect);
  color: #000000;
}

.track-tibec .btn-track-submit {
  background: rgba(187, 107, 217, 0.1);
  color: var(--color-tibec);
  border: 1px solid rgba(187, 107, 217, 0.3);
}
.track-tibec .btn-track-submit:hover {
  background: var(--color-tibec);
  color: #000000;
}

.track-imac .btn-track-submit {
  background: rgba(242, 153, 74, 0.1);
  color: var(--color-imac);
  border: 1px solid rgba(242, 153, 74, 0.3);
}
.track-imac .btn-track-submit:hover {
  background: var(--color-imac);
  color: #000000;
}

/* ─── INTERACTIVE AUTHOR WORKFLOW ─── */
.step-container {
  position: relative;
}

.step-card-workflow {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: var(--transition-smooth);
}

.step-card-workflow:hover {
  border-color: var(--uitm-gold);
  transform: translateY(-3px);
}

.step-badge-number {
  position: absolute;
  top: -15px;
  right: 25px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.step-card-workflow:hover .step-badge-number {
  color: rgba(242, 201, 76, 0.12);
}

.step-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(58, 17, 82, 0.2);
  border: 1px solid rgba(58, 17, 82, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--uitm-gold);
}

.step-link-action {
  color: var(--uitm-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.step-link-action:hover {
  color: #FFFFFF;
  gap: 10px;
}

/* Connecting Line on Desktop */
@media (min-width: 992px) {
  .step-col {
    position: relative;
  }
  .step-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30%;
    right: -15px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(242, 201, 76, 0.3));
    z-index: 1;
  }
}

/* ─── TIMELINE / KEY DATES ─── */
.timeline-list {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--uitm-purple) 0%, rgba(242, 201, 76, 0.5) 50%, var(--color-icect) 100%);
}

.timeline-row {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-indicator {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-bg-dark);
  border: 3px solid var(--uitm-purple);
  transition: var(--transition-smooth);
}

.timeline-row:hover .timeline-indicator {
  border-color: var(--uitm-gold);
  box-shadow: 0 0 12px var(--uitm-gold);
}

.timeline-row.highlighted-date .timeline-indicator {
  border-color: var(--uitm-gold);
  background-color: var(--uitm-gold);
  box-shadow: 0 0 15px var(--uitm-gold);
}

.timeline-date-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--uitm-gold);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-text {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.timeline-card-highlight {
  background: linear-gradient(135deg, rgba(58, 17, 82, 0.3) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(242, 201, 76, 0.2) !important;
  border-radius: 12px;
  padding: 1.25rem;
}

/* ─── QUICK PORTALS GRID ─── */
.portal-access-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: #FFFFFF;
  transition: var(--transition-smooth);
}

.portal-access-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--uitm-gold);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.portal-acronym-badge {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
  flex-shrink: 0;
}

.badge-iac { background: rgba(45, 156, 219, 0.15); color: var(--color-iac); }
.badge-icect { background: rgba(0, 242, 254, 0.15); color: var(--color-icect); }
.badge-tibec { background: rgba(187, 107, 217, 0.15); color: var(--color-tibec); }
.badge-imac { background: rgba(242, 153, 74, 0.15); color: var(--color-imac); }
.badge-register { background: rgba(242, 201, 76, 0.15); color: var(--uitm-gold); }

.portal-url-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--uitm-gold);
}

.portal-arrow-icon {
  margin-left: auto;
  color: #475569;
  transition: var(--transition-smooth);
}

.portal-access-card:hover .portal-arrow-icon {
  color: #FFFFFF;
  transform: translateX(4px);
}

/* ─── ANIMATIONS & SHADOW EFFECTS ─── */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 201, 76, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(242, 201, 76, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 201, 76, 0);
  }
}

/* ─── RESPONSIVE TUNING ─── */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 5rem;
  }
  .display-4 {
    font-size: 2.75rem;
  }
  .timeline-list {
    padding-left: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: calc(var(--nav-height) + 1.5rem);
    text-align: center;
  }
  .hero-tagline {
    font-size: 0.8rem;
  }
  .display-4 {
    font-size: 2.2rem;
  }
  .btn-uitm-primary, .btn-uitm-outline {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  .btn-uitm-outline {
    margin-bottom: 0;
  }
}
/* ─── CONTRAST & READABILITY OVERRIDES ─── */
.text-secondary-emphasis {
  color: #CBD5E1 !important; /* Lighter gray/slate for excellent contrast */
}
.text-secondary {
  color: #94A3B8 !important; /* Slate-400, highly readable on dark purple/navy */
}
.text-muted {
  color: #7A8B9E !important; /* Medium slate-gray */
}