/* -------------------------------------------------------------
 * NOXA - The Excellence in Loss Adjusting and Risk Surveying
 * Premium Digital Business Card Style System - LIGHT MODE Edition
 * ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-card-hover: rgba(255, 255, 255, 0.85);
    --border-card: rgba(15, 23, 42, 0.06);
    --border-card-hover: rgba(15, 23, 42, 0.12);

    --primary: #0F172A;
    --accent: #1E293B;
    --accent-gold: #1E3A8A;
    --accent-gold-rgb: 30, 58, 138;
    --accent-blue: #0284C7;
    --accent-blue-rgb: 2, 132, 199;

    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;

    /* Effects */
    --glow-color: rgba(2, 132, 199, 0.08);
    --shadow-premium: 0 20px 40px -10px rgba(15, 23, 42, 0.06);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Animated Backdrop */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, #F8FAFC 0%, #E2E8F0 100%);
}

.ambient-glow-1 {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%);
    filter: blur(40px);
    animation: floatGlow 18s infinite alternate ease-in-out;
}

.ambient-glow-2 {
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 75%);
    filter: blur(50px);
    animation: floatGlow 22s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0 {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(80px, -60px) scale(1.15);
    }

    100% {
        transform: translate(-40px, 40px) scale(0.9);
    }
}

/* Main Container Layout */
main {
    width: 100%;
    max-width: 500px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
    z-index: 1;
}

/* Premium Card Wrapper */
.card-container {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 28px 24px;
    width: 100%;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 2;
}

.card-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.75), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.card-container:hover::after {
    opacity: 1;
}

.card-container:hover {
    transform: translateY(-4px);
    border-color: var(--border-card-hover);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08),
        0 0 40px -10px rgba(2, 132, 199, 0.04);
}

/* Header Area: Logo and Title */
.card-header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-wrapper {
    position: relative;
    margin-bottom: 16px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.logo-wrapper:hover {
    transform: scale(1.02);
}

.logo-img {
    display: block;
    max-width: 210px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.08));
}

.company-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
    letter-spacing: 0.02em;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
}

/* Content: Details Grid & Lists */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

#contact-heading {
    margin-top: 8px; /* Adds extra breathing space below the address box */
}

/* Location Card Component */
.contact-item-group {
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid rgba(15, 23, 42, 0.03);
    border-radius: 16px;
    padding: 12px 16px;
    transition: var(--transition-smooth);
}

.contact-item-group:hover {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.06);
}

.address-block {
    display: flex;
    gap: 16px;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.12);
    color: var(--accent-blue);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.contact-item-group:hover .icon-container {
    background: rgba(2, 132, 199, 0.12);
    transform: scale(1.05);
}

.address-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.address-line {
    font-size: 14.5px;
    color: var(--text-primary);
    line-height: 1.4;
}

.address-country {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    margin-top: 2px;
}

/* Interactive Action Buttons Lists */
.actions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Base button for actions */
.interactive-action {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid rgba(15, 23, 42, 0.03);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.interactive-action:hover {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.06);
    transform: translateX(4px);
}

.interactive-action .icon-container {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 14px;
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15, 23, 42, 0.04);
    color: var(--text-secondary);
}

.interactive-action:hover .icon-container {
    color: var(--text-primary);
}

/* Call Button Styling */
.interactive-action.action-call .icon-container {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.interactive-action.action-call:hover .icon-container {
    background: rgba(16, 185, 129, 0.12);
}

/* Email Button Styling */
.interactive-action.action-email .icon-container {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.15);
    color: #D97706;
}

.interactive-action.action-email:hover .icon-container {
    background: rgba(245, 158, 11, 0.12);
}

/* Secondary meta/labels inside actions */
.action-label-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.action-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 2px;
}

.action-title {
    font-size: 14.5px;
    font-weight: 500;
}

/* Copy Trigger Button */
.copy-trigger-btn {
    opacity: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: var(--transition-smooth);
    z-index: 10;
}

.interactive-action:hover .copy-trigger-btn {
    opacity: 1;
}

.copy-trigger-btn:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.04);
}

/* Primary High-Action Button: Add to Contacts / Map */
.primary-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.btn-primary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 10px;
    border: none;
}

.btn-add-contact {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #2563EB 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px -2px rgba(var(--accent-gold-rgb), 0.35);
}

.btn-add-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -2px rgba(var(--accent-gold-rgb), 0.5);
}

.btn-directions {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
}

.btn-directions:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

/* Footer Section */
footer {
    margin-top: 14px;
    text-align: center;
    width: 100%;
}

.footer-text {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-blue);
}

/* Micro-interaction: Toast notification for Copy success */
.toast-notification {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translate(-50%, 100px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(2, 132, 199, 0.2);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    z-index: 100;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast-notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.toast-icon {
    color: #10B981;
}

/* Screen reader class */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Animations on Entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive adjustments and Mobile/Tablet friendliness */
@media (max-width: 768px) {
    /* Always show the copy button on touch screens since there is no mouse hover */
    .copy-trigger-btn {
        opacity: 1;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 12px 8px;
    }

    .card-container {
        padding: 20px 14px;
        border-radius: 20px;
    }

    .logo-img {
        max-width: 170px;
    }

    .company-tagline {
        font-size: 13px;
    }

    .card-content {
        gap: 10px;
        margin-bottom: 14px;
    }

    .contact-item-group {
        padding: 10px 12px;
    }

    .address-line {
        font-size: 13.5px;
    }

    .address-block {
        gap: 10px;
    }

    .icon-container {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .actions-grid {
        gap: 6px;
    }

    .interactive-action {
        padding: 8px 10px;
        border-radius: 10px;
    }

    .interactive-action .icon-container {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        margin-right: 10px;
    }

    .action-title {
        font-size: 13.5px;
    }

    .action-subtitle {
        font-size: 9.5px;
    }

    .primary-actions-row {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 4px;
    }

    .btn-primary-action {
        padding: 10px 12px;
        font-size: 13.5px;
        border-radius: 10px;
    }
}