/* ==========================================================================
    Color Palette Variables
   ========================================================================== */
:root {
    --primary-red: #BB2121;
    --primary-blue: #2F465A;
    --light-gray: #C3CACF;
    --medium-gray: #F2F2F2;
    --dark-gray: #333333;
    --white: #FFFFFF;
    --accent-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #e0e5eb 0%, #c4d0da 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ==========================================================================
   Business Card Container Styles
   ========================================================================== */
.business-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--medium-gray) 100%);
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(47, 70, 90, 0.03) 0%, rgba(187, 33, 33, 0.03) 100%);
    pointer-events: none;
    border-radius: 1.25rem;
}

.business-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Card Header Section
   ========================================================================== */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.logo {
    width: 160px;
    height: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
    opacity: 0.9;
}

#profile-pic-div {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 4px;
    background: var(--accent-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: white;
}

/* ==========================================================================
   Text Elements (Name, Designation, Department, Services)
   ========================================================================== */
.full-name {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: -0.1rem;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Responsive Font Sizes for full-name */
.full-name.font-size-lg {
    font-size: 2.2rem;
}

.full-name.font-size-md {
    font-size: 1.8rem;
}

.full-name.font-size-sm {
    font-size: 1.5rem;
}

.designation {
    font-size: 1.4rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
}   

.designation::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;          
} 

.department {
    font-size: 1.2rem;
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.3rem;
    margin-top: 1rem;
    text-align: center;
}

.services {
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 600;
    background: rgba(47, 70, 90, 0.08);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    display: inline-block;
}

/* ==========================================================================
   Contact Information Section
   ========================================================================== */
.contact-info {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--medium-gray);
}

.contact-item {
    display: flex;
    align-items: center;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    color: var(--primary-blue);
    width: 28px;
    font-size: 1.15rem;
    margin-right: 1rem;
    text-align: center;
}

.contact-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* ==========================================================================
   Button Group and Individual Button Styles
   ========================================================================== */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.btn {
    width: 100%;
    font-weight: 600;
    padding: 0.9rem 1.8rem;
    border-radius: 0.75rem;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease-out;
    z-index: 2;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    background-size: 200% 200%;
    background-position: left center;
    transition: background-position 0.4s ease;
    color: var(--white);
}

.btn-primary:hover {
    background-position: right center;
}
.btn-icon {
    margin-right: 0.8rem;
    font-size: 1.25rem;
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   Global Enhancements - Selection
   ========================================================================== */
::selection {
    background-color: rgba(187, 33, 33, 0.2);
    color: var(--primary-red);
}

/* ==========================================================================
   Responsive Design (Media Queries)
   ========================================================================== */
@media (max-width: 480px) {
    .business-card {
        padding: 1.8rem;
        border-radius: 1rem;
    }

    .full-name {
        font-size: 2.2rem;
    }

    .full-name.font-size-lg {
        font-size: 2.2rem;
    }

    .full-name.font-size-md {
        font-size: 1.8rem;
    }

    .full-name.font-size-sm {
        font-size: 1.5rem;
    }

    .designation {
        font-size: 1.2rem;
    }

    .company {
        font-size: 0.95rem;
    }

    .contact-icon {
        width: 24px;
        margin-right: 0.75rem;
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-icon {
        font-size: 1.1rem;
    }
}
