/* ═══════════════════════════════════════════════════════════════════════════
   ORGANISATION HERO SECTION - Enhanced Dynamic Design
   ═══════════════════════════════════════════════════════════════════════════
   
   Covers hero-using templates:
   - Dashboard (organisation/dashboard/dashboard.html → _hero_content.html)
   - Delegate Profile (portal/delegate_profile.html → _hero_content_delegate_profile.html)
   - CSR (organisation/csr/csr.html → _hero_content_csr.html)
   - Linked Companies (company/org_company_links.html → company/partials/_hero_content_linked_companies.html)
   
   Load this file whenever you include organisation/partials/_hero_background.html.
   Depends on portal.css (or equivalent) for CSS variables.
   
   Enhanced Features:
   - Animated geometric shapes and particles
   - Dynamic gradient mesh backgrounds
   - Improved depth with layered elements
   - Smooth micro-interactions
   - Responsive grid patterns
   
   Contents:
   1. Hero container & animated background layers
   2. Hero content layout with staggered animations
   3. Avatar (with glow effects), title, subtitle
   4. Pills & actions with enhanced interactions
   5. Button system (.btn) with improved states
   6. Responsive design
   
   ═══════════════════════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────────────────────────────────
   1. HERO CONTAINER & ANIMATED BACKGROUND LAYERS
   ─────────────────────────────────────────────────────────────────────────── */

   .hero {
    position: relative;
    /* Fit container (e.g. .csr-page) so hero is not clipped by overflow-x; avoids truncating admin buttons */
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: var(--space-8);
    /* Generous right padding so admin buttons (Edit Profile, Live Preview) stay clear of scrollbar */
    padding-right: max(calc(var(--space-8) + 2.5rem), 4rem);
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    min-height: 360px;
    overflow: hidden;
    box-shadow: 
        var(--shadow-primary),
        0 20px 60px -20px rgba(1, 0, 128, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Background layers container */
.hero__bg-layers {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Optional banner image layer – visible when present (opacity raised so banner is not hidden by overlay) */
.hero__bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    transform: scale(1.05);
    pointer-events: none;
    animation: hero-image-drift 30s ease-in-out infinite;
}

@keyframes hero-image-drift {
    0%, 100% { transform: scale(1.05) translate(0, 0); }
    25% { transform: scale(1.08) translate(-1%, 1%); }
    50% { transform: scale(1.06) translate(1%, -0.5%); }
    75% { transform: scale(1.07) translate(-0.5%, -1%); }
}

/* Dynamic gradient mesh overlay – lighter when hero has a banner so the image shows through */
.hero__bg-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(1, 0, 128, 0.95) 0%, transparent 50%),
        radial-gradient(ellipse 70% 80% at 80% 60%, rgba(20, 20, 160, 0.85) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(1, 0, 128, 0.9) 0%, rgba(10, 10, 140, 0.88) 100%);
    pointer-events: none;
    animation: hero-gradient-shift 15s ease-in-out infinite;
}

/* When a banner image is present, use a lighter overlay so the image is visible */
.hero.hero--has-banner .hero__bg-gradient {
    background: 
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(1, 0, 128, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse 70% 80% at 80% 60%, rgba(20, 20, 160, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(1, 0, 128, 0.55) 0%, rgba(10, 10, 140, 0.5) 100%);
}

@keyframes hero-gradient-shift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.92; }
}

/* Animated geometric shapes */
.hero__bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.08;
    filter: blur(60px);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.hero__shape--1 {
    width: 500px;
    height: 500px;
    top: -15%;
    left: -10%;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.4), rgba(255, 150, 0, 0.3));
    animation: hero-shape-float-1 25s infinite;
}

.hero__shape--2 {
    width: 400px;
    height: 400px;
    bottom: -10%;
    right: -5%;
    background: linear-gradient(225deg, rgba(100, 100, 255, 0.5), rgba(50, 50, 200, 0.4));
    animation: hero-shape-float-2 30s infinite;
}

.hero__shape--3 {
    width: 350px;
    height: 350px;
    top: 20%;
    right: 10%;
    background: linear-gradient(315deg, rgba(255, 204, 0, 0.3), rgba(255, 255, 255, 0.2));
    animation: hero-shape-float-3 20s infinite;
}

.hero__shape--4 {
    width: 300px;
    height: 300px;
    bottom: 30%;
    left: 15%;
    background: linear-gradient(45deg, rgba(150, 150, 255, 0.4), rgba(100, 100, 220, 0.3));
    animation: hero-shape-float-4 28s infinite;
}

@keyframes hero-shape-float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(30px, -40px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-20px, 30px) rotate(240deg) scale(0.95); }
}

@keyframes hero-shape-float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(-40px, 30px) rotate(-120deg) scale(0.9); }
    66% { transform: translate(25px, -35px) rotate(-240deg) scale(1.05); }
}

@keyframes hero-shape-float-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(-30px, 40px) rotate(180deg) scale(1.08); }
}

