:root {
    --bg-color: #dee8e0;
    --wallet-color: #1b3323;
    --wallet-stitch: #2d4d38;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.main-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column; /* Stack header, wallet and tip */
    justify-content: center;
    align-items: center;
    gap: 20px; /* Reduced gap since header is separate */
}

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.brand-logo-img {
    width: 32px; /* Small size */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b3323;
    letter-spacing: -0.5px;
}

.interaction-tip {
    background-color: rgba(27, 51, 35, 0.1); /* Subtle dark green tint */
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1b3323;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    border: 1px solid rgba(27, 51, 35, 0.1);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.interaction-tip i {
    font-size: 1.1rem;
}

.wallet-container {
    position: relative;
    width: 340px; /* Slightly wider for better card proportions */
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* Wallet Back Wall */
.wallet-back {
    position: absolute;
    bottom: 0;
    width: 320px;
    height: 300px;
    background-color: #122419;
    border-radius: 30px 30px 40px 40px;
    z-index: 0;
}

/* Cards Stack Container */
.cards-stack {
    position: absolute;
    bottom: 150px;
    width: 300px;
    height: 190px;
    z-index: 1;
}

.card {
    position: absolute;
    left: 0;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    cursor: pointer; /* Interaction cursor */
    
    /* Border Depth */
    border-top: 1px solid rgba(255,255,255,0.3);
    border-left: 1px solid rgba(255,255,255,0.1);
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    transform-origin: center bottom;
    transition: box-shadow 0.3s ease;
}

/* 
  Card Visual Styles
*/

/* Instagram */
.card-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

/* Facebook */
.card-facebook {
    background: linear-gradient(135deg, #1877F2, #0d5bb5);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

/* Behance */
.card-behance {
    background: linear-gradient(135deg, #1769ff, #003ecb);
    box-shadow: 0 4px 15px rgba(23, 105, 255, 0.3);
}

/* Dribbble */
.card-dribbble {
    background: linear-gradient(135deg, #ea4c89, #c32aa3);
    box-shadow: 0 4px 15px rgba(234, 76, 137, 0.3);
}

/* WhatsApp */
.card-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Website */
.card-website {
    background: linear-gradient(135deg, #333333, #000000);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Contact */
.card-contact {
    background: linear-gradient(135deg, #636e72, #2d3436);
    color: #dfe6e9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


/* Card Inner Elements (Credit Card UI) */
.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-name {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.wifi-symbol {
    transform: rotate(90deg);
    font-size: 1.2rem;
    opacity: 0.8;
}

.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #e0dcb3 0%, #d4af37 100%); /* Gold chip */
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
/* Chip details */
.card-chip::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 1px;
    background: rgba(0,0,0,0.2);
}
.card-chip::after {
    content: '';
    position: absolute;
    left: 33%; top: 0; width: 1px; height: 100%;
    background: rgba(0,0,0,0.2);
    box-shadow: 14px 0 0 rgba(0,0,0,0.2); /* Second vertical line */
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-number {
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 1px;
}

.brand-icon {
    font-size: 2rem;
}


/* Wallet Pocket */
.wallet-pocket {
    position: relative;
    width: 330px;
    height: 240px;
    background-color: var(--wallet-color);
    border-radius: 40px;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    border: 6px solid var(--wallet-color);
    
    /* Top curve mask */
    mask-image: radial-gradient(circle at 50% 0, transparent 45px, black 46px);
    -webkit-mask-image: radial-gradient(circle at 50% 0, transparent 45px, black 46px);
}

/* Stitching */
.wallet-pocket::after {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 2px dashed var(--wallet-stitch);
    border-radius: 34px;
    pointer-events: none;
}

.pocket-content {
    text-align: center;
    margin-top: 25px; /* Offset for the cutout */
    z-index: 11;
}

.total-balance {
    font-size: 2.2rem;
    font-weight: 700;
}

.balance-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 1px;
}

.pocket-icon {
    margin-top: 15px;
    font-size: 1.2rem;
    opacity: 0.5;
}

/* Mobile Interactions */
@media (hover: hover) {
    .card:hover {
        /* Handled by GSAP, but good fallback */
        z-index: 100;
    }
}
