:root {
    --gold-primary: #d4af37;
    --gold-secondary: #b8860b;
    --gold-light: #f1dfa5;
    --gold-dark: #85754e;
    --text-dark: #333;
    --text-light: #f8f8f8;
    --bg-light: #f8f8f8;
    --bg-dark: #222;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #f5f5f5;
    background-image: linear-gradient(45deg, rgba(212, 175, 55, 0.85), rgba(184, 134, 11, 0.9)), url('https://uao.hkbu.edu.hk/sites/default/files/image_home_01e.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-image: linear-gradient(45deg, rgba(212, 175, 55, 0.85), rgba(184, 134, 11, 0.9)), url('https://uao.hkbu.edu.hk/sites/default/files/image_home_01e.jpg');
    }
    25% {
        background-image: linear-gradient(135deg, rgba(184, 134, 11, 0.85), rgba(212, 175, 55, 0.9)), url('https://uao.hkbu.edu.hk/sites/default/files/image_home_01e.jpg');
    }
    50% {
        background-image: linear-gradient(225deg, rgba(212, 175, 55, 0.85), rgba(184, 134, 11, 0.9)), url('https://uao.hkbu.edu.hk/sites/default/files/image_home_01e.jpg');
    }
    75% {
        background-image: linear-gradient(315deg, rgba(184, 134, 11, 0.85), rgba(212, 175, 55, 0.9)), url('https://uao.hkbu.edu.hk/sites/default/files/image_home_01e.jpg');
    }
    100% {
        background-image: linear-gradient(45deg, rgba(212, 175, 55, 0.85), rgba(184, 134, 11, 0.9)), url('https://uao.hkbu.edu.hk/sites/default/files/image_home_01e.jpg');
    }
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(34, 34, 34, 0.95), rgba(34, 34, 34, 0.9)), url('https://uao.hkbu.edu.hk/sites/default/files/image_home_01e.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.logo-container {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    width: 100%;
    max-width: 150px;
    animation: pulse 2s infinite alternate;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold-secondary), var(--gold-primary), var(--gold-secondary));
    background-size: 200% 100%;
    animation: loading 2s ease-in-out forwards, goldShimmer 2s linear infinite;
}

/* VCard Container */
.vcard-container {
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.vcard-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.vcard {
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary), var(--gold-secondary));
    background-size: 200% 200%;
    animation: goldPulse 10s ease infinite;
    padding: 40px 30px;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.university-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(241, 223, 165, 0.3));
    border-radius: 50%;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.university-logo:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shimmer 4s infinite;
}

.university-logo img {
    width: 100%;
    height: auto;
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.title {
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 600;
}

.university {
    font-size: 16px;
    opacity: 0.9;
}

/* Contact Info */
.contact-info {
    padding: 30px;
    background-color: var(--bg-light);
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.contact-item:nth-child(1) {
    animation-delay: 0.3s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.5s;
}

.contact-item:nth-child(3) {
    animation-delay: 0.7s;
}

.contact-item:nth-child(4) {
    animation-delay: 0.9s;
    margin-bottom: 0;
}

.icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    background-size: 200% 200%;
    animation: goldPulse 8s ease infinite;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    color: var(--text-light);
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-item:hover .icon {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.detail {
    flex: 1;
}

.label {
    font-size: 14px;
    color: #777;
    margin-bottom: 4px;
}

.value {
    font-size: 18px;
    font-weight: 600;
}

.value a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.value a:hover {
    color: var(--gold-secondary);
}

/* Actions */
.actions {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px 30px;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.download-btn, .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: calc(50% - 10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.download-btn:before, .share-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: -1;
}

.download-btn {
    background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
    color: var(--text-light);
    text-decoration: none;
}

.share-btn {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--gold-primary);
}

.download-btn:hover {
    background: linear-gradient(to right, var(--gold-secondary), var(--gold-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.share-btn:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.download-btn i, .share-btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes loading {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes goldShimmer {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-150%) rotate(30deg);
    }
    100% {
        transform: translateX(150%) rotate(30deg);
    }
}

/* Share Menu */
.share-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 10px;
    display: none;
    z-index: 10;
    min-width: 180px;
}

.share-menu.active {
    display: block;
    animation: fadeIn 0.3s ease-out forwards;
}

.share-menu:after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.share-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.share-option:last-child {
    margin-bottom: 0;
}

.share-option:hover {
    background-color: #f5f5f5;
    transform: translateX(3px);
}

.share-option i {
    margin-right: 12px;
    font-size: 18px;
    color: var(--gold-primary);
    width: 20px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .vcard {
        border-radius: 0;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .university-logo {
        width: 80px;
        height: 80px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 15px;
    }
    
    .value {
        font-size: 16px;
    }
    
    .actions {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .download-btn, .share-btn {
        width: 100%;
        justify-content: center;
    }
} 