:root {
    --page-bg: #6366f1;
    /* Vibrant Indigo */
    --card-bg: #ffffff;
    --text-main: #000000;
    --text-meta: #6a6a6a;
    --link-bg: #ffffff;
    --link-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', sans-serif;
    --accent: #1e3a8a;
    /* Metalo Deep Blue */
    --accent-light: #3b82f6;

    /* Vibrant Palette */
    --color-1: #3b82f6;
    --color-2: #8b5cf6;
    --color-3: #ec4899;
    --color-4: #f59e0b;
    --color-5: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Colorful Gradient Background */
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    background-attachment: fixed;
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Modal Styling - Smaller & Refined */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.required {
    color: #ef4444;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8fafc;
}

.radio-options {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.primary-btn {
    flex: 2;
    background: var(--accent);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.secondary-btn {
    flex: 1;
    background: #f1f5f9;
    color: #475569;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

/* Page Layout Styles */
.page-background {
    width: 100%;
    max-width: 580px;
}

.main-card {
    background-color: var(--card-bg);
    border-radius: 32px;
    padding: 24px 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
}

.profile-section {
    text-align: center;
    margin-bottom: 32px;
}

.profile-image {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.bio {
    font-size: 14px;
    color: var(--text-meta);
    max-width: 320px;
    line-height: 1.4;
    margin: 0 auto;
}

/* Links Container */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    background: var(--link-bg);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--link-shadow);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Adding subtle colorful accents to links */
.link-item:nth-child(1) {
    border-left: 5px solid var(--color-1);
}

.link-item:nth-child(2) {
    border-left: 5px solid var(--color-2);
}

.link-item:nth-child(3) {
    border-left: 5px solid var(--color-3);
}

/* Banner img is index 4 */
.link-item:nth-child(5) {
    border-left: 5px solid var(--color-4);
}

.link-item:nth-child(6) {
    border-left: 5px solid var(--color-5);
}

.link-item:nth-child(7) {
    border-left: 5px solid var(--color-1);
}

.link-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-icon.fb-icon {
    background: #f0f2f5;
    border-radius: 8px;
}

.link-icon.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.link-text {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

.rating-badge {
    background: #fff8e1;
    color: #f59e0b;
    /* Amber/Gold */
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
    border: 1px solid #fde68a;
    display: inline-block;
    vertical-align: middle;
}

.fb-badge {
    background: #e7f3ff;
    color: #1877f2;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
    border: 1px solid #adcfff;
    display: inline-block;
    vertical-align: middle;
}

.more-icon {
    color: #ccc;
    display: flex;
    align-items: center;
}

.banner-logo {
    width: 100%;
    padding: 30px 0;
    display: flex;
    justify-content: center;
}

.link-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.half-width {
    flex: 1;
    min-width: 0;
}

.small-text {
    font-size: 13px !important;
}

.banner-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

.social-footer {
    display: flex;
    gap: 20px;
    margin: 40px 0 24px;
    justify-content: center;
}

.social-footer a {
    color: #000;
    transition: transform 0.2s, color 0.2s;
}

.social-footer a:hover {
    transform: scale(1.1);
    color: var(--color-1);
}

.bottom-links {
    font-size: 13px;
    color: #6a6a6a;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.bottom-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.bottom-links a:hover {
    text-decoration: underline;
}

.dot {
    font-size: 14px;
    line-height: 1;
}

.link-item.call-action {
    background: #ecfdf5;
    border: 2px solid #10b981;
}

.link-item.call-action:hover {
    background: #10b981;
    color: white !important;
}

.link-item.call-action:hover .link-text {
    color: white !important;
}

.link-item.call-action:hover svg {
    fill: white !important;
}

/* Gallery Modal Specifics */
.gallery-content {
    max-width: 600px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 24px;
}

.gallery-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.img-caption {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--text-main);
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .main-card {
        border-radius: 20px;
    }

    .modal-content {
        max-width: 100%;
        margin: 20px;
        border-radius: 16px;
    }
}