/* ========================================
   NEON LOOP — DESIGN UPGRADE LAYER
   v2.0 — Tasteful polish, micro-interactions,
   section transitions, card effects
   ======================================== */

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    background-size: 200% 100%;
    z-index: 200;
    pointer-events: none;
    transition: none;
    animation: progressShimmer 3s linear infinite;
}

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

/* ========================================
   SECTION DIVIDERS — Gradient fade transitions
   ======================================== */

.section-divider {
    position: relative;
    height: 1px;
    max-width: var(--container-max);
    margin: 0 auto;
    overflow: visible;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(24, 224, 255, 0.2) 20%,
        rgba(24, 224, 255, 0.4) 50%,
        rgba(24, 224, 255, 0.2) 80%,
        transparent
    );
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 12px rgba(24, 224, 255, 0.4), 0 0 24px rgba(24, 224, 255, 0.15);
    opacity: 0.7;
}

/* ========================================
   HERO — Animated Word Reveal & Stats Bar
   ======================================== */

/* Individual word animation in hero title */
.hero__title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: none; /* GSAP handles this */
}

/* Stats/Trust bar below hero trust items */
.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-default);
    flex-wrap: wrap;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
    display: block;
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ========================================
   CARD GLOW HOVER EFFECTS
   ======================================== */

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

/* Neon border glow on hover */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(24, 224, 255, 0) 40%,
        rgba(24, 224, 255, 0.3) 50%,
        rgba(24, 224, 255, 0) 60%,
        transparent 100%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover::before {
    opacity: 1;
}

/* Spotlight / cursor-tracking glow */
.card .card__spotlight {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 224, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translate(-50%, -50%);
}

.card:hover .card__spotlight {
    opacity: 1;
}

/* Service icon hover animation */
.services__icon,
.micro-tools__icon {
    transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.card:hover .services__icon,
.card:hover .micro-tools__icon {
    transform: scale(1.08) translateY(-2px);
    border-color: rgba(24, 224, 255, 0.3);
    background-color: rgba(24, 224, 255, 0.1);
}

.services__icon svg,
.micro-tools__icon svg {
    transition: transform 0.3s ease;
}

.card:hover .services__icon svg,
.card:hover .micro-tools__icon svg {
    transform: rotate(-3deg) scale(1.05);
}

/* ========================================
   PROCESS TIMELINE — Animated Progress Line
   ======================================== */

@media (min-width: 769px) {
    .process__timeline::before {
        /* Override: start transparent, fill via GSAP */
        background: linear-gradient(
            to bottom,
            var(--accent-primary) 0%,
            var(--accent-primary) var(--progress, 0%),
            var(--border-default) var(--progress, 0%),
            var(--border-default) 100%
        );
        opacity: 0.5;
        transition: none;
    }
}

/* Step number pulse when active */
.process__number {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.process__step.is-active .process__number {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(24, 224, 255, 0.3), 0 0 40px rgba(24, 224, 255, 0.1);
}

/* ========================================
   HOSTING — Featured Card Shimmer
   ======================================== */

.hosting__card--featured {
    overflow: hidden;
}

.hosting__card--featured::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(24, 224, 255, 0.04) 40%,
        rgba(24, 224, 255, 0.08) 50%,
        rgba(24, 224, 255, 0.04) 60%,
        transparent 70%
    );
    animation: shimmerSweep 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmerSweep {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hosting__card--featured > * {
    position: relative;
    z-index: 1;
}

/* ========================================
   PORTFOLIO — Subtle hover tilt
   ======================================== */

.portfolio__image {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
    will-change: transform;
}

.portfolio__image:hover {
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(24, 224, 255, 0.08);
}

/* ========================================
   FAQ — Smooth GSAP-ready states
   ======================================== */

.faq__item {
    transition: border-color 0.3s ease;
}

.faq__item.is-open {
    border-bottom-color: rgba(24, 224, 255, 0.2);
}

.faq__question {
    transition: color var(--transition-base), padding var(--transition-base);
}

.faq__item.is-open .faq__question {
    color: var(--accent-primary);
}

/* ========================================
   FINAL CTA — Ambient Background Glow
   ======================================== */

.final-cta {
    position: relative;
    overflow: hidden;
}

.final-cta__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.final-cta__glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
}

.final-cta__glow-orb--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(24, 224, 255, 0.08) 0%, transparent 70%);
    top: -20%;
    left: 10%;
    animation: ctaPulse1 8s ease-in-out infinite;
}

