:root {
    --bg-dark: #07070a;
    --brand-fuchsia: #ce03a8;
    --silver-light: #FFFFFF;
    --silver-base: #E0E0E0;
    --silver-dark: #A9A9A9;
}

/* Magic canvas: floats above everything, never blocks clicks */
#magic-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;   /* clicks pass through */
    z-index: 9999;          /* above everything */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(-45deg, #07070a, #14020f, #07070a, #110210);
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;          /* center on desktop */
    padding: 2.5rem 1.2rem;
    font-family: 'Outfit', sans-serif;
    color: var(--silver-base);
    overflow-x: hidden;
    overflow-y: visible;          /* never clip vertical scroll */
}

@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================
   VCARD CONTAINER
   ============================================================ */
.vcard-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    /* Ensures card is scrollable when taller than viewport on mobile */
    margin: auto;
}

/* ============================================================
   THE CARD — "overflow: hidden" is critical: clips effects to card shape
   ============================================================ */
.fashion-card {
    background: rgba(12, 5, 14, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(206, 3, 168, 0.07);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    /* NO overflow:hidden here — that was clipping content on mobile */
    position: relative;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   EFFECTS LAYER — positioned absolute inside the card
   z-index: 0 so all content sits ABOVE it
   ============================================================ */
.card-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0; /* behind all card content */
    overflow: hidden;         /* clips particles to the card shape */
    border-radius: 28px;      /* must match .fashion-card border-radius */
    /* Make the effects layer non-interactive and non-scrollable */
    touch-action: none;
}

/* Ambient colour orbs INSIDE the card */
.card-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    mix-blend-mode: screen;
    animation: cardGlowFloat ease-in-out infinite alternate;
}

.card-glow-1 {
    width: 70%; height: 70%;
    top: -30%; left: -20%;
    background: radial-gradient(circle, rgba(206, 3, 168, 0.55) 0%, transparent 65%);
    animation-duration: 10s;
    animation-delay: 0s;
}

.card-glow-2 {
    width: 80%; height: 80%;
    bottom: -40%; right: -25%;
    background: radial-gradient(circle, rgba(140, 0, 200, 0.35) 0%, transparent 65%);
    animation-duration: 14s;
    animation-delay: -4s;
}

.card-glow-3 {
    width: 60%; height: 60%;
    top: 20%; left: 20%;
    background: radial-gradient(circle, rgba(200, 180, 255, 0.12) 0%, transparent 70%);
    animation-duration: 18s;
    animation-delay: -8s;
}

@keyframes cardGlowFloat {
    0%   { transform: translate(0px, 0px) scale(1); }
    50%  { transform: translate(30px, -20px) scale(1.15); }
    100% { transform: translate(-20px, 25px) scale(0.9); }
}

/* Floating sparks / particles inside the card */
.card-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.spark {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0;
    animation: sparkRise linear infinite;
    bottom: -10px;
}

@keyframes sparkRise {
    0%   { transform: translateY(0) translateX(0) scale(0.5); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 0.7; }
    100% { transform: translateY(-120%) translateX(10px) scale(1.8); opacity: 0; }
}

