/* ==========================================================================
   Landing Page Specific Styles - Complete Isolation
   All landing page styles consolidated into this single file
   ========================================================================== */

/* ==========================================================================
   Responsive Header Height Variables
   Dynamic header heights for different breakpoints to prevent content overlap
   ========================================================================== */

:root {
    --header-height-desktop: 105px; /* Updated to match actual computed height (104.5px rounded up) */
    --header-height-tablet: 66px; /* Updated to match actual tablet height */
    --header-height-mobile: 70px; /* Mobile height remains accurate */

    /* Vertical rhythm system for consistent spacing */
    --space-section: 5rem; /* 80px between major sections */
    --space-subsection: 3rem; /* 48px within sections */
    --space-element: 1.5rem; /* 24px between elements */
    --space-tight: 0.75rem; /* 12px for related elements */
}

/* ==========================================================================
   Fixed Navbar Spacing
   Account for fixed navbar height to prevent content overlap
   ========================================================================== */

/* Remove body padding for clean one-square homepage look */
.index-page {
  padding-top: 0 !important; /* Override any default padding */
}

/* Remove header padding to eliminate white line at bottom */
.index-page .header {
  padding-bottom: 0 !important; /* Remove bottom padding that shows through transparent header */
  border-bottom: none !important; /* Remove the mystery white border line */
}

/* Hero fills viewport from top with content properly spaced */
.index-page .hero {
  margin-top: 0; /* Start at viewport top */
  padding-top: calc(var(--header-height-desktop) + 20px); /* Header + breathing room */
}

/* ==========================================================================
   Header/Navigation - Landing Specific
   ========================================================================== */

/* Fix for navbar underline animation that appears on top */
.index-page .navmenu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px; /* Changed from 0 to -2px to prevent overlap */
    left: 50%;
    background-color: #47b2e4;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    z-index: 1; /* Ensure it stays below content */
}

.index-page .navmenu a:hover::after,
.index-page .navmenu a.active::after {
    width: 80%;
}

/* Ensure header content has proper z-index */
.index-page .header .logo,
.index-page .header .logo h1 {
    position: relative;
    z-index: 2;
}

/* Sticky header with scroll effect */
.index-page .header {
    transition: all 0.3s ease;
}

.index-page .header.scrolled {
    padding: 10px 0;
    background: rgba(61, 77, 106, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  --background-color: var(--hero-background-color);
  --default-color: var(--hero-color);
  --heading-color: var(--hero-color);
  --contrast-color: var(--hero-color);
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0 60px 0; /* Reduced bottom padding from 40px to create better flow */
  display: flex;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem 0;
  font-size: clamp(2.5rem, 5vw, 4rem); /* Fluid 40px-64px */
  font-weight: 800; /* Increased from 700 for landing page impact */
  line-height: 1.1; /* Tighter for visual impact */
  letter-spacing: -0.02em; /* Professional tracking for large text */
}

/* Centered hero title specific styles - simplified with fluid typography */
.hero .text-center h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 5px 0 30px 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 28px 12px 28px;
  border-radius: 50px;
  transition: 0.5s;
}

.hero .btn-get-started:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.hero .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  color: var(--default-color);
  font-weight: 600;
}

.hero .btn-watch-video i {
  color: var(--contrast-color);
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}

.hero .btn-watch-video:hover {
  color: var(--accent-color);
}

