/* =========================================================
   CardNFC — Home Page Styles
   pages/home.css
   ========================================================= */

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    position: relative;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(48px, 6vw, 92px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ---------------------------------------------------------
   3-D Visualizer Scene
   --------------------------------------------------------- */
.scene-container {
    margin-top: 80px;
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    position: relative;
}

/* NFC Card */
.nfc-card-3d {
    width: 200px;
    height: 320px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 14px;
    position: absolute;
    transform-style: preserve-3d;
    transform: translateX(-160px) rotateY(30deg) rotateX(15deg);
    box-shadow:
        -30px 30px 40px rgba(0, 0, 0, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    animation: floatCard 6s ease-in-out infinite;
    z-index: 2;
}

.nfc-card-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.08) 25%, transparent 30%);
    border-radius: 14px;
    z-index: 3;
}

.card-chip {
    width: 32px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    opacity: 0.8;
}

.card-logo {
    font-weight: 800;
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    opacity: 0.5;
}

/* Phone */
.phone-3d {
    width: 250px;
    height: 500px;
    background: #000;
    border-radius: 36px;
    position: absolute;
    transform-style: preserve-3d;
    transform: translateX(160px) rotateY(-20deg) rotateX(10deg);
    border: 2px solid #333;
    box-shadow:
        30px 30px 50px rgba(0, 0, 0, 0.9),
        inset 0 0 0 4px #000,
        inset 0 0 0 5px #222;
    padding: 12px;
    animation: floatPhone 7s ease-in-out infinite;
    z-index: 1;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #111111;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

/* Profile mockup inside phone */
.p-header {
    height: 110px;
    background: linear-gradient(135deg, #2a2a2a, #111);
}

.p-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #444;
    border: 4px solid #111111;
    margin: -32px auto 12px;
}

.p-name {
    width: 110px;
    height: 14px;
    background: #fff;
    margin: 0 auto 8px;
    border-radius: 4px;
}

.p-title {
    width: 70px;
    height: 8px;
    background: #666;
    margin: 0 auto 24px;
    border-radius: 4px;
}

.p-btn {
    width: 80%;
    height: 40px;
    background: #fff;
    margin: 0 auto 16px;
    border-radius: 20px;
}

.p-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
}

.p-box {
    height: 45px;
    background: #222;
    border-radius: 10px;
}

