/* CSS Variable Definitions for Custom Themes */
:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(16, 16, 20, 0.75);
    --border-glass: rgba(255, 255, 255, 0.06);
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Harmonious Golds */
    --gold-primary: #d4af37;
    --gold-secondary: #b8860b;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --gold-gradient: linear-gradient(135deg, #ffe082 0%, #f5b041 30%, #b7950b 70%, #7d6608 100%);
    --gold-text-grad: linear-gradient(135deg, #fff7d6 0%, #f7d070 50%, #c4962d 100%);
    
    /* Social Media HSL Glow Colors */
    --instagram-glow: hsla(340, 75%, 54%, 0.45);
    --instagram-color: #e1306c;
    --tiktok-glow: hsla(180, 100%, 50%, 0.35);
    --tiktok-color: #00f2fe;
    --whatsapp-glow: hsla(142, 70%, 45%, 0.4);
    --whatsapp-color: #25d366;
    --facebook-glow: hsla(214, 89%, 52%, 0.4);
    --facebook-color: #1877f2;
    --youtube-glow: hsla(0, 100%, 50%, 0.4);
    --youtube-color: #ff0000;
    --email-glow: hsla(43, 69%, 53%, 0.35);
    --email-color: #d4af37;
}

/* General Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* Removes grey selection flash on mobile tap */
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: #f3f3f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    padding: 20px 15px;
}

/* Premium Carbon Fiber Background Layer */
.carbon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    background: 
        linear-gradient(45deg, #111 25%, transparent 25%) -10px 0,
        linear-gradient(-45deg, #111 25%, transparent 25%) -10px 0,
        linear-gradient(45deg, transparent 75%, #111 75%),
        linear-gradient(-45deg, transparent 75%, #111 75%);
    background-size: 20px 20px;
    background-color: #08080a;
}

/* Ambient Radial Glow behind the central content */
.ambient-glow {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(24, 24, 30, 0) 70%);
    z-index: -2;
    pointer-events: none;
    filter: blur(40px);
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { opacity: 0.7; transform: translate(-50%, -20%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -20%) scale(1.1); }
}

/* Main Container (Styled for Mobile viewports first) */
.container {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 30px 24px;
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.65), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: containerIntro 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes containerIntro {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Glowing top accent border */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

/* Header & Brand Identity */
.header {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.logo-wrapper {
    width: 85px;
    height: 85px;
    margin: 0 auto 12px;
    position: relative;
}

.huntter-logo {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-wrapper:hover .huntter-logo {
    transform: scale(1.08) rotate(2deg);
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    background: var(--gold-text-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: #a0a0ab;
    text-transform: uppercase;
}

/* Medallion NFC Interactive Ring */
.medallion-container {
    position: relative;
    width: 175px;
    height: 175px;
    margin: 15px auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.medallion-ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, 0.35);
    animation: rotateRing 25s linear infinite;
    pointer-events: none;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.medallion {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a2a30 0%, #111114 70%, #050505 100%);
    border: 4px solid #1c1c20;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.15),
        inset 0 -2px 5px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.medallion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.medallion-inner {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    background: radial-gradient(circle, #1a1a1f 0%, #0d0d0f 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 14px 10px;
    text-align: center;
}

.medallion-tech {
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--gold-primary);
    text-shadow: 0 0 4px rgba(212, 175, 55, 0.4);
}

.medallion-logo {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.medallion-name {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    color: #e4e4e7;
    margin-top: 2px;
}

/* Decorative QR bits at the bottom of the medallion */
.qr-deco {
    display: flex;
    gap: 4px;
    margin-top: -2px;
}

.qr-box {
    width: 6px;
    height: 6px;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 1px;
}

/* Pulse / Interactive Effects for Medallion */
.medallion:hover {
    transform: scale(1.03);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.7),
        inset 0 2px 5px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(212, 175, 55, 0.25);
}

.medallion.tapped {
    animation: tapEffect 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes tapEffect {
    0% { transform: scale(1); }
    30% { transform: scale(0.93); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.5); }
    100% { transform: scale(1); }
}

.nfc-pulse {
    position: absolute;
    width: 175px;
    height: 175px;
    z-index: -1;
    pointer-events: none;
}

.nfc-pulse span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.25);
    opacity: 0;
    animation: nfcWaves 3s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.nfc-pulse span:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes nfcWaves {
    0% { transform: scale(0.8); opacity: 0; }
    30% { opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Connection Status indicator */
.connection-status {
    display: inline-flex;
    align-items: center;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
    gap: 8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold-primary);
    animation: statusPulse 1.8s infinite alternate ease-in-out;
}

@keyframes statusPulse {
    0% { transform: scale(0.85); opacity: 0.4; box-shadow: 0 0 2px var(--gold-primary); }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px var(--gold-primary); }
}

/* Quick Row (Matches visual circles in user image) */
.social-quick-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 25px;
}

.quick-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: #e4e4e7;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    text-decoration: none;
}

.quick-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Hover colors & glow for quick buttons */
.quick-btn:hover {
    transform: translateY(-4px);
    color: #fff;
}

.quick-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    box-shadow: 0 0 15px var(--instagram-glow);
    border-color: rgba(225, 48, 108, 0.4);
}

.quick-btn.tiktok:hover {
    background: #000;
    box-shadow: 0 0 15px var(--tiktok-glow);
    color: #fff;
    border-color: rgba(0, 242, 254, 0.4);
}

.quick-btn.tiktok::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.quick-btn.tiktok:hover::before {
    border-color: #fe0979;
    transform: scale(1.05);
}

.quick-btn.whatsapp:hover {
    background: #25d366;
    box-shadow: 0 0 15px var(--whatsapp-glow);
    border-color: rgba(37, 211, 102, 0.4);
}

.quick-btn.facebook:hover {
    background: #1877f2;
    box-shadow: 0 0 15px var(--facebook-glow);
    border-color: rgba(24, 119, 242, 0.4);
}

.quick-btn.youtube:hover {
    background: #ff0000;
    box-shadow: 0 0 15px var(--youtube-glow);
    border-color: rgba(255, 0, 0, 0.4);
}

.quick-btn:hover svg {
    transform: scale(1.15);
}

/* Detailed Vertical Link List */
.links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-item {
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.6s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Custom individual glows per row on hover */
.link-item:hover:has(.instagram-glow) {
    box-shadow: 0 8px 24px rgba(225, 48, 108, 0.12);
    border-color: rgba(225, 48, 108, 0.25);
}
.link-item:hover:has(.tiktok-glow) {
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.25);
}
.link-item:hover:has(.whatsapp-glow) {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.25);
}
.link-item:hover:has(.facebook-glow) {
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.25);
}
.link-item:hover:has(.youtube-glow) {
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.12);
    border-color: rgba(255, 0, 0, 0.25);
}
.link-item:hover:has(.email-glow) {
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.35);
}