.hero .btn-watch-video:hover i {
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

/* Tablet responsive styles */
@media (max-width: 991px) {
  :root {
    --header-height-desktop: var(--header-height-tablet);
  }

  .index-page .hero {
    padding-top: calc(var(--header-height-tablet) + 15px);
    text-align: center;
    padding-bottom: 40px;
  }

  .hero .text-center h1 {
    /* Fluid typography handles this automatically */
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
  }
  .hero p {
    font-size: 20px;
  }
  .hero-advantages {
    max-width: 500px;
    margin: 2rem auto 0;
  }

  /* Ensure nav items fit */
  .index-page .navmenu a {
    padding: 15px 10px; /* Reduced from default */
    font-size: 14px; /* Slightly smaller */
  }
}

/* Mobile responsive styles */
@media (max-width: 640px) {
  :root {
    --header-height-desktop: var(--header-height-mobile);
  }

  .index-page .hero {
    padding-top: calc(var(--header-height-mobile) + 10px);
  }

  /* Mobile nav is handled by hamburger menu */
  .index-page .header {
    padding: 10px 0; /* More compact */
  }

  .hero .text-center h1 {
    /* Fluid typography handles this automatically */
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    word-wrap: break-word;
  }
  .hero p {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
  .hero .btn-get-started,
  .hero .btn-watch-video {
    font-size: 13px;
  }
  .hero-advantages h5 {
    font-size: 1.1rem;
  }
  .computer-screen {
    margin-top: 2rem;
  }
}

/* Hero content animation */
.hero .container > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    animation: slideInFromLeft 0.8s ease-out;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 300;
    margin-top: 1rem;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform: translateY(10px);
}

.hero-subtitle.visible {
    opacity: 1 !important;
    transform: translateY(0);
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* ==========================================================================
   Hero Animations
   ========================================================================== */

/* Animated gradient background - Slowed down per homepage fixes */
.hero-animated {
    position: relative;
    background: linear-gradient(-45deg, #3d4d6a, #5a6f8f, #4a8fb8, #5897c4);
    background-size: 200% 200%; /* Reduced for subtler effect */
    animation: gradientShift 30s ease infinite; /* Slower animation */
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 50% 50%; } /* Reduced movement range */
    100% { background-position: 0% 50%; }
}

/* Floating shapes animation - More subtle */
.hero-bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    opacity: 0.05; /* Much more subtle */
    animation: float 40s infinite ease-in-out; /* Slower animation */
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(71,178,228,0.1), rgba(71,178,228,0.3));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(225deg, rgba(255,255,255,0.05), rgba(255,255,255,0.2));
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    bottom: 10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(45deg); /* Reduced movement */
    }
    50% {
        transform: translateY(5px) rotate(90deg); /* Reduced movement */
    }
    75% {
        transform: translateY(-7px) rotate(135deg); /* Reduced movement */
    }
}

/* Typewriter effect - Disabled on mobile and simplified */
.typewriter-text {
    display: inline-block;
    overflow: hidden;
    border-right: .15em solid transparent;
    white-space: nowrap;
    animation: typing 3.5s steps(30, end);
    max-width: 100%;
}

.typewriter-text.typed {
    animation: none;
    white-space: normal;
    overflow: visible;
}

.typewriter-cursor {
    display: inline-block;
    animation: blink-caret .75s step-end infinite;
    margin-left: 2px;
    vertical-align: baseline;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { opacity: 0 }
    50% { opacity: 1 }
}

/* Hide typewriter cursor after animation */
.typewriter-cursor.hide {
    animation: fade-out-cursor 0.5s ease forwards;
}

@keyframes fade-out-cursor {
    to {
        opacity: 0;
        font-size: 0;
        margin-left: 0;
    }
}

/* Disable typewriter on mobile */
@media (max-width: 991px) {
    .typewriter-text {
        animation: none !important;
        white-space: normal !important;
        overflow: visible !important;
        border-right: none !important;
    }
    
    .typewriter-cursor {
        display: none !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

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

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

/* Fix section reveal animation that creates unwanted lines */
.index-page .section::before {
    display: none; /* Remove the animated line completely */
}

/* Alternative: Keep animation but fix positioning */
.index-page .hero.section::before {
    top: -5px; /* Move line above visible area */
    height: 0; /* Make line invisible */
}

/* ==========================================================================
   Hero Advantages Cards
   ========================================================================== */

.hero-advantages {
    margin-top: 2rem;
    position: relative;
    padding: 1.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.85), rgba(38, 48, 65, 0.9));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-advantages::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #47b2e4, #667eea);
    border-radius: 20px;
    opacity: 0.25;
    z-index: -1;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.25;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(1.01);
    }
}

.hero-advantages h5 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem !important;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-advantages h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #47b2e4, #667eea);
    border-radius: 2px;
    animation: width-pulse 2s ease-in-out infinite;
}

@keyframes width-pulse {
    0%, 100% {
        width: 60px;
    }
    50% {
        width: 90px;
    }
}

