/* ============================================
   AIVON LABS â€” HOME ELEVEN CUSTOM STYLES
   Warm Orange, Glassmorphism, Animations
   Adapted from the page's orange accent theme
   ============================================ */

/* === Google Font Import === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === CSS Custom Properties (Orange Theme) === */
:root {
    --aivon-orange: #fd7e14;
    --aivon-amber: #f59e0b;
    --aivon-warm: #fff7ed;
    --aivon-deep-orange: #c2410c;
    --glow-orange: rgba(253, 126, 20, 0.5);
    --glow-amber: rgba(245, 158, 11, 0.5);
    --glow-intense: rgba(253, 126, 20, 0.7);
    --gradient-orange: linear-gradient(135deg, #fd7e14, #f59e0b);
    --gradient-warm: linear-gradient(135deg, #fff7ed, #ffedd5);
}

/* === GLOBAL ENHANCEMENTS === */
body {
    font-family: 'Inter', 'DM Sans', sans-serif !important;
}

html {
    scroll-behavior: smooth;
}

/* === GLOWING SELECTION HIGHLIGHT === */
::selection {
    background: var(--aivon-amber);
    color: #1a1a1a;
}

::-moz-selection {
    background: var(--aivon-amber);
    color: #1a1a1a;
}

/* === FOCUS GLOW EFFECT === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.form-control:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px var(--glow-orange), 0 0 20px var(--glow-orange), 0 0 40px rgba(253, 126, 20, 0.2) !important;
    border-color: var(--aivon-orange) !important;
    transition: box-shadow 0.3s ease !important;
}

/* === ANIMATED GRADIENT TEXT === */
.gradient-text-orange {
    background: linear-gradient(135deg, #fd7e14, #f59e0b, #ef4444, #fd7e14);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftOrange 4s ease infinite;
}

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

/* === BANNER BADGE GLOW === */
.banner-wrap .rounded-pill.border {
    transition: all 0.4s ease;
}

.banner-wrap .rounded-pill.border:hover {
    box-shadow: 0 4px 20px rgba(253, 126, 20, 0.15);
    transform: translateY(-2px);
}

/* === BANNER FEATURE CARDS === */
.banner-feature {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.banner-feature::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.6s ease;
}

.banner-feature:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.banner-feature:hover::after {
    left: 100%;
}

/* === CTA BUTTONS GLOW === */
.btn.bg-orange {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 1;
}

.btn.bg-orange:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 15px var(--glow-orange), 0 0 30px rgba(245, 158, 11, 0.3), 0 0 60px rgba(253, 126, 20, 0.15) !important;
}

.btn.bg-orange::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn.bg-orange:hover::before {
    animation: btnShineOrange 0.6s ease forwards;
}

@keyframes btnShineOrange {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* === DARK SERVICE SECTION ENHANCEMENTS === */
.service-wrap.bg-gray-900 {
    position: relative;
    overflow: hidden;
}

.service-wrap.bg-gray-900::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(253, 126, 20, 0.06), transparent 70%);
    top: -150px;
    left: -150px;
    border-radius: 50%;
    animation: floatOrbOrange 8s ease-in-out infinite;
}

.service-wrap.bg-gray-900::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05), transparent 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
    animation: floatOrbOrange 6s ease-in-out infinite reverse;
}

@keyframes floatOrbOrange {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.8; }
}

/* Feature images in dark section */
.service-wrap.bg-gray-900 .feature-div {
    transition: all 0.4s ease;
    padding: 1rem;
    border-radius: 16px;
}

.service-wrap.bg-gray-900 .feature-div:hover {
    background: rgba(253, 126, 20, 0.05);
    transform: translateY(-5px);
}

.service-wrap.bg-gray-900 .feature-div img {
    transition: all 0.4s ease;
    border-radius: 12px;
}

.service-wrap.bg-gray-900 .feature-div:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(253, 126, 20, 0.2);
}

