:root {
    --primary-color: #be1e2d;
    /* Extracted red from logo logic */
    --primary-dark: #900014;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --whatsapp-color: #25D366;
    --phone-color: #3498db;
    --email-color: #e74c3c;
    --font-main: 'Cairo', sans-serif;
    --border-radius: 16px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.profile-container {
    width: 100%;
    max-width: 480px;
    /* Mobile focused max-width */
    background: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Header */
.profile-header {
    background: linear-gradient(rgba(190, 30, 45, 0.7), rgba(150, 20, 35, 0.8)), url('assets/cover.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 40px 20px 60px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(190, 30, 45, 0.3);
}

.lang-switcher {
    position: absolute;
    top: 15px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

[dir="rtl"] .lang-switcher {
    left: auto;
    right: 20px;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.logo-container {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.profile-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.company-slogan {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Main Content */
.contact-links {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: -30px;
    /* Overlap effect */
}

.contact-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInUp 0.5s ease backwards;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-card:nth-child(4) {
    animation-delay: 0.4s;
}

.contact-card:nth-child(5) {
    animation-delay: 0.5s;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.whatsapp .icon-box {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.phone .icon-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.email .icon-box {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.facebook .icon-box {
    background: linear-gradient(135deg, #1877F2, #1060c4);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
}

.instagram .icon-box {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 4px 10px rgba(225, 48, 108, 0.3);
}

.linkedin .icon-box {
    background: linear-gradient(135deg, #0077b5, #005e93);
    box-shadow: 0 4px 10px rgba(0, 119, 181, 0.3);
}

.website .icon-box {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 4px 10px rgba(155, 89, 182, 0.3);
}

.save-contact {
    border: 2px dashed var(--primary-color);
    background: linear-gradient(135deg, rgba(190, 30, 45, 0.03), rgba(190, 30, 45, 0.08));
    cursor: pointer;
    font-family: var(--font-main);
}

.save-contact .icon-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 10px rgba(190, 30, 45, 0.3);
}

.save-contact:hover {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(190, 30, 45, 0.06), rgba(190, 30, 45, 0.12));
}

.contact-card:nth-child(6) {
    animation-delay: 0.6s;
}

.contact-card:nth-child(7) {
    animation-delay: 0.7s;
}

.contact-card:nth-child(8) {
    animation-delay: 0.8s;
}

.contact-card:nth-child(9) {
    animation-delay: 0.9s;
}

.text-content {
    flex: 1;
}

.text-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.text-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.arrow-icon {
    color: #ccc;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.arrow-icon i {
    transition: transform 0.3s ease;
}

[dir="rtl"] .arrow-icon i {
    transform: rotate(180deg);
}

[dir="ltr"] .contact-card:hover .arrow-icon {
    color: var(--primary-color);
    transform: translateX(3px);
}

[dir="rtl"] .contact-card:hover .arrow-icon {
    color: var(--primary-color);
    transform: translateX(-3px);
}

/* Footer */
.profile-footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85rem;
    color: #ffffff;
    /* White text for black background */
    background-color: #222222;
    /* Soft black/dark gray */
    margin-top: 40px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.developer-info {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.design-by {
    font-size: 0.75rem;
    color: #cccccc;
    font-weight: 300;
}

.developer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Space between text and logo */
    text-decoration: none;
    transition: transform 0.2s;
    background: rgba(255, 255, 255, 0.1);
    /* Subtle container background */
    padding: 5px 12px;
    border-radius: 20px;
}

.developer-link:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.developer-text {
    font-size: 0.8rem;
    /* Small text */
    font-weight: 600;
    color: #ffffff;
}

.nova-logo {
    height: 25px;
    /* Small logo size */
    width: auto;
    object-fit: contain;
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}