/* Additional CSS for enhancing typography and visual details */

/* Typography refinements */
body {
  font-family: var(--body-font);
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

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

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

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

h4 {
  font-size: 1.25rem;
  line-height: 1.35;
}

/* Enhanced header styles */
.site-header {
  transition: all 0.4s ease;
}

.site-header.sticky {
  box-shadow: var(--shadow-md);
  height: 70px;
  background-color: rgba(255, 255, 255, 0.98);
}

.site-header.hide {
  transform: translateY(-100%);
}

/* Enhanced button styles with hover effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.btn:hover::before {
  left: 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-accent:hover {
  transform: translateY(-2px);
}

/* Enhanced menu hover effects */
.main-menu > li > a {
  transition: all 0.3s ease;
}

.main-menu > li > a:hover {
  color: var(--accent-color);
}

.main-menu > li > a::after {
  transition: width 0.3s ease, background-color 0.3s ease;
}

.main-menu > li:hover > a::after {
  width: 100%;
  background-color: var(--accent-color);
}

/* Enhanced submenu animations */
.main-menu .sub-menu {
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-sm);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-menu > li:hover > .sub-menu {
  animation: fadeInUp 0.4s ease forwards;
}

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

/* Enhanced footer styles */
.site-footer {
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer-column h3::after {
  transition: width 0.3s ease;
}

.footer-column:hover h3::after {
  width: 70px;
}

/* Enhanced social media icons */
.footer-social a {
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

.footer-social a:hover {
  transform: translateY(-5px) rotate(5deg);
  box-shadow: var(--shadow-md);
}

/* Newsletter form enhancements */
.newsletter-form {
  position: relative;
  display: flex;
  margin-top: var(--spacing-md);
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius-md);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

.newsletter-form button {
  margin-left: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateX(2px);
}

/* Enhanced footer links */
.footer-links a {
  position: relative;
  transition: all 0.3s ease;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
  opacity: 0;
}

.footer-links a:hover::before {
  width: 5px;
  opacity: 1;
}

/* Enhanced contact info */
.footer-contact .icon {
  transition: all 0.3s ease;
}

.footer-contact li:hover .icon {
  transform: scale(1.2);
}

/* Additional animations for page elements */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

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

/* Soft box shadows for cards and containers */
.card, .content-box {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover, .content-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

/* Mobile menu enhancements */
@media (max-width: 991px) {
  .menu-toggle {
    transition: all 0.3s ease;
  }
  
  .menu-toggle:hover {
    color: var(--accent-color);
  }
  
  .menu-toggle.active {
    color: var(--accent-color);
  }
  
  .main-menu-container {
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .main-menu > li {
    transition: all 0.3s ease;
  }
  
  .main-menu > li:hover {
    background-color: rgba(0, 0, 0, 0.02);
  }
  
  .main-menu .sub-menu {
    transition: all 0.4s ease;
  }
}

/* Additional responsive adjustments */
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .header-container {
    height: 70px;
  }
  
  .site-content {
    margin-top: 70px;
  }
}