/* Counter numbers in dark section */
.service-wrap.bg-gray-900 .exsit-counter {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === FEATURE CARDS WITH ICONS === */
.feature-div.border {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.feature-div.border:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Icon glow on card hover */
.feature-div.border .bg-gradient-orange-light {
    transition: all 0.4s ease;
}

.feature-div.border:hover .bg-gradient-orange-light {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1.1) rotate(5deg);
}

/* === TECH LOGO ICONS === */
.logo-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.logo-icon:hover {
    transform: translateY(-6px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.logo-icon img {
    transition: all 0.3s ease;
}

/* === CTA SECTION === */
.cta-wrapper {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

/* Glow dots in CTA */
.glow-dot-cta {
    position: absolute;
    border-radius: 50%;
    animation: pulseDotOrange 3s ease-in-out infinite;
    z-index: 2;
}

.glow-dot-cta-1 {
    width: 10px;
    height: 10px;
    background: var(--aivon-amber);
    top: 15%;
    left: 12%;
    box-shadow: 0 0 25px var(--glow-amber);
}

.glow-dot-cta-2 {
    width: 14px;
    height: 14px;
    background: var(--aivon-orange);
    bottom: 20%;
    right: 8%;
    box-shadow: 0 0 30px var(--glow-orange);
    animation-delay: 1s;
}

.glow-dot-cta-3 {
    width: 8px;
    height: 8px;
    background: var(--aivon-amber);
    top: 55%;
    left: 6%;
    box-shadow: 0 0 20px var(--glow-amber);
    animation-delay: 2s;
}

@keyframes pulseDotOrange {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* === FOOTER ENHANCEMENTS === */
.footer-wrap .footer-link a {
    transition: all 0.3s ease !important;
    position: relative;
}

.footer-wrap .footer-link a:hover {
    color: var(--aivon-orange) !important;
    padding-left: 8px !important;
    text-shadow: 0 0 10px rgba(253, 126, 20, 0.2);
}

.footer-wrap .footer-link a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gradient-orange);
    transition: width 0.3s ease;
}

.footer-wrap .footer-link a:hover::before {
    width: 100%;
}

/* Footer big text â€” keep original template style */

/* === HEADER NAV GLOW === */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease !important;
}

.navbar-nav .nav-link:hover {
    color: var(--aivon-orange) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Register button glow */
.header-wrapper .btn.bg-orange:hover {
    box-shadow: 0 0 20px var(--glow-orange), 0 0 40px rgba(245, 158, 11, 0.2) !important;
    transform: translateY(-2px);
}

/* === SCROLLBAR STYLING (Orange Theme) === */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--aivon-orange), var(--aivon-amber));
    border-radius: 10px;
}

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

/* === BACK TO TOP GLOW === */
.arrow-round-wrap.orange {
    transition: all 0.3s ease;
}

.arrow-round:hover .arrow-round-wrap.orange {
    box-shadow: 0 0 25px var(--glow-orange), 0 0 50px rgba(245, 158, 11, 0.2);
}

/* === PRELOADER (Orange Theme) === */
.preloader {
    background: #fff7ed !important;
}

.preloader .loading {
    border-color: rgba(253, 126, 20, 0.2) !important;
    border-top-color: var(--aivon-orange) !important;
}

/* === SCROLL ANIMATIONS & KEYFRAMES === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

@keyframes slideInRotate {
    from { opacity: 0; transform: translateY(30px) rotate(-3deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(253, 126, 20, 0.1); }
    50% { box-shadow: 0 0 40px rgba(253, 126, 20, 0.25); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes revealLine {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blurIn {
    from { opacity: 0; filter: blur(10px); transform: translateY(20px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

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

/* === SCROLL-TRIGGERED SECTION REVEALS === */

/* Banner section â€” smooth entrance */
.banner-wrap {
    animation: fadeInDown 0.8s ease-out 0.3s both;
}

.banner-wrap .rounded-pill.border {
    animation: blurIn 0.6s ease-out 0.5s both;
}

.banner-wrap h1 {
    animation: blurIn 0.7s ease-out 0.7s both;
}

.banner-wrap p {
    animation: blurIn 0.7s ease-out 0.9s both;
}

/* Banner feature cards â€” staggered float animation on idle */
.banner-feature {
    animation: floatUpDown 6s ease-in-out infinite;
}

