.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background-color: #000;
    overflow: hidden;
    color: var(--clr-white);
    padding-top: 80px; /* Reduced for better fits */
}

.hero .container {
    max-width: 85% !important;
    width: 85% !important;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.1) 0%,
        transparent 50%,
        transparent 100%
    );
    z-index: 2;
}

/* Smooth transition from hero to next section */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 109, 91, 0.0) 20%,
        rgba(0, 109, 91, 0.3) 50%,
        rgba(0, 109, 91, 0.8) 80%,
        #006D5B 100%
    );
    z-index: 3;
    pointer-events: none;
}

.hero-visual {
    display: none; /* Replaced by video */
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-left: 0;
    margin-top: -30px; /* Adjusted downward nudge */
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transit-smooth);
}

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

.hero-headline {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    line-height: 0.9;
    letter-spacing: -0.01em;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--clr-white);
    text-transform: none;
    text-align: left;
    opacity: 0;
    animation: none; /* Disabled initially */
}

body.hero-active .hero-headline {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-headline strong {
    color: var(--clr-white);
    display: block;
    font-weight: 900;
    font-size: 1.15em;
    letter-spacing: -0.04em;
    margin-top: 2px;
    opacity: 0;
    white-space: nowrap;
    animation: none; /* Disabled initially */
}

body.hero-active .hero-headline strong {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-headline span {
    display: block;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.1em;
    text-transform: none;
    margin-top: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.35em;
}

.hero-subheadline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    max-width: 540px;
    margin-bottom: 4rem;
    line-height: 1.5;
    opacity: 0;
    animation: none; /* Disabled initially */
}

body.hero-active .hero-subheadline {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-actions {
    opacity: 0;
    animation: none; /* Disabled initially */
}

body.hero-active .hero-actions {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Hero Cards (Mockup Style) */
.hero-floating-cards {
    position: absolute;
    left: 25px;
    top: 110px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 10;
}

/* Card entrance animations */
.hero-floating-cards .mockup-card {
    opacity: 0;
    transform: translateX(-60px);
    animation: none; /* Disabled initially */
}

body.hero-active .hero-floating-cards .mockup-card {
    animation: slideInFromLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.hero-active .hero-floating-cards .mockup-card:nth-child(1) {
    animation-delay: 0.4s; /* Start with headline (0.4s) */
}

body.hero-active .hero-floating-cards .mockup-card:nth-child(2) {
    animation-delay: 0.6s; /* 0.2s gap */
}

body.hero-active .hero-floating-cards .mockup-card:nth-child(3) {
    animation-delay: 0.8s; /* 0.2s gap */
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-10px);
}

.glass-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.glass-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.glass-card .text-white,
.glass-card .text-xs.text-white {
    color: white !important;
}

.glass-card svg {
    stroke: white; /* Default stroke */
}

/* Specific override for the sun icon which was orange */
.glass-card svg[stroke="#d97706"] {
    stroke: #FFB800; /* Restoration of sunny color */
}

.card-stat {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-top: 0.5rem;
}

.card-trend {
    font-size: 0.8rem;
    color: #4ade80;
    margin-left: 0.5rem;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 1rem;
    overflow: hidden;
}

.stat-progress {
    height: 100%;
    background: linear-gradient(to right, #4ade80, #22c55e);
    width: 75%;
}

.card-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    border: none !important;
}

.hero-profile-stack {
    display: flex;
    margin-top: 0.5rem;
}

.hero-profile-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-right: -10px;
    background: #475569;
}

.weather-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 1rem;
}

/* Highlighted CTA */
.btn-highlight {
    box-shadow: 0 0 20px rgba(0, 109, 91, 0.5);
    transform: scale(1.05);
    border: 2px solid rgba(255, 255, 255, 0.4);
    background-color: var(--clr-accent) !important;
    font-weight: 700 !important;
    padding: 1rem 2.5rem !important;
    font-size: 0.9rem !important;
}

.btn-highlight:hover {
    box-shadow: 0 0 30px rgba(0, 109, 91, 0.7);
    transform: scale(1.1);
}

.card-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.hero-profile-stack {
    display: flex;
    margin-top: 0.5rem;
}

.hero-profile-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-right: -10px;
    background: #475569;
}

.weather-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 1rem;
}

.hero-tag {
    position: absolute;
    top: 110px;
    left: 8%;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--clr-white);
    line-height: 1;
    font-weight: 800;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.8rem;
    font-weight: 600;
}

@media (max-width: 1440px) {
    .hero-headline {
        font-size: clamp(3rem, 7vw, 6.5rem);
    }
    .hero-floating-cards {
        max-width: 320px;
    }
}

@media (max-width: 1200px) {
    .hero-headline {
        font-size: 4.5rem;
    }
    .hero-subheadline {
        font-size: 1.1rem;
        max-width: 450px;
    }
}

@media (max-width: 991px) {
    .nav-desktop {
        gap: 2rem;
    }
    .hero {
        padding-top: 100px;
    }
    .hero .container {
        max-width: 90% !important;
        width: 90% !important;
    }
}

