/* 
==============================================
JEFFREY DULANEY WEBSITE - ENHANCED STYLESHEET
==============================================

Colors:
- Primary Purple: #6B21A8
- Secondary Purple: #8B5CF6
- Dark Purple: #4C1D95
- Black: #0F0F0F
- Dark Gray: #1F1F1F
- Light Gray: #71717A
- White: #F9F9F9
*/

/* === GLOBAL STYLES === */
:root {
  --primary: #6B21A8;
  --primary-light: #8B5CF6;
  --primary-dark: #4C1D95;
  --secondary: #1F1F1F;
  --light: #F9F9F9;
  --gray: #71717A;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 14px 28px rgba(107, 33, 168, 0.25), 0 10px 10px rgba(107, 33, 168, 0.22);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0F0F0F;
  color: white;
  overflow-x: hidden;
}

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

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

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes gradientBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === UTILITY CLASSES === */
.animate-fade-in {
  animation: fadeIn 1s var(--transition-medium) forwards;
}

.animate-slide-left {
  animation: slideInLeft 1s var(--transition-medium) forwards;
}

.animate-slide-right {
  animation: slideInRight 1s var(--transition-medium) forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s infinite ease-in-out;
}

.transition-all {
  transition: all var(--transition-medium);
}

/* === CUSTOM COMPONENTS === */
.hover-grow {
  transition: all 0.3s ease;
}

.hover-grow:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(107, 33, 168, 0.3);
}

.hover-glow:hover {
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.7);
}

.service-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 12px;
  background: rgba(31, 31, 31, 0.8);
  overflow: hidden;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(107, 33, 168, 0.4);
}

.service-card:hover .card-img {
  transform: scale(1.08);
}

.service-card:hover .card-title {
  color: var(--primary-light);
}

.card-img-container {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.card-img {
  transition: transform 0.5s ease;
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.gradient-button {
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.gradient-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-light), var(--primary));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gradient-button:hover:before {
  opacity: 1;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-light);
}

.nav-link:hover:after {
  width: 100%;
}

.hero-section {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 700px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.96), rgba(107, 33, 168, 0.95));
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.2) contrast(1.2);
  z-index: 1;
}

.profile-img {
  border-radius: 50%;
  border: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.8);
}

.highlight-text {
  background: linear-gradient(120deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

footer a {
  color: white !important;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-light) !important;
}

.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  color: var(--primary-light);
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 2rem auto;
  width: 80%;
}

/* Mobile menu styles */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Loading animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0F0F0F;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out;
}

.loader {
  width: 80px;
  height: 80px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

/* Animated underline */
.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-light);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.animated-underline:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* === BUSINESS CARDS === */
.business-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 12px;
  background: rgba(31, 31, 31, 0.8);
  border: 1px solid #374151;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.business-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(107, 33, 168, 0.5);
  border-color: #6B7280;
}

.business-card:hover .card-title {
  color: var(--primary-light);
  transform: translateY(-2px);
}

/* === BOOK COVER STYLING === */
.book-cover-img {
  border: none !important;
  background: transparent !important;
  filter: contrast(1.1) brightness(1.05);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  /* Remove any white borders */
  outline: none !important;
  box-shadow: none !important;
}

.book-cover-img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(107, 33, 168, 0.4);
}

/* Additional styling to ensure no white borders on book cover */
.book-cover-img,
img[src*="book-cover"] {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* === UTILITY CLASSES === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 500px;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--black);
    flex-direction: column;
    padding: 80px 20px 30px;
    transition: right var(--transition-medium);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 1000;
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}
    