/* ============================================
   HOMEPAGE STYLES - HerVenture Club
   Complete CSS with Fixed Card Alignment
============================================ */

/* ==================== MODERN HERO SECTION ==================== */

/* HERO BASE - Compact but balanced */
.modern-hero {
    background: linear-gradient(135deg, #0f0c1f 0%, var(--brand-dark) 50%, #2a1f12 100%);
    padding: 2rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center; /* ADDED: Center the content vertically */
}

/* ANIMATED BACKGROUND */
.hero-bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 136, 76, 0.1) 0%, transparent 70%);
    animation: float 18s infinite linear;
}

.circle-1 {
    width: 220px;
    height: 220px;
    top: -110px;
    left: -110px;
}

.circle-2 {
    width: 180px;
    height: 180px;
    bottom: -90px;
    right: 6%;
}

.circle-3 {
    width: 140px;
    height: 140px;
    top: 25%;
    right: -70px;
}

.circle-4 {
    width: 200px;
    height: 200px;
    bottom: 25%;
    left: -100px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(120deg); }
    66% { transform: translateY(12px) rotate(240deg); }
}

/* HERO CONTENT - CENTERED */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center; /* ADDED: Center grid items */
    width: 100%; /* ADDED: Ensure full width */
}

/* LEFT COLUMN - CENTERED CONTENT */
.hero-left {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Changed from default to start */
    width: 100%;
}

/* FLOATING BADGE - CENTERED */
.floating-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(155, 136, 76, 0.4);
    animation: pulse 2s infinite;
    align-self: flex-start; /* Changed from auto to flex-start for desktop */
}

.floating-badge span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand-gold);
}

@keyframes pulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 4px 12px rgba(155, 136, 76, 0.25); }
    50% { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(155, 136, 76, 0.35); }
}

/* MAIN TITLE - PROPER ALIGNMENT */
.hero-main-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    text-align: left; /* Explicitly set for desktop */
    width: 100%;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-gold) 0%, #ffd700 50%, var(--accent-beige) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    font-weight: 800;
}

.title-line {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.92em;
}

.brand-highlight {
    color: var(--brand-gold);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(155, 136, 76, 0.4);
}

/* DYNAMIC TAGLINE - LEFT ALIGNED */
.dynamic-tagline {
    margin-bottom: 1.25rem;
    width: 100%;
}

.tagline-container {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.15rem;
    justify-content: flex-start; /* Align to start for desktop */
}

.tagline-static {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.tagline-rotating {
    position: relative;
    height: 1.7rem;
    width: 170px;
    overflow: hidden;
}

.tagline-item {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--brand-gold);
    font-weight: 700;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1em;
}

.tagline-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* DESCRIPTION - LEFT ALIGNED */
.hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.75rem;
    max-width: 92%;
    text-align: left; /* Explicitly set for desktop */
}

/* CTA BUTTONS - LEFT ALIGNED */
.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align to start for desktop */
    width: 100%;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.primary-cta {
    background: linear-gradient(135deg, var(--brand-gold) 0%, #d4a373 100%);
    color: white;
    gap: 0.5rem;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 136, 76, 0.35);
}

.cta-icon {
    font-size: 1rem;
}

.cta-arrow {
    margin-left: 0.4rem;
    transition: transform 0.25s ease;
    font-size: 0.9rem;
}

.primary-cta:hover .cta-arrow {
    transform: translateX(3px);
}

.secondary-cta {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    gap: 0.4rem;
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-gold);
}

.play-icon {
    font-size: 0.8rem;
}

/* ==================== RIGHT COLUMN - FIXED CARD LAYOUT ==================== */

.hero-right {
    position: relative;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* ADDED: Ensure full width */
}

/* CARD STACK - GRID LAYOUT (NO OVERLAP) */
.card-stack {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    grid-template-areas: 
        "card1 card2"
        "card3 card4";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    padding: 1rem;
}

.floating-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.35s ease;
    width: 100%;
    max-width: 225px;
    height: 170px;
    position: relative;
    justify-self: center;
    align-self: center;
}

/* SPECIFIC CARD POSITIONS */
.card-1 {
    grid-area: card1;
    animation: float-card-1 7s infinite ease-in-out;
    justify-self: end;
}

.card-2 {
    grid-area: card2;
    animation: float-card-2 8s infinite ease-in-out;
    animation-delay: -2s;
    justify-self: start;
}