.advantage-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.advantage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #47b2e4, #667eea);
    border-radius: 10px;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(5deg);
}

.advantage-icon i {
    font-size: 1.5rem;
    color: white;
}

.advantage-content h6 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.advantage-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.3;
}

/* Responsive adjustments for advantages */
@media (max-width: 575px) {
    .hero-advantages {
        padding: 1rem 1.5rem;
    }
    
    .hero-advantages h5 {
        font-size: 1.1rem;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .hero-advantages {
        padding: 1.25rem 2rem;
    }
}

@media (min-width: 992px) {
    .hero-advantages .col-12 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .advantage-card {
        padding: 0.875rem;
        height: 100%;
    }
    
    .advantage-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .advantage-icon i {
        font-size: 1.25rem;
    }
    
    .advantage-content h6 {
        font-size: 0.95rem;
    }
    
    .advantage-content p {
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .hero-advantages {
        padding: 2rem 3rem;
    }
    
    .hero-advantages .col-12 {
        flex: 0 0 auto;
        width: 50%;
        padding: 0.5rem;
    }
    
    .advantage-card {
        padding: 1rem;
    }
}

/* ==========================================================================
   Computer Screen Effect
   ========================================================================== */

.computer-screen {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    perspective: 1000px;
}

.screen-frame {
    position: relative;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateX(-2deg) rotateY(5deg);
    transition: transform 0.3s ease;
}

.screen-frame:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.02);
}

.screen-bezel {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.screen-content {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.screen-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.screen-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 1;
    animation: screen-glare 8s infinite;
}

@keyframes screen-glare {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

.screen-stand {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #4a5568 0%, #2d3748 50%, #4a5568 100%);
    margin: 20px auto 0;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.screen-stand::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 6px;
    background: linear-gradient(90deg, transparent, #2d3748, transparent);
    border-radius: 50%;
    filter: blur(4px);
}

.screen-camera {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #1a202c;
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.screen-power-led {
    position: absolute;
    bottom: 6px;
    right: 10px;
    width: 3px;
    height: 3px;
    background: #48bb78;
    border-radius: 50%;
    box-shadow: 0 0 6px #48bb78;
    animation: power-pulse 2s infinite;
    z-index: 2;
}

@keyframes power-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .screen-frame {
        padding: 8px;
        transform: none;
    }
    
    .screen-stand {
        width: 80px;
        margin-top: 15px;
    }
}

/* ==========================================================================
   Clients Section
   ========================================================================== */

.clients {
  --background-color: color-mix(in srgb, var(--heading-color), transparent 95%);
  padding: 12px 0;
}

.clients .swiper {
  padding: 10px 0;
}

.clients .swiper-wrapper {
  height: auto;
}

.clients .swiper-slide img {
  transition: 0.3s;
  padding: 0 10px;
}

.clients .swiper-slide img:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   Features Section (formerly About)
   ========================================================================== */

.features {
  --background-color: #ffffff;
  --default-color: #2c3e50;
  --heading-color: #202024;
  background-color: #f8f9fa; /* Consistent light gray background */
  padding: var(--space-section) 0; /* 80px using rhythm system */
}

/* Accordion header customization for pill-style appearance */
.features .accordion-button {
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  color: var(--heading-color);
  background-color: #f8f9fa;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.features .accordion-button:not(.collapsed) {
  background-color: #e7f3ff;
  color: #0066cc;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.features .accordion-button:hover {
  background-color: #f0f8ff;
  transform: translateX(4px);
}

.features .accordion-button::after {
  filter: brightness(0.8);
}

.features .accordion-button:not(.collapsed)::after {
  filter: brightness(0.5);
}

/* Icon styling in accordion headers */
.features .accordion-button i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.features .accordion-button:not(.collapsed) i {
  transform: scale(1.1);
}

/* Accordion item spacing and borders */
.features .accordion-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.features .accordion-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Accordion body content styling */
.features .accordion-body {
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
}

/* Image styling */
.features img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .features .accordion-button {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }

  .features .accordion-body {
    padding: 1.25rem;
    font-size: 0.95rem;
  }

  .features img {
    margin-top: 2rem;
  }
}

/* Accessibility: High contrast mode */
@media (prefers-contrast: high) {
  .features .accordion-item {
    border: 2px solid #000;
  }

  .features .accordion-button {
    font-weight: 700;
  }
}

/* Performance: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .features .accordion-button,
  .features .accordion-collapse,
  .features .accordion-button i {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing {
  --background-color: #ffffff;
  --default-color: #2c3e50;
  --heading-color: #202024;
  background-color: #f8f9fa; /* Consistent light gray background matching Features section */
  padding: var(--space-section) 0; /* 80px using rhythm system */
}

/* Fix pricing card dimensions and overflow */
.pricing .pricing-item {
    /* Add background and elevation (matches services section) */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);

    /* Existing properties preserved */
    min-height: 450px;
    height: auto;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.pricing .pricing-item .pricing-header {
    padding-bottom: 20px;
    flex-shrink: 0;
}

.pricing .pricing-item ul {
    flex-grow: 1;
    margin-bottom: 20px;
    overflow-y: auto;
    max-height: 300px;
}

.pricing .pricing-item .btn-buy {
    margin-top: auto;
    flex-shrink: 0;
}

/* Enhanced hover state for pricing cards */
.pricing .pricing-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    border-color: rgba(71, 178, 228, 0.4);
}

