* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a0033;
    --secondary-color: #1a0d4d;
    --accent-color: #4a47a3;
    --text-color: #ffffff;
    --text-secondary: #c7c7d1;
    --button-hover: #6961c7;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0033 0%, #1a0d4d 50%, #2d1b69 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.business-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.card-header {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    overflow: hidden;
}

.decorative-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.decorative-bg::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(20px) translateX(20px); }
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding: 0 30px 30px;
    margin-top: -60px;
    position: relative;
}

.profile-image-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #ddd 0%, #f5f5f5 100%);
}

.profile-image:hover {
    transform: scale(1.05);
}

.name {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.title {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 20px;
}

/* QR Code Section */
.qr-section {
    text-align: center;
    padding: 20px;
    margin: 0 30px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border-radius: 20px;
}

.qr-code-wrapper {
    background: white;
    padding: 15px;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qr-code-wrapper:hover {
    transform: scale(1.05);
}

.qr-code {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 10px;
}

.qr-text {
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.social-btn:hover::before {
    width: 100%;
    height: 100%;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px var(--shadow);
}

.social-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.social-label {
    font-size: 0.7rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Social Button Colors */
.facebook:hover { background: #1877f2; }
.sms:hover { background: #4caf50; }
.phone:hover { background: #ff9800; }
.email:hover { background: #ea4335; }
.linkedin:hover { background: #0077b5; }
.whatsapp:hover { background: #25d366; }

/* Gallery Section */
.gallery-section {
    padding: 20px 30px 30px;
}

.gallery-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gallery-title i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 0, 51, 0.3) 0%, rgba(74, 71, 163, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* vCard Section */
.vcard-section {
    padding: 0 30px 30px;
}

.vcard-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vcard-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--shadow);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--button-hover) 100%);
}

.vcard-btn:active {
    transform: translateY(-1px);
}

.vcard-btn i {
    font-size: 1.2rem;
}

/* Website Section */
.website-section {
    padding: 0 30px 30px;
}

.website-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.website-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 71, 163, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .name {
        font-size: 1.8rem;
    }

    .title {
        font-size: 1rem;
    }

    .social-btn {
        width: 70px;
        height: 70px;
    }

    .social-btn i {
        font-size: 1.3rem;
    }

    .social-label {
        font-size: 0.65rem;
    }

    .profile-image-wrapper {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .business-card {
        border-radius: 20px;
    }

    .name {
        font-size: 1.5rem;
    }

    .title {
        font-size: 0.9rem;
    }

    .social-btn {
        width: 60px;
        height: 60px;
    }

    .social-btn i {
        font-size: 1.1rem;
    }

    .social-label {
        font-size: 0.6rem;
    }

    .vcard-btn {
        font-size: 1rem;
        padding: 15px 25px;
    }

    .qr-code {
        width: 120px;
        height: 120px;
    }

    .gallery-title {
        font-size: 1.2rem;
    }

    .gallery-grid {
        gap: 10px;
    }

    .gallery-image {
        height: 150px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .business-card {
        box-shadow: none;
    }
}