/* Icon backgrounds in links */
.link-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.link-icon svg {
    width: 20px;
    height: 20px;
}

.instagram-glow {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}
.tiktok-glow {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}
.whatsapp-glow {
    background: #25d366;
}
.facebook-glow {
    background: #1877f2;
}
.youtube-glow {
    background: #ff0000;
}
.email-glow {
    background: var(--gold-gradient);
}

.link-item:hover .link-icon {
    transform: scale(1.08);
}

/* Link Titles and Descriptions */
.link-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.link-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f3f3f5;
}

.link-description {
    font-size: 0.75rem;
    color: #a0a0ab;
    font-weight: 300;
}

.link-arrow {
    color: #52525b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.link-arrow svg {
    width: 100%;
    height: 100%;
}

.link-item:hover .link-arrow {
    transform: translateX(4px);
    color: var(--gold-primary);
}

/* Active touch ripple */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Footer Section */
.footer {
    margin-top: 30px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.nfc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #a0a0ab;
}

.nfc-icon {
    width: 12px;
    height: 12px;
    color: #a0a0ab;
}

.copyright {
    font-size: 0.65rem;
    color: #52525b;
    letter-spacing: 0.02em;
}

/* Desktop optimization */
@media (min-width: 480px) {
    body {
        align-items: center;
    }
    .container {
        border-radius: 36px;
        padding: 35px 30px;
    }
}
