@import url("./variables.css");

.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5f4 50%, #f1f8f7 100%);
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 6rem;
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Animated background accents */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 109, 101, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

.hero .app-description {
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero .app-description h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2c3e50 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero .app-description p {
    font-size: 1.15rem;
    font-weight: 500;
    color: #4a5568;
    line-height: 1.7;
    max-width: 90%;
}

/* Modern Info Section Style for hero-subtext */
.hero .app-description .hero-subtext {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem 2.5rem;
    border-radius: 18px;
    margin-top: 1.5rem;
    line-height: 1.75;
    font-size: 0.95rem;
    font-weight: 400;
    color: #2d3748;
    border: 2px solid rgba(16, 185, 129, 0.2);
    box-shadow:
        0 12px 40px rgba(16, 185, 129, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.hero .app-description .hero-subtext:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 48px rgba(16, 185, 129, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.04);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Info badge with pulse animation */
.hero .app-description .hero-subtext::before {
    content: 'ℹ';
    position: absolute;
    top: -12px;
    left: 2rem;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    box-shadow:
        0 4px 12px rgba(16, 185, 129, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    animation: pulseInfo 3s ease-in-out infinite;
}

@keyframes pulseInfo {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 4px 12px rgba(16, 185, 129, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow:
            0 6px 16px rgba(16, 185, 129, 0.4),
            0 3px 6px rgba(0, 0, 0, 0.12);
    }
}

/* Accent line at bottom */
.hero .app-description .hero-subtext::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(16, 185, 129, 0.3) 30%,
            rgba(52, 211, 153, 0.3) 70%,
            transparent 100%);
    border-radius: 0 0 18px 18px;
}

.hero .app-description .hero-subtext strong {
    color: #059669;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 0 0.2rem;
}

/* Modern Hero Illustration */
.hero-img {
    position: relative;
    z-index: 2;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Organic gradient blob background */
.illustration-bg {
    position: absolute;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.15) 0%,
            rgba(52, 211, 153, 0.12) 40%,
            rgba(167, 243, 208, 0.1) 100%);
    border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
    animation: morphIllustration 15s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes morphIllustration {

    0%,
    100% {
        border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
        transform: rotate(0deg) scale(1);
    }

    33% {
        border-radius: 60% 40% 45% 55% / 55% 45% 55% 45%;
        transform: rotate(120deg) scale(1.05);
    }

    66% {
        border-radius: 50% 50% 55% 45% / 45% 55% 45% 55%;
        transform: rotate(240deg) scale(0.95);
    }
}

/* Decorative organic lines */
.illustration-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
}

.illustration-lines svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.line-path {
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    opacity: 0.6;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.line-1 {
    stroke: #10b981;
    animation: drawLine 3s ease-out forwards, floatLine 8s ease-in-out infinite 3s;
}

.line-2 {
    stroke: #34d399;
    animation: drawLine 3s ease-out 0.3s forwards, floatLine 8s ease-in-out infinite 3.3s;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes floatLine {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-10px) translateX(5px);
    }
}

/* Floating particles */
.illustration-bg::before,
.illustration-bg::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: floatParticle 4s ease-in-out infinite;
}

.illustration-bg::before {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.illustration-bg::after {
    bottom: 25%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.6;
    }
}

