/* 
   MIK Tax Consultant LLC - Premium Design System 
   Palette: Solid Navy & Vibrant Teal
   Fonts: Poppins (Heads), Inter (Body)
*/

:root {
  /* Core Colors */
  --navy: #1B2B4D;
  --navy-light: #2D4263;
  --navy-dark: #121e36;

  /* Restoring Brand 'Coral' as primary accent, mapped to 'teal' variables for backward compatibility */
  --teal: #E87B5A;
  --teal-hover: #D96A48;
  --teal-soft: rgba(232, 123, 90, 0.1);
  --coral: #E87B5A;

  --white: #ffffff;
  --light-bg: #F8F9FA;
  --border-color: #E2E8F0;

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(27, 43, 77, 0.05), 0 2px 4px -1px rgba(27, 43, 77, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(27, 43, 77, 0.08), 0 4px 6px -2px rgba(27, 43, 77, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(27, 43, 77, 0.1), 0 10px 10px -5px rgba(27, 43, 77, 0.04);
  --shadow-glow: 0 0 20px rgba(232, 123, 90, 0.3);
}

/* Global Reset & Base */
body {
  font-family: var(--font-primary);
  color: var(--navy);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Utilities */
.bg-navy {
  background-color: var(--navy) !important;
}

.bg-coral {
  background-color: var(--coral) !important;
}

.bg-light {
  background-color: var(--light-bg) !important;
}

.text-navy {
  color: var(--navy) !important;
}

.text-teal {
  color: var(--teal) !important;
}

.text-muted {
  color: #64748b !important;
}

/* Buttons */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50rem;
  /* Pill shape */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
}

.btn-teal {
  background: var(--teal);
  border: 2px solid var(--teal);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.25);
}

.btn-teal:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 184, 148, 0.35);
  color: white;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
  background: white;
  color: var(--navy);
  transform: translateY(-2px);
  border-color: white;
}

/* Navbar */
.navbar {
  /* padding: 1rem 0; */
  /* Adjusted in scroll JS usually, but standard for now */
  transition: all 0.3s ease;
}

.bg-navy.navbar {
  background-color: rgba(11, 30, 59, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand img {
  /* filter: brightness(0) invert(1); Removed to show original logo colors */
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: rotate(-2deg);
}

.navbar-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.navbar-brand:hover span {
  color: var(--teal);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
}

/* Hero Background Pattern */
.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 15% 50%, rgba(0, 184, 148, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 184, 148, 0.05) 0%, transparent 25%);
  pointer-events: none;
}

.display-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #cbd5e1);
  background-clip: text;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .display-title {
    font-size: 2.5rem;
    word-wrap: break-word;
    /* Prevent overflow of long words */
  }
}

/* Cards (Services) */
.service-card {
  background: white;
  border-radius: 24px;
  /* More rounded */
  padding: 3rem 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  /* Subtle initial shadow */
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--navy);
  transition: all 0.4s ease;
  z-index: -1;
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0, 0, 0, 0.15));
}

.service-card:hover::before {
  height: 100%;
  opacity: 1;
}

.service-card:hover h5,
.service-card:hover p,
.service-card:hover .icon-box {
  color: white !important;
  border-color: rgba(255, 255, 255, 0.2);
}

.service-card:hover .btn-link {
  color: var(--teal) !important;
}

.icon-box {
  width: 72px;
  /* Slightly larger */
  height: 72px;
  border-radius: 20px;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover .icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: var(--teal);
  backdrop-filter: blur(5px);
}

/* Testimonial Card */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Soft shadow */
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

/* Feature Card (Why Choose Us) */
.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card .icon-circle {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--teal);
}

/* Glassmorphism Card (Hero Illustration) */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* Pricing Section */
.pricing-card {
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
  z-index: 2;
}

.pricing-card.popular::after {
  content: 'BEST VALUE';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: white;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50rem;
  letter-spacing: 0.05em;
}

/* FAQ Accordion */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  background: white;
}

.accordion-button {
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--teal);
  background: rgba(0, 184, 148, 0.05);
}

.accordion-button::after {
  filter: grayscale(100%);
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  filter: none;
  /* Add SVG color filter provided it matches teal, or use bootstrap override */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e87b5a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Stats Counter */
.counter-box {
  text-align: center;
  padding: 2rem;
}

.counter-box h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

footer h5,
footer h6 {
  color: white;
  margin-bottom: 1.25rem;
}

footer input.form-control {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--navy);
  border-radius: 50rem;
  padding-left: 1.25rem;
}

