/* =====================================================
   HASAD SAMI MARINE TRANSPORT - SOCIAL LINKS STYLING
   Colors: Navy #1B3A6B | Gold #C9A043 | Dark #0f1420
   ===================================================== */

:root {
    --navy: #1B3A6B;
    --navy-dark: #0D2147;
    --navy-light: #254d8f;
    --gold: #C9A043;
    --gold-dark: #a07a2c;
    --gold-light: #e8c06a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dark Mode (Default / Starts with Dark) */
    --bg-dark: #080c14;
    --bg-gradient: radial-gradient(circle at 50% 30%, #0e182c 0%, var(--bg-dark) 80%);
    --card-bg: rgba(15, 22, 38, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: rgba(27, 58, 107, 0.25);
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    --glow-opacity: 0.15;
    --logo-bg: #ffffff;
    --link-bg: rgba(27, 58, 107, 0.15);
    --link-border: rgba(27, 58, 107, 0.25);
    --link-color: #f8fafc;
}

[data-theme="light"] {
    --bg-dark: #f4f7fb;
    --bg-gradient: radial-gradient(circle at 50% 30%, #e2e8f0 0%, #f4f7fb 80%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --border: rgba(27, 58, 107, 0.12);
    --shadow: 0 15px 35px rgba(27, 58, 107, 0.08);
    --glow-opacity: 0.08;
    --logo-bg: #ffffff;
    --link-bg: rgba(27, 58, 107, 0.05);
    --link-border: rgba(27, 58, 107, 0.12);
    --link-color: #1B3A6B;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Tajawal', sans-serif;
    background-color: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 15px;
    position: relative;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

/* Background Glow Effects */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: var(--glow-opacity);
    transition: opacity 0.3s ease;
}

.bg-glow-1 {
    top: -200px;
    left: -200px;
    background: var(--navy-light);
}

.bg-glow-2 {
    bottom: -200px;
    right: -200px;
    background: var(--gold);
}

/* Controls Container (Language & Theme) */
.controls-container {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.lang-selector {
    display: flex;
    gap: 8px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

[data-theme="light"] .control-btn {
    background: rgba(27, 58, 107, 0.05);
    border: 1px solid rgba(27, 58, 107, 0.1);
    color: var(--text-secondary);
}

.control-btn:hover, .control-btn.active {
    background: var(--gold);
    color: #080c14;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(201, 160, 67, 0.3);
}

.theme-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

/* Profile Card Container */
.profile-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    z-index: 5;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    margin-bottom: 30px;
}

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

/* Header Section */
.profile-header {
    margin-bottom: 35px;
}

.logo-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--logo-bg);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold);
    box-shadow: 0 8px 24px rgba(27, 58, 107, 0.3);
    transition: var(--transition);
}

.logo-wrapper:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 12px 30px rgba(201, 160, 67, 0.4);
}

.logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.profile-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-family: 'Tajawal', sans-serif;
    letter-spacing: -0.5px;
}

html[lang="en"] .profile-title {
    font-family: 'Inter', sans-serif;
}

.profile-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Links List */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Link Item */
.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    padding: 18px 24px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--link-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.link-item:hover::before {
    transform: translateX(100%);
}

.link-icon-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.link-icon-text i {
    font-size: 1.35rem;
    width: 24px;
    display: flex;
    justify-content: center;
    color: var(--gold-light);
    transition: var(--transition);
}

.link-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.arrow-icon {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

/* Hover States */
.link-item:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: transparent;
    color: #080c14;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(201, 160, 67, 0.25);
}

.link-item:hover .link-icon-text i {
    color: #080c14;
    transform: scale(1.1);
}

.link-item:hover .arrow-icon {
    color: #080c14;
}

html[dir="rtl"] .link-item:hover .arrow-icon {
    transform: translateX(-5px);
}

html[dir="ltr"] .link-item:hover .arrow-icon {
    transform: translateX(5px);
}

/* WhatsApp Hover Special Customization */
.link-item.whatsapp:hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* Email Hover Special Customization */
.link-item.email:hover {
    background: linear-gradient(135deg, #ea4335, #c5221f);
    box-shadow: 0 8px 24px rgba(234, 67, 53, 0.3);
}

/* Location Hover Special Customization */
.link-item.location:hover {
    background: linear-gradient(135deg, #4285F4, #1B3A6B);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.3);
    color: #ffffff;
}

.link-item.location:hover .link-icon-text i,
.link-item.location:hover .arrow-icon {
    color: #ffffff;
}



/* Map Image Hover Effect */
#map-image:hover {
    transform: scale(1.025);
    border-color: var(--gold) !important;
    box-shadow: 0 10px 30px rgba(201, 160, 67, 0.2) !important;
}

/* Responsive Customization */
@media (max-width: 480px) {
    body {
        padding: 20px 15px;
    }

    .profile-container {
        padding: 30px 20px;
    }

    .profile-title {
        font-size: 1.4rem;
    }

    .link-item {
        padding: 16px 20px;
    }
}
