:root {
    --primary-blue: #1B1850;
    --secondary-gold: #886841;
    --accent-red: #b90813;
    --text-dark: #333333;
    --text-white: #ffffff;
    --bg-light: #f4f6f9;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --gradient-blue: linear-gradient(135deg, #1B1850 0%, #302d7e 100%);
    --gradient-gold: linear-gradient(135deg, #886841 0%, #a6845a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 2.5rem;
}

/* Background Decor */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.25;
}

.shape-1 {
    top: -5%;
    right: -5%;
    width: 60%;
    height: 60%;
    background-color: var(--primary-blue);
    animation: bounce 8s infinite ease-in-out;
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background-color: var(--secondary-gold);
}

@keyframes bounce {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 5%); }
}

/* Card Container */
.card-container {
    background-color: var(--glass-bg);
    width: 100%;
    max-width: 420px;
    border-radius: 2.5rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo {
    max-width: 90px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.profile-img-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.img-accent-border {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 3px dashed var(--secondary-gold);
    animation: rotate 12s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.doctor-name {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.doctor-title {
    font-size: 0.9rem;
    color: var(--secondary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.director-span {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 0.8rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-gold), var(--accent-red));
    margin: 0 auto;
    border-radius: 3px;
}

/* Quick Icons Row */
.quick-icons-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-btn-circle {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Specific Icon Colors */
#qcCall { color: var(--accent-red); }
#qcWa { color: #25D366; }
#qcEmail { color: #FFC107; }

.icon-btn-circle:hover {
    transform: translateY(-5px);
    color: white !important;
}

#qcCall:hover { background: var(--accent-red); }
#qcWa:hover { background: #25D366; }
#qcEmail:hover { background: #FFC107; }

/* Actions Stack */
.actions-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.action-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
}

.primary-action {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 10px 20px rgba(27, 24, 80, 0.2);
}

.secondary-action {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.action-btn-large:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.web-fb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.action-btn-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 1.2rem;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    transition: all 0.3s;
}

.action-btn-small i {
    font-size: 1.2rem;
    color: var(--secondary-gold);
}

.action-btn-small:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Footer */
.card-footer {
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.5rem;
}

.card-footer p {
    font-size: 0.85rem;
    color: #666;
}

.brand-accent {
    color: var(--primary-blue);
    font-weight: 700;
}

.dev-badge {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.45rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bbb !important;
    text-decoration: none;
    transition: color 0.3s;
}

.dev-badge:hover {
    color: var(--secondary-gold) !important;
}

/* QR Section */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    animation: fadeIn 0.8s ease-in;
}

#qrcode img {
    margin: 0 auto;
    border: 6px solid var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(27, 24, 80, 0.1);
}

.qr-hint {
    font-size: 0.75rem;
    color: var(--primary-blue);
    margin-top: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Error State (404) */
.error-container {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
}

.error-content {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--card-shadow);
    max-width: 400px;
}

.error-code {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(27, 24, 80, 0.1);
    line-height: 1;
    margin-bottom: -2rem;
}

.error-icon {
    font-size: 3.5rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.retry-btn {
    display: inline-block;
    text-decoration: none;
    background: var(--gradient-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1.2rem;
    margin-top: 2rem;
    font-weight: 600;
    transition: transform 0.3s;
}

.retry-btn:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 480px) {
    body { padding: 1rem; }
    .card-container { 
        padding: 1.5rem 1.2rem; 
        border-radius: 2rem;
    }
    .doctor-name { font-size: 1.6rem; }
    .profile-img-wrapper { 
        width: 150px; 
        height: 150px; 
    }
    .action-btn span { font-size: 0.75rem; }
}

@media (max-width: 350px) {
    .actions-grid { grid-template-columns: repeat(1, 1fr); gap: 0.5rem; }
    .action-btn { flex-direction: row; justify-content: center; padding: 0.8rem; }
    .doctor-name { font-size: 1.4rem; }
}
