/* Ethos Page - Green Glass Hover Cards */

/* Hero Section with green glass background */
.ethos-hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 180px 20px 100px 20px;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(160, 255, 90, 0.12),
            rgba(160, 255, 90, 0.12) 1px,
            transparent 1px,
            transparent 8px
        ),
        linear-gradient(
            to bottom,
            rgba(120, 200, 120, 0.10),
            rgba(0, 0, 0, 0.15)
        ),
        #111612;
    position: relative;
}

/* Vignette / depth fade for lime energy */
.ethos-hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.35) 70%,
            rgba(0, 0, 0, 0.65) 100%
        );
    pointer-events: none;
    z-index: 0;
}

/* Animated sheen for movement (very subtle) */
.ethos-hero-section::before {
    content: "";
    position: absolute;
    inset: -50%;
    background:
        linear-gradient(
            120deg,
            transparent 45%,
            rgba(180, 255, 120, 0.08) 50%,
            transparent 55%
        );
    animation: limeSheen 18s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes limeSheen {
    from { transform: translateX(-30%) translateY(-30%); }
    to   { transform: translateX(30%) translateY(30%); }
}

/* Ensure hero content is above background effects */
.ethos-hero-section > * {
    position: relative;
    z-index: 1;
}

.ethos-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #036666;
    margin-bottom: 24px;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.ethos-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #e6f4ef;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Cards Section */
.ethos-cards-section {
    padding: 120px 20px;
    background: #0a0c0d;
    position: relative;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hover Card Base */
.hover-card {
    background-color: rgba(255, 255, 255, 0.015);
    box-shadow:
        0px 3px 6px rgba(0, 0, 0, 0.05),
        0px 8px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(120, 220, 160, 0.1);
    padding: 56px 24px 24px 24px;
    border-radius: 18px;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background-color: rgba(20, 40, 35, 0.15);
}

/* Card Icon */
.card-icon {
    z-index: 2;
    position: relative;
    display: table;
    padding: 8px;
    margin-bottom: 16px;
}

.card-icon::after {
    content: '';
    position: absolute;
    inset: 4.5px;
    border-radius: 50%;
    background-color: rgba(120, 220, 160, 0.08);
    border: 1px solid rgba(120, 220, 160, 0.12);
    backdrop-filter: blur(2px);
    transition: background-color 0.25s, border-color 0.25s;
}

.card-icon svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 28px;
    height: 28px;
    transform: translateZ(0);
    color: #80EF80;
    transition: color 0.25s;
}

/* Card Content */
.hover-card h4 {
    z-index: 2;
    position: relative;
    margin: 0 0 12px 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #e6f4ef;
}

.hover-card p {
    z-index: 2;
    position: relative;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #D4D4D8;
}

/* Shine Effect */
.card-shine {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.card-shine::before {
    content: '';
    width: 150%;
    padding-bottom: 150%;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    bottom: 55%;
    filter: blur(35px);
    opacity: 0.1;
    transform: translateX(-50%);
    background-image: conic-gradient(
        from 205deg at 50% 50%,
        rgba(120, 220, 140, 0) 0deg,
        #1dd1a1 25deg,
        rgba(52, 211, 153, 0.18) 295deg,
        rgba(120, 220, 140, 0) 360deg
    );
}

/* Background Animation */
.card-background {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
    mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
}

.card-tiles {
    opacity: 0;
    transition: opacity 0.25s;
}

.tile {
    position: absolute;
    background-color: rgba(120, 220, 140, 0.05);
    animation-duration: 8s;
    animation-iteration-count: infinite;
    opacity: 0;
}

.tile-4, .tile-6, .tile-10 { animation-delay: -2s; }
.tile-3, .tile-5, .tile-8 { animation-delay: -4s; }
.tile-2, .tile-9 { animation-delay: -6s; }

.tile-1 { top: 0; left: 0; height: 10%; width: 22.5%; }
.tile-2 { top: 0; left: 22.5%; height: 10%; width: 27.5%; }
.tile-3 { top: 0; left: 50%; height: 10%; width: 27.5%; }
.tile-4 { top: 0; left: 77.5%; height: 10%; width: 22.5%; }
.tile-5 { top: 10%; left: 0; height: 22.5%; width: 22.5%; }
.tile-6 { top: 10%; left: 22.5%; height: 22.5%; width: 27.5%; }
.tile-7 { top: 10%; left: 50%; height: 22.5%; width: 27.5%; }
.tile-8 { top: 10%; left: 77.5%; height: 22.5%; width: 22.5%; }
.tile-9 { top: 32.5%; left: 50%; height: 22.5%; width: 27.5%; }
.tile-10 { top: 32.5%; left: 77.5%; height: 22.5%; width: 22.5%; }

@keyframes tile {
    0%, 12.5%, 100% { opacity: 1; }
    25%, 82.5% { opacity: 0; }
}

/* Card Lines */
.card-line {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s;
}

.card-line::before,
.card-line::after {
    content: '';
    position: absolute;
    background-color: rgba(120, 220, 160, 0.2);
    transition: transform 0.35s;
}

.card-line::before {
    left: 0;
    right: 0;
    height: 1px;
    transform-origin: 0 50%;
    transform: scaleX(0);
}

.card-line::after {
    top: 0;
    bottom: 0;
    width: 1px;
    transform-origin: 50% 0;
    transform: scaleY(0);
}

.line-1::before { top: 10%; }
.line-1::after { left: 22.5%; }
.line-1::before, .line-1::after { transition-delay: 0.3s; }

.line-2::before { top: 32.5%; }
.line-2::after { left: 50%; }
.line-2::before, .line-2::after { transition-delay: 0.15s; }

.line-3::before { top: 55%; }
.line-3::after { right: 22.5%; }

/* Hover State */
.hover-card:hover {
    box-shadow:
        0px 5px 10px rgba(0, 0, 0, 0.04),
        0px 15px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(120, 220, 160, 0.2);
}

.hover-card:hover .card-icon::after {
    background-color: rgba(120, 220, 160, 0.1);
    border-color: rgba(120, 220, 160, 0.2);
}

.hover-card:hover .card-icon svg {
    color: #1dd1a1;
}

.hover-card:hover .card-shine {
    opacity: 1;
}

.hover-card:hover .card-tiles {
    opacity: 1;
    transition-delay: 0.25s;
}

.hover-card:hover .tile {
    animation-name: tile;
}

.hover-card:hover .card-line {
    opacity: 1;
    transition-duration: 0.15s;
}

.hover-card:hover .card-line::before {
    transform: scaleX(1);
}

.hover-card:hover .card-line::after {
    transform: scaleY(1);
}

.hover-card:hover .line-1::before,
.hover-card:hover .line-1::after {
    transition-delay: 0s;
}

.hover-card:hover .line-2::before,
.hover-card:hover .line-2::after {
    transition-delay: 0.15s;
}

.hover-card:hover .line-3::before,
.hover-card:hover .line-3::after {
    transition-delay: 0.3s;
}

/* Featured Cards (last two) */
.hover-card-featured {
    border: 1px solid rgba(29, 209, 161, 0.2);
}

.hover-card-featured:hover {
    box-shadow:
        0px 5px 10px rgba(0, 0, 0, 0.04),
        0px 15px 25px rgba(29, 209, 161, 0.2),
        0 0 0 1px rgba(29, 209, 161, 0.3);
}

/* CTA Section */
.ethos-cta-section {
    padding: 120px 20px;
    text-align: center;
    background: #0a0c0d;
}

.ethos-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #036666;
    margin-bottom: 20px;
}

.ethos-cta-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #D4D4D8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ethos-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ethos-hero-section {
        padding: 140px 20px 80px 20px;
    }

    .ethos-cards-section {
        padding: 80px 20px;
    }

    .ethos-cta-section {
        padding: 80px 20px;
    }
}