/* Floating UI cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    box-shadow:
        0 8px 24px rgba(16, 185, 129, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid rgba(16, 185, 129, 0.15);
    animation: floatCard 4s ease-in-out infinite;
    min-width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(16, 185, 129, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 15%;
    right: 12%;
    animation-delay: 1s;
}

.floating-card-3 {
    top: 45%;
    left: 5%;
    animation-delay: 2s;
}

.card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.floating-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(52, 211, 153, 0.2));
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: #059669;
    transition: stroke 0.3s ease;
}

.floating-card:hover .card-icon svg {
    stroke: #10b981;
}

.card-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
}

.floating-card:hover .card-content h4 {
    color: #059669;
}

.card-content p {
    font-size: 0.8rem;
    color: #064e3b;
    opacity: 0.8;
    margin: 0 0 0.6rem 0;
    line-height: 1.4;
}

.card-metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.75rem;
    color: #064e3b;
    opacity: 0.7;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.6rem;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 10px;
    animation: progressAnimation 2s ease-out forwards;
    position: relative;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }

    to {
        width: var(--progress, 70%);
    }
}

/* Toggle switch */
.toggle-switch {
    width: 44px;
    height: 24px;
    background: #10b981;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    margin-top: 0.6rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.floating-card:hover .toggle-switch {
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(16, 185, 129, 0.2);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    right: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.cta-hero {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cta-hero .register-hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #00a896 100%);
    color: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    padding: 1rem 2.5rem;
    width: auto;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow:
        0 4px 14px rgba(0, 109, 101, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.cta-hero .register-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-hero .register-hero:hover::before {
    left: 100%;
}

.cta-hero .register-hero:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(0, 109, 101, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-hero .learn-more-hero {
    background: #ffffff;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    padding: 1rem 2.5rem;
    width: auto;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cta-hero .learn-more-hero:hover {
    background: var(--color-secondary);
    color: #ffffff;
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow:
        0 4px 14px rgba(0, 109, 101, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-secondary);
    filter: drop-shadow(0 2px 4px rgba(0, 109, 101, 0.1));
}

.scroll-indicator:hover {
    opacity: 0.7;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 1376px) {
    html {
        font-size: 14px;
    }

    .hero {
        gap: 4rem;
    }

    .hero .app-description h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
        min-height: auto;
    }

    .hero::before {
        width: 600px;
        height: 600px;
    }

    .hero::after {
        width: 450px;
        height: 450px;
    }

    .hero .app-description {
        text-align: center;
        align-items: center;
        padding: 1rem;
    }

    .hero .app-description h2 {
        font-size: 2.2rem;
    }

    .hero .app-description p {
        max-width: 100%;
    }

    .cta-hero {
        justify-content: center;
    }

    .hero-img {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
        min-height: 400px;
    }

    .hero-illustration {
        height: 400px;
    }

    .illustration-bg {
        width: 350px;
        height: 350px;
    }

    .floating-card {
        min-width: 180px;
        padding: 1rem 1.2rem;
    }

    .floating-card-1 {
        top: 5%;
        right: 5%;
    }

    .floating-card-2 {
        bottom: 10%;
        right: 5%;
    }

    .floating-card-3 {
        top: 40%;
        left: 0%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .hero .app-description h2 {
        font-size: 1.8rem;
    }

    .hero .app-description p {
        font-size: 1rem;
    }

    .hero .app-description .hero-subtext {
        padding: 1.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .cta-hero {
        flex-direction: column;
        width: 100%;
    }

    .cta-hero .register-hero,
    .cta-hero .learn-more-hero {
        width: 100%;
        max-width: 320px;
    }

    .hero-img {
        min-height: 350px;
    }

    .hero-illustration {
        height: 350px;
    }

    .illustration-bg {
        width: 300px;
        height: 300px;
    }

    .floating-card {
        min-width: 160px;
        padding: 0.9rem 1rem;
    }

    .floating-card-3 {
        display: none;
    }

    .floating-card-1 {
        top: 8%;
        right: 2%;
    }

    .floating-card-2 {
        bottom: 12%;
        left: 2%;
        right: auto;
    }

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

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

    .card-icon {
        width: 38px;
        height: 38px;
    }

    .card-icon svg {
        width: 20px;
        height: 20px;
    }

    .metric-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 1rem;
    }

    .hero .app-description {
        padding: 0.5rem;
    }

    .hero .app-description h2 {
        font-size: 1.5rem;
    }

    .hero .app-description p {
        font-size: 0.95rem;
    }

    .hero-img {
        min-height: 300px;
    }

    .hero-illustration {
        height: 300px;
    }

    .illustration-bg {
        width: 250px;
        height: 250px;
    }

    .floating-card {
        min-width: 140px;
        padding: 0.8rem 0.9rem;
    }

    .floating-card-1 {
        top: 5%;
        right: 0;
    }

    .floating-card-2 {
        bottom: 8%;
        left: 0;
    }

    .card-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 0.5rem;
    }

    .card-icon svg {
        width: 18px;
        height: 18px;
    }

    .card-content h4 {
        font-size: 0.8rem;
    }

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

    .metric-value {
        font-size: 1.1rem;
    }

    .metric-label {
        font-size: 0.7rem;
    }

    .progress-bar {
        height: 5px;
    }

    .toggle-switch {
        width: 38px;
        height: 20px;
    }

    .toggle-switch::after {
        width: 16px;
        height: 16px;
    }
}

/* Show scroll indicator on larger screens */
@media (min-width: 768px) {
    .scroll-indicator {
        display: flex;
    }

    .hero {
        position: relative;
    }
}