@keyframes hero-shape-float-4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(35px, -30px) rotate(-180deg) scale(0.92); }
}

/* Subtle grid pattern */
.hero__bg-grid {
    position: absolute;
    inset: 0;
    z-index: 4;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
}

/* Floating light particles */
.hero__bg-particles {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.hero__particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 204, 0, 0.6);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(255, 204, 0, 0.8),
        0 0 20px rgba(255, 204, 0, 0.4);
    opacity: 0;
    animation: hero-particle-float 8s ease-in-out infinite;
}

.hero__particle:nth-child(1) {
    left: 15%;
    animation-delay: 0s;
}

.hero__particle:nth-child(2) {
    left: 35%;
    animation-delay: 2s;
}

.hero__particle:nth-child(3) {
    left: 55%;
    animation-delay: 4s;
}

.hero__particle:nth-child(4) {
    left: 75%;
    animation-delay: 1s;
}

.hero__particle:nth-child(5) {
    left: 25%;
    animation-delay: 3s;
}

.hero__particle:nth-child(6) {
    left: 65%;
    animation-delay: 5s;
}

@keyframes hero-particle-float {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    90% {
        opacity: 0.8;
        transform: translateX(20px) scale(1);
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(40px) scale(0.5);
    }
}

/* Bottom accent line */
.hero__accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-accent) 20%,
        var(--color-accent) 80%,
        transparent 100%
    );
    z-index: 10;
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}


/* ───────────────────────────────────────────────────────────────────────────
   2. HERO CONTENT LAYOUT WITH STAGGERED ANIMATIONS
   ─────────────────────────────────────────────────────────────────────────── */

.hero__content {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
    width: 100%;
    max-width: 600px;
    animation: hero-content-reveal 0.8s ease-out backwards;
}

@keyframes hero-content-reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ───────────────────────────────────────────────────────────────────────────
   3. AVATAR WITH GLOW EFFECTS, TITLE, SUBTITLE
   ─────────────────────────────────────────────────────────────────────────── */

.hero__avatar {
    width: 96px;
    height: 96px;
    background: var(--color-accent);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(255, 204, 0, 0.5),
        0 12px 40px rgba(255, 204, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: var(--space-2);
    overflow: hidden;
    position: relative;
    animation: hero-avatar-reveal 0.8s ease-out 0.1s backwards;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero__avatar::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: hero-avatar-shine 3s ease-in-out infinite;
}

@keyframes hero-avatar-reveal {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

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

.hero__avatar:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(255, 204, 0, 0.7),
        0 16px 50px rgba(255, 204, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.hero__avatar .hero__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-3);
    position: relative;
    z-index: 1;
}

.hero__initials {
    font-size: var(--text-3xl);
    font-weight: var(--fw-extrabold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: var(--text-4xl);
    font-weight: var(--fw-extrabold);
    color: var(--color-accent) !important;
    margin: 0;
    line-height: var(--leading-tight);
    letter-spacing: -0.03em;
    -webkit-text-fill-color: var(--color-accent);
    text-shadow: 
        0 2px 10px rgba(255, 204, 0, 0.3),
        0 0 30px rgba(255, 204, 0, 0.2);
    animation: hero-title-reveal 0.8s ease-out 0.2s backwards;
}

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

.hero__subtitle {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 450px;
    line-height: 1.6;
    animation: hero-subtitle-reveal 0.8s ease-out 0.3s backwards;
}

@keyframes hero-subtitle-reveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ───────────────────────────────────────────────────────────────────────────
   4. PILLS & ACTIONS WITH ENHANCED INTERACTIONS
   ─────────────────────────────────────────────────────────────────────────── */

.hero__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    animation: hero-pills-reveal 0.8s ease-out 0.4s backwards;
}

@keyframes hero-pills-reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    backdrop-filter: blur(12px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.hero__pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.hero__pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

.hero__pill--primary {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.25), rgba(255, 204, 0, 0.2));
    border-color: rgba(255, 204, 0, 0.45);
    color: #fff;
    box-shadow: 
        0 2px 12px rgba(255, 204, 0, 0.2),
        inset 0 1px 0 rgba(255, 204, 0, 0.3);
}

.hero__pill--primary i {
    color: inherit;
    opacity: 1;
}

.hero__pill--primary:hover {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.25), rgba(255, 204, 0, 0.2));
    border-color: rgba(255, 204, 0, 0.5);
    box-shadow: 
        0 4px 16px rgba(255, 204, 0, 0.3),
        inset 0 1px 0 rgba(255, 204, 0, 0.4);
}

.hero__pill i {
    font-size: var(--text-xs);
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
    animation: hero-actions-reveal 0.8s ease-out 0.5s backwards;
}

@keyframes hero-actions-reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin links (CSR: Edit Profile, Live Preview) – well inset so both buttons stay fully visible (clear of scrollbar) */
.hero__admin {
    position: absolute;
    top: var(--space-6);
    right: 3rem;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: flex-end;
    animation: hero-admin-reveal 0.6s ease-out 0.3s backwards;
}

