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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    min-width: 300px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.wave-header {
    height: 50%;
    min-height: 180px;
    max-height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.header-buttons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.qr-btn,
.lang-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.qr-btn {
    font-size: 20px;
}

.lang-btn {
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
}

.qr-btn:hover,
.lang-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-btn:active,
.lang-btn:active {
    transform: translateY(0);
}


.sea-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.profile-section {
    margin-top: -70px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    position: relative;
    z-index: 10;
}

.name {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.name-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.name-link:hover {
    color: #003C43;
    text-decoration: underline;
}

.job-title {
    font-size: 18px;
    color: #34495e;
    font-weight: 500;
    margin-bottom: 30px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    max-width: 100%;
}

.contact-item:hover {
    background-color: #f8f9fa;
}

.icon {
    font-size: 20px;
    margin-right: 15px;
    width: 25px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    flex: 1;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-link:hover {
    color: #003C43;
}

.download-btn {
    background-color: #003C43;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background-color: #002430;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 60, 67, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

/* QR Modal Styles */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.qr-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    width: 90%;
}

.qr-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.qr-close:hover {
    color: #333;
}

.qr-content h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
}

.qr-code-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

#qrCanvas {
    border: 2px solid #eee;
    border-radius: 10px;
}

.qr-content p {
    margin: 15px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* RTL Support */
[dir="rtl"] .header-buttons {
    left: 15px;
    right: auto;
}

[dir="rtl"] .contact-item {
    text-align: right;
}

[dir="rtl"] .contact-link {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        max-width: 90%;
    }

    .header-buttons {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .qr-btn,
    .lang-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lang-btn {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        max-width: 100%;
        border-radius: 15px;
    }

    .wave-header {
        height: 100px;
    }

    .profile-section {
        margin-top: -50px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .name {
        font-size: 24px;
    }

    .job-title {
        font-size: 16px;
    }

    .contact-link {
        font-size: 14px;
        word-break: break-all;
    }

    .card-content {
        padding: 15px;
    }
}

@media (max-width: 360px) {
    .container {
        border-radius: 10px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 8px;
    }

    .icon {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .name {
        font-size: 22px;
    }

    .job-title {
        font-size: 14px;
    }

    .contact-link {
        font-size: 12px;
    }

    .download-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}