html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Inter', sans-serif;
}

/* Custom Styles for Psychologist Website */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.text-primary {
  color: #667eea !important;
}

.btn-primary {
  background-color: #667eea;
  border-color: #667eea;
}

.btn-primary:hover {
  background-color: #5a6fd8;
  border-color: #5a6fd8;
}

.btn-outline-primary {
  color: #667eea;
  border-color: #667eea;
}

.btn-outline-primary:hover {
  background-color: #667eea;
  border-color: #667eea;
}

/* Card Hover Effects */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Service Icons */
.service-icon {
  transition: transform 0.3s ease;
}

.card:hover .service-icon {
  transform: scale(1.1);
}

/* Floating Animation */
.hero-image, .about-image {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Timeline Styles */
.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 20px;
  width: 10px;
  height: 10px;
  background: #667eea;
  border-radius: 50%;
}

/* Contact Icons */
.contact-icon {
  width: 40px;
  text-align: center;
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #667eea;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,.125);
}

/* Newsletter Form */
.newsletter-form .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Social Media Icons */
.social-links a {
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a6fd8;
}

/* Footer Styles */
.footer-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.footer-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.footer-gradient .container {
  position: relative;
  z-index: 1;
}

.footer-link {
  transition: all 0.3s ease;
  opacity: 0.75;
}

.footer-link:hover {
  opacity: 1;
  color: #ffd700 !important;
  transform: translateX(5px);
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: #ffd700 !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-gradient h5,
.footer-gradient h6 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-gradient .text-warning {
  color: #ffd700 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .footer-gradient {
    text-align: center;
  }
  
  .social-link {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 0.9rem;
  }
}

/* Header Styles */
.header-brand {
  transition: all 0.3s ease;
  position: relative;
}

.header-brand:hover {
  transform: translateY(-2px);
  color: #5a6fd8 !important;
}

.header-brand::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.header-brand:hover::after {
  width: 100%;
}

.header-nav-link {
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
}

.header-nav-link:hover {
  color: #667eea !important;
  transform: translateY(-1px);
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header-nav-link:hover::after {
  width: 100%;
}

.header-btn {
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.header-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.header-btn:hover::before {
  left: 0;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.btn-whatsapp:hover::before {
  left: 0;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
  color: white;
}

.btn-whatsapp:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

/* Navbar hover effects */
.navbar-nav .nav-item {
  margin: 0 0.25rem;
}

.navbar-nav .nav-item .nav-link {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover {
  background: rgba(102, 126, 234, 0.1);
}

/* Active nav link */
.navbar-nav .nav-item .nav-link.active {
  color: #667eea !important;
  background: rgba(102, 126, 234, 0.1);
}

@media (max-width: 991px) {
  .header-btn,
  .btn-whatsapp {
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }
}