/*******************************************************************************
 * Professional Entrepreneur Portfolio Styles
 * Enhanced styling for a polished, modern look
 * Compatible with both light and dark themes
 ******************************************************************************/

/* ==========================================================================
   Global Professional Enhancements
   ========================================================================== */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--global-text-color);
  background-color: var(--global-bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ==========================================================================
   Typography Enhancements
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--global-heading-color);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

p {
  color: var(--global-text-color);
  margin-bottom: 1rem;
}

a {
  color: var(--global-link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--global-link-hover-color);
  text-decoration: none;
}

/* ==========================================================================
   Professional Card Styling
   ========================================================================== */

.card, .post, .publication {
  background: var(--global-card-bg-color);
  border: 1px solid var(--global-border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--global-shadow-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .post:hover, .publication:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--global-shadow-color-hover);
}

/* ==========================================================================
   Professional Buttons
   ========================================================================== */

.btn, button, .button {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--global-theme-color);
  color: var(--global-theme-color);
}

.btn-secondary:hover {
  background: var(--global-theme-color);
  color: white;
}

/* ==========================================================================
   Navigation Enhancements
   ========================================================================== */

.navbar {
  background: var(--global-card-bg-color);
  border-bottom: 1px solid var(--global-border-color);
  box-shadow: 0 2px 8px var(--global-shadow-color);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--global-text-color);
}

.nav-link {
  color: var(--global-text-color);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-link:hover {
  color: var(--global-theme-color);
}

/* ==========================================================================
   Badge & Tag Styling
   ========================================================================== */

.badge, .tag {
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  transition: all 0.3s ease;
}

.badge-primary {
  background: var(--gradient-primary);
  color: white;
}

.badge-secondary {
  background: var(--global-bg-alt-color);
  color: var(--global-text-color);
  border: 1px solid var(--global-border-color);
}

/* ==========================================================================
   Professional Gradients
   ========================================================================== */

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: var(--gradient-primary);
  color: white;
}

.gradient-border {
  border: 2px solid transparent;
  background: linear-gradient(var(--global-card-bg-color), var(--global-card-bg-color)) padding-box,
              var(--gradient-primary) border-box;
}

/* ==========================================================================
   Section Styling
   ========================================================================== */

section {
  padding: 3rem 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ==========================================================================
   Professional Timeline
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--global-theme-color);
  border: 3px solid var(--global-card-bg-color);
  box-shadow: 0 0 0 2px var(--global-theme-color);
}

/* ==========================================================================
   Image Enhancements
   ========================================================================== */

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.profile-image, .avatar {
  border-radius: 50%;
  border: 4px solid var(--global-border-color);
  box-shadow: 0 8px 24px var(--global-shadow-color);
  transition: all 0.3s ease;
}

.profile-image:hover, .avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px var(--global-shadow-color-hover);
}

/* ==========================================================================
   Code Block Styling
   ========================================================================== */

code {
  background: var(--global-code-bg-color);
  color: var(--global-code-text-color);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

pre {
  background: var(--global-code-bg-color);
  border: 1px solid var(--global-border-color);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  background: transparent;
  padding: 0;
}

/* ==========================================================================
   Footer Enhancements
   ========================================================================== */

footer {
  background: var(--global-footer-bg-color);
  color: var(--global-footer-text-color);
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--global-border-color);
}

footer a {
  color: var(--global-footer-link-color);
}

footer a:hover {
  color: var(--global-theme-color);
}

/* ==========================================================================
   Professional Animations
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
  animation: slideInLeft 0.6s ease-out;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-muted {
  color: var(--global-text-color-light);
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-sm {
  box-shadow: 0 2px 8px var(--global-shadow-color);
}

.shadow-md {
  box-shadow: 0 4px 16px var(--global-shadow-color);
}

.shadow-lg {
  box-shadow: 0 8px 32px var(--global-shadow-color);
}

.rounded {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 12px;
}

.rounded-xl {
  border-radius: 16px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.35rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* ==========================================================================
   Dark Mode Specific Adjustments
   ========================================================================== */

html[data-theme='dark'] {
  /* Enhanced contrast for dark mode */
  .card, .post, .publication {
    background: var(--global-card-bg-color);
    border-color: var(--global-border-color);
  }
  
  /* Glow effects for dark mode */
  .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.4);
  }
  
  /* Adjusted shadows for depth in dark mode */
  .shadow-sm {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }
  
  .shadow-md {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
  
  .shadow-lg {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  body {
    background: white;
    color: black;
  }
  
  .navbar, footer, .btn, button {
    display: none;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}