.final-cta__glow-orb--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(122, 30, 108, 0.1) 0%, transparent 70%);
    bottom: -15%;
    right: 10%;
    animation: ctaPulse2 10s ease-in-out 2s infinite;
}

@keyframes ctaPulse1 {
    0%, 100% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes ctaPulse2 {
    0%, 100% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.final-cta__content {
    position: relative;
    z-index: 1;
}

/* ========================================
   BUTTONS — Magnetic hover & ripple
   ======================================== */

.btn--primary {
    position: relative;
    overflow: hidden;
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.btn--primary:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* Subtle icon shift on button hover */
.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

/* ========================================
   NAV — Active Section Indicator
   ======================================== */

.site-nav__link {
    position: relative;
}

.site-nav__link.is-active {
    color: var(--accent-primary);
}

.site-nav__link.is-active::after {
    width: 100%;
}

/* ========================================
   SECTION LABELS — Animated accent line
   ======================================== */

.section-label {
    position: relative;
    padding-left: 20px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    transition: width 0.4s ease;
}

.section-header .section-label {
    padding-left: 0;
}

.section-header .section-label::before {
    display: none;
}

/* Centered section labels keep centered */
.section-header {
    text-align: center;
}

/* Non-centered section labels (like contact, about) get the accent line */
.contact__info .section-label::before,
.about__content .section-label::before {
    display: block;
}

.contact__info .section-label,
.about__content .section-label {
    padding-left: 20px;
}

/* ========================================
   FORM INPUTS — Focus glow enhancement
   ======================================== */

.form-group input,
.form-group textarea {
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(24, 224, 255, 0.1), 0 0 20px rgba(24, 224, 255, 0.05);
    transform: translateY(-1px);
}

/* ========================================
   ABOUT SECTION — Image hover effect
   ======================================== */

.about__image {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
    overflow: hidden;
}

.about__image img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s ease;
    filter: brightness(0.9) saturate(1.05);
}

.about__image:hover img {
    transform: scale(1.03);
    filter: brightness(1) saturate(1.15);
}

.about__image:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========================================
   HOSTING CARD HOVER — Edge glow
   ======================================== */

.hosting__card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color 0.4s ease;
}

.hosting__card:hover {
    border-color: rgba(24, 224, 255, 0.15);
}

.hosting__card--featured:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(24, 224, 255, 0.12), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ========================================
   PRICING CARD — Subtle glow
   ======================================== */

.pricing__range-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color 0.4s ease;
}

.pricing__range-card:hover {
    transform: translateY(-4px);
    border-color: rgba(24, 224, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(24, 224, 255, 0.06);
}

/* ========================================
   SMOOTH SECTION REVEALS — Clip path
   ======================================== */

.section-reveal {
    clip-path: inset(0 0 0 0);
}

/* ========================================
   REDUCED MOTION — Disable all fancy stuff
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .scroll-progress {
        animation: none;
    }
    
    .hosting__card--featured::after {
        animation: none;
        display: none;
    }

    .final-cta__glow-orb--1,
    .final-cta__glow-orb--2 {
        animation: none;
        opacity: 0.3;
    }

    .btn--primary::after {
        display: none;
    }

    .card::before {
        display: none;
    }

    .portfolio__image:hover {
        transform: none;
    }

    .about__image img {
        transition: none;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        transform: none;
    }
}

/* ========================================
   MOBILE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .hero__stats {
        gap: var(--space-xl);
    }

    .hero__stat-number {
        font-size: var(--text-2xl);
    }

    .section-divider::after {
        width: 8px;
        height: 8px;
        top: -4px;
    }

    .portfolio__image:hover {
        transform: none;
    }
}
