@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure body doesn't cut off content */
body {
    overflow-x: visible;
    overflow-y: auto;
}

.senna-card-menu-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0D353E;
    min-height: 100vh;
    overflow: visible;
    perspective: 1200px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0;
}

/* Subtle gradient background */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(27, 80, 89, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 60%, rgba(22, 65, 71, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 90%, rgba(108, 255, 196, 0.03) 0%, transparent 50%),
        #0D353E;
    animation: subtleShift 30s ease-in-out infinite;
}

@keyframes subtleShift {
    0%, 100% {
        background-position: 0% 50%, 100% 50%, 50% 100%;
    }
    50% {
        background-position: 100% 50%, 0% 50%, 50% 0%;
    }
}

.container {
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    height: 100vh;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 20px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
}

.header {
    text-align: center;
    animation: fadeInDown 1s ease-out;
    position: relative;
    z-index: 10;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #1b5059, #6CFFC4, #1b5059);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-pulse 3s ease-in-out infinite;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 30px rgba(108, 255, 196, 0.3));
}

@keyframes gradient-pulse {
    0%, 100% { 
        background-position: 0% center;
        filter: drop-shadow(0 0 30px rgba(108, 255, 196, 0.3));
    }
    50% { 
        background-position: 200% center;
        filter: drop-shadow(0 0 40px rgba(108, 255, 196, 0.5));
    }
}

.header p {
    color: #6CFFC4;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
    text-transform: uppercase;
}

.cards-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    min-height: 500px;
    overflow: visible;
    padding: 80px 150px;
    margin: 0 auto;
}

.card-wrapper {
    position: absolute;
    width: 300px;
    height: 380px;
    cursor: pointer;
    transform-origin: center;
    transition: all 0s;
    pointer-events: auto;
}

.card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 80, 89, 0.95) 0%, rgba(22, 65, 71, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 255, 196, 0.3);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(108, 255, 196, 0.1),
        inset 0 0 60px rgba(108, 255, 196, 0.05);
    transition: none;
}

/* Card positioning - V formation close together */
.card-wrapper:nth-child(1) {
    z-index: 2;
    transform: translateX(-160px) translateY(40px) translateZ(-50px) rotateY(20deg) rotateZ(-3deg) scale(0.9);
    opacity: 0.85;
}

.card-wrapper:nth-child(2) {
    z-index: 3;
    transform: translateX(-80px) translateY(20px) translateZ(-25px) rotateY(10deg) rotateZ(-1deg) scale(0.95);
    opacity: 0.9;
}

.card-wrapper:nth-child(3) {
    z-index: 5;
    transform: translateX(0) translateY(0) translateZ(0px) rotateY(0deg) scale(1);
    opacity: 1;
}

.card-wrapper:nth-child(4) {
    z-index: 3;
    transform: translateX(80px) translateY(20px) translateZ(-25px) rotateY(-10deg) rotateZ(1deg) scale(0.95);
    opacity: 0.9;
}

.card-wrapper:nth-child(5) {
    z-index: 2;
    transform: translateX(160px) translateY(40px) translateZ(-50px) rotateY(-20deg) rotateZ(3deg) scale(0.9);
    opacity: 0.85;
}

