/* ============================================================
   HOME2.CSS - Premium Homepage Redesign
   Page-specific styles for /home2
   Uses variables from styles.css
   ============================================================ */

/* ── HERO ────────────────────────────────────────────────── */
.h2-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.h2-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    pointer-events: none;
    z-index: 1;
}

.h2-hero-inner {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.h2-hero-photo {
    position: relative;
}

.h2-hero-photo img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(153, 0, 255, 0.4);
    box-shadow:
        0 0 60px rgba(153, 0, 255, 0.25),
        0 0 120px rgba(6, 182, 212, 0.1);
    animation: float-gentle 6s ease-in-out infinite;
}

.h2-hero-photo::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(153, 0, 255, 0.3), rgba(6, 182, 212, 0.3), rgba(241, 91, 181, 0.3), rgba(153, 0, 255, 0.3));
    animation: spin-slow 8s linear infinite;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.6;
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

.h2-hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: white;
}

.h2-hero-text h1 .gradient-text {
    background: linear-gradient(135deg, #9b5de5 0%, #f15bb5 40%, #00bbf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 4s ease-in-out infinite alternate;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 100% center;
    }
}

.h2-hero-text .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 520px;
}

.h2-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 520px;
}

.h2-hero-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
    transition: all 0.3s var(--ease-spring);
    border: none;
    cursor: pointer;
}

.h2-hero-actions .btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 40px rgba(124, 58, 237, 0.5);
}

.h2-hero-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-spring);
    cursor: pointer;
}

.h2-hero-actions .btn-outline:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ── SOCIAL PROOF BAR ────────────────────────────────────── */
.h2-proof-bar {
    padding: 40px 20px;
    background: linear-gradient(180deg,
            rgba(153, 0, 255, 0.06) 0%,
            rgba(6, 182, 212, 0.04) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.h2-proof-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.h2-proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.h2-proof-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, rgba(153, 0, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.h2-proof-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── AUDIENCE PICKER ─────────────────────────────────────── */
.h2-audience {
    padding: 100px 20px;
}

.h2-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.h2-section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.h2-section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.h2-audience-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.h2-audience-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 35px;
    transition: all 0.4s var(--ease-out);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.h2-audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.h2-audience-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.h2-audience-card:hover::before {
    opacity: 1;
}

.h2-audience-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.h2-audience-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.h2-audience-card>p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.h2-audience-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h2-audience-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.h2-audience-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(6px);
    color: white;
}

.h2-audience-link .link-arrow {
    margin-left: auto;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.4);
}

.h2-audience-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── SERVICES CAROUSEL ───────────────────────────────────── */
.h2-services {
    padding: 80px 0 100px;
    overflow: hidden;
}

.h2-services .h2-section-header {
    padding: 0 20px;
}

.h2-services-scroll {
    display: flex;
    gap: 20px;
    padding: 20px 40px 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.h2-services-scroll::-webkit-scrollbar {
    display: none;
}

.h2-services-scroll:active {
    cursor: grabbing;
}

.h2-service-card {
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 24px;
    transition: all 0.4s var(--ease-out);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.h2-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent);
}

.h2-service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.h2-service-num {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.h2-service-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.h2-service-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.h2-service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.h2-service-cta {
    margin-top: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.h2-service-card:hover .h2-service-cta {
    gap: 12px;
}

/* ── CASE STUDIES ────────────────────────────────────────── */
.h2-cases {
    padding: 100px 20px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(153, 0, 255, 0.04) 50%,
            transparent 100%);
}

.h2-cases-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.h2-case-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px 28px;
    transition: all 0.4s var(--ease-out);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.h2-case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.h2-case-card:nth-child(2) {
    transform: translateY(30px);
}

.h2-case-card:nth-child(2):hover {
    transform: translateY(22px);
}

.h2-case-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.h2-case-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.h2-case-card>p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex-grow: 1;
}

.h2-case-metrics {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.h2-case-metric {
    text-align: center;
}

.h2-case-metric .value {
    font-size: 1.6rem;
    font-weight: 800;
}

.h2-case-metric .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.h2-case-cta {
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.h2-case-card:hover .h2-case-cta {
    gap: 12px;
}

/* ── ABOUT / WAAROM TOM ──────────────────────────────────── */
.h2-about {
    padding: 100px 20px;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.06) 0%,
            rgba(118, 75, 162, 0.06) 100%);
}

.h2-about-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: center;
}

