/* Custom Styles for ArriveInn Landing Page */

/* Mobile Viewport Fixes */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* Ensure mobile menu doesn't cause horizontal scroll */
#mobile-menu {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Enhanced Logo Styling */
.logo-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
}

.logo-brand .text-arrivein-yellow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: #FFD700 !important;
    font-weight: 900;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.logo-brand .text-arrivein-dark {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    font-weight: 800;
    background: linear-gradient(135deg, #090040 0%, #1a1a6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon-container {
    position: relative;
    transition: all 0.3s ease;
}

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

.logo-icon-container svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo-icon-container:hover svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    color: #daa520 !important;
}

.logo-tagline {
    color: #4b5563;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Logo container hover effect */
.logo-brand:hover .text-arrivein-yellow {
    color: #F7CE46 !important;
}

.logo-brand:hover .text-arrivein-dark {
    background: linear-gradient(135deg, #1a1a6b 0%, #090040 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #F7CE46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6c040;
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(247, 206, 70, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(247, 206, 70, 0.6);
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Floating animation for stats cards */
.floating {
    animation: float 3s ease-in-out infinite;
}

/* Glow effect for CTA buttons */
.glow-on-hover:hover {
    animation: pulse-glow 2s infinite;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #F7CE46 0%, #e6c040 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced hover effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom focus styles */
.focus-ring:focus {
    outline: none;
    ring: 2px;
    ring-color: #F7CE46;
    ring-offset: 2px;
}

/* Loading animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Parallax effect for background elements */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Custom button animations */
.btn-animate {
    position: relative;
    overflow: hidden;
}

.btn-animate::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-animate:hover::before {
    left: 100%;
}

/* Enhanced card shadows */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom form styles */
.form-input:focus {
    border-color: #F7CE46;
    box-shadow: 0 0 0 3px rgba(247, 206, 70, 0.1);
}

/* Responsive text sizing */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 4rem;
        line-height: 1.1;
    }
}

/* Custom navigation styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F7CE46;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Enhanced mobile menu */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateY(0);
}

/* Mobile menu backdrop */
#mobile-backdrop {
    transition: opacity 0.3s ease-in-out;
    z-index: 40;
}

#mobile-backdrop:not(.hidden) {
    opacity: 1;
}

#mobile-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Ensure mobile menu has proper z-index */
#mobile-menu {
    z-index: 50;
    position: relative;
}

/* Custom section dividers */
.section-divider {
    position: relative;
    height: 60px;
    background: linear-gradient(135deg, #090040 0%, #F7CE46 50%, #090040 100%);
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M30 30c0-16.569 13.431-30 30-30v60c-16.569 0-30-13.431-30-30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Enhanced FAQ animations */
.faq-toggle svg {
    transition: transform 0.3s ease;
}

.faq-toggle.active svg {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 32px;
}

.faq-content.open {
    max-height: 500px;
    opacity: 1;
    padding: 32px;
}

/* Custom loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F7CE46;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced image hover effects */
.image-hover {
    transition: all 0.3s ease;
}

.image-hover:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Custom tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #090040;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #090040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* Enhanced Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(247, 206, 70, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #F7CE46 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #F7CE46, #FFD700);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.hero-title:hover .highlight::after {
    transform: scaleX(1);
}

.hero-section p {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-section .flex {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.trust-indicators {
    animation: fadeInUp 1s ease-out 1.2s both;
}

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

/* Enhanced CTA Buttons */
.hero-cta-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(247, 206, 70, 0.3);
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero-cta-primary:hover::before {
    left: 100%;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 206, 70, 0.4);
}

.hero-cta-secondary {
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.hero-cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: white;
    transition: width 0.3s ease;
    z-index: -1;
}

.hero-cta-secondary:hover::before {
    width: 100%;
}

.hero-cta-secondary:hover {
    color: #090040;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Enhanced Stats Cards */
.hero-stats-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 6s ease-in-out infinite;
}

.hero-stats-card.top-left {
    animation-delay: 0s;
}

.hero-stats-card.bottom-right {
    animation-delay: 2s;
}

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

.hero-stats-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #F7CE46, #FFD700, #F7CE46);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-stats-card:hover::before {
    opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator .scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator .scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    opacity: 0.8;
}

.trust-indicators .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.trust-indicators .trust-icon {
    width: 16px;
    height: 16px;
    color: #F7CE46;
}

/* Enhanced Background Pattern */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 25% 25%, #F7CE46 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #F7CE46 2px, transparent 2px);
    background-size: 50px 50px;
    animation: pattern-float 20s linear infinite;
}

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .hero-stats-card {
        transform: scale(0.9);
    }
    
    .trust-indicators {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