footer input.form-control:focus {
  background: #ffffff;
  border-color: var(--teal);
  color: var(--navy);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.footer-brand span {
  transition: color 0.3s ease;
}

.footer-brand:hover span,
.footer-brand:hover h5 {
  color: var(--teal) !important;
}


/* Animations Utility Classes */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Floating Blobs Animation */
@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

.blob-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-blob 10s infinite ease-in-out;
}

.blob-1 {
  background: var(--teal);
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.blob-2 {
  background: var(--navy-light);
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
  animation-delay: -5s;
}

/* Feature List (Checkmarks) */
.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: #64748b;
}

.feature-list li::before {
  content: '\F26A';
  /* Bootstrap Icon Check Circle Fill */
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  top: -3px;
  color: var(--teal);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 991px) {
  .display-title {
    font-size: 2.5rem;
  }

  .pricing-card.popular {
    transform: scale(1);
    margin: 1rem 0;
  }

  .hero-section {
    padding: 6rem 0 4rem;
  }

  /* Reduce global section padding on mobile */
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .py-lg-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

.navbar-nav {
  background: var(--navy);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
  .navbar-nav {
    background: transparent;
    padding: 0;
    margin-top: 0;
  }
}


/* --- Premium Corporate Services (V2) --- */

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)) !important;
}

/* Secondary Button (Outline Navy) */
.btn-outline-navy {
  color: var(--navy);
  border: 2px solid var(--navy-light);
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(27, 43, 77, 0.15);
}

/* Teal Badge Button */
.btn-navy {
  background: var(--navy);
  color: white;
  border: 2px solid var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: white;
  transform: translateY(-2px);
}


/* Service Card V2 Specifics */
.service-card-v2 {
  border-radius: 16px;
  background: white;
  z-index: 1;
}

/* Icon Square Base Styles */
.icon-square {
  transition: all 0.3s ease;
}

/* Theme: Navy (Default: Navy -> Hover: Teal) */
.icon-theme-navy {
  background-color: var(--navy);
  color: white;
}

.service-card-v2:hover .icon-theme-navy {
  background-color: var(--teal);
  color: white;
}

/* Theme: Teal (Default: Teal -> Hover: Navy) */
.icon-theme-teal {
  background-color: var(--teal);
  color: white;
}

.service-card-v2:hover .icon-theme-teal {
  background-color: var(--navy);
  color: white;
}

/* Theme: White (Default: White -> Hover: Teal) */
.icon-theme-white {
  background-color: white;
  color: var(--teal);
  border-color: var(--teal);
  /* Assumes border class is present, but we control color here if needed */
}

.service-card-v2:hover .icon-theme-white {
  background-color: var(--teal);
  color: white !important;
  /* Force override of utility classes if any */
  border-color: var(--teal);
}

/* Fix for hover gradient */
.hover-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 43, 77, 0.95) 0%, rgba(27, 43, 77, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

/* --- New Utilities for About v3 --- */

/* Gradient Text */
.text-gradient-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Unique Shapes */
.clip-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

.clip-diagonal-reverse {
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
}

/* Glassmorphism Dark */
.glass-dark {
  background: rgba(18, 30, 54, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Hover Effects */
.hover-scale {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hover-scale:hover {
  transform: scale(1.03);
  z-index: 10;
}

.grayscale {
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.hover-color:hover .grayscale {
  filter: grayscale(0%);
}

.service-card-v2:hover .hover-gradient {
  opacity: 1;
}

/* Layout Utilities */
.min-vh-50 {
  min-height: 50vh;
}

.text-sm {
  font-size: 0.9rem;
}

.fw-medium {
  font-weight: 500;
}

.opacity-75 {
  opacity: 0.75;
}

.letter-spacing-1 {
  letter-spacing: 1px;
}

/* About Page Mobile Overrides */
@media (max-width: 991px) {
  .min-vh-75 {
    min-height: auto !important;
  }

  /* Timeline adjustments */
  .border-start-dashed {
    border-left: 2px dashed #cbd5e1;
  }
}

/* =========================================
   Preloader
   ========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: var(--navy);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-img {
  width: 120px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================================
   Custom Cursor
   ========================================= */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9998;
  pointer-events: none;
  display: none;
  /* Hidden by default until JS activating/creating it */
}

/* Show only on non-touch devices */
@media (hover: hover) and (pointer: fine) {

  .cursor-dot,
  .cursor-outline {
    display: block;
  }
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--teal);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(232, 123, 90, 0.5);
  /* Teal/Coral semi-transparent */
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover effect for cursor */
body.hovering .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(232, 123, 90, 0.1);
  border-color: transparent;
}

/* Hero Slideshow */
.hero-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-slideshow .overlay {
  background: linear-gradient(135deg, rgba(11, 30, 59, 0.95) 0%, rgba(11, 30, 59, 0.8) 100%);
}

/* Hero Animation - Gentle Float */
@keyframes hero-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

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