/* Design System and Global Styles */
:root {
    --bg-dark: #07090e;
    --card-bg: rgba(17, 22, 34, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    
    --primary-cyan: #00f2fe;
    --primary-blue: #4facfe;
    --primary-purple: #9b51e0;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    --shadow-glow: rgba(0, 242, 254, 0.15);
    --shadow-purple: rgba(155, 81, 224, 0.15);
    
    --font-outfit: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-inter);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Ambient Background Animations */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

.glow-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-cyan) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    animation: floatGlow1 25s infinite alternate ease-in-out;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-purple) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation: floatGlow2 30s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 80px) scale(1.1); }
    100% { transform: translate(-40px, 120px) scale(0.9); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1.2); }
    50% { transform: translate(-80px, -60px) scale(0.9); }
    100% { transform: translate(40px, -100px) scale(1.1); }
}

/* Card Container & Entry Animation */
.card-container {
    width: 100%;
    max-width: 450px;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    animation: cardEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 
                0 0 40px rgba(0, 242, 254, 0.04), 
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Header & Banner styling */
.card-header {
    position: relative;
    height: 70px;
}

.header-banner {
    height: 100%;
    background: linear-gradient(135deg, #090e18 0%, #151e33 50%, #00f2fe 100%);
    background-size: 200% 200%;
    animation: gradientFlow 10s ease infinite alternate;
}

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

/* Visually Hidden Utility for SEO */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Brand Logo Container */
.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

.brand-logo {
    max-width: 250px;
    width: 85%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.12));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.brand-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 24px rgba(0, 242, 254, 0.25));
}

/* Card Body Content */
.card-body {
    padding: 32px 28px 24px;
    text-align: center;
}

.company-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-cyan);
    font-family: var(--font-outfit);
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 20px 0;
}

/* Actions Grid (Contact Cards) */
.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.grid-item {
    background: var(--glass-highlight);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.05), rgba(155, 81, 224, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), 0 0 12px var(--shadow-glow);
}

.grid-item:hover::before {
    opacity: 1;
}

.item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    transition: all 0.3s ease;
    z-index: 2;
}

.grid-item:hover .item-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.icon-whatsapp {
    color: #25d366;
    background: rgba(37, 211, 102, 0.08);
}
.grid-item:hover .icon-whatsapp {
    background: #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.icon-phone {
    color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.08);
}
.grid-item:hover .icon-phone {
    background: var(--primary-cyan);
    color: #07090e;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.icon-email {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.08);
}
.grid-item:hover .icon-email {
    background: #f1c40f;
    color: #07090e;
    box-shadow: 0 4px 14px rgba(241, 196, 15, 0.3);
}

.icon-web {
    color: var(--primary-purple);
    background: rgba(155, 81, 224, 0.08);
}
.grid-item:hover .icon-web {
    background: var(--primary-purple);
    box-shadow: 0 4px 14px rgba(155, 81, 224, 0.3);
}

.item-details {
    text-align: center;
    z-index: 2;
}

.label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 600;
}

.value {
    display: block;
    font-size: 12px;
    font-weight: 500;
    word-break: break-all;
}

/* Address Button Styling */
.address-button {
    background: var(--glass-highlight);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-main);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.address-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.03), rgba(155, 81, 224, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.address-button:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 12px var(--shadow-glow);
}

.address-button:hover::before {
    opacity: 1;
}

.address-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 2;
}

.address-button:hover .address-icon {
    color: var(--primary-cyan);
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.05);
    transform: scale(1.05);
}

.address-details {
    z-index: 2;
}

.address-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 600;
}

.address-value {
    font-style: normal;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-main);
}

/* Card Footer Actions */
.card-footer {
    padding: 0 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #07090e;
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    font-family: var(--font-outfit);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.15);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 242, 254, 0.35);
}

.btn-primary:active {
    transform: scale(0.98);
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-radius: 14px;
    padding: 12px 16px;
    font-family: var(--font-inter);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-secondary.active {
    background: rgba(155, 81, 224, 0.15);
    border-color: rgba(155, 81, 224, 0.3);
    color: #ffffff;
}

/* Expandable QR Code Container */
.qr-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    margin-top: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 400px;
    opacity: 1;
    overflow: hidden;
}

.qr-container.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-color: transparent;
    pointer-events: none;
}

.qr-info {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 16px;
}

.qr-wrapper {
    background: #ffffff;
    padding: 14px;
    border-radius: 14px;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.qr-wrapper:hover {
    transform: scale(1.03);
}

#qrcode img {
    margin: 0 auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .card-body {
        padding: 68px 18px 20px;
    }
    .card-footer {
        padding: 0 18px 20px;
    }
    .actions-grid {
        gap: 8px;
    }
    .grid-item {
        padding: 12px 8px;
    }
    .company-name {
        font-size: 21px;
    }
}