/* Connection Waves */
.connection-waves {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.wave {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.wave:nth-child(1) { width: 20px;  height: 20px;  animation-delay: 0s; }
.wave:nth-child(2) { width: 50px;  height: 50px;  animation-delay: 0.6s; }
.wave:nth-child(3) { width: 80px;  height: 80px;  animation-delay: 1.2s; }

/* ---------------------------------------------------------
   Scene Keyframes
   --------------------------------------------------------- */
@keyframes floatCard {
    0%, 100% { transform: translateX(-160px) translateY(0) rotateY(30deg) rotateX(15deg); }
    50%       { transform: translateX(-160px) translateY(-20px) rotateY(35deg) rotateX(20deg); }
}

@keyframes floatPhone {
    0%, 100% { transform: translateX(160px) translateY(0) rotateY(-20deg) rotateX(10deg); }
    50%       { transform: translateX(160px) translateY(-15px) rotateY(-15deg) rotateX(5deg); }
}

@keyframes ripple {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* ---------------------------------------------------------
   Steps Section
   --------------------------------------------------------- */
.steps-section {
    padding: 160px 0;
    position: relative;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -2px;
}

.premium-steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.step-card-premium {
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 40px 32px;
    position: relative;
    z-index: 1;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.step-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

@media (min-width: 768px) {
    .step-card-premium:hover {
        transform: translateY(-10px);
        background: var(--surface-hover);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
}

.step-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(65, 105, 225, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 32px;
    box-shadow: inset 0 0 20px rgba(65, 105, 225, 0.2);
    position: relative;
}

.step-badge {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: rgba(65, 105, 225, 1);
    margin-bottom: 12px;
}

.step-card-premium h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.step-card-premium p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   Feature Bento Grid
   --------------------------------------------------------- */
.bento-section { padding: 80px 0 160px; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 24px;
}

.bento-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.bento-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(0.99);
}

.bento-item h3 {
    font-size: 24px;
    margin-bottom: 12px;
    z-index: 2;
    font-weight: 600;
}

.bento-item p {
    color: var(--text-muted);
    z-index: 2;
    line-height: 1.6;
}

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide  { grid-column: span 2; grid-row: span 1; }

.bento-mockup-btn {
    width: 100%;
    height: 64px;
    background: #fff;
    border-radius: 20px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.bento-mockup-btn:hover { transform: scale(1.02); }

.bento-socials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: auto;
}

.social-pill {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    font-weight: 500;
}

/* Bento inner mockup boxes */
.bento-mockup-box,
.bento-analytics-box {
    margin-top: auto;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.bento-mockup-box {
    padding: 20px;
    text-align: center;
}

.bento-mockup-icon {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.bento-mockup-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.bento-analytics-box {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    padding: 16px;
}

.analytics-bar {
    flex: 1;
    background: var(--border);
    border-radius: 4px;
}

.analytics-bar.active {
    background: var(--text-main);
    box-shadow: 0 0 15px var(--glow);
}

.analytics-bar.h-40 { height: 40%; }
.analytics-bar.h-70 { height: 70%; }
.analytics-bar.h-80 { height: 80%; }
.analytics-bar.h-100 { height: 100%; }

/* ---------------------------------------------------------
   Cards Showcase
   --------------------------------------------------------- */
.cards-showcase {
    padding: 80px 0 160px;
    text-align: center;
}

.cards-flex {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.premium-card {
    width: 240px;
    height: 380px;
    border-radius: 18px;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
}

.premium-card:hover {
    transform: translateY(-20px) scale(1.05) rotateY(10deg);
}

.card-matte  { background: #111; border: 1px solid #222; }
.card-metal  { background: linear-gradient(135deg, #e5e5e5, #a3a3a3, #e5e5e5); border: 1px solid #fff; }
.card-acrylic {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-gold { background: linear-gradient(135deg, #FFDF00, #D4AF37, #996515); border: 1px solid #FFDF00; }

.card-label {
    margin-top: 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ---------------------------------------------------------
   Marquee
   --------------------------------------------------------- */
.marquee-container {
    padding: 80px 0;
    overflow: hidden;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.marquee-item {
    display: inline-block;
    font-size: 36px;
    font-weight: 700;
    margin: 0 40px;
    color: var(--border);
    transition: color 0.4s ease;
    letter-spacing: -1px;
}

.marquee-item:hover { color: var(--text-main); }

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------------------------------------------------------
   Steps responsive layout
   --------------------------------------------------------- */
@media (min-width: 768px) {
    .premium-steps-container {
        flex-direction: row;
        gap: 32px;
    }

    .step-card-premium { flex: 1; }

    .step-card-premium:nth-child(2) { transform: translateY(20px); }
}

/* ---------------------------------------------------------
   Responsive breakpoints
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-large,
    .bento-wide { grid-column: span 1; }

    .bento-item { height: 320px; }

    .scene-container { height: 400px; margin-top: 40px; }

    .nfc-card-3d { transform: translateX(-120px) scale(0.8) rotateY(30deg) rotateX(15deg); }
    .phone-3d    { transform: translateX(120px) scale(0.8) rotateY(-20deg) rotateX(10deg); }

    @keyframes floatCard {
        0%, 100% { transform: translateX(-120px) translateY(0) scale(0.8) rotateY(30deg) rotateX(15deg); }
        50%       { transform: translateX(-120px) translateY(-16px) scale(0.8) rotateY(35deg) rotateX(20deg); }
    }

    @keyframes floatPhone {
        0%, 100% { transform: translateX(120px) translateY(0) scale(0.8) rotateY(-20deg) rotateX(10deg); }
        50%       { transform: translateX(120px) translateY(-12px) scale(0.8) rotateY(-15deg) rotateX(5deg); }
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons .btn { width: 100%; }

    .scene-container { height: 320px; margin-top: 40px; }

    .nfc-card-3d { transform: translateX(-70px) scale(0.6) rotateY(30deg) rotateX(15deg); z-index: 3; }
    .phone-3d    { transform: translateX(70px) scale(0.6) rotateY(-20deg) rotateX(10deg); z-index: 1; }

    @keyframes floatCard {
        0%, 100% { transform: translateX(-70px) translateY(0) scale(0.6) rotateY(30deg) rotateX(15deg); }
        50%       { transform: translateX(-70px) translateY(-12px) scale(0.6) rotateY(35deg) rotateX(20deg); }
    }

    @keyframes floatPhone {
        0%, 100% { transform: translateX(70px) translateY(0) scale(0.6) rotateY(-20deg) rotateX(10deg); }
        50%       { transform: translateX(70px) translateY(-9px) scale(0.6) rotateY(-15deg) rotateX(5deg); }
    }

    .connection-waves { transform: scale(0.8); z-index: 0; }

    .bento-item { height: auto; min-height: 280px; padding: 32px; }

    .bento-mockup-btn { height: 54px; font-size: 16px; margin-top: 32px !important; }
}

@media (max-width: 480px) {
    .scene-container { height: 260px; margin-top: 20px; }

    .nfc-card-3d { transform: translateX(-40px) scale(0.45) rotateY(30deg) rotateX(15deg); }
    .phone-3d    { transform: translateX(40px) scale(0.45) rotateY(-20deg) rotateX(10deg); }

    @keyframes floatCard {
        0%, 100% { transform: translateX(-40px) translateY(0) scale(0.45) rotateY(30deg) rotateX(15deg); }
        50%       { transform: translateX(-40px) translateY(-10px) scale(0.45) rotateY(35deg) rotateX(20deg); }
    }

    @keyframes floatPhone {
        0%, 100% { transform: translateX(40px) translateY(0) scale(0.45) rotateY(-20deg) rotateX(10deg); }
        50%       { transform: translateX(40px) translateY(-7px) scale(0.45) rotateY(-15deg) rotateX(5deg); }
    }

    .connection-waves { transform: scale(0.6); z-index: 0; }

    .bento-item { padding: 24px; }

    .bento-socials { grid-template-columns: 1fr; }
}

/* =========================================================
   Light Theme Overrides — Home Page
   ========================================================= */

/* Hero badge pill */
[data-theme="light"] .badge-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.09);
}

/* Connection waves — dark rings on white */
[data-theme="light"] .wave {
    border-color: rgba(0, 0, 0, 0.15);
}

/* 3D scene shadows soften in light */
[data-theme="light"] .nfc-card-3d {
    box-shadow:
        -30px 30px 40px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}


/* Step cards — white glass */
[data-theme="light"] .step-card-premium {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .step-card-premium::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.07), transparent);
}

@media (min-width: 768px) {
    [data-theme="light"] .step-card-premium:hover {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.12);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
    }
}

/* Bento hover border */
[data-theme="light"] .bento-item:hover {
    border-color: rgba(0, 0, 0, 0.14);
}

/* Bento "Save Contact" button — dark on light bg */
[data-theme="light"] .bento-mockup-btn {
    background: #0a0a0a;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Social pills */
[data-theme="light"] .social-pill {
    background: #e8e8ee;
    border-color: #d1d1da;
    color: var(--text-main);
}

/* Card showcase shadows */
[data-theme="light"] .premium-card {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18);
}

/* The Clear Acrylic card MUST remain identical to its dark theme version.
   Because it's transparent, it needs a frosted dark background in light mode
   so it continues to look like a dark card on the white page. */
[data-theme="light"] .card-acrylic {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}



/* Marquee text — lighter muted tone so items still look "faded" */
[data-theme="light"] .marquee-item {
    color: #c0c0cc;
}
[data-theme="light"] .marquee-item:hover {
    color: var(--text-main);
}
