/* Custom Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
    to { box-shadow: 0 0 40px rgba(239, 68, 68, 0.6); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

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

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Theme Toggle Button */
.theme-toggle-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    backdrop-filter: blur(20px);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.2);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,1), rgba(248,250,252,0.9));
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.3);
}

.theme-toggle-btn:focus {
    outline: 2px solid rgba(239, 68, 68, 0.5);
    outline-offset: 4px;
}

.dark .theme-toggle-btn {
    background: linear-gradient(135deg, rgba(31,41,55,0.9), rgba(15,23,42,0.8));
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

.dark .theme-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(55,65,81,0.95), rgba(30,41,59,0.9));
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.2);
}

.dark .theme-toggle-btn:focus {
    outline-color: rgba(248, 113, 113, 0.6);
}

/* Premium Gradient Backgrounds */
.gradient-luxury {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-sunset {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-ocean {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-fire {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Modern Card Designs */
.luxury-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}

.dark .luxury-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Premium Button Styles */
.btn-luxury {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-luxury:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.btn-luxury::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;
}

.btn-luxury:hover::before {
    left: 100%;
}

/* Advanced Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}



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

.gradient-border {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 2px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: calc(1rem - 2px);
}

/* Modern Shadows */
.shadow-luxury-xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.shadow-colored {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.shadow-colored:hover {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

/* Mobile responsive fixes for button overlap */
@media (max-width: 1024px) {
    .theme-toggle-btn {
        position: static;
        top: auto;
        right: auto;
        width: 2.5rem;
        height: 2.5rem;
        box-shadow: none;
    }

    /* No extra padding on header; controls are inline */
    header nav { padding-right: 0; }
}

/* Desktop spacing adjustments */
@media (min-width: 769px) {
    .theme-toggle-btn {
        right: 1.5rem; /* More space from edge on desktop */
    }
}

/* Modal Animations */
.modal-fade-in {
    animation: modalFadeIn 0.3s ease-out forwards;
}
.modal-fade-out {
    animation: modalFadeOut 0.3s ease-in forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Modal Content Animation */
.modal-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Scroll Animations with Better Timing */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.28s ease-out, transform 0.28s ease-out;
}
.scroll-fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-fade-in,
    .scroll-fade-in.animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Microanimations for Interactive Elements */
.microanimate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.microanimate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.15);
}

.microanimate:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

/* Enhanced Gallery Thumbnail Animations with Proper Focus States */
.gallery-thumbnail {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.gallery-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.gallery-thumbnail:hover::before {
    transform: translateX(100%);
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
    z-index: 10;
    cursor: pointer !important;
}

.gallery-thumbnail:focus {
    outline: 2px dashed #dc2626;
    outline-offset: 2px;
    transform: scale(1.02);
    border-color: #dc2626;
}

.dark .gallery-thumbnail:focus {
    outline-color: #f87171;
    border-color: #f87171;
}

/* Ensure all gallery images have pointer cursor */
.gallery-thumbnail img {
    cursor: pointer !important;
}

/* High contrast support for gallery thumbnails */
@media (prefers-contrast: high) {
    .gallery-thumbnail:focus {
        outline-width: 3px;
        outline-color: #000;
        border-width: 3px;
    }

    .dark .gallery-thumbnail:focus {
        outline-color: #fff;
        border-color: #fff;
    }
}

/* Loading animations */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Floating animations for icons */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Navigation Link Active States */
.nav-link {
    cursor: pointer;
}

.nav-link.active {
    color: #dc2626 !important; /* primary-600 */
}

.dark .nav-link.active {
    color: #f87171 !important; /* primary-400 */
}

.nav-link.active .absolute {
    width: 100% !important;
}

/* Dark Mode Card Shadows */
.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.dark .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.dark .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dark .shadow-luxury {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
}

/* Animated Border Gradient Effects */
@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-hover-effect {
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.card-hover-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card-hover-effect:hover::before {
    opacity: 1;
    animation: borderGradient 2s ease infinite;
}

.card-hover-effect:hover {
    transform: translateY(-2px);
    /* WCAG Compliant Background Gradient with 4.5:1 contrast ratio */
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    /* Enhanced shadow effect for light mode */
    box-shadow:
            0 20px 40px -12px rgba(59, 130, 246, 0.25),
            0 8px 25px -8px rgba(59, 130, 246, 0.3),
            0 0 0 1px rgba(59, 130, 246, 0.1);
}

/* Light mode hover font and icon colors - Darker/blackish navy blue for WCAG compliance */
.card-hover-effect:hover .text-white {
    color: #0f1729 !important; /* Very dark navy blue for excellent contrast (15.2:1) */
}

.card-hover-effect:hover .text-gray-300 {
    color: #1e3a8a !important; /* Dark navy blue (7.5:1 contrast) */
}

.card-hover-effect:hover .text-gray-400 {
    color: #1e40af !important; /* Medium dark navy blue for icons (6.8:1 contrast) */
}

/* Badge hover effects - reverse colors for WCAG compliance */
.card-hover-effect:hover .bg-green-600 {
    background-color: #ffffff !important;
    color: #065f46 !important; /* Dark green text for excellent contrast */
}

.card-hover-effect:hover .bg-blue-600 {
    background-color: #ffffff !important;
    color: #1e3a8a !important; /* Dark blue text for excellent contrast */
}

.card-hover-effect:hover .bg-gray-600 {
    background-color: #ffffff !important;
    color: #1f2937 !important; /* Dark gray text for excellent contrast */
}

.dark .card-hover-effect:hover {
    /* WCAG Compliant Dark Mode Background Gradient with 4.5:1 contrast ratio */
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.12) 100%);
    /* Enhanced outer glow effect for dark mode */
    box-shadow:
            0 0 30px rgba(16, 185, 129, 0.4),
            0 0 60px rgba(16, 185, 129, 0.2),
            0 20px 40px -12px rgba(16, 185, 129, 0.3),
            0 0 0 1px rgba(16, 185, 129, 0.2);
}

/* Dark mode hover font colors - WCAG AA compliant */
.dark .card-hover-effect:hover .dark\:text-gray-900 {
    color: #f0fdf4 !important; /* Very light green (14.2:1 contrast) */
}

.dark .card-hover-effect:hover .dark\:text-gray-600 {
    color: #bbf7d0 !important; /* Light green (8.1:1 contrast) */
}

.dark .card-hover-effect:hover .dark\:text-gray-500 {
    color: #86efac !important; /* Medium-light green (6.2:1 contrast) */
}

.dark .card-hover-effect:hover .dark\:text-gray-200 {
    color: #86efac !important; /* Bright green for icons (6.2:1 contrast) */
}

/* Dark mode badge hover effects - reverse colors for WCAG compliance */
.dark .card-hover-effect:hover .bg-green-600 {
    background-color: #000000 !important;
    color: #84cc16 !important; /* Bright green text for excellent contrast */
}

.dark .card-hover-effect:hover .bg-blue-600 {
    background-color: #000000 !important;
    color: #60a5fa !important; /* Bright blue text for excellent contrast */
}

.dark .card-hover-effect:hover .bg-gray-600 {
    background-color: #000000 !important;
    color: #d1d5db !important; /* Light gray text for excellent contrast */
}

/* Ensure hover transition is smooth and respects user preferences */
@media (prefers-reduced-motion: reduce) {
    .card-hover-effect:hover {
        transform: none;
        transition: background-color 0.2s ease;
    }
}

/* Annual Commitment Toggle Styles */
.toggle-checked {
    background-color: #10b981 !important;
}

.toggle-dot-checked {
    transform: translateX(1.5rem);
}

/* Price transition animations */
.price-transition {
    transition: all 0.3s ease-in-out;
}

/* Radio button styling for commitment options */
.commitment-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    margin-right: 1rem;
    flex-shrink: 0;
}

.commitment-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
    transition: all 0.2s ease;
}

/* Updated selectors to match HTML structure */
input[name="commitment-option"]:checked ~ div .commitment-radio {
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[name="commitment-option"]:checked ~ div .commitment-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Selected label styling - highlight the entire option */
input[name="commitment-option"]:checked + div {
    background-color: rgba(37, 99, 235, 0.08) !important;
    border-color: #2563eb !important;
}

/* Alternative approach - target the parent label when input is checked */
.commitment-option-label:has(input[name="commitment-option"]:checked) {
    background-color: rgba(37, 99, 235, 0.08) !important;
    border-color: #2563eb !important;
}

/* Selected option class for JavaScript fallback */
.selected-option {
    background-color: rgba(37, 99, 235, 0.08) !important;
    border-color: #2563eb !important;
}

.dark .selected-option {
    background-color: rgba(96, 165, 250, 0.12) !important;
    border-color: #60a5fa !important;
}

.dark .commitment-radio {
    background: #374151;
    border-color: #6b7280;
}

.dark .commitment-radio::after {
    background: #60a5fa;
}

.dark input[name="commitment-option"]:checked ~ div .commitment-radio {
    border-color: #60a5fa;
    background: #374151;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Dark mode selected label styling */
.dark input[name="commitment-option"]:checked + div {
    background-color: rgba(96, 165, 250, 0.12) !important;
    border-color: #60a5fa !important;
}

.dark .commitment-option-label:has(input[name="commitment-option"]:checked) {
    background-color: rgba(96, 165, 250, 0.12) !important;
    border-color: #60a5fa !important;
}

/* Enhanced commitment option hover effects */
.commitment-option-label:hover {
    transform: translateX(2px);
}

.commitment-option-label:hover .commitment-radio {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dark .commitment-option-label:hover .commitment-radio {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Focus states matching page conventions */
.commitment-option-label:focus,
.commitment-option-label:focus-visible {
    outline: 2px dashed #dc2626;
    outline-offset: 2px;
}

.dark .commitment-option-label:focus,
.dark .commitment-option-label:focus-visible {
    outline-color: #f87171;
}

/* Focus-within styling for better accessibility */
.commitment-option-label:focus-within {
    outline: 2px dashed #dc2626;
    outline-offset: 2px;
}

.dark .commitment-option-label:focus-within {
    outline-color: #f87171;
}

/* Ensure proper contrast for commitment box in both modes */
.commitment-option-label:hover {
    background-color: rgba(229, 231, 235, 0.8) !important; /* Light gray for light mode */
}

.dark .commitment-option-label:hover {
    background-color: rgba(55, 65, 81, 0.8) !important; /* Dark gray for dark mode */
}

/* Focus states for accessibility */
.commitment-option-label:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.dark .commitment-option-label:focus-within {
    outline-color: #10b981;
}

/* Prevent radio button area from triggering modal */
.commitment-options {
    pointer-events: none;
}

.commitment-options label {
    pointer-events: auto;
}

/* Modal Slide-Fade Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-enter {
    animation: slideInUp 0.3s ease-out forwards;
}

.modal-exit {
    animation: slideOutDown 0.2s ease-in forwards;
}

/* Bounce animation for CTAs */
.bounce-subtle {
    animation: bounceSubtle 2s ease-in-out infinite;
}

@keyframes bounceSubtle {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Removed dynamic icon background colors for consistency */

/* Chat Widget Styles */
.chat-widget:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 20px 40px -12px rgba(220, 38, 38, 0.4);
}

.chat-widget.pulse {
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

@media (max-width: 768px) {
    .chat-widget {
        bottom: 8rem !important; /* Above mobile CTA with more space */
        right: 1rem !important;
    }

    #back-to-top {
        bottom: 7rem !important; /* Above mobile CTA */
        right: 1rem !important;
        transform: translateX(-5rem); /* Move left when chat is visible */
    }
}

/* Focus States for Accessibility - WCAG 2.2 AA Compliance */
.focus-visible:focus,
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: 2px dashed #dc2626;
    outline-offset: 2px;
}

.dark .focus-visible:focus,
.dark button:focus,
.dark a:focus,
.dark input:focus,
.dark textarea:focus,
.dark select:focus,
.dark [tabindex]:focus {
    outline-color: #f87171;
}

/* Skip links accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
    outline: 2px dashed #fff;
    outline-offset: 2px;
}

/* Pricing Cards Full Clickability */
.modal-trigger[role="button"] {
    cursor: pointer !important;
}

.modal-trigger[role="button"] *,
.modal-trigger[role="button"] *:before,
.modal-trigger[role="button"] *:after {
    cursor: pointer !important;
    pointer-events: none; /* Prevents child elements from blocking clicks */
}

.modal-trigger[role="button"]:hover {
    cursor: pointer !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .focus-visible:focus,
    button:focus,
    a:focus,
    input:focus,
    textarea:focus,
    select:focus,
    [tabindex]:focus {
        outline-width: 3px;
        outline-color: #000;
    }

    .dark .focus-visible:focus,
    .dark button:focus,
    .dark a:focus,
    .dark input:focus,
    .dark textarea:focus,
    .dark select:focus,
    .dark [tabindex]:focus {
        outline-color: #fff;
    }
}

/* Interactive Element States */
.interactive-element {
    transition: all 0.2s ease;
}
.interactive-element:hover {
    transform: translateY(-1px);
}
.interactive-element:active {
    transform: translateY(0);
}

/* Z-index fixes for mobile */
@media (max-width: 768px) {
    .video-section {
        position: relative;
        z-index: 1;
    }

    #mobile-cta {
        z-index: 50;
    }

    .video-thumbnail {
        position: relative;
        z-index: 2;
    }
}

/* Mobile navigation styles with overlap fixes */
@media (max-width: 768px) {
    .mobile-nav-open {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
        z-index: 60;
        padding-bottom: 6rem; /* Space for mobile CTA */
    }

    .dark .mobile-nav-open {
        background: #1f2937;
        border-color: #374151;
    }

    /* Mobile CTA positioning fixes */
    #mobile-cta {
        z-index: 45; /* Lower than theme toggle and mobile nav */
        bottom: 0;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .dark #mobile-cta {
        background: rgba(31, 41, 55, 0.95);
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    /* Ensure proper spacing for mobile elements */
    body.mobile-nav-active {
        overflow: hidden;
    }

    body.mobile-nav-active #mobile-cta {
        display: none; /* Hide mobile CTA when nav is open */
    }
}

/* Design Consistency - Standardized Components */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: #f9fafb;
}


/* Modern Card Styles (matches amenity cards) */
.card, .neigh-card {
    position: relative;
    background: rgba(255,255,255,0.82);
    border-radius: 2.25rem;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 8px 40px 0 rgba(31,38,135,0.13), 0 2px 8px 0 rgba(0,0,0,0.04);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1.5px solid rgba(255,255,255,0.22);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow: visible;
    z-index: 1;
    min-height: 320px;
}
.card::before, .neigh-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2.25rem;
    z-index: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(173,216,255,0.13) 100%);
    pointer-events: none;
    transition: background 0.4s;
}
.card:hover, .neigh-card:hover {
    transform: translateY(-10px) scale(1.035) rotate(-0.5deg);
    box-shadow: 0 24px 64px 0 rgba(31,38,135,0.22), 0 8px 24px 0 rgba(0,0,0,0.10);
    border-color: rgba(255,255,255,0.45);
}
.dark .card, .dark .neigh-card {
    background: rgba(30,41,59,0.92);
    border: 1.5px solid rgba(255,255,255,0.10);
}
/* Icon badge for all cards */
.icon-badge, .card .icon-badge, .neigh-card .icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.10);
    background: var(--icon-bg, linear-gradient(135deg, #fff 0%, #f3f4f6 100%));
    position: relative;
    z-index: 2;
}
.icon-badge .fa-solid, .icon-badge .fas {
    font-size: 2rem !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
    background: var(--icon-gradient, none);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}
/* Icon color themes */
.icon-badge--grad.shopping { --icon-gradient: linear-gradient(135deg, #e74c3c 0%, #ffb199 100%); --icon-bg: linear-gradient(135deg, #fff0ee 0%, #ffe5e5 100%); }
.icon-badge--grad.transit { --icon-gradient: linear-gradient(135deg, #e67e22 0%, #ffd580 100%); --icon-bg: linear-gradient(135deg, #fff7e6 0%, #fff2e0 100%); }
.icon-badge--grad.parks { --icon-gradient: linear-gradient(135deg, #27ae60 0%, #a8ff78 100%); --icon-bg: linear-gradient(135deg, #e6f9ed 0%, #eafff3 100%); }
.icon-badge--grad.education { --icon-gradient: linear-gradient(135deg, #6c63ff 0%, #b8c6ff 100%); --icon-bg: linear-gradient(135deg, #eaeaff 0%, #f3f4ff 100%); }
.icon-badge--grad.health { --icon-gradient: linear-gradient(135deg, #e84393 0%, #ffb6c1 100%); --icon-bg: linear-gradient(135deg, #ffe6f2 0%, #fff0f6 100%); }
.icon-badge--grad.fitness { --icon-gradient: linear-gradient(135deg, #00b894 0%, #00e6d3 100%); --icon-bg: linear-gradient(135deg, #e0fff6 0%, #eafffa 100%); }

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: white;
    color: #374151;
    border: 2px solid #d1d5db;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dark .btn-secondary {
    background-color: #1f2937;
    color: #d1d5db;
    border-color: #4b5563;
}

.dark .btn-secondary:hover {
    background-color: #374151;
    border-color: #6b7280;
}

/* Badges - Standardized */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #fef3c7;
    color: #92400e;
}

/* Icons - Standardized sizing */
.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-md {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

.icon-xl {
    width: 3rem;
    height: 3rem;
}


/* Ultra-modern Amenity Cards (2025 style) */
.amenity-card {
    position: relative;
    background: rgba(255,255,255,0.82);
    border-radius: 2.25rem;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 8px 40px 0 rgba(31,38,135,0.13), 0 2px 8px 0 rgba(0,0,0,0.04);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1.5px solid rgba(255,255,255,0.22);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow: visible;
    margin-bottom: 0.5rem;
    z-index: 1;
    min-height: 320px;
}
.amenity-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2.25rem;
    z-index: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(173,216,255,0.13) 100%);
    pointer-events: none;
    transition: background 0.4s;
}
.amenity-card:hover {
    transform: translateY(-10px) scale(1.035) rotate(-0.5deg);
    box-shadow: 0 24px 64px 0 rgba(31,38,135,0.22), 0 8px 24px 0 rgba(0,0,0,0.10);
    border-color: rgba(255,255,255,0.45);
}
.dark .amenity-card {
    background: rgba(30,41,59,0.92);
    border: 1.5px solid rgba(255,255,255,0.10);
}
.amenity-card .amenity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.10);
    background: var(--icon-bg, linear-gradient(135deg, #fff 0%, #f3f4f6 100%));
    position: relative;
    z-index: 2;
}
.amenity-card .amenity-icon .fa-solid {
    font-size: 2rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
    background: var(--icon-gradient, none);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}
.amenity-card .amenity-icon.shopping { --icon-gradient: linear-gradient(135deg, #e74c3c 0%, #ffb199 100%); --icon-bg: linear-gradient(135deg, #fff0ee 0%, #ffe5e5 100%); }
.amenity-card .amenity-icon.transit { --icon-gradient: linear-gradient(135deg, #e67e22 0%, #ffd580 100%); --icon-bg: linear-gradient(135deg, #fff7e6 0%, #fff2e0 100%); }
.amenity-card .amenity-icon.parks { --icon-gradient: linear-gradient(135deg, #27ae60 0%, #a8ff78 100%); --icon-bg: linear-gradient(135deg, #e6f9ed 0%, #eafff3 100%); }
.amenity-card .amenity-icon.education { --icon-gradient: linear-gradient(135deg, #6c63ff 0%, #b8c6ff 100%); --icon-bg: linear-gradient(135deg, #eaeaff 0%, #f3f4ff 100%); }
.amenity-card .amenity-icon.health { --icon-gradient: linear-gradient(135deg, #e84393 0%, #ffb6c1 100%); --icon-bg: linear-gradient(135deg, #ffe6f2 0%, #fff0f6 100%); }
.amenity-card .amenity-icon.fitness { --icon-gradient: linear-gradient(135deg, #00b894 0%, #00e6d3 100%); --icon-bg: linear-gradient(135deg, #e0fff6 0%, #eafffa 100%); }
.amenity-card h3 {
    margin-top: 0.5rem;
    margin-left: 3.5rem;
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.dark .amenity-card h3 { color: #f9fafb; }
.amenity-card ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding-left: 3.5rem;
    list-style: none;
}
.amenity-card ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: #374151;
    margin-bottom: 0.3rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.amenity-card ul li .fa-check {
    color: #10b981;
    font-size: 1rem;
    margin-right: 0.2rem;
}
.dark .amenity-card ul li { color: #d1d5db; }
.amenity-card:hover ul li { color: #111827; }
.dark .amenity-card:hover ul li { color: #fff; }
@media (max-width: 640px) {
    .amenity-card {
        border-radius: 1.25rem;
        padding: 1.5rem 1rem 1rem 1rem;
        min-height: 220px;
    }
    .amenity-card .icon-bar {
        top: 0.75rem;
        left: 1rem;
        width: 2rem;
        height: 2rem;
        border-radius: 1rem;
        font-size: 1.1rem;
    }
    .amenity-card h3 {
        margin-left: 2.5rem;
        font-size: 1.05rem;
    }
    .amenity-card ul {
        padding-left: 2.5rem;
    }
}

/* Removed cursor pointer from non-interactive elements */
.no-cursor {
    cursor: default !important;
}

img, span:not(.interactive), div:not(.interactive), p:not(.interactive) {
    cursor: default;
}

/* Consistent spacing */
.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

/* Typography consistency */
.text-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

.dark .text-body {
    color: #d1d5db;
}

.text-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5563;
}

.dark .text-lead {
    color: #d1d5db;
}

/* Multi-step Form Styles */
.form-step {
    transition: all 0.3s ease;
}

.form-step.hidden {
    display: none;
}

.form-step.active {
    display: block;
}

.step-indicator {
    transition: all 0.3s ease;
}

.step-indicator.active {
    background-color: #dc2626;
    color: white;
}

.step-indicator.completed {
    background-color: #059669;
    color: white;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Enhanced Tab Styles - WCAG 2.2 AA Compliant */
.tab-button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.tab-button:hover {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.15);
}

.dark .tab-button:hover {
    background-color: #4b5563 !important;
    color: #f9fafb !important;
    border-color: #6b7280;
}

.tab-button:focus {
    outline: 2px dashed #dc2626 !important;
    outline-offset: 2px;
}

.dark .tab-button:focus {
    outline-color: #f87171 !important;
}

.tab-button.tab-active {
    background-color: #374151 !important;
    color: white !important;
    border-color: #1f2937;
    box-shadow: 0 4px 14px 0 rgba(55, 65, 81, 0.39);
    border: 2px solid #3B82F6 !important;
}

.tab-button.tab-active:hover {
    background-color: #1f2937 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px -8px rgba(55, 65, 81, 0.5);
}

.tab-button.tab-active:focus {
    outline: 2px dashed #dc2626 !important;
    outline-offset: 2px;
    background-color: #374151 !important;
    color: white !important;
}

.tab-button:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* High contrast support for tabs */
@media (prefers-contrast: high) {
    .tab-button {
        border-width: 3px;
    }

    .tab-button:hover {
        border-color: #000;
    }

    .dark .tab-button:hover {
        border-color: #fff;
    }
}

.glassBorder::before{
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0);
    box-shadow: 0px -5px 0px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 0 20px 2px rgba(255, 255, 255, 2);
    z-index: -1;
    left: -5%;
    top: -5%;
    border-radius: 1rem;
}
/* Brand focus ring for interactive controls */
:focus-visible{outline-offset:2px}
.tab-button:focus-visible,.modal-trigger:focus-visible,.cta-primary:focus-visible,.cta-secondary:focus-visible{outline:2px solid #2563EB}
.dark .tab-button:focus-visible,.dark .modal-trigger:focus-visible,.dark .cta-primary:focus-visible,.dark .cta-secondary:focus-visible{outline-color:#60A5FA}
