/* ============================================
   AIVON LABS â€” HOME TWELVE CUSTOM STYLES
   Dark Green / Teal Theme
   Data Science & Finance Agency
   ============================================ */

/* === 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 (Teal Theme) === */
:root {
    --aivon-teal: #034651;
    --aivon-darkgreen: #13DE38;
    --aivon-deep: #004540;
}

/* === GLOBAL ENHANCEMENTS === */
html {
    scroll-behavior: smooth;
}

/* === GLOWING SELECTION HIGHLIGHT === */
::selection {
    background: rgba(19, 222, 56, 0.3);
    color: #1a1a1a;
}

::-moz-selection {
    background: rgba(19, 222, 56, 0.3);
    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 rgba(3, 70, 81, 0.3), 0 0 15px rgba(3, 70, 81, 0.15) !important;
    border-color: var(--aivon-teal) !important;
    transition: box-shadow 0.3s ease !important;
}

/* === BANNER HERO SECTION === */
.banner-wrap.finance-agency {
    position: relative;
}

/* Feature floating images */
.banner-wrap .feature-1,
.banner-wrap .feature-2,
.banner-wrap .feature-3,
.banner-wrap .feature-4 {
    transition: all 0.4s ease;
}

.banner-wrap .feature-1:hover,
.banner-wrap .feature-2:hover,
.banner-wrap .feature-3:hover,
.banner-wrap .feature-4:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

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

.btn.bg-darkgreen:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(19, 222, 56, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.btn.bg-darkgreen::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-darkgreen:hover::before {
    animation: btnShine 0.6s ease forwards;
}

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

/* === DARK SERVICE SECTION (Teal) === */
.service-wrap[style*="034651"] {
    position: relative;
    overflow: hidden;
}

.service-wrap[style*="034651"]::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(19, 222, 56, 0.04), transparent 70%);
    top: -100px;
    left: -100px;
    border-radius: 50%;
    animation: floatOrb 8s ease-in-out infinite;
}

.service-wrap[style*="034651"]::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 87, 102, 0.06), transparent 70%);
    bottom: -80px;
    right: -80px;
    border-radius: 50%;
    animation: floatOrb 6s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-25px) scale(1.05); opacity: 0.8; }
}

/* Feature card hover in teal section */
.service-wrap[style*="034651"] .feature-div {
    transition: all 0.4s ease;
}

.service-wrap[style*="034651"] .feature-div:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* === FEATURE CARDS (Light Section) === */
.feature-wrap .feature-div {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-wrap .feature-div:hover {
    transform: translateY(-6px);
}

.feature-wrap .feature-div .rounded-4 {
    transition: all 0.4s ease;
}

.feature-wrap .feature-div:hover .rounded-4 {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* === 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;
}

/* === CARD STICKY SECTION === */
.card-sticky-inner {
    transition: all 0.3s ease;
}

.card-sticky-inner:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Step number pill glow */
.card-sticky .w-60.h-60 {
    transition: all 0.4s ease;
}

.card-sticky:hover .w-60.h-60 {
    box-shadow: 0 4px 15px rgba(19, 222, 56, 0.2);
    transform: scale(1.05);
}

/* === TEAM MEMBER CARDS === */
.member-wrap .rounded-4 {
    transition: all 0.4s ease !important;
}

.member-wrap .rounded-4:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1) !important;
}

/* === PRICING CARDS === */
.price-wrap .price-card,
.price-wrap .bg-white {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.price-wrap .price-card:hover,
.price-wrap .bg-white.border:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

/* === TESTIMONIAL CARDS === */
.testimonial-wrap .rounded-4 {
    transition: all 0.4s ease !important;
}

.testimonial-wrap .rounded-4:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
}

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

.footer-wrap .footer-link a:hover {
    color: var(--aivon-teal) !important;
    padding-left: 8px !important;
}

.footer-wrap .footer-link a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--aivon-teal), var(--aivon-darkgreen));
    transition: width 0.3s ease;
}

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

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

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

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

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

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

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

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

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

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

.arrow-round:hover .arrow-round-wrap.darkgreen {
    box-shadow: 0 0 20px rgba(3, 70, 81, 0.3);
}

/* === DARK MODE ENHANCEMENTS === */
body.dark-theme .banner-wrap.finance-agency {
    background-image: url('../Img/DS_Banner_Bottom.png') !important;
}

body.dark-theme .feature-wrap .feature-div:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.04);
}

body.dark-theme .card-sticky-inner:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.04);
}

body.dark-theme .member-wrap .rounded-4:hover {
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.06) !important;
}

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

/* Dark theme â€” Data Science service cards text area fix */
body.dark-theme .ds-card-text {
    background: #1a1a2e !important;
}

