/* Main CSS file for the E-Dossie site */

/* Variables are handled through CSS Custom Properties */
:root {
  --primary-color: #4A6FFF;
  --secondary-color: #6C757D;
  --light-color: #F8F9FA;
  --dark-color: #212529;
  --accent-color: #10B981;
}

/* Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: #3050d0;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #3050d0;
  border-color: #3050d0;
}

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

.section-subtitle {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
}

.navbar .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
}

.navbar-spacer {
  height: 5.5rem;
}

/* Card Styles */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 6rem 0;
}

.hero-section h1 {
  font-weight: 700;
  margin-top: 1.5rem;
}

/* Post Styles */
.post-container .post-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.post-container .post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-container .post-content h2,
.post-container .post-content h3,
.post-container .post-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-container .post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}

.post-container .post-content blockquote {
  border-left: 5px solid var(--primary-color);
  padding: 1rem 0 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  background-color: rgba(74, 111, 255, 0.05);
}

.post-container .post-content pre {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-container .post-content code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
}

/* Author Styles */
.author-container .author-name {
  font-size: 2rem;
  font-weight: 700;
}

/* Footer */
.footer .social-links a {
  font-size: 1.25rem;
  transition: opacity 0.3s ease;
}

.footer .social-links a:hover {
  opacity: 0.8;
}

/* Feature Icon Styles */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Media Queries */
@media (max-width: 767.98px) {
  .navbar-spacer {
    height: 4.5rem;
  }
  
  .hero-section {
    padding: 6rem 0 4rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
    margin-top: 1rem;
  }
  
  .post-container .post-title {
    font-size: 2rem;
  }
}

/* Utility Classes */
.object-cover {
  object-fit: cover;
}

/* 3D Dossier Animation */
.hero-image-container {
  perspective: 1000px;
  transform-style: preserve-3d;
  overflow: visible !important;
}

.hero-image-container img {
  transform-origin: center center;
  transition: transform 0.2s ease-out;
}

.hero-image-container:hover {
  cursor: pointer;
}
/* Author avatar styles */
.author-image img {
  object-fit: cover;
  border: 2px solid #eee;
}

.rounded-circle {
  border-radius: 50% \!important;
}

.post-meta .author-image {
  display: flex;
  align-items: center;
}

/* Rhilo Logo Styling */
.rhilo-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--light-color);
  position: relative;
  display: inline-block;
}

.rhilo-logo .logo-text {
  position: relative;
  z-index: 2;
}

.rhilo-logo .logo-dot {
  color: var(--accent-color);
  font-size: 2rem;
}

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

.rhilo-logo.dark {
  color: var(--dark-color);
}

.rhilo-logo .logo-underline {
  position: absolute;
  bottom: 0.05em;
  left: 0;
  height: 0.15em;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 10px;
  z-index: 1;
  opacity: 0.3;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Modern UI Animations & Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

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

.hover-glow {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

/* Animation Keyframes */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes floatSlow {
  0% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-10px) translateX(5px); }
  50% { transform: translateY(0px) translateX(10px); }
  75% { transform: translateY(10px) translateX(5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@keyframes pulse {
  0% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
  100% { opacity: 0.4; transform: scale(1); }
}

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

@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* Apply animations to elements */
.fade-in {
  opacity: 0;
  animation: scaleIn 0.8s forwards ease-out;
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s forwards ease-out;
}

.pulse-element {
  animation: pulse 4s infinite ease-in-out;
}

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* 3D and depth effects */
.perspective-element {
  perspective: 1000px;
}

/* Enhanced blurred elements */
.blur-circle {
  filter: blur(50px);
  transition: opacity 0.5s ease;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-active {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