.card-3 {
    grid-area: card3;
    animation: float-card-3 7s infinite ease-in-out;
    animation-delay: -1s;
    justify-self: end;
}

.card-4 {
    grid-area: card4;
    animation: float-card-4 9s infinite ease-in-out;
    animation-delay: -3s;
    justify-self: start;
}

/* Card hover effects */
.floating-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(155, 136, 76, 0.6);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

/* CARD ANIMATIONS */
@keyframes float-card-1 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float-card-2 {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float-card-3 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

@keyframes float-card-4 {
    0%, 100% { transform: translateY(0) rotate(1.5deg); }
    50% { transform: translateY(-5px) rotate(-1.5deg); }
}

/* Card content */
.card-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    display: block;
    text-align: center;
}

.floating-card h4 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.floating-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

.card-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--brand-gold);
    color: var(--brand-dark);
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(155, 136, 76, 0.3);
}

/* ==================== FEATURES SHOWCASE ==================== */

.features-showcase {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #f9f6f1 0%, #f5f0e6 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.highlight {
    color: var(--brand-gold);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.feature-card {
    background: white;
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(66, 49, 28, 0.1);
    border-color: var(--brand-gold);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.feature-icon-bg {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--brand-gold) 0%, #d4a373 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.feature-badge {
    background: var(--accent-coral);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--brand-dark);
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-list i {
    color: var(--brand-gold);
    font-size: 0.8rem;
}

.cta-banner {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #2a1f12 100%);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.banner-content h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.banner-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.5;
}

.banner-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--brand-gold) 0%, #d4a373 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.banner-button:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(155, 136, 76, 0.4);
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1100px) {
    .hero-main-title {
        font-size: 2.4rem;
    }
    
    .hero-content {
        gap: 1.75rem;
    }
    
    .hero-right {
        height: 320px;
    }
    
    .card-stack {
        max-width: 450px;
        gap: 1.25rem;
    }
    
    .floating-card {
        max-width: 180px;
        height: 160px;
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .floating-card h4 {
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .floating-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    /* INCREASED HERO HEIGHT FOR MOBILE */
    .modern-hero {
        padding: 3.5rem 0 5rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center; /* Ensure center on mobile */
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        align-items: center; /* Center items in grid */
    }
    
    .hero-left {
        order: 1;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center everything on mobile */
        justify-content: center;
        padding: 0;
    }
    
    /* CENTER ALL LEFT COLUMN CONTENT ON MOBILE */
    .floating-badge {
        align-self: center; /* Center on mobile */
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .hero-main-title {
        font-size: 2.2rem;
        text-align: center; /* Center on mobile */
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center on mobile */
        margin-bottom: 1rem;
    }
    
    .dynamic-tagline {
        width: 100%;
        display: flex;
        justify-content: center; /* Center on mobile */
    }
    
    .tagline-container {
        justify-content: center; /* Center on mobile */
        flex-wrap: wrap;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center; /* Center on mobile */
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        justify-content: center; /* Center on mobile */
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 400px;
        margin-bottom: 2rem;
    }
    
    /* INCREASED RIGHT COLUMN HEIGHT FOR MOBILE */
    .hero-right {
        order: 2;
        height: 350px;
        width: 100%;
        margin-top: 0;
    }
    
    /* INCREASED CARD WIDTH FOR MOBILE */
    .card-stack {
        max-width: 520px;
        gap: 1rem;
        margin: 0 auto;
    }
    
    .floating-card {
        max-width: 240px;
        height: 180px;
        padding: 1.4rem;
    }
    
    .card-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .floating-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
        white-space: nowrap;
    }
    
    .floating-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
        
    @keyframes float-card-1 {
        0%, 100% { transform: translateY(0) rotate(-1deg); }
        50% { transform: translateY(-6px) rotate(1deg); }
    }
    
    @keyframes float-card-2 {
        0%, 100% { transform: translateY(0) rotate(0.5deg); }
        50% { transform: translateY(-5px) rotate(-0.5deg); }
    }
    
    @keyframes float-card-3 {
        0%, 100% { transform: translateY(0) rotate(-0.5deg); }
        50% { transform: translateY(-4px) rotate(0.5deg); }
    }
    
    @keyframes float-card-4 {
        0%, 100% { transform: translateY(0) rotate(1deg); }
        50% { transform: translateY(-3px) rotate(-1deg); }
    }
    
    .section-intro {
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        text-align: center;
    }
    
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        text-align: center;
    }
    
    .feature-header {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-list {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 576px) {
    /* FURTHER INCREASED HERO HEIGHT FOR SMALL MOBILE */
    .modern-hero {
        padding: 3rem 0 4.5rem;
        min-height: 95vh;
        display: flex;
        align-items: center;
        justify-content: center; /* Ensure center on small mobile */
    }
    
    .hero-content {
        gap: 1.5rem;
        align-items: center; /* Center items in grid */
    }
    
    .hero-main-title {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
        text-align: center; /* Ensure center on small mobile */
    }
    
    .gradient-text,
    .title-line,
    .brand-highlight {
        display: inline;
    }
    
    .tagline-container {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
        text-align: center;
        margin-bottom: 0.8rem;
    }
    
    .tagline-rotating {
        height: 1.5rem;
        width: auto;
        text-align: center;
    }
    
    .hero-desc {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 1.8rem;
        text-align: center; /* Ensure center on small mobile */
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        max-width: 280px;
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }
    
    .hero-right {
        height: 320px;
        margin-top: 0;
    }
    
    /* INCREASED CARD WIDTH FOR SMALL MOBILE */
    .card-stack {
        max-width: 420px;
        gap: 0.8rem;
    }
    
    .floating-card {
        max-width: 195px;
        height: 170px;
        padding: 1.2rem;
    }
    
    .card-icon {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }
    
    .floating-card h4 {
        font-size: 1.05rem;
        margin-bottom: 0.3rem;
        white-space: nowrap;
    }
    
    .floating-card p {
        font-size: 0.88rem;
        line-height: 1.3;
    }
        
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon-bg {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin: 0 auto;
    }
    
    .feature-badge {
        margin: 0 auto;
        display: inline-block;
    }
}

@media (max-width: 400px) {
    .modern-hero {
        padding: 2.5rem 0 4rem;
        min-height: 90vh;
        display: flex;
        align-items: center;
        justify-content: center; /* Ensure center on very small mobile */
    }
    
    .hero-main-title {
        font-size: 1.7rem;
        text-align: center; /* Ensure center on very small mobile */
    }
    
    .hero-right {
        height: 300px;
    }
    
    /* INCREASED CARD WIDTH FOR VERY SMALL MOBILE */
    .card-stack {
        max-width: 380px;
        gap: 0.7rem;
    }
    
    .floating-card {
        max-width: 175px;
        height: 160px;
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 1.6rem;
    }
    
    .floating-card h4 {
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .floating-card p {
        font-size: 0.85rem;
    }
}

/* For very wide screens */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 1300px;
    }
    
    .hero-main-title {
        font-size: 2.8rem;
    }
    
    .card-stack {
        max-width: 550px;
        gap: 2rem;
    }
    
    .floating-card {
        max-width: 240px;
        height: 190px;
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.2rem;
    }
    
    .floating-card h4 {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .floating-card p {
        font-size: 0.9rem;
    }
    
    .container {
        max-width: 1300px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
}

/* Smooth animations for all interactive elements */
.floating-card, .cta-button, .feature-card, .banner-button {
    will-change: transform;
    backface-visibility: hidden;
}

/* Ensure proper stacking context */
.modern-hero, .features-showcase {
    isolation: isolate;
}

/* ==================== ACCESSIBILITY IMPROVEMENTS ==================== */

@media (prefers-reduced-motion: reduce) {
    .bg-circle,
    .floating-card,
    .floating-element,
    .ring-progress,
    .tagline-item,
    .floating-badge,
    .cta-button,
    .feature-card,
    .banner-button {
        animation: none !important;
        transition: none !important;
    }
    
    .tagline-item.active {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles for accessibility */
.cta-button:focus,
.banner-button:focus,
.floating-card:focus {
    outline: 3px solid var(--brand-gold);
    outline-offset: 3px;
}

/* Print styles */
@media print {
    .modern-hero {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    
    .floating-badge,
    .hero-bg-elements,
    .floating-element,
    .stats-ring {
        display: none;
    }
    
    .cta-button,
    .banner-button {
        border: 1px solid black;
        background: none !important;
        color: black !important;
    }
}