/* Floating Hero Cards - Exact Mockup Style (Global) */
.mockup-card {
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0px 0px 20px 0px rgb(24 44 26 / 50%);
    transition: transform 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mockup-card:hover {
    transform: translateY(-5px);
}

.card-white {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    color: #1a1a1a;
    box-shadow: 0px 0px 20px 0px rgb(24 44 26 / 50%);
}

.card-green {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    color: #1a1a1a;
    box-shadow: 0px 0px 20px 0px rgb(24 44 26 / 50%);
}

/* Card Header Common */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-h-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

.icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.icon-box.white-bg {
    background: #f0f0f0;
}

/* Trend Card (Card 1) */
.trend-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.trend-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.trend-val {
    font-size: 1rem;
    font-weight: 800;
    text-align: right;
    color: #1a1a1a;
}

.trend-sub {
    font-size: 0.6rem;
    color: #999;
    text-align: right;
    line-height: 1.1;
    max-width: 120px;
}

/* Weather Alert Card */
.weather-alert-content {
    margin-top: 0.5rem;
}

.weather-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.weather-temp {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d97706;
}

/* Campaign Card */
.campaign-card {
    padding: 0 !important;
    overflow: hidden;
}

.campaign-layout {
    display: flex;
    min-height: 180px;
}

.campaign-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.campaign-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    margin-bottom: 0.5rem;
}

.hero-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    margin-bottom: 0.5rem;
}

.campaign-content .card-h-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.campaign-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: #1a1a1a;
}

.campaign-image {
    width: 140px;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin: 1rem;
    margin-left: 0;
    flex-shrink: 0;
}

/* Mini Carousel for Completed Events */
.mini-carousel {
    width: 140px;
    height: 180px;
    margin: 1rem;
    margin-left: 0;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.mini-carousel-inner {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mini-carousel-item {
    width: 33.3333%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.mini-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    pointer-events: auto; /* Ensure dots are clickable */
}

.mini-carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.mini-carousel-dots .dot.active {
    background: #FFFFFF;
    transform: scale(1.4);
}

.completed-badge {
    background: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid rgba(22, 101, 52, 0.1);
}


.mockup-progress {
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.mockup-progress-bar {
    height: 100%;
    width: 65%;
    background: linear-gradient(to right, #b2d8c8, #e8eeb0);
}

/* Split Card (Card 2) */
.split-layout {
    display: flex;
    gap: 1rem;
}

.split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.split-image {
    width: 130px;
    height: 130px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.pill-badge {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.75rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.img-arrow {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.8);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Data Card (Card 3) */
.data-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.data-label {
    font-size: 0.75rem;
    opacity: 0.7;
    color: #666;
}

.data-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

@media (max-width: 991px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-floating-cards {
        position: relative;
        margin: 3rem auto 0;
        top: 0;
        left: 0;
        right: 0;
        max-width: 450px;
    }

    .campaign-layout {
        min-height: 220px;
    }

    .campaign-image,
    .mini-carousel {
        width: 160px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding-top: 110px; /* Moved up from 160px */
        min-height: 100vh;
        height: 100vh;
        padding-bottom: 20px;
    }
    .hero-content {
        padding-left: 0 !important;
        align-items: center !important;
        margin-top: -20px; /* Additional lift */
    }
    .hero-headline {
        text-align: center;
        font-size: clamp(2.5rem, 10vw, 3.8rem);
        letter-spacing: -0.01em;
        margin-bottom: 1rem; /* Tightened from 2rem */
    }
    .hero-headline strong {
        font-size: 1.1em;
        margin-top: 0.5rem;
    }
    
    .hero-floating-cards {
        width: 100%;
        max-width: 100%;
        margin-top: 3rem;
    }
}

/* Mobile Cards Carousel - Peeking Cards Layout */
.mobile-cards-carousel {
    width: 100vw;
    margin-left: -15px; /* Offset parent container padding */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.mobile-cards-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 15px;
    padding: 0 10%; /* Center the 80% card */
    width: max-content;
}

.carousel-card {
    flex-shrink: 0;
    width: 80vw !important; /* Forces 80% viewport width */
    scroll-snap-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scaling effect for non-active cards */
.carousel-card {
    transform: scale(0.92);
    opacity: 0.6;
    filter: blur(1px);
}

.carousel-card.is-active {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
}

.carousel-card .campaign-layout {
    min-height: 200px;
}

.carousel-card .campaign-image,
.carousel-card .mini-carousel {
    width: 140px;
    height: 180px;
}

/* Decorative Hotspots (Mockup Style) */
.hero-hotspot {
    position: absolute;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    pointer-events: none;
}

.hotspot-dot {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    animation: pulseHotspot 2s infinite;
}

.hotspot-label {
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes pulseHotspot {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    z-index: 20;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 24px;
    }
}

.arrow-scroll span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -4px auto 0;
    animation: scrollArrow 1.5s infinite;
    opacity: 0;
}

.arrow-scroll span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow-scroll span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scrollArrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* CTA Button Animation */
.cta-attention {
    position: relative;
    overflow: hidden;
    z-index: 10;
    /* Stronger initial shadow */
    box-shadow: 0 4px 20px rgba(0, 109, 91, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    /* Continuous Pulse */
    animation: ctaPulse 3s infinite;
}

/* Shimmer Effect - Soft Wave */
.cta-attention::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%; /* Start completely off-screen */
    width: 200%; /* Wide area for smooth gradient */
    height: 100%;
    /* Smooth gradient with explicit stops */
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    filter: blur(20px); /* Strong blur for soft glow */
    animation: ctaShimmer 4s infinite;
    pointer-events: none;
    z-index: 1;
}

/* Ensure text is above shimmer */
.cta-attention span, .cta-attention {
    z-index: 2;
}

/* Hover State - Playful Bounce & Glow */
.cta-attention:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 255, 200, 0.5);
    background-color: white !important; /* Invert or brighten on hover */
    color: var(--clr-accent) !important;
    animation: none; /* Stop pulse to focus */
}

@keyframes ctaPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 200, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(0, 255, 200, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 200, 0); }
}

@keyframes ctaShimmer {
    0% { left: -200%; opacity: 0; }
    20% { opacity: 0.8; }
    80% { left: 200%; opacity: 0; }
    100% { left: 200%; opacity: 0; }
}