.h2-about-photo {
    text-align: center;
}

.h2-about-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(102, 126, 234, 0.4);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.2);
}

.h2-about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.h2-about-text>p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

.h2-about-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.h2-stat {
    text-align: center;
}

.h2-stat .number {
    font-size: 2.5rem;
    font-weight: 800;
}

.h2-stat .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ── TESTIMONIALS MARQUEE ────────────────────────────────── */
.h2-testimonials {
    padding: 80px 0;
    overflow: hidden;
}

.h2-testimonials .h2-section-header {
    padding: 0 20px;
}

.h2-testimonial-track-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.h2-testimonial-track {
    display: flex;
    width: max-content;
    animation: marquee-testimonials 35s linear infinite;
    gap: 20px;
}

.h2-testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-testimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.h2-testimonial-card {
    flex-shrink: 0;
    width: 340px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.h2-testimonial-stars {
    color: #FBBC05;
    font-size: 0.95rem;
    letter-spacing: -1px;
}

.h2-testimonial-card blockquote {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-style: italic;
    margin: 0;
}

.h2-testimonial-author {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* ── TECH PARTNERS ───────────────────────────────────────── */
.h2-partners {
    padding: 50px 0;
}

/* ── CTA SECTION ─────────────────────────────────────────── */
.h2-cta {
    padding: 120px 20px;
    text-align: center;
    position: relative;
}

.h2-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
            rgba(153, 0, 255, 0.12) 0%,
            transparent 60%);
    pointer-events: none;
}

.h2-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.h2-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.h2-cta>.h2-cta-inner>p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.h2-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.h2-cta-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.h2-cta-contact a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.h2-cta-contact a:hover {
    color: white;
}

/* ── SCROLL REVEAL ANIMATION ─────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.reveal-stagger.is-visible>*:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

.reveal-stagger.is-visible>*:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.reveal-stagger.is-visible>*:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.reveal-stagger.is-visible>*:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.reveal-stagger.is-visible>*:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.reveal-stagger.is-visible>*:nth-child(6) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.reveal-stagger.is-visible>*:nth-child(7) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.reveal-stagger.is-visible>*:nth-child(8) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.reveal-stagger.is-visible>*:nth-child(9) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.reveal-stagger.is-visible>*:nth-child(10) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.reveal-stagger.is-visible>*:nth-child(11) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s;
}

.reveal-stagger.is-visible>*:nth-child(12) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.reveal-stagger.is-visible>*:nth-child(13) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.65s;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .h2-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .h2-hero-photo {
        order: -1;
    }

    .h2-hero-photo img {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .h2-hero-text h1 {
        font-size: 2.5rem;
    }

    .h2-hero-text .subtitle {
        margin: 0 auto 30px;
    }

    .h2-hero-actions {
        justify-content: center;
    }

    .h2-proof-grid {
        gap: 30px;
    }

    .h2-audience-grid {
        grid-template-columns: 1fr;
    }

    .h2-cases-grid {
        grid-template-columns: 1fr;
    }

    .h2-case-card:nth-child(2) {
        transform: none;
    }

    .h2-case-card:nth-child(2):hover {
        transform: translateY(-8px);
    }

    .h2-about-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .h2-about-stats {
        justify-content: center;
    }

    .h2-cta h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .h2-hero {
        padding: 100px 16px 60px;
    }

    .h2-hero-text h1 {
        font-size: 2rem;
    }

    .h2-hero-text .subtitle {
        font-size: 1.05rem;
    }

    .h2-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .h2-hero-actions .btn-primary,
    .h2-hero-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .h2-proof-grid {
        gap: 20px;
    }

    .h2-proof-value {
        font-size: 1.6rem;
    }

    .h2-section-header h2 {
        font-size: 1.8rem;
    }

    .h2-audience-card {
        padding: 28px 22px;
    }

    .h2-service-card {
        width: 250px;
    }

    .h2-cta h2 {
        font-size: 1.8rem;
    }

    .h2-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .h2-cta-contact {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}