/* White silver sparks */
.spark:nth-child(1)  { left: 10%; animation-duration: 7s;  animation-delay: 0s;    background: #fff; box-shadow: 0 0 8px #fff, 0 0 15px var(--brand-fuchsia); width: 4px; height: 4px; }
.spark:nth-child(2)  { left: 22%; animation-duration: 9s;  animation-delay: 1.5s;  background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.8); }
.spark:nth-child(3)  { left: 38%; animation-duration: 6s;  animation-delay: 3s;    background: var(--brand-fuchsia); box-shadow: 0 0 12px var(--brand-fuchsia); width: 4px; height: 4px; }
.spark:nth-child(4)  { left: 55%; animation-duration: 11s; animation-delay: 0.5s;  background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.9); }
.spark:nth-child(5)  { left: 70%; animation-duration: 8s;  animation-delay: 2s;    background: var(--brand-fuchsia); box-shadow: 0 0 15px var(--brand-fuchsia), 0 0 25px rgba(206,3,168,0.5); width: 5px; height: 5px; }
.spark:nth-child(6)  { left: 85%; animation-duration: 10s; animation-delay: 4s;    background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.8); }
.spark:nth-child(7)  { left: 15%; animation-duration: 13s; animation-delay: 6s;    background: #ddd; box-shadow: 0 0 6px rgba(255,255,255,0.6); width: 2px; height: 2px; }
.spark:nth-child(8)  { left: 30%; animation-duration: 8s;  animation-delay: 2.5s;  background: var(--brand-fuchsia); box-shadow: 0 0 12px var(--brand-fuchsia); }
.spark:nth-child(9)  { left: 48%; animation-duration: 12s; animation-delay: 7s;    background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.9); width: 4px; height: 4px; }
.spark:nth-child(10) { left: 63%; animation-duration: 7s;  animation-delay: 1s;    background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.7); width: 2px; height: 2px; }
.spark:nth-child(11) { left: 78%; animation-duration: 14s; animation-delay: 5s;    background: var(--brand-fuchsia); box-shadow: 0 0 12px var(--brand-fuchsia); }
.spark:nth-child(12) { left: 92%; animation-duration: 9s;  animation-delay: 3.5s;  background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.8); }
.spark:nth-child(13) { left: 5%;  animation-duration: 11s; animation-delay: 8s;    background: var(--brand-fuchsia); box-shadow: 0 0 15px var(--brand-fuchsia); width: 3px; height: 3px; }
.spark:nth-child(14) { left: 42%; animation-duration: 6s;  animation-delay: 4.5s;  background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.9); width: 5px; height: 5px; }
.spark:nth-child(15) { left: 58%; animation-duration: 15s; animation-delay: 9s;    background: var(--brand-fuchsia); box-shadow: 0 0 12px var(--brand-fuchsia), 0 0 22px rgba(206,3,168,0.4); }
.spark:nth-child(16) { left: 74%; animation-duration: 8s;  animation-delay: 2s;    background: #ddd; box-shadow: 0 0 6px rgba(255,255,255,0.6); width: 2px; height: 2px; }
.spark:nth-child(17) { left: 88%; animation-duration: 10s; animation-delay: 6.5s;  background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.8); }
.spark:nth-child(18) { left: 35%; animation-duration: 12s; animation-delay: 0s;    background: var(--brand-fuchsia); box-shadow: 0 0 12px var(--brand-fuchsia); width: 4px; height: 4px; }

/* ============================================================
   All card sections must sit ABOVE the effects layer (z-index > 0)
   ============================================================ */
.card-header,
.action-buttons,
.card-body,
.card-footer {
    position: relative;
    z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.card-header {
    text-align: center;
    margin-bottom: 1.4rem;
}

.brand-logo-wrapper {
    margin: 0 auto;
    max-width: 300px;
    position: relative;
    padding: 0;
}

.brand-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 10px 25px rgba(206, 3, 168, 0.5)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.brand-logo-wrapper:hover .brand-logo {
    transform: scale(1.06);
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--silver-dark), var(--silver-light), var(--silver-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmerText 5s linear infinite;
}

@keyframes shimmerText {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.decorative-line {
    height: 1.5px;
    width: 60px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--brand-fuchsia), transparent);
    box-shadow: 0 0 10px rgba(206, 3, 168, 0.7);
}

.niche {
    font-size: 0.8rem;
    color: var(--silver-dark);
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 1rem;
}

/* ============================================================
   ACTION BUTTONS
   ============================================================ */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.action-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver-light);
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-fuchsia), #8a006e);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.action-btn i { position: relative; z-index: 1; transition: transform 0.4s ease; }

.action-btn:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(206, 3, 168, 0.5);
}
.action-btn:hover::before { opacity: 1; }
.action-btn:hover i { transform: scale(1.15); }

/* ============================================================
   CONTACT LIST
   ============================================================ */