@keyframes hero-admin-reveal {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero__admin .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* Scroll hint (CSR: Discover More) */
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: var(--space-8);
    transform: translateX(-50%);
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: var(--fw-medium);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all var(--transition-base);
    animation: hero-scroll-reveal 0.8s ease-out 0.6s backwards, hero-scroll-bounce 2s ease-in-out 1.5s infinite;
}

@keyframes hero-scroll-reveal {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes hero-scroll-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.hero__scroll:hover {
    color: var(--color-accent);
    transform: translateX(-50%) translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.hero__scrollText {
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__scroll i {
    animation: hero-scroll-arrow 1.5s ease-in-out infinite;
}

@keyframes hero-scroll-arrow {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(5px);
        opacity: 0.6;
    }
}


/* ───────────────────────────────────────────────────────────────────────────
   5. BUTTON SYSTEM (enhanced with better interactions)
   ─────────────────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.btn:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #FFD633 100%);
    color: var(--color-gray-900);
    box-shadow: 
        0 4px 12px rgba(255, 204, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #FFD633 0%, var(--color-accent) 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(255, 204, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: var(--color-gray-900);
}

.btn--primary:active {
    transform: translateY(-1px);
}

.btn--accent {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--accent:hover {
    background: var(--color-gray-50);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: var(--color-primary);
}

.btn--accent:active {
    transform: translateY(-1px);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--color-white);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-gray-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn--outline:hover {
    background: var(--color-gray-50);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-gray-500);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-icon:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    transform: scale(1.1);
}


/* ───────────────────────────────────────────────────────────────────────────
   6. RESPONSIVE DESIGN
   ─────────────────────────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-12) calc(var(--space-6) + 1rem) var(--space-12) var(--space-6);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        min-height: 300px;
    }

    .hero__bg-grid {
        background-size: 30px 30px;
    }

    .hero__shape {
        filter: blur(40px);
    }

    .hero__shape--1 {
        width: 350px;
        height: 350px;
    }

    .hero__shape--2 {
        width: 300px;
        height: 300px;
    }

    .hero__shape--3,
    .hero__shape--4 {
        display: none;
    }

    .hero__admin {
        top: var(--space-4);
        right: 2rem;
    }

    .hero__scroll {
        bottom: var(--space-4);
    }

    .hero__content {
        gap: var(--space-3);
    }

    .hero__avatar {
        width: 72px;
        height: 72px;
    }

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

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

    .hero__subtitle {
        font-size: var(--text-sm);
    }

    .hero__pills {
        gap: var(--space-2);
        flex-direction: row;
        margin-top: var(--space-2);
    }

    .hero__pill {
        padding: var(--space-1) var(--space-3);
        font-size: var(--text-xs);
    }

    .hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: var(--space-2);
        margin-top: var(--space-3);
    }

    .hero__actions .btn {
        flex: 1 1 auto;
        min-width: 120px;
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }

    .hero__actions .dropdown {
        flex: 0 0 auto;
    }

    .hero__actions .dropdown .btn {
        width: auto;
        min-width: auto;
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero {
        padding: var(--space-8) 2rem var(--space-8) var(--space-4);
        min-height: auto;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .hero__bg-grid {
        background-size: 25px 25px;
    }

    .hero__shape {
        filter: blur(30px);
    }

    .hero__shape--1 {
        width: 250px;
        height: 250px;
    }

    .hero__shape--2 {
        width: 200px;
        height: 200px;
    }

    .hero__particle {
        width: 3px;
        height: 3px;
    }

    .hero__content {
        gap: var(--space-2);
    }

    .hero__avatar {
        width: 64px;
        height: 64px;
    }

    .hero__initials {
        font-size: var(--text-xl);
    }

    .hero__title {
        font-size: var(--text-xl);
    }

    .hero__subtitle {
        font-size: var(--text-xs);
        max-width: 300px;
    }

    .hero__pills {
        gap: var(--space-1);
    }

    .hero__pill {
        padding: var(--space-1) var(--space-2);
        font-size: 10px;
    }

    .hero__actions {
        margin-top: var(--space-2);
    }

    .hero__actions .btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
        min-width: 100px;
    }

    .hero__scroll {
        display: none;
    }
}

/* ───────────────────────────────────────────────────────────────────────────
   REDUCED MOTION (accessibility)
   ─────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero__bg-image,
    .hero__bg-gradient,
    .hero__shape,
    .hero__particle,
    .hero__avatar::before,
    .hero__scroll {
        animation: none !important;
    }

    .hero__content,
    .hero__avatar,
    .hero__title,
    .hero__subtitle,
    .hero__pills,
    .hero__actions,
    .hero__admin {
        animation: none !important;
    }

    /* Only shorten transitions inside the hero to avoid affecting rest of site */
    .hero,
    .hero * {
        transition-duration: 0.01ms !important;
    }
}