/* JDIC - International Journal of Digital Intelligence and Computing */
/* Design System & Custom Academic Styling */

:root {
  --primary-dark: #0B192C;
  --primary: #1E3E62;
  --secondary: #00ADB5;
  --secondary-light: #E0F7FA;
  --accent-gold: #C89B3C;
  --accent-gold-light: #FBF4E8;
  --bg-light: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-color: #E2E8F0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Universal Scholarly Text Justification */
p, 
li,
.guideline-section p, 
.academic-card p, 
.content-paragraph, 
.leading-relaxed,
article p,
main p,
section p {
  text-align: justify;
  text-justify: inter-word;
}

.text-justify {
  text-align: justify !important;
  text-justify: inter-word !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00ADB5;
}

/* Badges and Highlights */
.gold-badge {
  background-color: rgba(200, 155, 60, 0.12);
  color: #9E7422;
  border: 1px solid rgba(200, 155, 60, 0.35);
}

.cyan-badge {
  background-color: rgba(0, 173, 181, 0.1);
  color: #007A82;
  border: 1px solid rgba(0, 173, 181, 0.3);
}

.accent-line {
  height: 3px;
  width: 52px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent-gold) 100%);
  border-radius: 2px;
}

/* Hero Network Visual Grid Background */
.hero-grid-bg {
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 173, 181, 0.08) 0%, transparent 60%),
    linear-gradient(to right, rgba(226, 232, 240, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.45) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

/* Card Elevation & Hover Effects */
.academic-card {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}
.academic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(11, 25, 44, 0.12);
  border-color: rgba(0, 173, 181, 0.4);
}

/* Guidelines Sidebar Links */
.sidebar-link {
  position: relative;
  transition: all 0.2s ease;
}
.sidebar-link.active {
  color: var(--primary-dark);
  font-weight: 700;
  background-color: #E0F7FA;
  border-left: 4px solid var(--secondary);
}
.sidebar-link:hover:not(.active) {
  color: var(--secondary);
  background-color: #F1F5F9;
}

/* Micro-interactions & Buttons */
.btn-primary {
  background: linear-gradient(135deg, #1E3E62 0%, #0B192C 100%);
  color: #FFFFFF;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0B192C 0%, #142840 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 25, 44, 0.25);
}

.btn-cyan {
  background-color: var(--secondary);
  color: #FFFFFF;
  transition: all 0.25s ease;
}
.btn-cyan:hover {
  background-color: #008C93;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 173, 181, 0.3);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #FFFFFF;
  transition: all 0.25s ease;
}
.btn-gold:hover {
  background-color: #B2872F;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 155, 60, 0.3);
}

/* Hero Slider Animation */
.hero-slide {
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

/* Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 173, 181, 0.3);
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}