/* Hover effects */
.card-wrapper {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* Subtle wow factor hover - float up with glow */
.card-wrapper:hover {
    z-index: 10 !important;
}

.card-wrapper:nth-child(1):hover {
    transform: translateX(-160px) translateY(-10px) translateZ(50px) rotateY(0deg) rotateZ(0deg) scale(1.02);
    opacity: 1;
}

.card-wrapper:nth-child(2):hover {
    transform: translateX(-80px) translateY(-10px) translateZ(50px) rotateY(0deg) rotateZ(0deg) scale(1.02);
    opacity: 1;
}

.card-wrapper:nth-child(3):hover {
    transform: translateX(0) translateY(-15px) translateZ(60px) rotateY(0deg) scale(1.05);
    opacity: 1;
}

.card-wrapper:nth-child(4):hover {
    transform: translateX(80px) translateY(-10px) translateZ(50px) rotateY(0deg) rotateZ(0deg) scale(1.02);
    opacity: 1;
}

.card-wrapper:nth-child(5):hover {
    transform: translateX(160px) translateY(-10px) translateZ(50px) rotateY(0deg) rotateZ(0deg) scale(1.02);
    opacity: 1;
}

/* Enhanced card glow on hover */
.card-wrapper:hover .card {
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(108, 255, 196, 0.4),
        0 0 120px rgba(108, 255, 196, 0.2),
        inset 0 0 60px rgba(108, 255, 196, 0.08);
    border-color: rgba(108, 255, 196, 0.8);
    background: linear-gradient(135deg, rgba(27, 80, 89, 0.98) 0%, rgba(22, 65, 71, 0.98) 100%);
}

/* Card content */
.card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    position: relative;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(108, 255, 196, 0.4));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-wrapper:hover .card-icon svg {
    filter: drop-shadow(0 0 30px rgba(108, 255, 196, 0.7));
    transform: translateY(-3px) scale(1.1);
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    color: #6CFFC4;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(108, 255, 196, 0.5);
    transition: all 0.4s ease;
}

.card-wrapper:hover .card-title {
    transform: translateY(-2px);
    text-shadow: 0 0 30px rgba(108, 255, 196, 0.8);
    letter-spacing: 0.5px;
}

.card-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
    transition: none;
}

.card-wrapper:hover .card-description {
    color: rgba(255, 255, 255, 0.95);
}

.card-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(108, 255, 196, 0.2);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #6CFFC4;
    text-shadow: 0 0 10px rgba(108, 255, 196, 0.5);
    transition: none;
}

.card-wrapper:hover .stat-value {
    text-shadow: 0 0 15px rgba(108, 255, 196, 0.7);
    transform: scale(1.05);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: none;
}

.card-wrapper:hover .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.progress-ring {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 4;
}

.progress-ring .progress-bg {
    stroke: rgba(108, 255, 196, 0.2);
}

.progress-ring .progress-fill {
    stroke: #6CFFC4;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px rgba(108, 255, 196, 0.6));
}

.card-wrapper:hover .progress-ring .progress-fill {
    filter: drop-shadow(0 0 15px rgba(108, 255, 196, 0.9));
    animation: pulseFill 1.5s ease-in-out infinite;
}

@keyframes pulseFill {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(108, 255, 196, 0.9));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(108, 255, 196, 1));
    }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    color: #6CFFC4;
}

/* Card background patterns */
.card-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    opacity: 0.03;
    transform: translate(30%, -30%);
}

/* Navigation arrows */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(90deg, #6CFFC4 0%, #4DFFB3 100%);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none;
    z-index: 20;
    box-shadow: 0 5px 20px rgba(108, 255, 196, 0.4);
}

.nav-button:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 40px rgba(108, 255, 196, 0.6);
    background: linear-gradient(90deg, #7DFFD0 0%, #5EFFBF 100%);
}

.nav-button svg {
    stroke: #0D353E;
    stroke-width: 3;
}

.nav-button.prev {
    left: 50px;
}

.nav-button.next {
    right: 50px;
}

.nav-button svg {
    width: 24px;
    height: 24px;
}

/* Button container */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    width: 100%;
    text-align: center;
    margin-top: -20px;
}