body.dark-theme .ds-card-text h3 {
    color: #f0f0f0 !important;
}

body.dark-theme .ds-card-text p {
    color: #b0b0c0 !important;
}

/* Also fix the outer card gradient wrapper in dark mode */
body.dark-theme .ds-service-card {
    background: linear-gradient(to bottom, #1a2a3a, #0d1b2a) !important;
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

/* === REVEAL ANIMATION BASE CLASSES === */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for child elements */
.stagger-children .scroll-reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* === SECTION HEADING ANIMATED UNDERLINE === */
.heading-reveal-line {
    position: relative;
    display: inline-block;
}

.heading-reveal-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--aivon-teal), var(--aivon-darkgreen));
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.heading-reveal-line.revealed::after {
    width: 60px;
}

/* === COUNTER NUMBER ANIMATION === */
.counter-animate {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
}

.counter-animate.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* === SEPARATOR LINE GROW === */
.separator-line {
    position: relative;
}

.separator-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(3, 70, 81, 0.2), transparent);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.separator-line.revealed::before {
    width: 100%;
}

/* === TEAL SECTION FEATURE GRID LINE REVEAL === */
.service-wrap[style*="034651"] .feature-div {
    position: relative;
}

.service-wrap[style*="034651"] .feature-div::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(19, 222, 56, 0.3), transparent);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.service-wrap[style*="034651"] .feature-div.revealed::before {
    width: 80%;
}

/* === FLOATING BADGE BOUNCE === */
.banner-wrap .rounded-pill.border {
    animation: none;
}

.banner-wrap .rounded-pill.border.revealed {
    animation: badgeBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes badgeBounce {
    0% { opacity: 0; transform: translateY(-20px) scale(0.9); }
    60% { opacity: 1; transform: translateY(5px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* === LOGO ICON WAVE ENTRANCE === */
.logo-icon.scroll-reveal {
    transform: translateY(30px) scale(0.9);
}

.logo-icon.scroll-reveal.revealed {
    transform: translateY(0) scale(1);
}

/* === BLOG CARD SLIDE-IN === */
.blog-wrap .article {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-wrap .col-lg-6:first-child {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === CTA SECTION ENTRANCE === */
.cta-wrapper {
    position: relative;
}

.cta-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(3, 70, 81, 0.05), transparent);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.cta-wrapper.revealed::after {
    opacity: 1;
}

/* === FOOTER BIG TEXT SLIDE + SHIMMER === */
.footer-big-text {
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: translateX(-30px);
    opacity: 0.3;
}

.footer-big-text.revealed {
    transform: translateX(0);
    opacity: 1;
    animation: dsShimmer 3s linear infinite;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.03) 0%, 
        rgba(19, 222, 56, 0.15) 50%, 
        rgba(255,255,255,0.03) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
}

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

/* === TEAM CTA GRADIENT CARD === */
.team-wrap [style*="linear-gradient"] {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-wrap [style*="linear-gradient"]:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(16, 52, 38, 0.3);
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--aivon-teal), var(--aivon-darkgreen));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* === PARALLAX FLOAT EFFECT ON FEATURE IMAGES === */
.banner-wrap .feature-1 {
    animation: floatSlow 6s ease-in-out infinite;
}

.banner-wrap .feature-2 {
    animation: floatSlow 5s ease-in-out infinite 0.5s;
}

.banner-wrap .feature-3 {
    animation: floatSlow 7s ease-in-out infinite 1s;
}

.banner-wrap .feature-4 {
    animation: floatSlow 5.5s ease-in-out infinite 1.5s;
}

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

/* === SECTION ENTRY â€” FULL-WIDTH BACKGROUND WIPE === */
.service-wrap[style*="034651"],
.integrations-wrap,
.feature-wrap,
.team-wrap,
.blog-wrap,
.cta-wrapper {
    position: relative;
}

/* === SMOOTH SCROLL INDICATOR DOT === */
.scroll-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(3, 70, 81, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-indicator-dot.active {
    background: var(--aivon-teal);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(3, 70, 81, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .banner-wrap .feature-1,
    .banner-wrap .feature-2,
    .banner-wrap .feature-3,
    .banner-wrap .feature-4 {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .scroll-reveal {
        transform: translateY(25px);
    }

    .scroll-reveal-left,
    .scroll-reveal-right {
        transform: translateY(25px);
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale,
    .counter-animate,
    .footer-big-text,
    .heading-reveal-line::after,
    .separator-line::before,
    .banner-wrap .feature-1,
    .banner-wrap .feature-2,
    .banner-wrap .feature-3,
    .banner-wrap .feature-4 {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !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); }
}