/* Target column wrappers for staggered entrance + varied float */
.row.justify-content-center.gy-4 > .col-lg-6:first-child .banner-feature {
    animation: floatUpDown 5.5s ease-in-out infinite;
    animation-delay: 0s;
}

.row.justify-content-center.gy-4 > .col-lg-4:first-of-type .banner-feature {
    animation: floatUpDown 6.5s ease-in-out infinite;
    animation-delay: 0.4s;
}

.row.justify-content-center.gy-4 > .col-lg-4:last-of-type .banner-feature {
    animation: floatUpDown 7s ease-in-out infinite;
    animation-delay: 0.8s;
}

.row.justify-content-center.gy-4 > .col-lg-6:last-child .banner-feature {
    animation: floatUpDown 6s ease-in-out infinite;
    animation-delay: 1.2s;
}

/* Banner feature images â€” subtle hover zoom */
.banner-feature img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.banner-feature:hover img {
    transform: scale(1.05);
}

/* Enhanced AOS entrance â€” add subtle glow when cards appear */
.banner-feature[data-aos].aos-animate,
a[data-aos].aos-animate .banner-feature {
    animation: cardRevealGlow 0.8s ease-out forwards;
}

@keyframes cardRevealGlow {
    0% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    50% {
        box-shadow: 0 8px 30px rgba(253, 126, 20, 0.12), 0 4px 15px rgba(0, 0, 0, 0.06);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    }
}

/* === DARK SERVICE SECTION â€” PARALLAX-LIKE ENTRANCE === */
#services-dark {
    position: relative;
}

#services-dark .display5-size {
    animation: blurIn 0.8s ease-out both;
}

/* Feature cards in dark section â€” float on scroll */
#services-dark .feature-div {
    position: relative;
}

#services-dark .feature-div::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(253, 126, 20, 0);
    transition: border-color 0.5s ease;
}

#services-dark .feature-div:hover::before {
    border-color: rgba(253, 126, 20, 0.3);
}

/* Counter section â€” pulse glow */
#exsit-counter .exsit-counter {
    display: inline-block;
    animation: countUp 0.6s ease-out both;
}

#exsit-counter [data-aos] {
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* === SUPPORT SECTION â€” STAGGERED CARDS === */
#support-section .feature-div.border {
    position: relative;
    overflow: hidden;
}

#support-section .feature-div.border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-orange);
    transition: left 0.6s ease;
}

#support-section .feature-div.border:hover::before {
    left: 0;
}

/* Icon bounce on card hover */
#support-section .feature-div.border:hover .bg-gradient-orange-light {
    animation: floatUpDown 1.5s ease-in-out infinite;
}

/* === TECH LOGO SECTION â€” WAVE STAGGER === */
.logo-icon {
    opacity: 1;
    animation: floatUpDown 4s ease-in-out infinite;
}

.logo-icon:nth-child(1) { animation-delay: 0s; }
.logo-icon:nth-child(2) { animation-delay: 0.15s; }
.logo-icon:nth-child(3) { animation-delay: 0.3s; }
.logo-icon:nth-child(4) { animation-delay: 0.45s; }
.logo-icon:nth-child(5) { animation-delay: 0.6s; }
.logo-icon:nth-child(6) { animation-delay: 0.75s; }
.logo-icon:nth-child(7) { animation-delay: 0.9s; }

/* Logo icons â€” shimmer on hover */
.logo-icon:hover img {
    filter: brightness(1.15);
    transition: filter 0.3s ease;
}

/* === CTA SECTION â€” DRAMATIC ENTRANCE === */
.cta-wrapper {
    position: relative;
    overflow: hidden;
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 0;
}

.cta-wrapper .container {
    position: relative;
    z-index: 1;
}