/* Launch button */
.launch-button {
    padding: 15px 50px;
    background: linear-gradient(90deg, #6CFFC4 0%, #4DFFB3 100%);
    color: #0D353E;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: none;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    box-shadow: 
        0 10px 30px rgba(108, 255, 196, 0.3),
        0 0 60px rgba(108, 255, 196, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 30;
    display: inline-block;
    position: relative;
    margin: 0;
}

.launch-button:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(108, 255, 196, 0.4),
        0 0 80px rgba(108, 255, 196, 0.3);
    background: linear-gradient(90deg, #7DFFD0 0%, #5EFFBF 100%);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Card entrance animation */
.card-wrapper {
    animation: cardEntrance 0.4s ease-out backwards;
}

.card-wrapper:nth-child(1) { animation-delay: 0.05s; }
.card-wrapper:nth-child(2) { animation-delay: 0.1s; }
.card-wrapper:nth-child(3) { animation-delay: 0.15s; }
.card-wrapper:nth-child(4) { animation-delay: 0.2s; }
.card-wrapper:nth-child(5) { animation-delay: 0.25s; }

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    to {
        opacity: 1;
    }
}

/* Welcome Message Styles */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, rgba(27, 80, 89, 0.3) 0%, rgba(22, 65, 71, 0.3) 100%);
    border: 1px solid rgba(108, 255, 196, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-out;
    max-width: fit-content;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6CFFC4;
    box-shadow: 0 0 20px rgba(108, 255, 196, 0.4);
    flex-shrink: 0;
    animation: avatarGlow 3s ease-in-out infinite;
    display: block;
}

@keyframes avatarGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(108, 255, 196, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(108, 255, 196, 0.6);
    }
}

.welcome-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.4;
}

.typing-container {
    display: inline-block;
    text-align: left;
}

.typing-text {
    overflow: hidden;
    border-right: 2px solid #6CFFC4;
    white-space: nowrap;
    margin: 0 auto;
    animation: 
        typing 4s steps(40, end),
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #6CFFC4; }
}

.typing-text {
    display: inline;
}

.senna-name {
    color: #6CFFC4;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(108, 255, 196, 0.5);
}

/* Performance optimizations for Chrome */
.card-wrapper {
    will-change: transform, opacity;
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.mesh-gradient {
    will-change: transform;
    -webkit-transform: translateZ(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .welcome-section {
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
        margin: 1rem auto 2rem;
    }
    
    .welcome-avatar {
        width: 40px;
        height: 40px;
    }

    .cards-container {
        min-height: 350px;
        padding: 40px 20px;
    }

    .card-wrapper {
        width: 270px;
        height: 340px;
    }
    
    .card {
        padding: 25px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .card-description {
        font-size: 14px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 11px;
    }

    .nav-button {
        display: none;
    }

    /* Show only 3 cards on mobile */
    .card-wrapper:nth-child(1) {
        transform: translateX(-100px) translateZ(-60px) rotateY(15deg) scale(0.85);
        opacity: 0.7;
    }
    
    .card-wrapper:nth-child(2) {
        transform: translateX(0) translateZ(0px) rotateY(0deg) scale(0.95);
        opacity: 1;
        z-index: 3;
    }
    
    .card-wrapper:nth-child(3) {
        transform: translateX(100px) translateZ(-60px) rotateY(-15deg) scale(0.85);
        opacity: 0.7;
    }
    
    .card-wrapper:nth-child(4),
    .card-wrapper:nth-child(5) {
        display: none;
    }
    
    .launch-button {
        font-size: 16px;
        padding: 12px 40px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .welcome-section {
        transform: scale(0.9);
    }
    
    .cards-container {
        min-height: 250px;
    }
    
    .card-wrapper {
        width: 250px;
        height: 320px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-description {
        font-size: 13px;
    }
    
    /* Stack cards more vertically on very small screens */
    .card-wrapper:nth-child(1) {
        transform: translateX(-25%) translateZ(-40px) rotateY(12deg) scale(0.85);
    }
    
    .card-wrapper:nth-child(3) {
        transform: translateX(25%) translateZ(-40px) rotateY(-12deg) scale(0.85);
    }
    
    .launch-button {
        font-size: 14px;
        padding: 10px 30px;
    }
}