/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --background-dark: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0F212B;
    background-image: linear-gradient(110.7deg, rgba(15, 33, 43, 1) 1.2%, rgba(74, 123, 157, 1) 88.2%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.profile-container {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.profile-container:hover {
    transform: translateY(-5px);
}

/* Banner Section */
.profile-banner {
    height: 150px;
    width: 100%;
    position: relative;
}

.profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Image */
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--background-dark);
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Section */
.profile-content {
    padding: 70px 24px 30px;
    /* Top padding clears the avatar */
    text-align: center;
}

.user-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    /* Bright Cyan Gradient - BEST for Dark Blue BG */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-title {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: space-around;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-section {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Social Buttons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.btn-phone {
    background: #0ea5e9;
    /* Sky Blue */
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    border-color: #0ea5e9;
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    border-color: #25D366;
    color: white;
}

.btn-facebook {
    background: #1877F2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
    border-color: #1877F2;
    color: white;
}

.btn-instagram {
    background: #d62976;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d62976 60%, #285AEB 90%);
    box-shadow: 0 5px 15px rgba(214, 41, 118, 0.4);
    border-color: #d62976;
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

/* Gradient Button (User Requested) */
.btn-grad {
    background-image: linear-gradient(to right, #1A2980 0%, #26D0CE 51%, #1A2980 100%);
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: none;
    border-radius: 10px;
    display: block;
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    /* Ensure it fills container like previous button */
}

.btn-grad:hover {
    background-position: right center;
    /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Mobile - Desktop Style Card (True Responsive) */
@media (max-width: 480px) {
    body {
        padding: 20px;
        min-height: 100vh;
        /* Allow growth if content is tall */
        height: auto;
        overflow-y: auto;
        /* Enable scroll if needed */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .profile-container {
        width: 100%;
        max-width: 380px;
        height: auto;
        border-radius: 24px;
        border: var(--glass-border);
        box-shadow: var(--glass-shadow);
        overflow: hidden;
        /* For rounded corners */
        display: flex;
        flex-direction: column;
        margin: auto;
        /* Ensure centering */
    }

    /* Ultra Compact Banner */
    .profile-banner {
        height: 130px;
        /* Balanced size */
        flex-shrink: 0;
    }

    /* Ultra Compact Profile Picture */
    .profile-picture {
        width: 100px;
        height: 100px;
        bottom: -50px;
        border-width: 3px;
    }

    /* Content */
    .profile-content {
        padding: 55px 20px 25px;
        /* Balanced padding */
    }

    .user-name {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .user-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .about-section {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 15px;
        display: block;
        /* Remove strict clamp for responsiveness */
    }

    .social-links {
        margin-bottom: 20px;
        gap: 12px;
    }

    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .action-buttons {
        margin-top: 0;
    }

    .btn-grad {
        padding: 14px;
        margin: 0;
        font-size: 0.95rem;
    }
}