/* ===== CSS Variables ===== */
:root {
    --primary-blue: #0a2556;
    --white: #ffffff;
    --black: #000000;
    --secondary-blue: #548eed;
    --secondary-red: #f7423b;
    --secondary-yellow: #ffb81f;
    --secondary-orange: #fd7817;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ===== Main Container ===== */
.container {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(10, 37, 86, 0.12);
    position: relative;
    border: 1px solid rgba(10, 37, 86, 0.05);
}

/* ===== Header Section ===== */
.header {
    background-color: var(--white);
    padding: 70px 35px 60px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #eee;
    overflow: visible;
}

/* شريط أزرق رفيع فوق اللوجو */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-blue);
    z-index: 20;
}

/* Brand Line - شمال فوق (تحت الشريط مباشرة) */
.brand-top-left {
    position: absolute;
    top: 15px;
    left: -15px;
    width: 130px;
    height: auto;
    z-index: 25;
    opacity: 0.9;
}

/* Brand Line - يمين تحت (فوق الخط الفاصل) */
.brand-bottom-right {
    position: absolute;
    bottom: 25px;
    right: -15px;
    width: 130px;
    height: auto;
    z-index: 25;
    opacity: 0.9;
    transform: rotate(180deg);
}

.brand-image {
    width: 100%;
    height: auto;
    display: block;
}

.logo-container {
    margin-bottom: 35px;
    position: relative;
    z-index: 30;
}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tagline {
    color: var(--primary-blue);
    font-size: 19px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 30;
    letter-spacing: 0.5px;
}

/* ===== Profile Section ===== */
.profile {
    padding: 35px 35px 40px;
    text-align: center;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    position: relative;
}

.name {
    font-size: 28px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.title {
    font-size: 17px;
    color: var(--secondary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

/* Color dots indicator */
.color-indicator {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 15px;
}

.color-indicator span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ind-blue { background-color: var(--secondary-blue); }
.ind-red { background-color: var(--secondary-red); }
.ind-yellow { background-color: var(--secondary-yellow); }
.ind-orange { background-color: var(--secondary-orange); }

/* ===== Links Section ===== */
.links {
    padding: 30px 35px;
}

.link {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.link:hover {
    border-color: var(--primary-blue);
    background-color: #f8f9ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 37, 86, 0.08);
}

.link:hover::before {
    background-color: var(--secondary-blue);
}

.link:nth-child(1):hover::before { background-color: var(--secondary-blue); }
.link:nth-child(2):hover::before { background-color: var(--secondary-red); }
.link:nth-child(3):hover::before { background-color: var(--secondary-yellow); }
.link:nth-child(4):hover::before { background-color: var(--secondary-orange); }
.link:nth-child(5):hover::before { background-color: var(--secondary-blue); }

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 6px 12px rgba(10, 37, 86, 0.12);
}

.link-content {
    flex: 1;
}

.link-title {
    font-weight: 700;
    font-size: 17px;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.link-desc {
    font-size: 14px;
    color: var(--medium-gray);
}

/* ===== Footer Section ===== */
.footer {
    padding: 22px 35px;
    text-align: center;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== Responsive Design ===== */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 100%;
        border-radius: 16px;
    }
    
    .header {
        padding: 60px 25px 50px;
    }
    
    .brand-top-left {
        width: 100px;
        top: 12px;
        left: -12px;
    }
    
    .brand-bottom-right {
        width: 100px;
        bottom: 20px;
        right: -12px;
    }
    
    .logo {
        max-width: 250px;
    }
    
    .tagline {
        font-size: 17px;
        margin-top: 20px;
        margin-bottom: 25px;
    }
    
    .profile {
        padding: 30px 25px 35px;
    }
    
    .name {
        font-size: 25px;
    }
    
    .title {
        font-size: 15px;
    }
    
    .links {
        padding: 25px;
    }
    
    .link {
        padding: 16px 18px;
    }
    
    .link-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
        margin-right: 16px;
    }
    
    .footer {
        padding: 20px 25px;
        font-size: 14px;
    }
}