body {
    opacity: 0;
    animation: pageLoad 0.6s ease-out 0.1s forwards;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.header {
    transition: padding 0.3s ease-in-out, background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header.scrolled {
    background: rgba(10, 14, 23, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header.scrolled .header-container {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.header-container {
    transition: padding 0.3s ease-in-out;
}

@media (min-width: 992px) {
    .nav-link:not(.cta) {
        position: relative;
    }

    .nav-link:not(.cta)::after {
        content: "";
        position: absolute;
        bottom: 2px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
        border-radius: 1px;
    }

    .nav-link:not(.cta):hover::after,
    .nav-link:not(.cta).active::after {
        width: 60%;
        left: 20%;
    }

    .btn-primary::after,
    .btn-secondary::after {
        content: "";
        display: inline-block;
        width: 0;
        height: 2px;
        background: currentColor;
        margin-left: 0;
        margin-bottom: 2px;
        transition: width 0.3s ease-in-out, margin-left 0.3s ease-in-out;
        vertical-align: middle;
    }

    .btn-primary:hover::after,
    .btn-secondary:hover::after {
        width: 20px;
        margin-left: 8px;
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal="slide-left"] {
    transform: translateX(-40px);
}

[data-reveal="slide-left"].revealed {
    transform: translateX(0);
}

[data-reveal="slide-right"] {
    transform: translateX(40px);
}

[data-reveal="slide-right"].revealed {
    transform: translateX(0);
}

[data-reveal="scale"] {
    transform: scale(0.9);
}

[data-reveal="scale"].revealed {
    transform: scale(1);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
[data-reveal-delay="6"] { transition-delay: 0.6s; }

.glass-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 243, 255, 0.1);
}

.service-card:hover .card-image img {
    transform: scale(1.08);
}

.service-card .card-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-value {
    transition: transform 0.3s ease;
}

.stat-value:hover {
    transform: scale(1.05);
}

.faq-item {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.05);
}

.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.chat-toggle {
    animation: chatPulse 3s infinite;
}

@keyframes chatPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 243, 255, 0.5), 0 0 60px rgba(188, 19, 254, 0.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        opacity: 1;
        animation: none;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .chat-toggle {
        animation: none;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
.hscroll-section {
    position: relative;
    background: var(--bg);
}

.hscroll-outer {
    height: 400vh;
    position: relative;
}

.hscroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 2rem;
}

.hscroll-header {
    text-align: center;
    padding: 1rem 2rem 0;
    flex-shrink: 0;
}

.hscroll-header .section-title {
    margin-bottom: 0.5rem;
}

.hscroll-header .section-subtitle {
    margin-bottom: 1.5rem;
}

.hscroll-progress {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    margin: 0 auto 0.5rem;
    overflow: hidden;
}

.hscroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.hscroll-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hscroll-counter span:first-child {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

.hscroll-track {
    display: flex;
    gap: 2rem;
    padding: 1rem 4rem;
    flex: 1;
    align-items: center;
    will-change: transform;
}

.hscroll-card {
    flex: 0 0 min(450px, 80vw);
    height: min(350px, 50vh);
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.hscroll-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.hscroll-card-number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
    z-index: 1;
}

.hscroll-card-visual {
    grid-row: 1 / -1;
    position: relative;
    overflow: hidden;
}

.hscroll-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hscroll-card:hover .hscroll-card-visual img {
    transform: scale(1.08);
}

.hscroll-card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05) 0%, rgba(188, 19, 254, 0.05) 100%);
    pointer-events: none;
}

.hscroll-card-content {
    flex: 1;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.hscroll-card-icon {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
}

.hscroll-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.hscroll-card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.hscroll-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hscroll-card-content .btn {
    align-self: center;
    /* Center the button */
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .hscroll-section {
        padding: 0;
    }

    .hscroll-outer {
        height: auto;
    }

    .hscroll-sticky {
        position: relative;
        height: auto;
        padding: 2rem 0 1rem;
        overflow: visible;
    }

    .hscroll-track {
        padding: 1rem 1rem 2rem;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        align-items: stretch;
    }

    .hscroll-track::-webkit-scrollbar {
        display: none;
    }

    .hscroll-card {
        flex: 0 0 85vw;
        max-width: 85vw;
        height: auto;
        min-height: 300px;
        display: flex;
        flex-direction: column;
        scroll-snap-align: center;
        opacity: 1 !important;
        transform: none !important;
    }

    .hscroll-card-visual {
        grid-row: auto;
    }

    .hscroll-card-content {
        grid-row: auto;
        padding: 1.25rem;
        gap: 0.5rem;
    }

    .hscroll-card-content h3 {
        font-size: 1.15rem;
    }

    .hscroll-card-content p {
        font-size: 0.85rem;
    }

    .hscroll-card-price {
        font-size: 1.1rem;
    }

    .hscroll-card-number {
        font-size: 3rem;
        top: 0.75rem;
        left: 0.75rem;
    }

    .hscroll-progress {
        width: 150px;
    }

    .hscroll-header {
        padding: 0.5rem 1.5rem 0;
    }

    .hscroll-header .section-title {
        font-size: 1.5rem;
    }

    .hscroll-header .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hscroll-counter {
        margin-bottom: 0.5rem;
    }
}.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient);
    z-index: 9999;
    transition: width 0.05s linear;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero {
    position: relative;
    overflow: hidden;
}

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

.stat-value {
    display: inline-block;
    position: relative;
}

.stat-number {
    display: inline-block;
    min-width: 1.5ch;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    display: inline;
}

.stat-value.counting .stat-number {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.8), 0 0 40px rgba(0, 243, 255, 0.4);
    animation: counterPulse 0.15s ease-in-out infinite alternate;
}

.stat-value.counted .stat-number {
    animation: counterFinish 0.6s ease-out forwards;
}

@keyframes counterPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@keyframes counterFinish {
    0% { transform: scale(1.15); text-shadow: 0 0 30px rgba(0, 243, 255, 1), 0 0 60px rgba(0, 243, 255, 0.6); }
    100% { transform: scale(1); text-shadow: none; }
}

.glass-card.tilt-card,
.hscroll-card.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card.tilt-card .card-content,
.glass-card.tilt-card .card-icon,
.glass-card.tilt-card .card-title,
.hscroll-card.tilt-card .hscroll-card-content {
    transform: translateZ(20px);
}

.glow-cursor {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.glow-cursor.visible {
    opacity: 1;
}

.hero-title .typed-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary);
    margin-left: 4px;
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
}

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

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.3;
    margin: 0;
}

@media (max-width: 768px) {
    .glow-cursor {
        display: none;
    }

    #particleCanvas {
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .glow-cursor,
    #particleCanvas {
        display: none;
    }

    .scroll-progress-bar {
        display: none;
    }
}