.cta-wrapper h2 {
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* CTA gradient text animation â€” shimmer effect */
.cta-wrapper .gradient-text-orange {
    background-size: 400% 400%;
    animation: gradientShiftOrange 3s ease infinite;
}

/* === FOOTER â€” REVEAL ANIMATION === */
.footer-wrap {
    position: relative;
    overflow: hidden;
}

.footer-wrap .footer-big-text {
    transition: all 0.8s ease-out;
    animation: shimmer 3s linear infinite;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.05) 0%, 
        rgba(253,126,20,0.1) 50%, 
        rgba(0,0,0,0.05) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Footer columns â€” staggered reveal */
.footer-wrap-content .col:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s both; }
.footer-wrap-content .col:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s both; }
.footer-wrap-content .col:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.3s both; }
.footer-wrap-content .col:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.4s both; }
.footer-wrap-content .col:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.5s both; }

/* === SEPARATOR LINE ANIMATION === */
.separator-line {
    position: relative;
    overflow: hidden;
}

.separator-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 1px;
    width: 100%;
    background: var(--gradient-orange);
    animation: revealLine 1.5s ease-out both;
    opacity: 0.15;
}

/* === ENHANCED AOS CUSTOM ANIMATIONS === */
[data-aos="fade-up"] {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

[data-aos="zoom-in"] {
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* === INTERACTIVE SCROLL PARALLAX FOR IMAGES === */
.service-wrap.bg-gray-900 .feature-div img,
.banner-feature img {
    will-change: transform;
}

/* === SMOOTH SECTION TRANSITIONS === */
.service-wrap,
.cta-wrapper,
.footer-wrap,
.banner-wrap {
    will-change: opacity, transform;
}

/* === DARK MODE ENHANCEMENTS === */
body.dark-theme .banner-feature {
    border: 1px solid rgba(253, 126, 20, 0.1);
}

body.dark-theme .banner-feature:hover {
    box-shadow: 0 12px 40px rgba(253, 126, 20, 0.1), 0 0 25px rgba(245, 158, 11, 0.06) !important;
    border-color: rgba(253, 126, 20, 0.3);
}

body.dark-theme .feature-div.border:hover {
    border-color: rgba(253, 126, 20, 0.4) !important;
}

body.dark-theme .logo-icon:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.06), 0 2px 8px rgba(255, 255, 255, 0.03) !important;
}

body.dark-theme .cta-wrapper::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
}

body.dark-theme .separator-line::after {
    opacity: 0.25;
}

/* === REDUCE MOTION ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .banner-feature {
        margin-bottom: 0.5rem;
        animation: none;
    }
    
    .logo-icon {
        animation-duration: 5s;
    }
    
    .footer-wrap-content .col {
        animation-delay: 0s !important;
    }
}

/* === MOBILE SIDEBAR — DARK MODE === */
@media (max-width: 991.98px) {
    body.dark-theme .menu-block {
        background: #1c1c1e !important;
        color: #f8f9fa !important;
    }
    body.dark-theme .menu-block .menu-head { color: #f8f9fa !important; }
    body.dark-theme .menu-block .menu-close { color: #f8f9fa !important; }
    body.dark-theme .menu-block .menu-close svg { stroke: #f8f9fa !important; }
    body.dark-theme .menu-block .navbar-nav .nav-item .nav-link { color: #f8f9fa !important; }
    body.dark-theme .menu-block .navbar-nav .nav-item .sub-menu { background: #1c1c1e !important; }
    body.dark-theme .menu-block .navbar-nav .nav-item .sub-menu .sub-menu--item a { color: #e9ecef !important; }
    body.dark-theme .menu-block .navbar-nav .nav-item .mega-menu { background: #1c1c1e !important; }
    body.dark-theme .menu-block .navbar-nav .nav-item .mega-menu .mega-menu-header { color: #f8f9fa !important; }
    body.dark-theme .menu-block .navbar-nav .nav-item .mega-menu .mega-menu-sub a { color: #e9ecef !important; }
    body.dark-theme .menu-block .menu-bottom { color: #f8f9fa !important; }
    body.dark-theme .menu-block .dark-btn { background: #343a40 !important; border-color: transparent !important; color: #e9ecef !important; }
    body.dark-theme .menu-overlay.active { background-color: rgba(0, 0, 0, 0.7); }
}

/* Index light theme: CTA section subtle dark overlay for readability */
body:not(.dark-theme) .cta-wrapper::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.55) 100%) !important;
}
