:root {
    --color-primary: #BD2A2E;
    --color-secondary: #3B3936;
    --color-light: #B2BEBF;
    --color-medium: #889C9B;
    --color-dark: #486966;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-error: #d32f2f;
    --color-surface: #fafafa;
    --color-surface-variant: #f5f5f5;
}

html {
    font-size: 16px; /* Base font size */
}

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

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, var(--color-medium) 0%, var(--color-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1rem; /* 16px */
    line-height: 1.5;
}

.profile-card {
    background: var(--color-white);
    border-radius: 1.75rem; /* 28px */
    padding: 2rem; /* 32px */
    box-shadow: 0 0.5rem 2rem rgba(59, 57, 54, 0.15);
    max-width: 50rem; /* 800px */
    width: 90vw;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7.5rem; /* 120px */
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-dark) 100%);
    z-index: 1;
}

.profile-content {
    position: relative;
    z-index: 2;
}

.profile-image {
    width: 7.5rem; /* 120px */
    height: 7.5rem; /* 120px */
    border-radius: 50%;
    border: 0.375rem solid var(--color-white); /* 6px */
    margin: 3.75rem auto 1.5rem; /* 60px auto 24px */
    display: block;
    object-fit: cover;
    box-shadow: 0 0.25rem 1rem rgba(59, 57, 54, 0.2);
}

.profile-name {
    font-size: 1.75rem; /* 28px */
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem; /* 8px */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* 8px */
    color: var(--color-secondary);
}

.verified-icon {
    color: var(--color-primary);
    font-size: 1.5rem; /* 24px */
}

.profile-title {
    font-size: 1rem; /* 16px */
    color: var(--color-medium);
    text-align: center;
    margin-bottom: 0.25rem; /* 4px */
    font-weight: 400;
}

.profile-location {
    font-size: 0.875rem; /* 14px */
    color: var(--color-medium);
    text-align: center;
    margin-bottom: 1.5rem; /* 24px */
}

.action-buttons {
    display: flex;
    gap: 0.75rem; /* 12px */
    margin-bottom: 2rem; /* 32px */
}

.btn {
    flex: 1;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    border-radius: 1.25rem; /* 20px */
    border: none;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* 8px */
    font-family: inherit;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-light);
    color: var(--color-secondary);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 57, 54, 0.2);
}

.btn-primary:hover {
    background: #a02326;
}

.btn-secondary:hover {
    background: #9fb0b1;
}

.followers-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem; /* 24px */
    padding: 1rem 0; /* 16px 0 */
    border-top: 1px solid var(--color-light);
    border-bottom: 1px solid var(--color-light);
}

.followers-count {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
    color: var(--color-medium);
    font-size: 0.875rem; /* 14px */
}

.companies-section h3 {
    font-size: 1rem; /* 16px */
    margin-bottom: 1rem; /* 16px */
    color: var(--color-secondary);
    font-weight: 600;
}

.companies-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 12px */
}

.company-item {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px */
    padding: 0.5rem 0; /* 8px 0 */
}

.company-logo {
    width: 1.5rem; /* 24px */
    height: 1.5rem; /* 24px */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem; /* 18px */
    color: var(--color-primary);
}

.company-name {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: var(--color-secondary);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 57, 54, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-white);
    border-radius: 28px;
    padding: 32px;
    max-width: 400px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(59, 57, 54, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-secondary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-medium);
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background: var(--color-surface-variant);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary);
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--color-light);
    border-radius: 12px;
    font-size: 16px;
    background: var(--color-white);
    color: var(--color-secondary);
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.required {
    color: var(--color-error);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .profile-card {
        margin: 1rem; /* 16px */
        padding: 1.5rem; /* 24px */
        max-width: 90vw; /* Full width on mobile */
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 1.5rem; /* 24px */
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .profile-name {
        font-size: 1.5rem; /* 24px for mobile */
    }
    
    .profile-title {
        font-size: 0.875rem; /* 14px for mobile */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .profile-card {
        max-width: 40rem; /* 640px for tablets */
    }
}