.card-body { margin-bottom: 3rem; }

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.3rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0; height: 100%; width: 3px;
    background: var(--brand-fuchsia);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-list li:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.contact-list li:hover::before { opacity: 1; }

.icon-wrap {
    font-size: 1.4rem;
    color: var(--brand-fuchsia);
    flex-shrink: 0;
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(206, 3, 168, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-list li:hover .icon-wrap {
    background: var(--brand-fuchsia);
    color: #fff;
    box-shadow: 0 0 15px rgba(206, 3, 168, 0.5);
}

.info-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-grow: 1;
}

.label {
    font-family: 'Playfair Display', serif;
    font-size: 0.88rem;
    color: var(--silver-dark);
    font-style: italic;
    letter-spacing: 0.5px;
}

.value {
    font-size: 1rem;
    color: var(--silver-light);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
    font-weight: 300;
    word-break: break-word;
}

a.value { position: relative; display: inline-block; width: fit-content; }

a.value::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1.5px;
    bottom: -2px;
    left: 0;
    background-color: var(--brand-fuchsia);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

a.value:hover { color: #fff; }
a.value:hover::after { transform: scaleX(1); transform-origin: bottom left; }

/* ============================================================
   SAVE BUTTON
   ============================================================ */
.card-footer { display: flex; justify-content: center; }

.save-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.4rem 2.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 50%, #A0A0A0 100%);
    color: #000;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
}

.save-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0%   { left: -100%; }
    20%  { left: 200%; }
    100% { left: 200%; }
}

.btn-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
}

.save-btn i { font-size: 1.3rem; transition: transform 0.3s ease; }
.save-btn:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.6), inset 0 2px 10px rgba(255,255,255,1); }
.save-btn:hover i { transform: translateX(6px); }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 480px) {
    body {
        padding: 1.5rem 0.8rem;
        /* On mobile let body be as tall as its content, never clip */
        min-height: 100vh;
        height: auto;
    }

    .fashion-card {
        padding: 1.8rem 1.1rem;
        border-radius: 20px;
        /* card-effects must match this */
    }

    /* Sync effects layer border-radius on mobile */
    .card-effects { border-radius: 20px; }

    .brand-logo-wrapper { max-width: 200px; }

    .title { font-size: 1.3rem; letter-spacing: 1px; }

    .action-buttons { gap: 0.7rem; margin-bottom: 2.2rem; }
    .action-btn { width: 48px; height: 48px; font-size: 1.2rem; }

    .card-body { margin-bottom: 2rem; }
    .contact-list { gap: 0.8rem; }
    .contact-list li { padding: 0.9rem 1rem; gap: 0.9rem; }
    .icon-wrap { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 10px; }
    .label { font-size: 0.82rem; }
    .value { font-size: 0.93rem; }

    .save-btn { padding: 1.1rem 1.5rem; }
    .btn-text { font-size: 0.88rem; letter-spacing: 1.5px; }

    /* Language switcher compact on mobile */
    .lang-switcher { bottom: auto; top: 1rem; right: 1rem; }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
    position: absolute;
    top: 1.4rem;
    right: 1.6rem;
    z-index: 20; /* above card-effects, below magic canvas */
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: var(--silver-light);
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.lang-current:hover {
    background: rgba(206, 3, 168, 0.2);
    border-color: rgba(206, 3, 168, 0.4);
    box-shadow: 0 0 12px rgba(206, 3, 168, 0.3);
}

.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { font-size: 0.75rem; font-weight: 600; }

.lang-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--silver-dark);
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(18, 8, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(206, 3, 168, 0.15);
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--silver-base);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-option:hover {
    background: rgba(206, 3, 168, 0.15);
    color: #fff;
}

.lang-option.active {
    background: rgba(206, 3, 168, 0.2);
    color: #fff;
    font-weight: 500;
    border-left: 2px solid var(--brand-fuchsia);
    padding-left: 10px;
}

/* On very small screens keep it readable */
@media (max-width: 360px) {
    .lang-current { padding: 5px 8px; font-size: 0.72rem; }
    .lang-flag { font-size: 0.9rem; }
}
