/* ========================================
   GoAskNow Technologies - Custom Styles
   Author: GoAskNow Technologies
   Description: Custom CSS animations and utilities
   ======================================== */

/* ========================================
   CSS Variables
   ======================================== */
:root {
  --primary: #793b96;
  --secondary: #082a5e;
  --accent: #06b6d4;
  --white: #ffffff;
  --light-bg: #e8edff;
  --light-gray: #f3f4f6;
  --medium-gray: #6b7280;
  --dark-gray: #1f2937;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Font Families */
  --font-heading: "Lexend Deca", sans-serif;
  --font-body: "Hind", sans-serif;
}

/* ========================================
     Global Styles & Resets
     ======================================== */

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.page-loaded {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

/* ========================================
     Typography
     ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
}

/* Navigation, Buttons, and Footer Navigation - Lexend Deca */
nav,
nav a,
button,
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
footer nav,
footer nav a,
a[class*="btn"] {
  font-family: var(--font-heading);
}

/* Body Content - Hind */
p,
li,
span,
div {
  font-family: var(--font-body);
}

/* ========================================
     Custom Utility Classes
     ======================================== */
.bg-light-blue {
  background-color: var(--light-bg);
}

/* ========================================
     Button Styles
     ======================================== */
.btn {
  letter-spacing: 0.025em;
}
/* ========================================
     Hero Animations
     ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

.animate-fade-in-delay {
  opacity: 0;
  animation: fadeInDelay 0.8s ease-out 0.3s forwards;
}

.animate-fade-in-delay-2 {
  opacity: 0;
  animation: fadeInDelay2 0.8s ease-out 0.6s forwards;
}

/* ========================================
     Scroll Animations
     ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
     Pulse Animation
     ======================================== */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

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

/* ========================================
     Bounce Animation
     ======================================== */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* ========================================
     Navigation Enhancements
     ======================================== */
#navbar {
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Mobile Menu Transitions */
#mobile-menu {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
     Form Styles
     ======================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(121, 59, 150, 0.1);
}

/* ========================================
     Back to Top Button
     ======================================== */
#back-to-top {
  transition: all 0.3s ease;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(121, 59, 150, 0.3);
}

/* ========================================
     Selection Styles
     ======================================== */
::selection {
  background-color: var(--primary);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--primary);
  color: var(--white);
}

/* ========================================
     Scrollbar Styles (Webkit)
     ======================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ========================================
     Focus Visible (Accessibility)
     ======================================== */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ========================================
     Print Styles
     ======================================== */
@media print {
  nav,
  footer,
  #back-to-top {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  h1 {
    font-size: 24pt;
  }

  h2 {
    font-size: 18pt;
  }

  h3 {
    font-size: 14pt;
  }
}

/* ========================================
     Reduced Motion (Accessibility)
     ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.wordpress-content h1,
.wordpress-content h2,
.wordpress-content h3,
.wordpress-content h4,
.wordpress-content h5,
.wordpress-content h6 {
  font-family: "Lexend Deca", sans-serif;
  font-weight: 700;
  color: #082a5e;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.wordpress-content h1 {
  font-size: 2.25rem;
}

.wordpress-content h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
}

.wordpress-content h3 {
  font-size: 1.5rem;
}

.wordpress-content h4 {
  font-size: 1.25rem;
}

.wordpress-content h5 {
  font-size: 1.125rem;
}

.wordpress-content h6 {
  font-size: 1rem;
}

.wordpress-content p {
  font-family: "Hind", sans-serif;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.wordpress-content a {
  color: #793b96;
  text-decoration: underline;
  transition: color 0.3s;
}

.wordpress-content a:hover {
  color: #082a5e;
}

.wordpress-content ul,
.wordpress-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: #374151;
  font-size: 1.125rem;
  line-height: 1.75;
}

.wordpress-content ul {
  list-style-type: disc;
}

.wordpress-content ol {
  list-style-type: decimal;
}

.wordpress-content li {
  margin-bottom: 0.5rem;
}

.wordpress-content li > ul,
.wordpress-content li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.wordpress-content strong {
  font-weight: 600;
  color: #082a5e;
}

.wordpress-content em {
  font-style: italic;
}

.wordpress-content blockquote {
  border-left: 4px solid #793b96;
  padding-left: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: 2rem 0;
  background-color: #f9fafb;
  border-radius: 0 0.5rem 0.5rem 0;
  font-weight: 600;
  color: #1f2937;
}

.wordpress-content blockquote p {
  margin-bottom: 0.5rem;
}

.wordpress-content code {
  background-color: #f3f4f6;
  color: #793b96;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", Courier, monospace;
}

.wordpress-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.wordpress-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.875rem;
}

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

.wordpress-content figure {
  margin: 2rem 0;
}

.wordpress-content figcaption {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.wordpress-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
}

.wordpress-content table thead {
  background-color: #793b96;
  color: white;
}

.wordpress-content table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.wordpress-content table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.wordpress-content table tbody tr:hover {
  background-color: #f9fafb;
}

.wordpress-content hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 3rem 0;
}

.wordpress-content .wp-block-quote {
  border-left: 4px solid #793b96;
  padding-left: 1.5rem;
  font-style: italic;
}

.wordpress-content .wp-block-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wordpress-content h1 {
    font-size: 1.875rem;
  }

  .wordpress-content h2 {
    font-size: 1.5rem;
  }

  .wordpress-content h3 {
    font-size: 1.25rem;
  }

  .wordpress-content p,
  .wordpress-content ul,
  .wordpress-content ol {
    font-size: 1rem;
  }
}

.wpcf7 form .wpcf7-response-output {
  margin: 5px 0 0 !important;
  padding: 10px !important;
}
