﻿/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(84, 227, 70, 0.05) 0%, transparent 60%);
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text-content {
    max-width: 800px;
    margin-bottom: 3rem;
}

.greeting {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.divider {
    color: var(--text-secondary);
    margin: 0 10px;
    opacity: 0.5;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    z-index: 15;
    position: relative;
}

.accent-text {
    color: var(--accent-primary);
}

.arrow-icon {
    font-size: 3.5rem;
    vertical-align: top;
    margin-left: -5px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    z-index: 15;
    position: relative;
}

/* Stat Bar */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.hero-stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
    .hero-stats {
        gap: 1rem;
    }
    .stat-num {
        font-size: 1.1rem;
    }
    .hero-stat-divider {
        height: 20px;
    }
}

/* Image & Decorative Section */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Wavy Text Banner */
.wavy-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; /* wider than viewport to wrap fully */
    height: auto;
    z-index: 5; /* Behind the card */
    pointer-events: none;
}

.wavy-text-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.wavy-text {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 600;
    fill: transparent;
    stroke: var(--accent-primary);
    stroke-width: 1.5px;
    letter-spacing: 2px;
}

/* The stacked cards */
.image-card-wrapper {
    position: relative;
    z-index: 10;
    width: 340px;
    height: 420px;
}

.image-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.back-card {
    background-color: #EEE;
    transform: rotate(-10deg) translateY(10px) translateX(-20px);
    z-index: 8;
}

.main-card {
    background-color: var(--accent-primary);
    z-index: 12;
    overflow: visible; /* To allow badge to break out */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Normally you would set background-image to the portrait here */
    background-image: 
        radial-gradient(circle at bottom, rgba(0,0,0,0.4) 0%, transparent 60%);
    /* Replace with actual image url */
    background-size: cover;
    background-position: center;
}

.portrait-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* Circular explore badge */
.explore-badge {
    position: absolute;
    bottom: 20px;
    right: -40px; /* offset to the right as in ref */
    width: 110px;
    height: 110px;
    background-color: #111;
    border-radius: 50%;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.05); /* very subtle border */
}

/* White center circle */
.explore-badge::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #FFF;
    border-radius: 50%;
    z-index: 1;
}

.circular-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 15s linear infinite;
    z-index: 2;
}

.circular-text text {
    font-size: 11px;
    fill: #AAA; /* lighter grey for text */
    letter-spacing: 2px;
    font-family: var(--font-body);
    font-weight: 600;
}

.arrow-down {
    color: #111; /* dark arrow on white background */
    font-size: 1.2rem;
    position: relative;
    z-index: 3;
    font-weight: bold;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 4rem;
    }
    .wavy-text-container {
        width: 150%;
    }
}

@media (max-width: 600px) { /* Mobile specific fixes */
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-text-content {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .greeting {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 3.2rem;
        letter-spacing: -1px;
    }

    .arrow-icon {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    /* Scaling down the image cards */
    .hero-image-container {
        height: 380px;
    }

    .image-card-wrapper {
        width: 290px;
        height: 350px;
    }

    .wavy-text-container {
        display: none;
    }

    /* Scale Explore Badge */
    .explore-badge {
        bottom: 5px;
        right: -15px;
        width: 85px;
        height: 85px;
    }
    
    .explore-badge::before {
        width: 32px;
        height: 32px;
    }

    .circular-text text {
        font-size: 10px;
    }
    
    .arrow-down {
        font-size: 1rem;
    }
}