/* Optimize pricing card horizontal spacing */
.pricing .row {
    --bs-gutter-x: 1.25rem; /* Reduced from 1.5rem for tighter visual grouping */
}

/* Ensure featured card handles content properly with reduced scale */
.pricing .featured {
    min-height: 480px;
    transform: scale(1.03); /* Reduced from 1.05 to minimize spacing disruption */
}

/* Adjust featured card hover to work with base transform */
.pricing .featured:hover {
    transform: scale(1.03) translateY(-3px); /* Match reduced scale */
}

/* Featured badge - No animation per fixes */
.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    animation: none !important; /* Remove pulsing */
}

/* Glass morphism effect for featured card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

/* Icon rotation for pricing */
.icon-rotate {
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Disable rotation per fixes */
.card-hover-lift:hover .icon-rotate {
    transform: none !important;
}

/* Pricing card typography with explicit spacing */
.pricing-item h3 {
    font-size: 1.75rem; /* 28px - Plan name */
    font-weight: 700;
    margin-bottom: var(--space-tight); /* 12px */
}

.pricing-item h5 {
    font-size: 1rem; /* 16px - User count */
    font-weight: 500;
    margin-bottom: 0.5rem; /* 8px */
    color: #6c757d;
}

.pricing-item h4 {
    font-size: 2.25rem; /* 36px - Price */
    font-weight: 700;
    margin-bottom: var(--space-element); /* 24px - MORE SPACE */
    color: #202024;
}

.pricing-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem; /* 28px - MORE SPACE before list */
}

.pricing-item ul {
    padding-left: 1.25rem;
}

.pricing-item ul li {
    margin-bottom: var(--space-tight); /* 12px between list items */
}

.pricing-item ul li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

/* Fix cramped service cards */
.services .service-item {
    /* Add background and elevation using design system tokens */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);

    /* Existing properties */
    padding: 40px 30px;
    min-height: 320px;
    height: auto;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Enhanced hover state for interactivity */
.services .service-item:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: rgba(71, 178, 228, 0.3);
}

.services .service-item .icon {
    margin-bottom: 25px;
    flex-shrink: 0;
}

.services .service-item h3 {
    margin-bottom: 20px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.services .service-item p {
    margin-bottom: 0;
    line-height: 1.6;
    flex-grow: 1;
}

/* Icon hover rotate for service items - Disabled per fixes */
.icon-hover-rotate {
    transition: none !important;
}

.service-item:hover .icon-hover-rotate {
    transform: none !important;
}

.service-item:hover .icon-hover-rotate i {
    color: #47b2e4;
}

/* ==========================================================================
   Why Us Section (FAQ)
   ========================================================================== */

.why-us {
  --background-color: color-mix(in srgb, var(--heading-color), transparent 95%);
  background-color: #f8f9fa; /* Lighter background per fixes */
  padding: 60px 0;
}

.why-us .content h3 {
  font-weight: 400;
  font-size: 34px;
}

.why-us .content p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.why-us .faq-container .faq-item {
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #ffffff; /* Pure white per fixes */
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.why-us .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.why-us .faq-container .faq-item h3 {
  color: #2c3e50; /* Darker text per fixes */
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
}

.why-us .faq-container .faq-item h3 span {
  color: #47b2e4;
  padding-right: 5px;
  font-weight: 700;
}

.why-us .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.why-us .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.why-us .faq-container .faq-item .faq-content p {
  color: #555555; /* Darker gray per fixes */
  line-height: 1.6;
  margin-bottom: 0;
  overflow: hidden;
}

.why-us .faq-container .faq-item .faq-icon {
  position: absolute;
  top: 22px;
  left: 20px;
  font-size: 22px;
  line-height: 0;
  transition: 0.3s;
  color: var(--accent-color);
}

.why-us .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.why-us .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.why-us .faq-container .faq-active h3 {
  color: var(--accent-color);
}

.why-us .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.why-us .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

.why-us .faq-container .faq-item:hover {
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.why-us .why-us-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fix feature cards contrast in Why Choose section */
.why-us .feature-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 30px;
    border-radius: 8px;
}

.why-us .feature-box h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.why-us .feature-box p {
    color: #555555;
    margin-bottom: 0;
}

.why-us .feature-box .icon {
    color: #47b2e4;
    font-size: 36px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Button Animations & Effects
   ========================================================================== */

/* Hover glow effect - Reduced per fixes */
.btn-hover-glow {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    background: linear-gradient(135deg, #47b2e4, #667eea) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 10px 25px !important;
    border-radius: 30px !important;
    border: 2px solid transparent !important;
    box-shadow: 0 2px 8px rgba(71, 178, 228, 0.2); /* Subtler shadow */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px !important;
    animation: none !important; /* Remove constant pulsing */
}

.btn-hover-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hover-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #47b2e4, #667eea, #47b2e4);
    border-radius: 30px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

.btn-hover-glow:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hover-glow:hover::after {
    opacity: 1;
}

.btn-hover-glow:hover {
    transform: translateY(-2px) scale(1.02); /* Reduced scale per fixes */
    box-shadow: 0 5px 15px rgba(71, 178, 228, 0.3); /* Subtler shadow */
    border-color: rgba(255, 255, 255, 0.3) !important;
}

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

/* Additional styling for navbar context */
.header .btn-hover-glow {
    margin-left: 15px;
    margin-right: 20px;
    position: relative;
    z-index: 10;
}

/* Make the button stand out more on scroll */
.scrolled .header .btn-hover-glow {
    box-shadow: 0 4px 20px rgba(71, 178, 228, 0.4);
}

/* Button hover effect */
.btn-hover-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hover-effect:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
}

/* Responsive adjustments for buttons */
@media (max-width: 1200px) {
    .header .btn-hover-glow {
        margin-left: 10px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .btn-hover-glow {
        padding: 8px 20px !important;
        font-size: 13px !important;
    }
    
    .header .btn-hover-glow {
        margin-left: 8px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .btn-hover-glow {
        padding: 6px 15px !important;
        font-size: 12px !important;
        letter-spacing: 0.3px;
    }
    
    .header .btn-hover-glow {
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* ==========================================================================
   Card Animations & Effects
   ========================================================================== */

/* Card hover lift - Design system compliant timing (300ms max) */
.card-hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Reduced from 0.5s to 0.3s */
    cursor: pointer;
    margin-top: 0; /* Explicit starting state */
}

.card-hover-lift:hover {
    margin-top: -5px; /* Shifts card up organically within flow */
    margin-bottom: 5px; /* Maintains total height to prevent layout shift */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Subtler shadow */
}

/* Card hover scale */
.card-hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   General Improvements
   ========================================================================== */

/* Improve general card hover states */
.index-page .card {
    transition: all 0.3s ease;
}

.index-page .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Ensure consistent spacing with vertical rhythm system */
.index-page .section {
    padding: var(--space-section) 0; /* 80px using rhythm system */
}

.index-page .section-title {
    margin-bottom: var(--space-subsection); /* 48px using rhythm system */
    padding-bottom: 0; /* Remove padding, use margin instead */
}

/* Enhanced section header typography for landing page impact */
.index-page .section h2,
.index-page .section-title h2 {
    font-size: clamp(2rem, 3.5vw, 3rem); /* Fluid 32px-48px */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em; /* Slight negative tracking for large text */
    margin-bottom: 1rem; /* Space before subtitle */
}

/* Section subtitle/description styling - smaller, lighter weight */
.index-page .section-title p,
.index-page .section-title h5 {
    font-size: 1.125rem; /* 18px - subheader size */
    font-weight: 400; /* Normal weight, not bold */
    line-height: 1.6;
    color: #555555; /* Muted gray for subtitles */
    max-width: 1000px; /* Wider width to reduce vertical space */
    margin-left: auto;
    margin-right: auto;
}

/* Fix any z-index issues */
.index-page .header {
    z-index: 997;
}

.index-page .navmenu {
    z-index: 996;
}

/* ==========================================================================
   Accessibility & Performance
   ========================================================================== */

/* Improve focus states for accessibility */
.index-page a:focus,
.index-page button:focus,
.index-page input:focus,
.index-page select:focus,
.index-page textarea:focus {
    outline: 2px solid #47b2e4;
    outline-offset: 2px;
}

/* Performance optimization - reduce repaints */
.index-page .animated,
.index-page .hero-img img,
.index-page .floating-shape,
.index-page .card-hover-lift,
.index-page .card-hover-scale {
    will-change: auto; /* Only use will-change when needed */
}

/* GPU acceleration for smooth animations */
.index-page .animated,
.index-page .hero-img img,
.index-page .floating-shape,
.index-page .card-hover-lift,
.index-page .card-hover-scale {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Text gradient */
.index-page .gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure minimum contrast ratios */
.index-page .text-muted {
    color: #6c757d !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .index-page .why-us .faq-container .faq-item {
        border: 2px solid #000;
    }
    
    .index-page .card {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .index-page *,
    .index-page *::before,
    .index-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .index-page .floating-shape {
        display: none;
    }
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    /* Disable all hover effects on mobile */
    .index-page .card-hover-lift:hover,
    .index-page .card-hover-scale:hover,
    .index-page .service-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Ensure cards stack properly on mobile */
    .index-page .pricing .pricing-item,
    .index-page .services .service-item {
        margin-bottom: 30px;
        min-height: auto;
    }
    
    /* Fix padding on mobile */
    .index-page .section {
        padding: 40px 0;
    }
}

/* ==========================================================================
   Page Load Animation
   ========================================================================== */

/* Smooth page load - Applied only to landing page */
.index-page {
    animation: pageLoad 0.5s ease-out;
}

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

/* ==========================================================================
   Footer Links Styling
   ========================================================================== */

/* Style footer links to be visible and look like proper links */
.index-page .footer a {
    color: #47b2e4; /* Brand blue color for visibility */
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.index-page .footer a:hover {
    color: #667eea; /* Lighter purple on hover */
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Ensure good contrast in footer */
.index-page .footer {
    background-color: #2c3e50; /* Dark background for contrast */
}

/* ==========================================================================
   Scroll Indicator
   ========================================================================== */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #47b2e4, #667eea);
    z-index: 9999;
    transition: width 0.2s ease;
}

/* ==========================================================================
   MOBILE-FRIENDLY HOMEPAGE STYLES
   Phase 4: Landing Page Mobile Optimization
   ========================================================================== */

/* ==========================================================================
   Step 19 & 20: Landing Page Header Mobile
   ========================================================================== */

/* Mobile navigation toggle styling */
.index-page .mobile-nav-toggle {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.3s;
    position: relative;
    z-index: 9999;
}

/* Show hamburger menu below xl (1200px) */
@media (max-width: 1199px) {
    .index-page .mobile-nav-toggle {
        display: block;
        margin-left: auto;
        margin-right: 15px;
    }

    /* Hide desktop nav on mobile */
    .index-page .navmenu ul {
        display: none;
        position: fixed;
        inset: 0;
        padding: 80px 20px 20px;
        margin: 0;
        background: rgba(45, 55, 72, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        overflow-y: auto;
        z-index: 9998;
        flex-direction: column;
        align-items: stretch;
    }

    /* Mobile nav link styling */
    .index-page .navmenu ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .index-page .navmenu ul li:last-child {
        border-bottom: none;
    }

    .index-page .navmenu ul li a {
        display: flex;
        align-items: center;
        padding: 16px 20px;
        font-size: 18px;
        color: #fff;
        text-decoration: none;
        transition: all 0.3s ease;
        min-height: 56px; /* WCAG touch target */
    }

    .index-page .navmenu ul li a:hover,
    .index-page .navmenu ul li a:focus {
        background: rgba(71, 178, 228, 0.2);
        color: #47b2e4;
    }

    /* Mobile menu item special styling */
    .index-page .navmenu ul li.mobile-menu-item {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 2px solid rgba(71, 178, 228, 0.3);
        border-bottom: none;
    }

    .index-page .navmenu ul li.mobile-menu-item:first-of-type {
        margin-top: 20px;
    }

    .index-page .navmenu ul li.mobile-menu-item a {
        background: linear-gradient(135deg, rgba(71, 178, 228, 0.1), rgba(102, 126, 234, 0.1));
        border-radius: 8px;
        margin: 5px 0;
    }

    /* Header compact on mobile */
    .index-page .header {
        padding: 10px 0;
    }

    .index-page .header .navbar-brand {
        margin-left: 10px;
        margin-right: auto;
    }

    .index-page .header .navbar-brand img {
        height: 35px;
    }
}

/* Mobile nav active state - menu open */
.mobile-nav-active .index-page .navmenu ul,
body.mobile-nav-active .navmenu ul {
    display: flex !important;
}

body.mobile-nav-active {
    overflow: hidden;
}

body.mobile-nav-active .mobile-nav-toggle {
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 10000;
}

/* Change hamburger icon to X when active */
body.mobile-nav-active .mobile-nav-toggle::before {
    content: "\F62A"; /* Bootstrap icon X */
    font-family: "bootstrap-icons";
}

body.mobile-nav-active .bi-list::before {
    content: "\F62A"; /* Bootstrap icon X */
}

/* Ensure header stays above mobile menu */
body.mobile-nav-active .header {
    z-index: 9999;
}

/* ==========================================================================
   Step 21: Hero Section Mobile Layout
   ========================================================================== */

@media (max-width: 767px) {
    .index-page .hero {
        padding-top: calc(var(--header-height-mobile) + 20px);
        padding-bottom: 40px;
        min-height: auto;
    }

    .index-page .hero h1,
    .index-page .hero .text-center h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.2;
    }

    .index-page .hero-subtitle {
        font-size: 1rem;
        margin-top: 0.75rem;
    }

    /* Hero advantages stacked on mobile */
    .index-page .hero-advantages {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .index-page .hero-advantages h5 {
        font-size: 1rem;
        text-align: center;
    }

    .index-page .hero-advantages .row {
        gap: 0.5rem;
    }

    .index-page .advantage-card {
        padding: 0.75rem;
    }

    .index-page .advantage-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-right: 0.75rem;
    }

    .index-page .advantage-icon i {
        font-size: 1.25rem;
    }

    .index-page .advantage-content h6 {
        font-size: 0.9rem;
    }

    .index-page .advantage-content p {
        font-size: 0.8rem;
    }

    /* Computer screen responsive */
    .index-page .computer-screen {
        max-width: 100%;
        margin-top: 1.5rem;
    }

    .index-page .screen-frame {
        transform: none;
        padding: 8px;
    }

    .index-page .screen-stand {
        width: 60px;
        margin-top: 10px;
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 375px) {
    .index-page .hero h1,
    .index-page .hero .text-center h1 {
        font-size: 1.5rem;
    }

    .index-page .hero-subtitle {
        font-size: 0.9rem;
    }

    .index-page .advantage-card {
        flex-direction: column;
        text-align: center;
    }

    .index-page .advantage-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* ==========================================================================
   Step 22: Pricing Section Mobile Layout
   ========================================================================== */

@media (max-width: 991px) {
    .index-page .pricing {
        padding: 60px 0;
    }

    .index-page .pricing .section-title {
        margin-bottom: 2rem;
    }

    .index-page .pricing .section-title h2 {
        font-size: 1.75rem;
    }

    .index-page .pricing .section-title p {
        font-size: 1rem;
    }

    /* Stack pricing cards on tablet/mobile */
    .index-page .pricing .col-lg-4 {
        margin-bottom: 1.5rem;
    }

    .index-page .pricing .pricing-item {
        min-height: auto;
        padding: 30px 20px;
    }

    /* Remove featured scale on mobile */
    .index-page .pricing .featured {
        transform: none;
        min-height: auto;
    }

    .index-page .pricing .featured:hover {
        transform: translateY(-3px);
    }

    .index-page .pricing-item h3 {
        font-size: 1.5rem;
    }

    .index-page .pricing-item h4 {
        font-size: 2rem;
    }

    .index-page .pricing-item ul {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 575px) {
    .index-page .pricing {
        padding: 40px 0;
    }

    .index-page .pricing .pricing-item {
        padding: 25px 15px;
    }

    .index-page .pricing-item h3 {
        font-size: 1.25rem;
    }

    .index-page .pricing-item h4 {
        font-size: 1.75rem;
    }

    .index-page .pricing-item p {
        font-size: 0.9rem;
    }

    .index-page .pricing-item ul li {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Step 23: Features Section Mobile Layout
   ========================================================================== */

@media (max-width: 991px) {
    .index-page .features {
        padding: 60px 0;
    }

    .index-page .features .section-title h2 {
        font-size: 1.75rem;
    }

    .index-page .features .section-title p {
        font-size: 1rem;
    }

    /* Stack columns on tablet */
    .index-page .features .col-lg-7,
    .index-page .features .col-lg-5 {
        width: 100%;
    }

    .index-page .features .col-lg-5 {
        margin-top: 2rem;
    }

    /* Accordion adjustments */
    .index-page .features .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .index-page .features .accordion-button i {
        font-size: 1.25rem;
    }

    .index-page .features .accordion-body {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .index-page .features {
        padding: 40px 0;
    }

    .index-page .features .accordion-button {
        font-size: 0.9rem;
        padding: 0.875rem;
    }

    .index-page .features .accordion-button i {
        font-size: 1.125rem;
        margin-right: 0.5rem !important;
    }

    .index-page .features .accordion-body {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Step 24: Services Section Mobile Layout
   ========================================================================== */

@media (max-width: 991px) {
    .index-page .services {
        padding: 60px 0;
    }

    .index-page .services .section-title h2 {
        font-size: 1.75rem;
    }

    .index-page .services .section-title p {
        font-size: 1rem;
    }

    /* Stack service cards */
    .index-page .services .col-xl-3,
    .index-page .services .col-md-6 {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .index-page .services .service-item {
        min-height: auto;
        padding: 30px 20px;
    }
}

@media (max-width: 575px) {
    .index-page .services {
        padding: 40px 0;
    }

    .index-page .services .service-item {
        padding: 25px 15px;
    }

    .index-page .services .service-item .icon {
        margin-bottom: 15px;
    }

    .index-page .services .service-item .icon i {
        font-size: 2rem;
    }

    .index-page .services .service-item h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .index-page .services .service-item p {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Step 25: Footer Mobile Layout
   ========================================================================== */

@media (max-width: 767px) {
    .index-page .footer {
        padding: 1.5rem 0;
    }

    .index-page .footer .row {
        gap: 0.75rem;
    }

    .index-page .footer a {
        display: inline-block;
        padding: 10px 15px;
        min-height: 44px; /* WCAG touch target */
        line-height: 24px;
    }

    .index-page .footer p {
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    .index-page .footer a {
        display: block;
        text-align: center;
        margin: 5px 0;
    }
}

/* ==========================================================================
   General Mobile Improvements
   ========================================================================== */

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .index-page .card-hover-lift:hover,
    .index-page .card-hover-scale:hover,
    .index-page .pricing-item:hover,
    .index-page .service-item:hover,
    .index-page .advantage-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Ensure proper touch targets throughout */
@media (max-width: 767px) {
    .index-page a,
    .index-page button,
    .index-page .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .index-page .header {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }

    .index-page .footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}